fdopen: Support for MSVC 9.
[gnulib.git] / ChangeLog
1 2011-09-24  Bruno Haible  <bruno@clisp.org>
2
3         fdopen: Support for MSVC 9.
4         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
6         * lib/fdopen.c: Include msvc-inval.h.
7         (fdopen_nothrow): New function.
8         (rpl_fdopen): Use it.
9         * modules/fdopen (Depends-on): Add msvc-inval.
10         * modules/fclose-tests (Depends-on): Add fdopen.
11         * modules/fflush-tests (Depends-on): Likewise.
12         * modules/fgetc-tests (Depends-on): Likewise.
13         * modules/fputc-tests (Depends-on): Likewise.
14         * modules/fread-tests (Depends-on): Likewise.
15         * modules/freopen-tests (Depends-on): Likewise.
16         * modules/fseeko-tests (Depends-on): Likewise.
17         * modules/ftello-tests (Depends-on): Likewise.
18         * modules/fwrite-tests  (Depends-on): Likewise.
19         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
20
21 2011-09-24  Bruno Haible  <bruno@clisp.org>
22
23         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
24         * modules/fgetc-tests (Depends-on): Add unistd.
25         * modules/fputc-tests (Depends-on): Likewise.
26         * modules/fread-tests (Depends-on): Likewise.
27         * modules/fwrite-tests (Depends-on): Likewise.
28
29 2011-09-24  Bruno Haible  <bruno@clisp.org>
30
31         dup: Simplify autoconf test.
32         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
33         on gl_MSVC_INVAL's result.
34
35 2011-09-24  Bruno Haible  <bruno@clisp.org>
36
37         Tests for function fwrite().
38         * modules/fwrite-tests: New file.
39         * tests/test-fwrite.c: New file.
40         * modules/stdio-tests (Depends-on): Add fwrite-tests.
41
42         Tests for function fread().
43         * modules/fread-tests: New file.
44         * tests/test-fread.c: New file.
45         * modules/stdio-tests (Depends-on): Add fread-tests.
46
47         Activate fputc tests.
48         * modules/stdio-tests (Depends-on): Add fputc-tests.
49
50         Enhance fgetc, fputc tests.
51         * tests/test-fgetc.c (main): Also test the stream's error indicator.
52         * tests/test-fputc.c (main): Likewise.
53
54 2011-09-24  Bruno Haible  <bruno@clisp.org>
55
56         write: Support for MSVC 9.
57         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
58         is not 1.
59         * lib/write.c (write_nothrow): New function.
60         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
61         not 1. Use write_nothrow.
62         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
63         invalid parameter handler.
64         (gl_PREREQ_WRITE): New macro.
65         * modules/write (Depends-on): Add msvc-inval.
66         (configure.ac): Invoke gl_PREREQ_WRITE.
67         * doc/posix-functions/write.texi: Mention the problem on MSVC.
68
69 2011-09-24  Bruno Haible  <bruno@clisp.org>
70
71         read: Fix last commit.
72         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
73
74 2011-09-24  Bruno Haible  <bruno@clisp.org>
75
76         dup2: Fix last commit.
77         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
78         (rpl_dup2): Disable fcntl workaround on native Windows.
79
80         sigprocmask: Make code safer.
81         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
82         section that changes macro definitions for this compilation unit.
83
84 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85
86         dup2: clarify by coalescing Windows-specific material
87         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
88         "msvc-nothrow.h"' to the Windows-specific section, so that the
89         Emacs source need not contain these include files.
90         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
91         Windows-specific fixes into this function rather than just the
92         nothrow fix, as this shortens and clarifies the code.  Always
93         define as a function, as that's a bit cleaner than having it be
94         sometimes a function and sometimes a macro.
95         (rpl_dup2): Move the Windows-specific stuff out of here and into
96         ms_windows_dup2.  Don't protect the Haiku-related fix with
97         "#if !defined __linux__", as the same code also works around
98         a Linux kernel bug, and it doesn't add any system calls on any
99         platform.  Add comment about FreeBSD 6.1.
100
101         sigprocmask: move #include directive
102         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
103         Windows-specific section, so that the Emacs source need not
104         contain msvc-inval.h.
105
106 2011-09-23  Bruno Haible  <bruno@clisp.org>
107
108         read: Support for MSVC 9.
109         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
110         is not 1.
111         * lib/read.c (read_nothrow): New function.
112         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
113         read_nothrow.
114         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
115         invalid parameter handler.
116         (gl_PREREQ_READ): New macro.
117         * modules/read (Depends-on): Add msvc-inval.
118         (configure.ac): Invoke gl_PREREQ_READ.
119         * doc/posix-functions/read.texi: Mention the problem on MSVC.
120
121 2011-09-23  Bruno Haible  <bruno@clisp.org>
122
123         close: Support for MSVC 9.
124         * lib/close.c: Include <errno.h>, msvc-inval.h.
125         (close_nothrow): New function.
126         (rpl_close): Use it.
127         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
128         invalid parameter handler.
129         * modules/close (Depends-on): Add msvc-inval.
130         * modules/dup2-tests (Depends-on): Add close.
131         * modules/dup3-tests (Depends-on): Likewise.
132         * modules/fcntl-tests (Depends-on): Likewise.
133         * modules/spawn-pipe-tests (Depends-on): Likewise.
134         * modules/unistd-safer-tests (Depends-on): Likewise.
135         * doc/posix-functions/close.texi: Mention the problem on MSVC.
136
137 2011-09-23  Bruno Haible  <bruno@clisp.org>
138
139         New module 'dup'.
140         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
141         Allow replacement.
142         * lib/dup.c: New file.
143         * lib/fchdir.c (rpl_dup): Remove function.
144         * m4/dup.m4: New file.
145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
146         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
147         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
148         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
149         * modules/dup: New file.
150         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
151         'dup' module is in use.
152         * modules/fdopendir (Depends-on): Add dup.
153         * modules/fdutimensat-tests (Depends-on): Likewise.
154         * modules/fts (Depends-on): Likewise.
155         * modules/futimens-tests (Depends-on): Likewise.
156         * modules/posix_spawnp-tests (Depends-on): Likewise.
157         * modules/unistd-safer-tests (Depends-on): Likewise.
158         * modules/utimens-tests (Depends-on): Likewise.
159         * doc/posix-functions/dup.texi: Mention the new module and the problem
160         on MSVC.
161
162 2011-09-23  Bruno Haible  <bruno@clisp.org>
163
164         getdtablesize: Support for MSVC 9.
165         * lib/getdtablesize.c: Include msvc-inval.h.
166         (_setmaxstdio_nothrow): New function.
167         (_setmaxstdio): Redefine it.
168         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
169         * modules/getdtablesize (Depends-on): Add msvc-inval.
170         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
171
172 2011-09-23  Bruno Haible  <bruno@clisp.org>
173
174         signal-h: Rename from signal.
175         * modules/signal-h: Renamed from modules/signal.
176         * modules/pthread_sigmask (Depends-on): Update.
177         * modules/raise (Depends-on): Likewise.
178         * modules/sigaction (Depends-on): Likewise.
179         * modules/sigpipe (Depends-on): Likewise.
180         * modules/sigprocmask (Depends-on): Likewise.
181         * modules/sys_select (Depends-on): Likewise.
182         * modules/signal-h-tests: Renamed from modules/signal-tests.
183         (Files, Depends-on, Makefile.am): Update.
184         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
185         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
186         (Files, Makefile.am): Update.
187         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
188         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
189         * modules/signal: New placeholder file.
190         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
191         * doc/posix-headers/signal.texi: Update.
192         * NEWS: Mention the change.
193
194 2011-09-23  Bruno Haible  <bruno@clisp.org>
195
196         sigprocmask: Avoid crashes through signal() on MSVC 9.
197         * lib/sigprocmask.c: Include msvc-inval.h.
198         (signal_nothrow): New function.
199         (signal): Redefine it.
200         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
201         * modules/sigprocmask (Depends-on): Add msvc-inval.
202         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
203
204 2011-09-23  Bruno Haible  <bruno@clisp.org>
205
206         Tests for module 'raise'.
207         * modules/raise-tests: New file.
208         * tests/test-raise.c: New file.
209
210         raise: Support for MSVC.
211         * lib/signal.in.h (raise): New declaration.
212         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
213         for native Windows platforms.
214         * m4/raise.m4: New file.
215         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
216         HAVE_RAISE, REPLACE_RAISE.
217         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
218         REPLACE_RAISE.
219         * modules/raise (Status, Notice): Remove fields.
220         (Files): Add m4/raise.m4.
221         (Depends-on): Add signal, msvc-inval.
222         (configure.ac): Use the common idioms.
223         (Maintainer): Add me.
224         * tests/test-signal-c++.cc: Check the signature of raise.
225         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
226
227 2011-09-23  Bruno Haible  <bruno@clisp.org>
228
229         pipe2: Fix compilation on pre-C99 compilers.
230         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
231
232 2011-09-23  Bruno Haible  <bruno@clisp.org>
233
234         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
235         * lib/msvc-nothrow.h: New file.
236         * lib/msvc-nothrow.c: New file.
237         * m4/msvc-nothrow.m4: New file.
238         * modules/msvc-nothrow: New file.
239         * lib/dup2.c: Include msvc-nothrow.h.
240         (rpl_dup2): No need to protect _get_osfhandle call here.
241         * lib/accept4.c: Include msvc-nothrow.h.
242         * lib/error.c: Likewise.
243         * lib/fcntl.c: Likewise.
244         * lib/lseek.c: Likewise.
245         * lib/nonblocking.c: Likewise.
246         * lib/poll.c: Likewise.
247         * lib/read.c: Likewise.
248         * lib/select.c: Likewise.
249         * lib/sockets.h: Likewise.
250         * lib/sockets.c: Likewise.
251         * lib/stdio-read.c: Likewise.
252         * lib/stdio-write.c: Likewise.
253         * lib/write.c: Likewise.
254         * lib/w32sock.h: Likewise.
255         * lib/w32spawn.h: Likewise.
256         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
257         * lib/fsync.c: Likewise.
258         * lib/isapipe.c: Likewise.
259         * modules/dup2 (Depends-on): Add msvc-nothrow.
260         * modules/accept4 (Depends-on): Likewise.
261         * modules/error (Depends-on): Likewise.
262         * modules/fcntl (Depends-on): Likewise.
263         * modules/lseek (Depends-on): Likewise.
264         * modules/nonblocking (Depends-on): Likewise.
265         * modules/poll (Depends-on): Likewise.
266         * modules/read (Depends-on): Likewise.
267         * modules/select (Depends-on): Likewise.
268         * modules/sockets (Depends-on): Likewise.
269         * modules/sigpipe (Depends-on): Likewise.
270         * modules/write (Depends-on): Likewise.
271         * modules/accept (Depends-on): Likewise.
272         * modules/bind (Depends-on): Likewise.
273         * modules/connect (Depends-on): Likewise.
274         * modules/gethostname (Depends-on): Likewise.
275         * modules/getpeername (Depends-on): Likewise.
276         * modules/getsockname (Depends-on): Likewise.
277         * modules/getsockopt (Depends-on): Likewise.
278         * modules/ioctl (Depends-on): Likewise.
279         * modules/listen (Depends-on): Likewise.
280         * modules/recv (Depends-on): Likewise.
281         * modules/recvfrom (Depends-on): Likewise.
282         * modules/send (Depends-on): Likewise.
283         * modules/sendto (Depends-on): Likewise.
284         * modules/setsockopt (Depends-on): Likewise.
285         * modules/shutdown (Depends-on): Likewise.
286         * modules/socket (Depends-on): Likewise.
287         * modules/execute (Depends-on): Likewise.
288         * modules/spawn-pipe (Depends-on): Likewise.
289         * modules/flock (Depends-on): Likewise.
290         * modules/fsync (Depends-on): Likewise.
291         * modules/isapipe (Depends-on): Likewise.
292         * tests/test-cloexec.c: Include msvc-nothrow.h.
293         * tests/test-dup-safer.c: Likewise.
294         * tests/test-dup2.c: Likewise.
295         * tests/test-dup3.c: Likewise.
296         * tests/test-fcntl.c: Likewise.
297         * tests/test-pipe.c: Likewise.
298         * tests/test-pipe2.c: Likewise.
299         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
300         * modules/unistd-safer-tests (Depends-on): Likewise.
301         * modules/dup2-tests (Depends-on): Likewise.
302         * modules/dup3-tests (Depends-on): Likewise.
303         * modules/fcntl-tests (Depends-on): Likewise.
304         * modules/pipe-posix-tests (Depends-on): Likewise.
305         * modules/pipe2-tests (Depends-on): Likewise.
306
307 2011-09-23  Bruno Haible  <bruno@clisp.org>
308
309         dup2: Make code more maintainable.
310         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
311         (rpl_dup2): Use it.
312         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
313         * modules/dup2 (configure.ac): Invoke it.
314         Reported by Paul Eggert.
315
316 2011-09-23  Bruno Haible  <bruno@clisp.org>
317
318         msvc-inval: Fix compilation error.
319         * lib/msvc-inval.h: Include <excpt.h>.
320
321 2011-09-23  Bruno Haible  <bruno@clisp.org>
322
323         mkdir: Tweak for MSVC 9.
324         * lib/sys_stat.in.h: Update comments.
325         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
326
327         Tests for module 'chdir'.
328         * modules/chdir-tests: New file.
329         * tests/test-chdir.c: New file.
330
331         New module 'chdir'.
332         * modules/chdir: New file.
333         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
334         (chdir): New declaration.
335         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
336         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
337         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
338         * tests/test-unistd-c++.cc: Check signature of chdir.
339         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
340         * modules/chdir-long (Depends-on): Add chdir.
341         * modules/fchdir (Depends-on): Likewise.
342         * modules/rename (Depends-on): Likewise.
343         * modules/savewd (Depends-on): Likewise.
344
345         rmdir: Support for mingw, MSVC 9.
346         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
347         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
348
349         getcwd: Tweak for MSVC 9.
350         * lib/unistd.in.h: Update comments.
351         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
352
353 2011-09-22  Bruno Haible  <bruno@clisp.org>
354
355         strerror_r-posix: Avoid a link error on MSVC.
356         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
357         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
358
359 2011-09-22  Bruno Haible  <bruno@clisp.org>
360
361         select: Avoid link errors on MSVC.
362         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
363         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
364         * modules/pselect (Link): Likewise.
365         * NEWS: Mention the change.
366         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
367         test-select-stdin against $(LIB_SELECT).
368         * modules/pselect-tests (Makefile.am): Link test-pselect against
369         $(LIB_SELECT).
370
371 2011-09-22  Bruno Haible  <bruno@clisp.org>
372
373         select: Avoid compilation error on MSVC.
374         * lib/select.c: Don't include <stdbool.h>.
375
376 2011-09-21  Bruno Haible  <bruno@clisp.org>
377
378         Consolidate all uses of PATH_MAX in *.m4 files.
379         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
380         macros.
381         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
382         and gl_PATHMAX_SNIPPET.
383         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
384         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
385         * modules/chdir-long (Files): Add m4/pathmax.m4.
386         * modules/getcwd (Files): Likewise.
387
388 2011-09-21  Bruno Haible  <bruno@clisp.org>
389
390         ftruncate: Un-deprecate, concentrate on Win32 support.
391         * modules/ftruncate (Status, Notice): Remove sections.
392         (Depends-on): Add largefile.
393         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
394         non-mingw platforms.
395         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
396         include <io.h>.
397         * modules/perror-tests (Depends-on): Add ftruncate.
398         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
399         'ftruncate' module.
400
401 2011-09-21  Bruno Haible  <bruno@clisp.org>
402
403         Add dependencies to new dirent related modules.
404         * modules/opendir (Depends-on): Add closedir.
405         * modules/getcwd (Depends-on): Add opendir, closedir.
406         * modules/dirent-safer-tests (Depends-on): Likewise.
407         * modules/fdopendir-tests (Depends-on): Likewise.
408         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
409         * modules/renameat-tests (Depends-on): Likewise.
410
411 2011-09-21  Bruno Haible  <bruno@clisp.org>
412
413         opendir: Avoid compilation error on mingw.
414         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
415         * modules/opendir (Depends-on): Add unistd.
416
417 2011-09-21  Bruno Haible  <bruno@clisp.org>
418
419         ftruncate tests: Avoid a test failure on mingw.
420         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
421
422 2011-09-21  Bruno Haible  <bruno@clisp.org>
423
424         select tests: Avoid test failures on OSF/1 5.1 and mingw.
425         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
426         native Windows.
427
428 2011-09-21  Bruno Haible  <bruno@clisp.org>
429
430         New module 'fdopen'.
431         * lib/stdio.in.h (fdopen): New declaration.
432         * lib/fdopen.c: New file.
433         * m4/fdopen.m4: New file.
434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
435         REPLACE_FDOPEN.
436         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
437         REPLACE_FDOPEN.
438         * modules/fdopen: New file.
439         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
440         * tests/test-stdio-c++.cc: Check signature of fdopen.
441         * doc/posix-functions/fdopen.texi: Mention the new module.
442
443 2011-09-21  Bruno Haible  <bruno@clisp.org>
444
445         unlockpt tests: Avoid test failure on NetBSD 5.1.
446         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
447         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
448
449 2011-09-21  Bruno Haible  <bruno@clisp.org>
450
451         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
452         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
453         * tests/test-getlogin_r.c (main): Likewise.
454
455 2011-09-20  Bruno Haible  <bruno@clisp.org>
456
457         time tests: Don't require pid_t.
458         * doc/posix-headers/time.texi: Revert last change.
459         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
460         * tests/test-time.c: Comment out the check for pid_t.
461
462 2011-09-20  Bruno Haible  <bruno@clisp.org>
463
464         fsync tests: Avoid a test failure on mingw.
465         * tests/test-fsync.c (main): Allow a failure with EIO.
466
467 2011-09-20  Bruno Haible  <bruno@clisp.org>
468
469         euidaccess: Update comments.
470         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
471
472 2011-09-20  Bruno Haible  <bruno@clisp.org>
473
474         Ensure EBADF returns for socket functions on mingw.
475         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
476         descriptor is invalid.
477         * lib/bind.c (rpl_bind): Likewise.
478         * lib/connect.c (rpl_connect): Likewise.
479         * lib/getpeername.c (rpl_getpeername): Likewise.
480         * lib/getsockname.c (rpl_getsockname): Likewise.
481         * lib/getsockopt.c (rpl_getsockopt): Likewise.
482         * lib/listen.c (rpl_listen): Likewise.
483         * lib/recv.c (rpl_recv): Likewise.
484         * lib/recvfrom.c (rpl_recvfrom): Likewise.
485         * lib/send.c (rpl_send): Likewise.
486         * lib/sendto.c (rpl_sendto): Likewise.
487         * lib/setsockopt.c (rpl_setsockopt): Likewise.
488         * lib/shutdown.c (rpl_shutdown): Likewise.
489
490 2011-09-20  Bruno Haible  <bruno@clisp.org>
491
492         select tests: EBADF tests.
493         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
494         test_bad_fd): New functions.
495         (test_function): Invoke also test_bad_fd.
496
497 2011-09-20  Bruno Haible  <bruno@clisp.org>
498
499         Tests for module 'posix_spawn_file_actions_addopen.
500         * modules/posix_spawn_file_actions_addopen-tests: New file.
501         * tests/test-posix_spawn_file_actions_addopen.c: New file.
502
503         Tests for module 'posix_spawn_file_actions_adddup2'.
504         * modules/posix_spawn_file_actions_adddup2-tests: New file.
505         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
506
507         Tests for module 'posix_spawn_file_actions_addclose'.
508         * modules/posix_spawn_file_actions_addclose-tests: New file.
509         * tests/test-posix_spawn_file_actions_addclose.c: New file.
510
511 2011-09-20  Bruno Haible  <bruno@clisp.org>
512
513         Tests for module 'unlockpt'.
514         * modules/unlockpt-tests: New file.
515         * tests/test-unlockpt.c: New file.
516         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
517
518         Tests for module 'grantpt'.
519         * modules/grantpt-tests: New file.
520         * tests/test-grantpt.c: New file.
521         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
522
523 2011-09-20  Bruno Haible  <bruno@clisp.org>
524
525         freopen tests: EBADF tests.
526         * tests/test-freopen.c: Include errno.h, unistd.h.
527         (main): Add tests for EBADF, commented out for the moment.
528
529         fclose tests: EBADF tests.
530         * tests/test-fclose.c (main): Add tests for EBADF.
531
532         fflush tests: EBADF tests.
533         * tests/test-fflush.c: Include errno.h, macros.h.
534         (main): Add tests for EBADF.
535
536         ftello tests: EBADF tests.
537         * tests/test-ftello4.sh: New file.
538         * tests/test-ftello4.c: New file.
539         * modules/ftello-tests (Files): Add them.
540         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
541
542         fseeko tests: EBADF tests.
543         * tests/test-fseeko4.sh: New file.
544         * tests/test-fseeko4.c: New file.
545         * modules/fseeko-tests (Files): Add them.
546         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
547
548         Tests for function fputc().
549         * modules/fputc-tests: New file.
550         * tests/test-fputc.c: New file.
551         * modules/stdio-tests (Depends-on): Add fputc-tests.
552
553         Tests for function fgetc().
554         * modules/fgetc-tests: New file.
555         * tests/test-fgetc.c: New file.
556         * modules/stdio-tests (Depends-on): Add fgetc-tests.
557
558         Tests for function fdopen().
559         * modules/fdopen-tests: New file.
560         * tests/test-fdopen.c: New file.
561         * modules/stdio-tests (Depends-on): Add fdopen-tests.
562
563         Tests for module 'vdprintf'.
564         * modules/vdprintf-tests: New file.
565         * tests/test-vdprintf.c: New file.
566
567         Tests for module 'dprintf'.
568         * modules/dprintf-tests: New file.
569         * tests/test-dprintf.c: New file.
570
571 2011-09-20  Bruno Haible  <bruno@clisp.org>
572
573         Tests for module 'ioctl'.
574         * modules/ioctl-tests: New file.
575         * tests/test-ioctl.c: New file.
576
577 2011-09-20  Bruno Haible  <bruno@clisp.org>
578
579         fcntl tests: EBADF tests.
580         * tests/test-fcntl.c (main): Add more tests for EBADF.
581
582 2011-09-20  Bruno Haible  <bruno@clisp.org>
583
584         utimensat tests: EBADF tests.
585         * tests/test-utimensat.c (main): Add tests for EBADF.
586
587         renameat tests: EBADF tests.
588         * tests/test-renameat.c (main): Add tests for EBADF.
589
590         mkfifoat tests: EBADF tests.
591         * tests/test-mkfifoat.c (main): Add tests for EBADF.
592
593         readlinkat tests: EBADF tests.
594         * tests/test-readlinkat.c (main): Add tests for EBADF.
595
596         symlinkat tests: EBADF tests.
597         * tests/test-symlinkat.c (main): Add tests for EBADF.
598
599         linkat tests: EBADF tests.
600         * tests/test-linkat.c (main): Add tests for EBADF.
601
602         Tests for module 'faccessat'.
603         * modules/faccessat-tests: New file.
604         * tests/test-faccessat.c: New file.
605
606         fdopendir tests: EBADF tests.
607         * tests/test-fdopendir.c (main): Add more tests for EBADF.
608
609         openat tests: EBADF tests.
610         * tests/test-fchownat.c (main): Add tests for EBADF.
611         * tests/test-fstatat.c (main): Likewise.
612         * tests/test-mkdirat.c (main): Likewise.
613         * tests/test-openat.c (main): Likewise.
614         * tests/test-unlinkat.c (main): Likewise.
615         * tests/test-fchmodat.c: New file.
616         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
617         (Makefile.am): Also run 'test-fchmodat'.
618
619 2011-09-20  Bruno Haible  <bruno@clisp.org>
620
621         utimens, futimens, fdutimensat tests: EBADF tests.
622         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
623
624         Tests for function fstat().
625         * modules/fstat-tests: New file.
626         * tests/test-fstat.c: New file.
627         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
628
629 2011-09-20  Bruno Haible  <bruno@clisp.org>
630
631         test-ttyname_r tests: EBADF tests.
632         * tests/test-ttyname_r.c (main): Add tests for EBADF.
633
634         Tests for module 'isatty'.
635         * modules/isatty-tests: New file.
636         * tests/test-isatty.c: New file.
637
638         Tests for module 'write'.
639         * modules/write-tests: New file.
640         * tests/test-write.c: New file.
641
642         Tests for module 'read'.
643         * modules/read-tests: New file.
644         * tests/test-read.c: New file.
645
646         pwrite tests: EBADF tests.
647         * tests/test-pwrite.c (main): Add tests for EBADF.
648
649         pread tests: EBADF tests.
650         * tests/test-pread.c (main): Add tests for EBADF.
651
652         lseek tests: EBADF tests.
653         * tests/test-lseek.c (main): Add more tests for EBADF.
654
655         Tests for module 'ftruncate'.
656         * modules/ftruncate-tests: New file.
657         * tests/test-ftruncate.sh: New file.
658         * tests/test-ftruncate.c: New file.
659
660         fsync tests: EBADF tests.
661         * tests/test-fsync.c (main): Add more tests for EBADF.
662
663         fdatasync tests: EBADF tests.
664         * tests/test-fdatasync.c (main): Add more tests for EBADF.
665
666         Tests for module 'fchown'.
667         * modules/fchown-tests: New file.
668         * tests/test-fchown.c: New file.
669
670         Tests for module 'fchmod'.
671         * modules/fchmod-tests: New file.
672         * tests/test-fchmod.c: New file.
673
674         fchdir tests: EBADF tests.
675         * tests/test-fchdir.c (main): Add more tests for EBADF.
676
677         dup2 tests: EBADF tests.
678         * tests/test-dup2.c (main): Add more tests for EBADF.
679
680         Tests for module 'dup'.
681         * modules/dup-tests: New file.
682         * tests/test-dup.c: New file.
683
684         Tests for module 'close'.
685         * modules/close-tests: New file.
686         * tests/test-close.c: New file.
687
688 2011-09-20  Bruno Haible  <bruno@clisp.org>
689
690         Tests for module 'shutdown'.
691         * modules/shutdown-tests: New file.
692         * tests/test-shutdown.c: New file.
693
694         Tests for module 'setsockopt'.
695         * modules/setsockopt-tests: New file.
696         * tests/test-setsockopt.c: New file.
697
698         Tests for module 'sendto'.
699         * modules/sendto-tests: New file.
700         * tests/test-sendto.c: New file.
701
702         Tests for module 'send'.
703         * modules/send-tests: New file.
704         * tests/test-send.c: New file.
705
706         Tests for module 'recvfrom'.
707         * modules/recvfrom-tests: New file.
708         * tests/test-recvfrom.c: New file.
709
710         Tests for module 'recv'.
711         * modules/recv-tests: New file.
712         * tests/test-recv.c: New file.
713
714         Tests for module 'listen'.
715         * modules/listen-tests: New file.
716         * tests/test-listen.c: New file.
717
718         Tests for module 'getsockopt'.
719         * modules/getsockopt-tests: New file.
720         * tests/test-getsockopt.c: New file.
721
722         Tests for module 'getsockname'.
723         * modules/getsockname-tests: New file.
724         * tests/test-getsockname.c: New file.
725
726         Tests for module 'getpeername'.
727         * modules/getpeername-tests: New file.
728         * tests/test-getpeername.c: New file.
729
730         Tests for module 'connect'.
731         * modules/connect-tests: New file.
732         * tests/test-connect.c: New file.
733
734         Tests for module 'bind'.
735         * modules/bind-tests: New file.
736         * tests/test-bind.c: New file.
737
738         accept4 tests: Fix for native Windows.
739         * tests/test-accept4.c: Include sockets.h.
740         (main): Invoke gl_sockets_startup.
741         * modules/accept4-tests (Depends-on): Add sockets.
742
743         accept tests: Fix for native Windows.
744         * tests/test-accept.c: Include sockets.h.
745         (main): Invoke gl_sockets_startup.
746         * modules/accept-tests (Depends-on): Add sockets.
747
748 2011-09-19  Bruno Haible  <bruno@clisp.org>
749
750         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
751         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
752         do...while(0).
753         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
754         Suggested by Paul Eggert.
755
756 2011-09-19  Bruno Haible  <bruno@clisp.org>
757
758         sched: Ensure pid_t is defined.
759         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
760         not define pid_t.
761         * lib/sched.in.h: Include <sys/types.h>.
762         * doc/posix-headers/sched.texi: Mention the pid_t problem.
763         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
764
765 2011-09-19  Bruno Haible  <bruno@clisp.org>
766
767         msvc-inval: Ensure the entire expansion is a single statement.
768         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
769         of braces.
770
771 2011-09-19  Jim Meyering  <meyering@redhat.com>
772
773         tests: use printf, not echo in init.sh's warn_ function
774         * tests/init.sh (warn_): Use printf, not echo.  The latter would
775         misbehave when given strings containing a backslash or starting
776         with e.g., -n.  James Youngman suggested setting IFS.
777
778 2011-09-19  Eric Blake  <eblake@redhat.com>
779
780         futimens: enhance test
781         * tests/test-futimens.h (test_futimens): Also check for EBADF on
782         closed non-negative fd.
783
784         date: accept 'hence' as opposite of 'ago'
785         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
786         * tests/test-parse-datetime.c (main): Enhance test.
787         Suggested by Jesse Wilson.
788
789 2011-09-19  Jim Meyering  <meyering@redhat.com>
790
791         getcwd: don't fail in a deep directory on a system without openat
792         Before this change, getcwd would fail when called from a directory
793         of depth PATH_MAX / 3 or greater.  That was due to the fact that
794         the non-openat implementation used "..", "../..", "../../..", etc.
795         to access ancestor directories.  With too many, that string would
796         be longer than PATH_MAX.
797         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
798         using gnulib's openat replacement.
799         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
800         we're using the replacement function.
801
802 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
803
804         maint.mk: avoid warnings from perl about missing files
805         * top/maint.mk (def_sym_regex): Ignore files listed in
806         $(gl_other_headers_) that do not exist, say because a project
807         does not use a corresponding module.
808
809 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
810
811         stat: use pathmax.h only if needed
812         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
813         This is better for Emacs, which does not have a mingw port and
814         therefore can avoid the pathmax module.
815
816         utimens: remove dependency on dup2
817         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
818         to work around the Linux kernel bug.
819         * modules/utimens (Depends-on): Remove dup2.
820
821 2011-09-18  Bruno Haible  <bruno@clisp.org>
822
823         inet_ntop, inet_pton: Look for it also in libresolv.
824         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
825         libnsl, search for it in libresolv.
826         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
827         Needed on Solaris 7.
828
829 2011-09-18  Bruno Haible  <bruno@clisp.org>
830
831         accept, accept4 tests: Avoid link error on Solaris.
832         * modules/accept-tests (Makefile.am): Link test-accept against
833         $(LIBSOCKET).
834         * modules/accept4-tests (Makefile.am): Link test-accept4 against
835         $(LIBSOCKET).
836
837         accept4: Avoid link error on Solaris.
838         * modules/accept4 (Link): New section.
839
840         socket functions: Avoid link errors on Solaris.
841         * modules/accept (Depends-on): Add socketlib.
842         (Link): New section.
843         * modules/bind (Depends-on): Add socketlib.
844         (Link): New section.
845         * modules/connect (Depends-on): Add socketlib.
846         (Link): New section.
847         * modules/getpeername (Depends-on): Add socketlib.
848         (Link): New section.
849         * modules/getsockname (Depends-on): Add socketlib.
850         (Link): New section.
851         * modules/getsockopt (Depends-on): Add socketlib.
852         (Link): New section.
853         * modules/listen (Depends-on): Add socketlib.
854         (Link): New section.
855         * modules/recv (Depends-on): Add socketlib.
856         (Link): New section.
857         * modules/recvfrom (Depends-on): Add socketlib.
858         (Link): New section.
859         * modules/send (Depends-on): Add socketlib.
860         (Link): New section.
861         * modules/sendto (Depends-on): Add socketlib.
862         (Link): New section.
863         * modules/setsockopt (Depends-on): Add socketlib.
864         (Link): New section.
865         * modules/shutdown (Depends-on): Add socketlib.
866         (Link): New section.
867         * modules/socket (Depends-on): Add socketlib.
868         (Link): New section.
869
870 2011-09-18  Bruno Haible  <bruno@clisp.org>
871
872         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
873         * tests/test-ptsname.c (main): Terminate the test if it takes longer
874         than 5 seconds.
875         * modules/ptsname-tests (configure.ac): Test for alarm.
876
877 2011-09-18  Bruno Haible  <bruno@clisp.org>
878
879         posix_spawn_file_actions_add*: Fix module dependencies.
880         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
881         posix_spawn_file_actions_init.
882         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
883         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
884
885 2011-09-18  Bruno Haible  <bruno@clisp.org>
886
887         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
888         * tests/test-rename.h (test_rename): Allow error code EEXIST.
889         * tests/test-renameat.c (main): Likewise.
890
891 2011-09-18  Bruno Haible  <bruno@clisp.org>
892
893         Tests for module 'accept4'.
894         * modules/accept4-tests: New file.
895         * tests/test-accept4.c: New file.
896
897 2011-09-18  Bruno Haible  <bruno@clisp.org>
898
899         Tests for module 'accept'.
900         * modules/accept-tests: New file.
901         * tests/test-accept.c: New file.
902
903 2011-09-18  Bruno Haible  <bruno@clisp.org>
904
905         dup2: Support for MSVC.
906         * lib/dup2.c: Include msvc-inval.h.
907         (rpl_dup2): Handle invalid parameter notifications during dup2 and
908         _get_osfhandle calls.
909         * modules/dup2 (Depends-on): Add msvc-inval.
910         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
911
912         New module 'msvc-inval'.
913         * lib/msvc-inval.h: New file.
914         * lib/msvc-inval.c: New file.
915         * m4/msvc-inval.m4: New file.
916         * modules/msvc-inval: New file.
917
918 2011-09-17  Bruno Haible  <bruno@clisp.org>
919
920         Tests for module 'pclose'.
921         * modules/pclose-tests: New file.
922
923         New module 'pclose'.
924         * lib/stdio.in.h (pclose): New declaration.
925         * lib/pclose.c: New file.
926         * m4/pclose.m4: New file.
927         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
928         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
929         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
930         * modules/pclose: New file.
931         * modules/popen-tests (Depends-on): Add pclose.
932         * modules/popen-safer-tests (Depends-on): Likewise.
933         * doc/posix-functions/pclose.texi: Mention the new module.
934
935 2011-09-17  Bruno Haible  <bruno@clisp.org>
936
937         popen: Support for MSVC.
938         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
939         * lib/popen.c (popen): Provide alternate definition for native Windows.
940         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
942         * modules/popen (Depends-on, configure.ac): Update condition.
943         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
944         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
945         fixed.
946
947 2011-09-17  Bruno Haible  <bruno@clisp.org>
948
949         isnanl, isnand, isnanf: Work around MSVC bug.
950         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
951
952 2011-09-17  Bruno Haible  <bruno@clisp.org>
953
954         sys_socket tests: Fix recent mistake.
955         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
956
957 2011-09-17  Bruno Haible  <bruno@clisp.org>
958
959         putenv: Support for MSVC.
960         * modules/putenv (Depends-on): Add environ.
961         * lib/putenv.c (environ): Disable declaration.
962         * lib/unistd.in.h: Update comment.
963
964 2011-09-17  Bruno Haible  <bruno@clisp.org>
965
966         math: Avoid macro redefinition warnings on MSVC.
967         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
968         Undefine before redefining.
969
970 2011-09-17  Bruno Haible  <bruno@clisp.org>
971
972         doc: Mention functions which are declared as macros.
973         * doc/posix-functions/*[fl].texi: Mention that some functions are
974         defined as macros with arguments only.
975
976 2011-09-17  Bruno Haible  <bruno@clisp.org>
977
978         Add dependencies to new dirent related modules.
979         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
980         * modules/fts (Depends-on): Likewise.
981         * modules/glob (Depends-on): Likewise.
982         * modules/savedir (Depends-on): Likewise.
983         * modules/scandir (Depends-on): Likewise.
984         * modules/dirent-safer (Depends-on): Add opendir, closedir.
985         * modules/fdopendir (Depends-on): Add opendir.
986
987 2011-09-17  Bruno Haible  <bruno@clisp.org>
988
989         inet_pton: Support for MSVC on Windows Vista or newer.
990         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
991         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
992         HAVE_DECL_INET_PTON is defined.
993         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
994         On platforms with <winsock2.h>, test whether inet_pton is declared in
995         <ws2tcpip.h>. If so, arrange to replace it.
996         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
997         REPLACE_INET_PTON.
998         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
999         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1000         (Depends-on, configure.ac): Update condition.
1001         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1002
1003 2011-09-17  Bruno Haible  <bruno@clisp.org>
1004
1005         inet_ntop: Support for MSVC on Windows Vista or newer.
1006         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1007         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1008         HAVE_DECL_INET_NTOP is defined.
1009         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1010         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1011         <ws2tcpip.h>. If so, arrange to replace it.
1012         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1013         REPLACE_INET_NTOP.
1014         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1015         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1016         (Depends-on, configure.ac): Update condition.
1017         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1018
1019 2011-09-16  Eric Blake  <eblake@redhat.com>
1020
1021         test-fsync: yet another enhancement
1022         * tests/test-fsync.c (main): Also test behavior on read-only text
1023         file.
1024
1025 2011-09-16  Bruno Haible  <bruno@clisp.org>
1026
1027         Enhance fsync, fdatasync tests.
1028         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
1029         * tests/test-fdatasync.c (main): Likewise.
1030
1031 2011-09-16  Bruno Haible  <bruno@clisp.org>
1032
1033         Support for MSVC compiler: Ensure mode_t gets defined.
1034         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
1035         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1036         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1037         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
1038         * tests/test-fcntl-h.c: Check that mode_t is defined.
1039         * tests/test-sys_stat.c: Likewise.
1040         * tests/test-sys_types.c: Likewise.
1041         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
1042         * doc/posix-headers/sys_stat.texi: Likewise.
1043         * doc/posix-headers/sys_types.texi: Likewise.
1044
1045 2011-09-16  Bruno Haible  <bruno@clisp.org>
1046
1047         sys_stat: Support for MSVC.
1048         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
1049         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
1050         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
1051         MSVC.
1052
1053 2011-09-16  Bruno Haible  <bruno@clisp.org>
1054
1055         Support for MSVC compiler: Ensure off_t gets defined.
1056         * lib/unistd.in.h: Include <sys/types.h>.
1057         * tests/test-fcntl-h.c: Check that off_t is defined.
1058         * tests/test-sys_stat.c: Likewise.
1059         * tests/test-sys_types.c: Likewise.
1060
1061 2011-09-16  Eric Blake  <eblake@redhat.com>
1062
1063         fdatasync: port to Solaris
1064         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1065         * modules/fdatasync (Link): Document it.
1066         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1067
1068         fdatasync: port to MacOS X 10.7
1069         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1070         declared.
1071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1072         * modules/unistd (Makefile.am): Substitute it.
1073         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1074         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1075
1076         fdatasync: minor improvements
1077         * modules/fdatasync (Depends-on): Add condition for fsync.
1078         * lib/fdatasync.c (fdatasync): Add comment.
1079         * tests/test-unistd-c++.cc: Test fdatasync.
1080
1081         unistd: update refs to newer POSIX
1082         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1083         Suggested by Bruno Haible.
1084
1085         fdatasync: new module
1086         * modules/fsync (Description): Document difference to fdatasync.
1087         * modules/fdatasync: New module.
1088         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1089         * lib/fdatasync.c (fdatasync): Likewise.
1090         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1091         defaults.
1092         * modules/unistd (Makefile.am): Set witnesses.
1093         * lib/unistd.in.h (fdatasync): Declare.
1094         * MODULES.html.sh: Document it.
1095         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1096         * modules/fdatasync-tests: New test.
1097         * tests/test-fdatasync.c: Likewise.
1098
1099 2011-09-16  Eric Blake  <eblake@redhat.com>
1100
1101         test-fsync: enhance tests
1102         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1103         * tests/test-fsync.c (main): Enhance test.
1104
1105 2011-09-15  Bruno Haible  <bruno@clisp.org>
1106
1107         Support for MSVC compiler: Ensure ssize_t gets defined.
1108         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1109         * doc/posix-headers/stdio.texi: Likewise.
1110         * modules/stdio (Depends-on): Add ssize_t.
1111         * modules/sys_socket (Depends-on): Likewise.
1112         * modules/sys_types (Depends-on): Likewise.
1113         * modules/sys_uio (Depends-on): Likewise.
1114         * modules/unistd (Depends-on): Likewise.
1115         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1116         * tests/test-sys_types.c: Check that ssize_t is defined.
1117
1118 2011-09-14  Bruno Haible  <bruno@clisp.org>
1119
1120         Avoid using #, the m4 comment starter character, near brackets.
1121         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1122         delimiter character in sed expressions.
1123         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1124         Suggested by Eric Blake.
1125
1126         Properly quote AC_CHECK_DECLS' 4th argument.
1127         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
1128         argument.
1129         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1130         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1131         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1132         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1133         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
1134         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
1135         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
1136         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
1137         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
1138         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
1139         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
1140         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1141         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1142         * m4/isinf.m4 (gl_ISINF): Likewise.
1143         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1144         * m4/readutmp.m4 (gl_READUTMP): Likewise.
1145         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1146         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1148         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1149         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1150         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1151         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
1152         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1153         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1154         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1155         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
1156         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1158         Reported by Eric Blake.
1159
1160         Properly quote AC_CHECK_DECL's 4th argument.
1161         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
1162         argument.
1163         * m4/argp.m4 (gl_ARGP): Likewise.
1164         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1165         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1166         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1167         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1168         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
1169         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
1170         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1171         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1172         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1173         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1174         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1175         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1176         Reported by Eric Blake.
1177
1178 2011-09-14  Eric Blake  <eblake@redhat.com>
1179
1180         opendir: avoid compile warning
1181         * lib/opendir.c (includes): Always include errno.h.
1182         Reported by Tatsuro MATSUOKA.
1183
1184 2011-09-14  Jim Meyering  <meyering@redhat.com>
1185
1186         maint.mk: sc_tight_scope: propagate failure from sub-make
1187         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
1188         Reported by Martin von Gagern.
1189
1190 2011-09-13  Bruno Haible  <bruno@clisp.org>
1191
1192         tempname: Support for MSVC.
1193         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
1194         MSVC.
1195         * modules/tempname (Depends-on): Add fcntl-h.
1196
1197 2011-09-13  Bruno Haible  <bruno@clisp.org>
1198
1199         sys_time: Support for MSVC.
1200         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
1201         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
1202         include <winsock2.h>.
1203         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
1204         function declarations that collide with POSIX.
1205         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
1206         (Makefile.am): Substitute HAVE_WINSOCK2_H.
1207
1208 2011-09-13  Bruno Haible  <bruno@clisp.org>
1209
1210         stat: Support for MSVC.
1211         * lib/stat.c: Include pathmax.h.
1212         * modules/stat (Depends-on): Add pathmax.
1213
1214         pathmax: Support for native Windows.
1215         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
1216
1217 2011-09-12  Bruno Haible  <bruno@clisp.org>
1218
1219         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
1220         * lib/dirent.in.h (struct dirent): New type.
1221         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
1222         DT_WHT): New macros.
1223         (DIR): New type.
1224         (opendir, closedir): Declare only if the module 'opendir' is enabled.
1225         (readdir, rewinddir): New declarations.
1226         * lib/dirent-private.h: New file.
1227         * lib/opendir.c: New file.
1228         * lib/readdir.c: New file.
1229         * lib/rewinddir.c: New file.
1230         * lib/closedir.c: New file.
1231         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
1232         * m4/opendir.m4: New file.
1233         * m4/readdir.m4: New file.
1234         * m4/rewinddir.m4: New file.
1235         * m4/closedir.m4: New file.
1236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
1237         REPLACE_CLOSEDIR here.
1238         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
1239         readdir, rewinddir are declared.
1240         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
1241         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
1242         HAVE_REWINDDIR, HAVE_CLOSEDIR.
1243         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
1244         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
1245         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
1246         * modules/opendir: New file.
1247         * modules/readdir: New file.
1248         * modules/rewinddir: New file.
1249         * modules/closedir: New file.
1250         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
1251         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
1252         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
1253         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
1254         * NEWS: Mention the 'fchdir' change.
1255
1256 2011-09-11  Bruno Haible  <bruno@clisp.org>
1257
1258         asm-underscore.m4: Support for MSVC.
1259         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
1260         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
1261
1262 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
1263
1264         Doc about crypt functions.
1265         * doc/posix-functions/crypt.texi: Expand range of glibc versions
1266         needing for _GNU_SOURCE to get crypt.
1267         * doc/posix-functions/encrypt.texi: Likewise.
1268         * doc/posix-functions/setkey.texi: Likewise.
1269
1270 2011-09-11  Bruno Haible  <bruno@clisp.org>
1271
1272         doc: Update regarding MSVC 9.
1273         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
1274         tested".
1275         * doc/posix-functions/*.texi: Update with info about MSVC 9.
1276         * doc/posix-headers/*.texi: Likewise.
1277         * doc/pastposix-functions/*.texi: Likewise.
1278         * doc/glibc-functions/*.texi: Likewise.
1279         * doc/glibc-headers/*.texi: Likewise.
1280
1281 2011-09-11  Bruno Haible  <bruno@clisp.org>
1282
1283         unistd et al.: Don't assume <unistd.h> exists.
1284         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
1285         does not exist.
1286         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
1287         exist. But include <stdlib.h>.
1288         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
1289         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
1290         symlink() does not exist.
1291         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
1292         include <io.h> instead.
1293         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
1294         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
1295         include <direct.h> instead.
1296         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1297         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1298         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
1299         <io.h> instead.
1300         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
1301         correctly if the system does not have hard links.
1302         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
1303         <direct.h> instead.
1304         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
1305         it when looking for function declarations.
1306         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
1307         <direct.h> and <io.h> instead.
1308         * doc/posix-headers/unistd.texi: More details about MSVC problem.
1309
1310 2011-09-11  Bruno Haible  <bruno@clisp.org>
1311
1312         strcase: Support for MSVC.
1313         * modules/strcase (Status, Notice): Remove obsoletion mark.
1314         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
1315         * doc/posix-functions/strncasecmp.texi: Likewise.
1316
1317         strings: Don't assume <strings.h> exists.
1318         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
1319         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
1320         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
1321         * doc/posix-headers/strings.texi: Mention the MSVC problem.
1322
1323 2011-09-11  Bruno Haible  <bruno@clisp.org>
1324
1325         dirent: Don't assume <dirent.h> exists.
1326         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
1327         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
1328         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
1329         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
1330
1331 2011-09-11  Bruno Haible  <bruno@clisp.org>
1332
1333         Fix wint_t on MSVC.
1334         * lib/wchar.in.h (wint_t): On MSVC, override it.
1335         * lib/wctype.in.h (wint_t): Likewise.
1336         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
1337         MSVC.
1338         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
1339         * doc/posix-headers/wctype.texi: Likewise.
1340
1341 2011-09-11  Bruno Haible  <bruno@clisp.org>
1342
1343         sys_types: Fix typo.
1344         * lib/sys_types.in.h: Fix typo in comment.
1345         Reported by Paul Eggert.
1346
1347         Support for MSVC compiler: Ensure size_t gets defined.
1348         * modules/strings (Depends-on): Add 'sys_types'.
1349         * modules/sys_uio (Depends-on): Likewise.
1350         * lib/sys_uio.in.h: Update comment.
1351
1352         C++ tests for module 'sys_types'.
1353         * modules/sys_types-c++-tests: New file.
1354         * tests/test-sys_types-c++.cc: New file.
1355
1356         Tests for module 'sys_types'.
1357         * modules/sys_types-tests: New file.
1358         * tests/test-sys_types.c: New file.
1359
1360         New module 'sys_types'.
1361         * lib/sys_types.in.h: New file.
1362         * m4/sys_types_h.m4: New file.
1363         * modules/sys_types: New file.
1364         * doc/posix-headers/sys_types.texi: Mention the new module and the
1365         size_t problem on MSVC 9.
1366
1367 2011-09-11  Bruno Haible  <bruno@clisp.org>
1368
1369         Support for MSVC compiler: Avoid division by a literal 0.
1370         * lib/math.in.h (NAN): Define through a function call also on MSVC.
1371         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
1372         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
1373         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
1374         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
1375         * tests/infinity.h: New file.
1376         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
1377         on MSVC.
1378         * tests/test-ceilf1.c: Include infinity.h.
1379         (main): Use Infinityf.
1380         * tests/test-ceil1.c: Include infinity.h.
1381         (main): Use Infinityd.
1382         * tests/test-ceill.c: Include infinity.h.
1383         (main): Use Infinityl.
1384         * tests/test-dprintf-posix.c: Include infinity.h.
1385         (test_function): Use Infinityd.
1386         * tests/test-floorf1.c: Include infinity.h.
1387         (main): Use Infinityf.
1388         * tests/test-floor1.c: Include infinity.h.
1389         (main): Use Infinityd.
1390         * tests/test-floorl.c: Include infinity.h.
1391         (main): Use Infinityl.
1392         * tests/test-fprintf-posix.c: Include infinity.h.
1393         (test_function): Use Infinityd.
1394         * tests/test-frexp.c: Include infinity.h.
1395         (main): Use Infinityd.
1396         * tests/test-frexpl.c: Include infinity.h.
1397         (main): Use Infinityl.
1398         * tests/test-isfinite.c: Include infinity.h.
1399         (test_isfinitef): Use Infinityf.
1400         (test_isfinited): Use Infinityd.
1401         (test_isfinitel): Use Infinityl.
1402         * tests/test-isinf.c: Include infinity.h.
1403         (test_isinff): Use Infinityf.
1404         (test_isinfd): Use Infinityd.
1405         (test_isinfl): Use Infinityl.
1406         * tests/test-isnan.c: Include infinity.h.
1407         (test_float): Use Infinityf.
1408         (test_double): Use Infinityd.
1409         (test_long_double): Use Infinityl.
1410         * tests/test-isnanf.h: Include infinity.h.
1411         (main): Use Infinityf.
1412         * tests/test-isnand.h: Include infinity.h.
1413         (main): Use Infinityd.
1414         * tests/test-isnanl.h: Include infinity.h.
1415         (main): Use Infinityl.
1416         * tests/test-ldexpl.c: Include infinity.h.
1417         (main): Use Infinityl.
1418         * tests/test-printf-posix.h: Include infinity.h.
1419         (test_function): Use Infinityd.
1420         * tests/test-roundf1.c: Include infinity.h.
1421         (main): Use Infinityf.
1422         * tests/test-round1.c: Include infinity.h.
1423         (main): Use Infinityd.
1424         * tests/test-roundl.c: Include infinity.h.
1425         (main): Use Infinityl.
1426         * tests/test-signbit.c: Include infinity.h.
1427         (test_signbitf): Use Infinityf.
1428         (test_signbitd): Use Infinityd.
1429         (test_signbitl): Use Infinityl.
1430         * tests/test-snprintf-posix.h: Include infinity.h.
1431         (test_function): Use Infinityd, Infinityl.
1432         * tests/test-sprintf-posix.h: Include infinity.h.
1433         (test_function): Use Infinityd, Infinityl.
1434         * tests/test-truncf1.c: Include infinity.h.
1435         (main): Use Infinityf.
1436         * tests/test-trunc1.c: Include infinity.h.
1437         (main): Use Infinityd.
1438         * tests/test-truncl.c: Include infinity.h.
1439         (main): Use Infinityl.
1440         * tests/test-vasnprintf-posix.c: Include infinity.h.
1441         (test_function): Use Infinityd, Infinityl.
1442         * tests/test-vasprintf-posix.c: Include infinity.h.
1443         (test_function): Use Infinityd, Infinityl.
1444         * modules/ceilf-tests (Files): Add tests/infinity.h.
1445         * modules/ceil-tests (Files): Likewise.
1446         * modules/ceill-tests (Files): Likewise.
1447         * modules/dprintf-posix-tests (Files): Likewise.
1448         * modules/floorf-tests (Files): Likewise.
1449         * modules/floor-tests (Files): Likewise.
1450         * modules/floorl-tests (Files): Likewise.
1451         * modules/fprintf-posix-tests (Files): Likewise.
1452         * modules/frexp-tests (Files): Likewise.
1453         * modules/frexp-nolibm-tests (Files): Likewise.
1454         * modules/frexpl-tests (Files): Likewise.
1455         * modules/frexpl-nolibm-tests (Files): Likewise.
1456         * modules/isfinite-tests (Files): Likewise.
1457         * modules/isinf-tests (Files): Likewise.
1458         * modules/isnan-tests (Files): Likewise.
1459         * modules/isnanf-tests (Files): Likewise.
1460         * modules/isnanf-nolibm-tests (Files): Likewise.
1461         * modules/isnand-tests (Files): Likewise.
1462         * modules/isnand-nolibm-tests (Files): Likewise.
1463         * modules/isnanl-tests (Files): Likewise.
1464         * modules/isnanl-nolibm-tests (Files): Likewise.
1465         * modules/ldexpl-tests (Files): Likewise.
1466         * modules/printf-posix-tests (Files): Likewise.
1467         * modules/roundf-tests (Files): Likewise.
1468         * modules/round-tests (Files): Likewise.
1469         * modules/roundl-tests (Files): Likewise.
1470         * modules/signbit-tests (Files): Likewise.
1471         * modules/snprintf-posix-tests (Files): Likewise.
1472         * modules/sprintf-posix-tests (Files): Likewise.
1473         * modules/truncf-tests (Files): Likewise.
1474         * modules/trunc-tests (Files): Likewise.
1475         * modules/truncl-tests (Files): Likewise.
1476         * modules/vasnprintf-posix-tests (Files): Likewise.
1477         * modules/vasprintf-posix-tests (Files): Likewise.
1478         * modules/vdprintf-posix-tests (Files): Likewise.
1479         * modules/vfprintf-posix-tests (Files): Likewise.
1480         * modules/vprintf-posix-tests (Files): Likewise.
1481         * modules/vsnprintf-posix-tests (Files): Likewise.
1482         * modules/vsprintf-posix-tests (Files): Likewise.
1483         * modules/xprintf-posix-tests (Files): Likewise.
1484
1485 2011-09-11  Bruno Haible  <bruno@clisp.org>
1486
1487         Ensure pid_t gets defined.
1488         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
1489         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
1490         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1491         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1492         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1493         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
1494         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1495         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1496         * tests/test-fcntl-h.c: Check that pid_t is defined.
1497         * tests/test-sched.c: Likewise.
1498         * tests/test-termios.c: Likewise.
1499         * tests/test-time.c: Likewise.
1500         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
1501         * doc/posix-headers/signal.texi: Likewise.
1502         * doc/posix-headers/sys_types.texi: Likewise.
1503         * doc/posix-headers/time.texi: Likewise.
1504
1505 2011-09-11  Bruno Haible  <bruno@clisp.org>
1506
1507         acl: Fix compilation on Solaris 10 (older version).
1508         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
1509         of ACE_EVERYONE.
1510         * lib/set-mode-acl.c (qset_acl): Likewise.
1511         Reported by Christian Jullien <eligis@orange.fr>.
1512
1513 2011-09-10  Bruno Haible  <bruno@clisp.org>
1514
1515         iconv, unsetenv: Add support for MSVC compiler.
1516         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
1517         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
1518
1519 2011-09-10  Bruno Haible  <bruno@clisp.org>
1520
1521         *printf: Add support for MSVC compiler.
1522         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
1523         handles the exception caused by the %n directive. When cross-compiling,
1524         guess no on native Windows.
1525         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1526         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
1527         emulate it through vsnprintf.
1528         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
1529         * doc/posix-functions/dprintf.texi: Update documentation regarding
1530         MSVC 9.
1531         * doc/posix-functions/fprintf.texi: Likewise.
1532         * doc/posix-functions/printf.texi: Likewise.
1533         * doc/posix-functions/snprintf.texi: Likewise.
1534         * doc/posix-functions/sprintf.texi: Likewise.
1535         * doc/posix-functions/swprintf.texi: Likewise.
1536         * doc/posix-functions/vdprintf.texi: Likewise.
1537         * doc/posix-functions/vfprintf.texi: Likewise.
1538         * doc/posix-functions/vprintf.texi: Likewise.
1539         * doc/posix-functions/vsnprintf.texi: Likewise.
1540         * doc/posix-functions/vsprintf.texi: Likewise.
1541         * doc/glibc-functions/asprintf.texi: Likewise.
1542         * doc/glibc-functions/obstack_printf.texi: Likewise.
1543         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1544         * doc/glibc-functions/vasprintf.texi: Likewise.
1545
1546 2011-09-10  Bruno Haible  <bruno@clisp.org>
1547
1548         nocrash: Add support for native Windows.
1549         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
1550
1551 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
1552             Bruno Haible  <bruno@clisp.org>
1553
1554         absolute-header, include-next: Add support for MSVC compiler.
1555         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1556         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1557         directory separator in #line directives.
1558         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1559         recognize also backslash as directory separator in #line directives.
1560
1561 2011-09-08  Jim Meyering  <meyering@redhat.com>
1562
1563         maint.mk: mark the post-release commit log with "maint: " prefix
1564         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1565         one-line commit-log summary.
1566
1567 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1568             Bruno Haible  <bruno@clisp.org>
1569
1570         Doc about crypt functions.
1571         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1572         systems.
1573         * doc/posix-functions/encrypt.texi: Likewise.
1574         * doc/posix-functions/setkey.texi: Likewise.
1575
1576 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1577
1578         * lib/gc.h: Fix copyright header.
1579
1580 2011-09-07  Bruno Haible  <bruno@clisp.org>
1581
1582         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1583         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1584         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1585
1586 2011-09-07  Bruno Haible  <bruno@clisp.org>
1587
1588         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1589         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1590         * lib/freopen.c: Likewise.
1591         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1592         * lib/lstat.c: Likewise.
1593         * lib/stat.c: Likewise.
1594         * lib/open.c: Use different syntax for include of <fcntl.h>.
1595         * lib/openat.c: Include fcntl.h again, explicitly.
1596
1597 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1598
1599         parse-datetime: document the newly accepted format
1600         * doc/parse-datetime.texi (Combined date and time of day items):
1601         New section.
1602
1603 2011-09-06  Bruno Haible  <bruno@clisp.org>
1604
1605         acl: Fix a test failure on newer Solaris 10 with ZFS.
1606         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1607         ENOSYS as no ACL.
1608         Reported by Jim Meyering.
1609
1610 2011-09-06  Bruno Haible  <bruno@clisp.org>
1611
1612         acl: Update for AIX >= 5.3 with NFS.
1613         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1614         ENOSYS as no ACL.
1615
1616         acl: Fix a test failure on AIX >= 5.3 with NFS.
1617         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1618         as no ACL.
1619
1620 2011-09-06  Bruno Haible  <bruno@clisp.org>
1621
1622         acl: Fix a test failure on IRIX 6.5 with NFS.
1623         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1624         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1625         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1626         * lib/copy-acl.c (qcopy_acl): Likewise.
1627
1628 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1629
1630         openat: port to AIX 7.1 with large files
1631         AIX 7.1 does a "#define openat open64at" if large files are in use,
1632         so we can't simply #undef openat.  Use the orig_openat trick (similar
1633         to orig_open in lib/open.c) to work around the problem.  Problem
1634         reported by Kevin Brott for GNU tar, in the thread containing
1635         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1636         * lib/openat.c (__need_system_fcntl_h): Define first.
1637         Include <fcntl.h> and <sys/types.h> before undefining.
1638         (orig_openat) [HAVE_OPENAT]: New inline function.
1639         (openat) [HAVE_OPENAT]: Do not undef.
1640         (rpl_openat): Use orig_openat, not openat.
1641
1642 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1643             Bruno Haible  <bruno@clisp.org>
1644
1645         acl: Avoid errors on NonStop Kernel.
1646         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1647         ENOTSUP errors.
1648
1649 2011-09-05  Bruno Haible  <bruno@clisp.org>
1650
1651         acl: Clean up Solaris code.
1652         * lib/acl-internal.h: Remove no-op #if.
1653         * lib/file-has-acl.c: Likewise.
1654         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1655         * lib/copy-acl.c (qcopy_acl): Likewise.
1656
1657 2011-09-05  Bruno Haible  <bruno@clisp.org>
1658
1659         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1660         binaries built on the original Solaris 10.
1661         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1662         trivial.
1663
1664 2011-09-05  Bruno Haible  <bruno@clisp.org>
1665
1666         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1667         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1668         10.
1669         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1670         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1671         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1672         instead of acl_get, facl_get, acl_set, facl_set.
1673
1674 2011-09-05  Bruno Haible  <bruno@clisp.org>
1675
1676         copy-file: Try unit tests on more file systems.
1677         * tests/test-copy-file-1.sh: New file.
1678         * tests/test-copy-file-2.sh: New file.
1679         * modules/copy-file-tests (Files): Add them.
1680         (Makefile.am): Add them to TESTS.
1681
1682         acl: Try unit tests on more file systems.
1683         * tests/test-file-has-acl-1.sh: New file.
1684         * tests/test-file-has-acl-2.sh: New file.
1685         * tests/test-set-mode-acl-1.sh: New file.
1686         * tests/test-set-mode-acl-2.sh: New file.
1687         * tests/test-copy-acl-1.sh: New file.
1688         * tests/test-copy-acl-2.sh: New file.
1689         * modules/acl-tests (Files): Add them.
1690         (Makefile.am): Add them to TESTS.
1691
1692 2011-09-04  Bruno Haible  <bruno@clisp.org>
1693
1694         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1695         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1696         10.
1697         (OLD_ALLOW, OLD_DENY): New macros.
1698         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1699         ACE_ACCESS_ALLOWED_ACE_TYPE.
1700         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1701         ACE_ACCESS_DENIED_ACE_TYPE.
1702         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1703         (NEW_ACE_EXECUTE): Fix value.
1704         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1705         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1706         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1707         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1708         NEW_ACE_SYNCHRONIZE): New macros.
1709         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1710         instead of acl_fromtext, acl_set, facl_set.
1711         Fixes a coreutils/tests/cp/perm failure.
1712
1713 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1714
1715         openat: test for fstatat (..., 0) bug
1716         Further testing with tar suggests that fstatat (..., 0)
1717         does not work in general, on AIX 7.1; see
1718         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1719         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1720         replacement fstatat (which is what older AIX releases were using
1721         anyway).
1722         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1723         use is now changed to orig_fstatat.  This was probably the right
1724         thing to do anyway.
1725         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1726         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1727         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1728         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1729         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1730         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1731         if the bug is found.
1732
1733         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1734         This tests for another fstatat bug on AIX 7.1:
1735         fstatat (AT_FDCWD, ..., 0) does not work.  See
1736         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1737         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1738         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1739         (rpl_fstatat): Adjust so that it works around either (or both)
1740         bugs if present.
1741         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1742
1743 2011-09-03  Karl Berry  <karl@gnu.org>
1744
1745         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1746         in index entries.
1747
1748 2011-09-02  Bruno Haible  <bruno@clisp.org>
1749
1750         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1751         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1752         values of AR, ARFLAGS, RANLIB.
1753         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1754
1755 2011-09-02  Bruno Haible  <bruno@clisp.org>
1756
1757         Find 'ar' program that fits with --host argument.
1758         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1759
1760 2011-09-02  Bruno Haible  <bruno@clisp.org>
1761
1762         tests: init.sh: Support any non-GNU diff.
1763         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1764         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1765         Solaris 8.
1766
1767 2011-09-02  Bruno Haible  <bruno@clisp.org>
1768
1769         tests: init.sh: work also with any non-GNU diff that supports -u
1770         * tests/init.sh: Relax check for diff -u support.
1771         Rather than checking for GNU diff via --version, simply check
1772         for support for -u itself.  Useful at least on OpenBSD 4.9,
1773         AIX 7.1, IRIX 6.5, and Solaris 10.
1774
1775 2011-09-01  Bruno Haible  <bruno@clisp.org>
1776
1777         strtoimax, strtoumax: Document problem on HP-UX 11.
1778         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1779         * doc/posix-functions/strtoumax.texi: Likewise.
1780
1781 2011-09-01  Bruno Haible  <bruno@clisp.org>
1782
1783         strtoumax: Avoid link error on OSF/1 with DTK cc.
1784         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1785         defined as a function.
1786         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1787         strtoumax is defined, not whether it is declared.
1788
1789 2011-09-01  Bruno Haible  <bruno@clisp.org>
1790
1791         strtoimax: Avoid link error on OSF/1 with DTK cc.
1792         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1793         defined as a function.
1794         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1795         strtoimax is defined, not whether it is declared.
1796
1797 2011-09-01  Bruno Haible  <bruno@clisp.org>
1798
1799         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1800         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1801         as a function.
1802         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1803         whether it is declared.
1804
1805 2011-09-01  Bruno Haible  <bruno@clisp.org>
1806
1807         imaxabs: Avoid link error on OSF/1 with DTK cc.
1808         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1809         as a function.
1810         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1811         whether it is declared.
1812
1813 2011-09-01  Bruno Haible  <bruno@clisp.org>
1814
1815         Tests for module 'strtoumax'.
1816         * modules/strtoumax-tests: New file.
1817         * tests/test-strtoumax.c: New file.
1818
1819         Tests for module 'strtoimax'.
1820         * modules/strtoimax-tests: New file.
1821         * tests/test-strtoimax.c: New file.
1822
1823         Tests for module 'imaxdiv'.
1824         * modules/imaxdiv-tests: New file.
1825         * tests/test-imaxdiv.c: New file.
1826
1827         Tests for module 'imaxabs'.
1828         * modules/imaxabs-tests: New file.
1829         * tests/test-imaxabs.c: New file.
1830
1831 2011-09-01  Bruno Haible  <bruno@clisp.org>
1832
1833         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1834         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1835         pthread_create.
1836
1837 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1838
1839         openat: work around AIX 7.1 fstatat issue
1840         This should fix the problem that was not properly fixed
1841         in the previous change, dated 2011-08-30.
1842         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1843         __need_system_stat_h defined.
1844         (orig_fstatat) [HAVE_FSTATAT]: New function.
1845         (rpl_fstatat): Go back to the old way of doing things,
1846         except call orig_fstatat instead of fstatat.
1847         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1848         Remove unnecessary check whether fstatat fills in st_size etc.
1849
1850 2011-09-01  Bruno Haible  <bruno@clisp.org>
1851
1852         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1853         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1854         just include the system's header.
1855
1856 2011-08-31  Jim Meyering  <meyering@redhat.com>
1857
1858         tests: avoid spurious assertion failure in test-float.c on ppc64
1859         * tests/test-float.c (test_long_double): Comment out an assertion,
1860         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1861         with gcc-4.4.4.
1862
1863         maint: indent with spaces, not TABs
1864         I need to get in the habit of running gnulib's "make check".
1865         Both of these would have been caught.
1866         * m4/largefile.m4: Indent with spaces, not TABs.
1867         * lib/parse-datetime.y (iso_8601_time): Likewise.
1868         Spotted by Pádraig Brady.
1869
1870         test-parse-datetime.c: accommodate a relatively strict gcc warning
1871         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1872         to avoid a warning from gcc's -Werror=missing-declarations.
1873         Insert a few spaces-before-funcall-parenthesis.
1874
1875 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1876
1877         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1878         The parser now accepts ISO 8601 date-time strings with "T" as the
1879         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1880         with a space between the date and time strings.  Now it also parses
1881         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1882         variants like "2004-02-29T16:21:42.333-07:00"
1883         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1884         of day representation using the 'T' separator character.
1885         * doc/parse-datetime.texi (General date syntax): replace use of
1886         deprecated --iso-8601 option with --rfc-3339 in example of date
1887         command output formats that can be parsed.
1888         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1889         lib/parse-datetime.y.
1890         (gmt_offset): New function.
1891         (main): Add additional test cases to validate ISO8601 extended
1892         date and time of day parsing.
1893
1894 2011-08-31  Bruno Haible  <bruno@clisp.org>
1895
1896         freopen: Documentation.
1897         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1898         name.
1899         Reported by Claudio Bley <claudio.bley@gmail.com>.
1900
1901 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1902
1903         freopen: Don't crash if the filename argument is NULL.
1904         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1905         NULL.
1906
1907 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1908
1909         openat: work around AIX 7.1 fstatat bug
1910         Problem reported by Kevin Brott for GNU tar, in the thread containing
1911         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1912         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1913         FSTATAT_ST_SIZE_ETC_BROKEN.
1914         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1915         rpl_fstatat.
1916         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1917         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1918         AC_CHECK_FUNCS_ONCE for fstatat.
1919         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1920         fchmodat, mkdirat, openat and unlinkat.
1921
1922 2011-08-30  Bruno Haible  <bruno@clisp.org>
1923
1924         Avoid endless recursions if config.h includes some header files.
1925         * lib/fopen.c (__need_FILE): Define already before including config.h.
1926         * lib/freopen.c (__need_FILE): Likewise.
1927         * lib/open.c (__need_system_fcntl_h): Likewise.
1928         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1929         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1930         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1931
1932 2011-08-25  Karl Berry  <karl@gnu.org>
1933
1934         * config/srclist.txt (ylwrap): new try.
1935         * build-aux/ylwrap: new file.
1936
1937 2011-08-23  Bruno Haible  <bruno@clisp.org>
1938
1939         tmpdir: Use a good default directory on native Windows.
1940         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1941         (P_tmpdir): Default to _P_tmpdir on native Windows.
1942         (path_search): On native Windows, try the value returned by GetTempPath
1943         before trying P_tmpdir.
1944         * modules/tmpdir (Depends-on): Add pathmax.
1945         Suggested by John Darrington <john@darrington.wattle.id.au>.
1946
1947 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1948
1949         doc: fix typo in README-release
1950         * top/README-release: Capitalize first word of a sentence.
1951
1952 2011-08-19  Jim Meyering  <meyering@redhat.com>
1953
1954         fts: do not exhaust memory when processing million-entry directories
1955         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1956         directory would require about 256*N bytes of memory.  Thus, it was
1957         easy to construct a directory too large to be processed by any of
1958         those tools.  With this change, fts' maximum memory utilization is
1959         now limited to around 30MB.
1960         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1961         (fts_read): When we've processed the final entry (i.e., when
1962         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1963         using the parent entry to read any remaining entries.  Dispatch
1964         depending on what fts_build returns:
1965         - NULL+stop, aka failure: stop
1966         - NULL otherwise: move up in the dir hierarchy
1967         - non-NULL: handle this new entry
1968         (fts_build): Declare and use new local, continue_readdir.
1969         Prepare to be called from fts_read, when the entries
1970         from a partially-read directory have just been exhausted.
1971         In that case, we'll skip the opendir and instead use the parent's
1972         fts_dirp and derive dir_fd from that.
1973         Finally, in the readdir loop, if we read max_entries entries,
1974         exit the loop ensuring *not* to call closedir.  This is required
1975         so that fts_dirp can be reused on a subsequent call.
1976         Prompted by Ben England's report of memory exhaustion in find
1977         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1978
1979         maint: fts: move decl of `dp' down into while loop; split a long line
1980         * lib/fts.c (fts_build): No semantic change.
1981
1982         fts: add/use new struct member, fts_dirp
1983         We are about to use this to manage any directory with
1984         too many entries to read all of them into memory at once.
1985         To do that, we'll need to save the DIR* pointer in each
1986         affected FTSENT struct.
1987         * lib/fts_.h: Include <dirent.h>.
1988         (struct FTSENT) [fts_dirp]: New member.
1989         * lib/fts.c (closedir_and_clear): Define.
1990         Use it in place of closedir so that we are sure to
1991         clear the new fts_dirp member when done with it.
1992         (fts_alloc): Initialize the new member.
1993         (fts_lfree): Free, if needed.
1994
1995         maint: fts: give __opendir2 a new parameter and rename
1996         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1997         than surreptitiously using sole caller's "dir_fd".
1998         (fts_opendir): Rename from __opendir2.
1999
2000         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2001         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2002
2003         maint: fts.c: correct off-by-one indentation
2004         * lib/fts.c (fts_build): Correct indentation, change style
2005         of a couple of block comments, and bracing style.
2006
2007         maint: fts.c: move __opendir2 #define "up" out of function body
2008         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2009
2010         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2011         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2012         out for a long time and besides was useful only on BSD systems.
2013
2014 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2015
2016         regex: port to Stratus OpenVOS
2017         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2018         define to empty, rather than attempting nonportable optimizations.
2019         Problem reported by Paul Green in:
2020         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2021         and fix suggested by Eric Blake in:
2022         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
2023
2024 2011-08-17  Eric Blake  <eblake@redhat.com>
2025
2026         getcwd: fix test failures on mingw
2027         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
2028         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
2029         test if long directory cannot be created, and allow mingw errno.
2030
2031         getcwd-lgpl: fix m4 to match relaxed test for BSD
2032         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
2033         (gl_FUNC_GETCWD_SIGNATURE): New macro.
2034         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
2035         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
2036         signature problem.
2037
2038         getcwd: fix compilation on mingw64
2039         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
2040         getcwd.
2041         Reported by Marc-André Lureau.
2042
2043         pipe2: silence compiler warning
2044         * lib/pipe2.c (pipe2): Hide label if it is not used.
2045
2046 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
2047
2048         relocatable-prog: fix link error
2049         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
2050         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
2051         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
2052         into modules/relocatable-lib without noticing that
2053         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2054         also needs to build relocatable.c.
2055
2056 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2059         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2060         shell code: it contained a 'break' that was not in a loop.
2061         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2062         via a shell-language loop; this may have been true in old Autoconf
2063         versions, but it's not true in Autoconf 2.68.  I found this bug
2064         when testing coreutils git on Solaris 8, whose shell complains
2065         about the syntax error.
2066
2067 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2068
2069         * lib/base64.c: Fix comment to reference RFC 4648.
2070         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2071         <gvtulder@gmail.com>.
2072
2073 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2074
2075         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2076
2077         po/Makefile.in.in: fix make -q problem
2078         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2079         rule, since there's no file named 'check-macro-version' and its
2080         use as a file breaks make -q.
2081         (all): Don't depend on check-macro-version.
2082         (CHECK_MACRO_VERSION): New macro.
2083         (stamp-po): Use it.
2084
2085         configmake: fix make -q problem
2086         * modules/configmake (configmake.h): Update configmake.h's time stamp
2087         even if the file does not change.  Otherwise, 'make -q' fails.
2088         Problem reported by Simon Josefsson in
2089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2090
2091 2011-08-11  Jim Meyering  <meyering@redhat.com>
2092
2093         git-version-gen: correct the advice in a comment
2094         * build-aux/git-version-gen: Correct comment.
2095         Don't recommend to list .tarball-version in .gitignore.
2096
2097 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2098
2099         base64: fix off-by-one buffer size bug
2100         Problem and (trivial) fix reported by Gijs van Tulder in
2101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2102         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2103         * tests/test-base64.c (main): Catch the bug.
2104
2105 2011-08-10  Eric Blake  <eblake@redhat.com>
2106
2107         closein: correct comments
2108         * lib/closein.c (close_stdin): Improve comments.
2109
2110 2011-08-09  Bruno Haible  <bruno@clisp.org>
2111
2112         More tests for 'fseeko'.
2113         * tests/test-fseeko3.c: New file, from Eric Blake.
2114         * tests/test-fseeko3.sh: New file.
2115         * modules/fseeko-tests (Files): Add them.
2116         (TESTS): Add test-fseeko3.sh.
2117         (check_PROGRAMS): Add test-fseeko3.
2118
2119 2011-08-09  Eric Blake  <eblake@redhat.com>
2120
2121         fseeko: remove unneeded hack
2122         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
2123
2124         fseeko: fix bug on glibc
2125         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
2126         Reported by John W. Eaton.
2127
2128 2011-08-08  Bruno Haible  <bruno@clisp.org>
2129
2130         unictype/base: Fix interoperability with preinstalled libunistring.
2131         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
2132         Reported by Simon Josefsson.
2133
2134 2011-08-08  Bruno Haible  <bruno@clisp.org>
2135
2136         iswblank: Detect declaration correctly.
2137         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
2138         AC_CHECK_DECLS invocation.
2139
2140 2011-08-08  Bruno Haible  <bruno@clisp.org>
2141
2142         tcgetsid: Detect declaration correctly.
2143         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
2144         AC_CHECK_DECLS invocation.
2145         Reported by Simon Josefsson.
2146
2147 2011-08-08  Eric Blake  <eblake@redhat.com>
2148
2149         largefile: fix typo that regressed large file support
2150         * modules/largefile (configure.ac-early): Fix section name.
2151
2152 2011-08-06  Karl Berry  <karl@gnu.org>
2153
2154         * MODULES.html.sh (func_all_files): _Noreturn is no longer
2155         a separate module.
2156
2157 2011-08-05  Simon Josefsson  <simon@josefsson.org>
2158
2159         openat: Fix warnings and commens when building unlinkat.c on Hurd.
2160         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
2161         get prototype for free.
2162
2163 2011-08-04  Bruno Haible  <bruno@clisp.org>
2164
2165         Tests for module 'pathmax'.
2166         * modules/pathmax-tests: New file.
2167         * tests/test-pathmax.c: New file.
2168
2169         canonicalize-lgpl: Support larger filenames on the Hurd.
2170         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
2171         Reported by Paul Eggert.
2172
2173         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
2174         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
2175         * lib/chdir-long.h: Include pathmax.h.
2176         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
2177         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
2178         (PATH_MAX): Remove code that is done by pathmax.h.
2179         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
2180         * lib/tmpfile.c: Add a comment.
2181         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
2182         * modules/chdir-long (Depends-on): Add pathmax.
2183         * modules/getcwd (Depends-on): Add pathmax.
2184         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
2185         is not defined.
2186         * doc/posix-headers/limits.texi: Mention the pathmax module.
2187         * NEWS: Mention the change.
2188
2189 2011-08-02  Bruno Haible  <bruno@clisp.org>
2190
2191         pthread_sigmask: Actually use results of gl_THREADLIB.
2192         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
2193         gl_THREADLIB, not gl_[]THREADLIB.
2194         Reported by Eric Blake.
2195
2196 2011-08-02  Jim Meyering  <meyering@redhat.com>
2197
2198         maint.mk: relax the default _gl_TS_function_match regexp
2199         * top/maint.mk (_gl_TS_function_match): Don't require at least one
2200         space between function name and "(" in an "extern" declaration.
2201         That would fail to match a decl with no space there: extern void foo();
2202
2203 2011-07-31  Iain Nicol  <iain@thenicols.net>
2204
2205         git-version-gen: document that EXTRA_DIST must include .version
2206         * build-aux/git-version-gen: In the how-to-use comment, document
2207         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
2208         will fail when run from an unpacked distribution tarball.
2209
2210 2011-08-01  Bruno Haible  <bruno@clisp.org>
2211
2212         wctype-h: Fix last change.
2213         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
2214         REPLACE_TOWLOWER to 0.
2215         Reported by Sam Steingold <sds@gnu.org>.
2216
2217 2011-07-31  Bruno Haible  <bruno@clisp.org>
2218
2219         frexpl: Update autoconf test.
2220         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
2221         according to changes of 2011-06-20.
2222
2223 2011-07-31  Bruno Haible  <bruno@clisp.org>
2224
2225         sys_utsname: Add support for Minix.
2226         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
2227         <sys/utsname.h>.
2228         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2229         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
2230
2231 2011-07-31  Bruno Haible  <bruno@clisp.org>
2232
2233         strings: Add support for Minix.
2234         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
2235         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
2236         * doc/posix-headers/strings.texi: Document the Minix problem.
2237
2238 2011-07-31  Bruno Haible  <bruno@clisp.org>
2239
2240         wctype-h: Add support for Minix.
2241         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
2242         REPLACE_TOWLOWER.
2243         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
2244         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
2245         REPLACE_ISWCNTRL.
2246
2247 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
2250         This is a performance improvement for 64-bit hosts: it causes the
2251         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
2252
2253 2011-07-31  Bruno Haible  <bruno@clisp.org>
2254
2255         stdioext: Add support for Minix.
2256         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
2257         * lib/fpurge.c (fpurge): Likewise.
2258         * lib/freadahead.c (freadahead): Likewise.
2259         * lib/freadable.c (freadable): Likewise.
2260         * lib/freading.c (freading): Likewise.
2261         * lib/freadptr.c (freadptr): Likewise.
2262         * lib/freadseek.c (freadptrinc): Likewise.
2263         * lib/fseeko.c (rpl_fseeko): Likewise.
2264         * lib/fseterr.c (fseterr): Likewise.
2265         * lib/fwritable.c (fwritable): Likewise.
2266         * lib/fwriting.c (fwriting): Likewise.
2267         * lib/fflush.c (clear_ungetc_buffer): Update comment.
2268         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
2269
2270 2011-07-31  Bruno Haible  <bruno@clisp.org>
2271
2272         errno: Port to Minix.
2273         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
2274         ECONNABORTED are defined.
2275         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
2276         GNULIB_defined_ECONNABORTED): New macros.
2277         * lib/strerror-override.h (strerror_override): Test also
2278         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
2279         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
2280         ECONNABORTED.
2281         * doc/posix-headers/errno.texi: Mention the Minix problem.
2282
2283 2011-07-31  Bruno Haible  <bruno@clisp.org>
2284
2285         Work around declaration collisions on Minix.
2286         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
2287         defined, set REPLACE_MBSINIT.
2288         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
2289         defined, set REPLACE_MBRTOWC.
2290         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
2291         set REPLACE_MBRLEN.
2292         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
2293         defined, set REPLACE_MBSRTOWCS.
2294         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
2295         defined, set REPLACE_WCRTOMB.
2296         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
2297         defined, set REPLACE_WCSRTOMBS.
2298
2299 2011-07-31  Bruno Haible  <bruno@clisp.org>
2300
2301         Add support for Minix with ACK compiler.
2302         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
2303         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
2304         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
2305
2306 2011-07-31  Bruno Haible  <bruno@clisp.org>
2307
2308         Documentation about Minix.
2309         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
2310         * doc/glibc-headers/*.texi: Likewise.
2311         * doc/posix-functions/*.texi: Likewise.
2312         * doc/glibc-functions/*.texi: Likewise.
2313
2314 2011-07-31  Bruno Haible  <bruno@clisp.org>
2315
2316         snippet/warn-on-use: Fix indentation.
2317         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
2318
2319 2011-07-25  Jim Meyering  <meyering@redhat.com>
2320
2321         tests: test-update-copyright.sh: remove unnecessary "rm" commands
2322         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
2323         commands.
2324
2325 2011-07-27  Jim Meyering  <meyering@redhat.com>
2326
2327         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
2328         * top/maint.mk (gl_extract_significant_defines_): Now that
2329         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
2330         gnulib/lib/signal.in.h, and now that we recommend to
2331         define-if-undefined those two symbols in application code,
2332         we must filter them out of the "significant" list.
2333         This avoids a "make syntax-check" failure in coreutils.
2334
2335 2011-07-26  Eric Blake  <eblake@redhat.com>
2336
2337         warnings: add comments about previous patch
2338         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
2339         * m4/include_next.m4: Likewise.
2340         * m4/warn-on-use.m4: Likewise.
2341         * m4/warnings.m4: Likewise, and simplify use.
2342         Suggested by Stefano Lattarini.
2343
2344         include-next, warnings: support older autoconf
2345         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
2346         AS_VAR_PUSHDEF in a way that works with older autoconf.
2347         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
2348         Reported by Daniel P. Berrange.
2349
2350 2011-07-25  Bruno Haible  <bruno@clisp.org>
2351
2352         fseek, ftell: Fix doc.
2353         * doc/posix-functions/fseek.texi: Reword statement about
2354         AC_SYS_LARGEFILE.
2355         * doc/posix-functions/ftell.texi: Likewise.
2356
2357 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2358             Bruno Haible  <bruno@clisp.org>
2359
2360         Add dependencies to the 'largefile' module.
2361         * modules/fopen (Depends-on): Add 'largefile'.
2362         * modules/freopen (Depends-on): Likewise.
2363         * modules/fseeko (Depends-on): Likewise.
2364         * modules/ftello (Depends-on): Likewise.
2365         * modules/glob (Depends-on): Likewise.
2366         * modules/lseek (Depends-on): Likewise.
2367         * modules/lstat (Depends-on): Likewise.
2368         * modules/mkostemp (Depends-on): Likewise.
2369         * modules/mkostemps (Depends-on): Likewise.
2370         * modules/mkstemp (Depends-on): Likewise.
2371         * modules/mkstemps (Depends-on): Likewise.
2372         * modules/open (Depends-on): Likewise.
2373         * modules/openat (Depends-on): Likewise.
2374         * modules/pread (Depends-on): Likewise.
2375         * modules/pwrite (Depends-on): Likewise.
2376         * modules/scandir (Depends-on): Likewise.
2377         * modules/stat (Depends-on): Likewise.
2378         * modules/tmpfile (Depends-on): Likewise.
2379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
2380         since the containing module now depends on the largefile module.
2381         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
2382         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
2383         off_t is fixed by gnulib.
2384         * doc/posix-functions/freopen.texi: Likewise.
2385         * doc/posix-functions/fseeko.texi: Likewise.
2386         * doc/posix-functions/fstatat.texi: Likewise.
2387         * doc/posix-functions/ftello.texi: Likewise.
2388         * doc/posix-functions/glob.texi: Likewise.
2389         * doc/posix-functions/lseek.texi: Likewise.
2390         * doc/posix-functions/lstat.texi: Likewise.
2391         * doc/posix-functions/mkstemp.texi: Likewise.
2392         * doc/posix-functions/open.texi: Likewise.
2393         * doc/posix-functions/openat.texi: Likewise.
2394         * doc/posix-functions/pread.texi: Likewise.
2395         * doc/posix-functions/pwrite.texi: Likewise.
2396         * doc/posix-functions/scandir.texi: Likewise.
2397         * doc/posix-functions/stat.texi: Likewise.
2398         * doc/posix-functions/tmpfile.texi: Likewise.
2399         * doc/glibc-functions/mkostemp.texi: Likewise.
2400         * doc/glibc-functions/mkostemps.texi: Likewise.
2401         * doc/glibc-functions/mkstemps.texi: Likewise.
2402
2403 2011-07-25  Bruno Haible  <bruno@clisp.org>
2404
2405         fcntl: Move AC_LIBOBJ invocation to module description.
2406         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
2407         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
2408
2409         fcntl: Remove call-in from fchdir.m4.
2410         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
2411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
2412
2413         dup3: Remove potential call-in from fchdir.m4.
2414         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
2415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
2416
2417         dup2: Move AC_LIBOBJ invocation to module description.
2418         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
2419         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
2420         Don't invoke AC_LIBOBJ.
2421         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
2422
2423         dup2: Remove call-in from fchdir.m4.
2424         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
2425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
2426
2427         fclose: Move AC_LIBOBJ invocation to module description.
2428         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
2429         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
2430         to 1.
2431         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
2432
2433         fclose: Remove call-in from close.m4.
2434         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
2435         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
2436
2437         close: Move AC_LIBOBJ invocation to module description.
2438         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
2439         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
2440         1.
2441         * modules/close (configure.ac): Invoke AC_LIBOBJ.
2442
2443         close: Remove call-in from fchdir.m4.
2444         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
2445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
2446
2447         open: Move AC_LIBOBJ invocation to module description.
2448         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
2449         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
2450         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
2451
2452         open: Remove call-in from fchdir.m4.
2453         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
2454         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
2455
2456         fchdir: Start to remove gl_REPLACE_* idiom.
2457         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
2458         (gl_FUNC_FCHDIR): Invoke it.
2459
2460 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
2461
2462         * lib/ftell.c (ftell): Comment out cast.
2463
2464         close: use gl_REPLACE_FCLOSE only if defined
2465         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
2466         is defined.  The close module doesn't depend on the fclose module
2467         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
2468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
2469         I reproduced the problem with "./gnulib-tool --test close sys_socket".
2470
2471 2011-07-24  Jim Meyering  <meyering@redhat.com>
2472
2473         test-select.h: avoid warning when using gcc's -Wmissing-declarations
2474         * tests/test-select.h (test_function): Declare as "static".
2475
2476 2011-07-24  Bruno Haible  <bruno@clisp.org>
2477
2478         doc: Mention the effects of AC_SYS_LARGEFILE.
2479         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
2480         on this function.
2481         * doc/posix-functions/aio_error.texi: Likewise.
2482         * doc/posix-functions/aio_fsync.texi: Likewise.
2483         * doc/posix-functions/aio_read.texi: Likewise.
2484         * doc/posix-functions/aio_return.texi: Likewise.
2485         * doc/posix-functions/aio_suspend.texi: Likewise.
2486         * doc/posix-functions/aio_write.texi: Likewise.
2487         * doc/posix-functions/fgetpos.texi: Likewise.
2488         * doc/posix-functions/fopen.texi: Likewise.
2489         * doc/posix-functions/freopen.texi: Likewise.
2490         * doc/posix-functions/fsetpos.texi: Likewise.
2491         * doc/posix-functions/fstatvfs.texi: Likewise.
2492         * doc/posix-functions/ftruncate.texi: Likewise.
2493         * doc/posix-functions/ftw.texi: Likewise.
2494         * doc/posix-functions/getrlimit.texi: Likewise.
2495         * doc/posix-functions/glob.texi: Likewise.
2496         * doc/posix-functions/lio_listio.texi: Likewise.
2497         * doc/posix-functions/lockf.texi: Likewise.
2498         * doc/posix-functions/mkstemp.texi: Likewise.
2499         * doc/posix-functions/mmap.texi: Likewise.
2500         * doc/posix-functions/nftw.texi: Likewise.
2501         * doc/posix-functions/openat.texi: Likewise.
2502         * doc/posix-functions/opendir.texi: Likewise.
2503         * doc/posix-functions/posix_fadvise.texi: Likewise.
2504         * doc/posix-functions/posix_fallocate.texi: Likewise.
2505         * doc/posix-functions/pread.texi: Likewise.
2506         * doc/posix-functions/pwrite.texi: Likewise.
2507         * doc/posix-functions/readdir.texi: Likewise.
2508         * doc/posix-functions/readdir_r.texi: Likewise.
2509         * doc/posix-functions/rewinddir.texi: Likewise.
2510         * doc/posix-functions/scandir.texi: Likewise.
2511         * doc/posix-functions/seekdir.texi: Likewise.
2512         * doc/posix-functions/setrlimit.texi: Likewise.
2513         * doc/posix-functions/statvfs.texi: Likewise.
2514         * doc/posix-functions/telldir.texi: Likewise.
2515         * doc/posix-functions/tmpfile.texi: Likewise.
2516         * doc/posix-functions/truncate.texi: Likewise.
2517         * doc/glibc-functions/fallocate.texi: Likewise.
2518         * doc/glibc-functions/fstatfs.texi: Likewise.
2519         * doc/glibc-functions/fts_children.texi: Likewise.
2520         * doc/glibc-functions/fts_read.texi: Likewise.
2521         * doc/glibc-functions/getdirentries.texi: Likewise.
2522         * doc/glibc-functions/mkostemp.texi: Likewise.
2523         * doc/glibc-functions/mkostemps.texi: Likewise.
2524         * doc/glibc-functions/mkstemps.texi: Likewise.
2525         * doc/glibc-functions/preadv.texi: Likewise.
2526         * doc/glibc-functions/pwritev.texi: Likewise.
2527         * doc/glibc-functions/sendfile.texi: Likewise.
2528         * doc/glibc-functions/statfs.texi: Likewise.
2529
2530 2011-07-24  Bruno Haible  <bruno@clisp.org>
2531
2532         doc: Fix typo.
2533         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
2534
2535 2011-07-24  Bruno Haible  <bruno@clisp.org>
2536
2537         doc: Mention fsusage.
2538         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
2539
2540 2011-07-24  Bruno Haible  <bruno@clisp.org>
2541
2542         doc: Mention new glibc headers and functions.
2543         * doc/glibc-headers/gshadow.texi: New file.
2544         * doc/glibc-functions/endsgent.texi: New file.
2545         * doc/glibc-functions/fgetsgent.texi: New file.
2546         * doc/glibc-functions/fgetsgent_r.texi: New file.
2547         * doc/glibc-functions/getsgent.texi: New file.
2548         * doc/glibc-functions/getsgent_r.texi: New file.
2549         * doc/glibc-functions/getsgnam.texi: New file.
2550         * doc/glibc-functions/getsgnam_r.texi: New file.
2551         * doc/glibc-functions/putsgent.texi: New file.
2552         * doc/glibc-functions/setsgent.texi: New file.
2553         * doc/glibc-functions/sgetsgent.texi: New file.
2554         * doc/glibc-functions/sgetsgent_r.texi: New file.
2555         * doc/glibc-functions/malloc_info.texi: New file.
2556         * doc/glibc-functions/preadv.texi: New file.
2557         * doc/glibc-functions/pwritev.texi: New file.
2558         * doc/glibc-functions/register_printf_modifier.texi: New file.
2559         * doc/glibc-functions/register_printf_specifier.texi: New file.
2560         * doc/glibc-functions/register_printf_type.texi: New file.
2561         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2562         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2563         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2564         * doc/glibc-functions/pthread_getname_np.texi: New file.
2565         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2566         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2567         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2568         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2569         * doc/glibc-functions/pthread_setname_np.texi: New file.
2570         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2571         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2572         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2573         * doc/glibc-functions/qsort_r.texi: New file.
2574         * doc/glibc-functions/quick_exit.texi: New file.
2575         * doc/glibc-functions/syncfs.texi: New file.
2576         * doc/gnulib.texi: Include them.
2577         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2578         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2579         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2580         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2581         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2582         * doc/glibc-functions/execvpe.texi: Likewise.
2583
2584 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2585
2586         ftell: don't include <unistd.h>
2587         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2588         guaranteed to define off_t, and the ftell module depends on the
2589         stdio module.
2590
2591         ftell: do not assume wraparound signed arithmetic
2592         * lib/ftell.c: Include <limits.h>.
2593         (ftell): Don't assume wraparound signed arithmetic.
2594
2595 2011-07-24  Bruno Haible  <bruno@clisp.org>
2596
2597         close: No longer depend on module 'fclose'.
2598         * modules/close (Depends-on): Remove fclose.
2599         * NEWS: Mention the change.
2600         Suggested by Sam Steingold <sds@gnu.org>.
2601
2602 2011-07-24  Bruno Haible  <bruno@clisp.org>
2603
2604         fsusage: Enable large volume support on AIX >= 5.2.
2605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2606         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2607         instead of STAT_STATVFS.
2608         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2609
2610         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2611         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2612         f_blocks field only on MacOS X.
2613
2614         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2615         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2616         * modules/fsusage (Depends-on): Add largefile.
2617
2618 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2619
2620         * README: Modernize discussion of signed integers.
2621         Assuming overflow wraparound is no longer safe.
2622         Mention ones' complement and signed magnitude.
2623
2624 2011-07-22  Bruno Haible  <bruno@clisp.org>
2625
2626         select tests, pselect tests: Refactor.
2627         * tests/test-select.h: New file, extracted from tests/test-select.c.
2628         (select_fn): New type.
2629         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2630         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2631         test_pipe): Add my_select argument.
2632         (test_function): Renamed from main. Add my_select argument.
2633         * tests/test-select.c: Move most code to tests/test-select.h. Include
2634         test-select.h.
2635         * modules/select-tests (Files): Add tests/test-select.h.
2636         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2637         (my_select, main): New functions.
2638         * modules/pselect-tests (Files): Add tests/test-select.h,
2639         tests/macros.h, tests/signature.h.
2640         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2641         (configure.ac): Check for <sys/wait.h>.
2642
2643 2011-07-22  Bruno Haible  <bruno@clisp.org>
2644
2645         sys_select tests: Check the signature of FD_*.
2646         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2647         signature tests from here...
2648         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2649         here.
2650         * modules/sys_select-tests (Files): Add tests/signature.h.
2651
2652 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2653
2654         largefile: new module, replacing large-inode
2655         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2656         * MODULES.html.sh: Add largefile, remove large-inode.
2657         * modules/largefile, m4/largefile.m4: New files.
2658         * modules/large-inode, m4/large-inode.m4: Remove.
2659
2660         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2662         implementations that use only 32 bits to count blocks.
2663         On typical hosts with 1024-byte blocks, this fails with file
2664         systems as small as 4 TiB.  Problem reported by Herb Wartens
2665         <http://debbugs.gnu.org/9140> and this should also fix a similar
2666         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2667
2668         large-inode: New module
2669         * MODULES.html.sh: Add it.
2670         * modules/large-inode, m4/large-inode.m4: New files.
2671
2672         extensions: Enable extensions on MacOS X 10.5 and later.
2673         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2674
2675 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2676
2677         file-has-acl: use acl_extended_file_nofollow if available
2678         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2679         (acl_extended_file): New macro.
2680         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2681         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2682
2683 2011-07-21  Bruno Haible  <bruno@clisp.org>
2684
2685         Declare system functions in a way that works with C++.
2686         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2687         declare fdopendir as extern "C".
2688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2689         declare frexpl as extern "C".
2690         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2691         declare gai_strerror as extern "C".
2692         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2693         programs, declare gai_strerror as extern "C".
2694         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2695         declare getlogin_r as extern "C".
2696         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2697         as extern "C".
2698         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2699         declare ldexpl as extern "C".
2700         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2701         as extern "C".
2702         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2703         program, declare getmntinfo as extern "C".
2704         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2705         stpncpy as extern "C".
2706         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2707         program, declare __xpg_strerror_r as extern "C".
2708         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2709         strndup as extern "C".
2710         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2711         declare memset and bzero as extern "C".
2712         Reported by Sam Steingold <sds@gnu.org>.
2713
2714 2011-07-12  Jim Meyering  <meyering@redhat.com>
2715
2716         maint.mk: prohibit inclusion of "verify.h" without use
2717         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2718
2719 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2720
2721         timer-time: A new module to check for timer_settime()
2722         * m4/timer_time.m4: Check for the posix function.
2723         * modules/timer-time: Add the new module.
2724         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2725         Mention it.
2726
2727 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2728             Bruno Haible  <bruno@clisp.org>
2729
2730         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2731         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2732         not defined, assume POSIX threads and look for pthread_sigmask in
2733         $LIBS, without changing $CPPFLAGS.
2734
2735 2011-07-19  Bruno Haible  <bruno@clisp.org>
2736
2737         strstr: Update cross-compilation guess.
2738         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2739         CPUs, guess no, in view of glibc
2740         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2741         Suggested by Eric Blake. Reported by Reuben Thomas.
2742
2743 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2744
2745         getopt-gnu: suppress core dumps from detection code
2746         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2747         to suppress core dumps that may well occur on glibc systems.
2748         * modules/getopt-gnu: Depend on nocrash.
2749
2750 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2751
2752         pthread_sigmask: ensure usleep is declared
2753         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2754         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2755
2756 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2757
2758         doc: Document NonStop portability issues.
2759         * doc/posix-functions/sigaction.texi (sigaction):
2760         * doc/posix-headers/signal.texi (signal.h):
2761         Document NonStop.  See Joachim Schmitz in
2762         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2763
2764 2011-07-15  Bruno Haible  <bruno@clisp.org>
2765
2766         ffsl, ffsll: Avoid unportable behaviour.
2767         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2768
2769 2011-07-15  Bruno Haible  <bruno@clisp.org>
2770
2771         ffs: More tests.
2772         * tests/test-ffs.c (NBITS): New macro.
2773         (main): Add more tests.
2774         * tests/test-ffsl.c (NBITS): New macro.
2775         (main): Add more tests.
2776         * tests/test-ffsll.c (NBITS): New macro.
2777         (main): Add more tests.
2778
2779 2011-07-15  Eric Blake  <eblake@redhat.com>
2780
2781         ffsl, ffsll: new modules
2782         * modules/ffsl: New file.
2783         * modules/ffsll: Likewise.
2784         * m4/ffsl.m4: Likewise.
2785         * m4/ffsll.m4: Likewise.
2786         * lib/ffsl.c: Likewise.
2787         * lib/ffsl.h: Likewise.
2788         * lib/ffsll.c: Likewise.
2789         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2790         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2791         * modules/string (Makefile.am): Substitute witnesses.
2792         * lib/strings.in.h (ffsl, ffsll): Declare.
2793         * modules/ffsl-tests: New test file.
2794         * modules/ffsll-tests: Likewise.
2795         * tests/test-ffsl.c: Likewise.
2796         * tests/test-ffsll.c: Likewise.
2797         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2798         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2799         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2800
2801         ffs: fix m4 prerequisite
2802         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2803
2804         ffs: avoid undefined behavior
2805         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2806         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2807         Reported by Bruno Haible.
2808
2809 2011-07-12  Bruno Haible  <bruno@clisp.org>
2810
2811         pthread_sigmask: Rely on module 'threadlib'.
2812         * modules/pthread_sigmask (Depends-on): Add threadlib.
2813         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2814         is defined.
2815
2816 2011-07-12  Bruno Haible  <bruno@clisp.org>
2817
2818         regex: Depend on module 'strcase'.
2819         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2820
2821 2011-07-12  Jim Meyering  <meyering@redhat.com>
2822
2823         warn-on-use: fix typo in file name
2824         * modules/snippet/warn-on-use (Files): Correct file name:
2825         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2826
2827 2011-07-12  Bruno Haible  <bruno@clisp.org>
2828
2829         strings: Document module.
2830         * doc/posix-headers/strings.texi: Mention module 'strings'.
2831
2832 2011-07-12  Bruno Haible  <bruno@clisp.org>
2833
2834         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2835         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2836         (Files, Makefile.am): Update.
2837         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2838         * modules/stdlib (Depends-on): Update.
2839
2840 2011-07-12  Bruno Haible  <bruno@clisp.org>
2841
2842         * NEWS: Mention the changes.
2843
2844         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2845         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2846         (Files, Makefile.am): Update.
2847         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2848         * modules/arpa_inet (Depends-on): Update.
2849         * modules/ctype (Depends-on): Update.
2850         * modules/dirent (Depends-on): Update.
2851         * modules/fcntl-h (Depends-on): Update.
2852         * modules/glob (Depends-on): Update.
2853         * modules/iconv-h (Depends-on): Update.
2854         * modules/inttypes-incomplete (Depends-on): Update.
2855         * modules/langinfo (Depends-on): Update.
2856         * modules/locale (Depends-on): Update.
2857         * modules/math (Depends-on): Update.
2858         * modules/netdb (Depends-on): Update.
2859         * modules/poll-h (Depends-on): Update.
2860         * modules/pty (Depends-on): Update.
2861         * modules/search (Depends-on): Update.
2862         * modules/signal (Depends-on): Update.
2863         * modules/spawn (Depends-on): Update.
2864         * modules/stdio (Depends-on): Update.
2865         * modules/stdlib (Depends-on): Update.
2866         * modules/string (Depends-on): Update.
2867         * modules/strings (Depends-on): Update.
2868         * modules/sys_file (Depends-on): Update.
2869         * modules/sys_ioctl (Depends-on): Update.
2870         * modules/sys_select (Depends-on): Update.
2871         * modules/sys_socket (Depends-on): Update.
2872         * modules/sys_stat (Depends-on): Update.
2873         * modules/sys_time (Depends-on): Update.
2874         * modules/sys_times (Depends-on): Update.
2875         * modules/sys_utsname (Depends-on): Update.
2876         * modules/sys_wait (Depends-on): Update.
2877         * modules/termios (Depends-on): Update.
2878         * modules/time (Depends-on): Update.
2879         * modules/unistd (Depends-on): Update.
2880         * modules/wchar (Depends-on): Update.
2881         * modules/wctype-h (Depends-on): Update.
2882         * MODULES.html.sh (Support for building libraries and executables):
2883         Update.
2884
2885         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2886         * modules/snippet/unused-parameter: Renamed from
2887         modules/unused-parameter.
2888         (Files, Makefile.am): Update.
2889         * build-aux/snippet/unused-parameter.h: Renamed from
2890         build-aux/unused-parameter.h.
2891         * modules/selinux-h (Depends-on): Update.
2892         * modules/unistr/base (Depends-on): Update.
2893         * MODULES.html.sh (Core language properties): Update.
2894
2895         Rename module 'link-warning' to 'snippet/link-warning'.
2896         * modules/snippet/link-warning: Renamed from modules/link-warning.
2897         (Files, Makefile.am): Update.
2898         * build-aux/snippet/link-warning.h: Renamed from
2899         build-aux/link-warning.h.
2900         * MODULES.html.sh (Support for building libraries and executables):
2901         Update.
2902
2903         Rename module 'c++defs' to 'snippet/c++defs'.
2904         * modules/snippet/c++defs: Renamed from modules/c++defs.
2905         (Files, Makefile.am): Update.
2906         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2907         * modules/arpa_inet (Depends-on): Update.
2908         * modules/ctype (Depends-on): Update.
2909         * modules/dirent (Depends-on): Update.
2910         * modules/fcntl-h (Depends-on): Update.
2911         * modules/glob (Depends-on): Update.
2912         * modules/iconv-h (Depends-on): Update.
2913         * modules/langinfo (Depends-on): Update.
2914         * modules/locale (Depends-on): Update.
2915         * modules/math (Depends-on): Update.
2916         * modules/netdb (Depends-on): Update.
2917         * modules/poll-h (Depends-on): Update.
2918         * modules/pty (Depends-on): Update.
2919         * modules/search (Depends-on): Update.
2920         * modules/signal (Depends-on): Update.
2921         * modules/spawn (Depends-on): Update.
2922         * modules/stdio (Depends-on): Update.
2923         * modules/stdlib (Depends-on): Update.
2924         * modules/string (Depends-on): Update.
2925         * modules/strings (Depends-on): Update.
2926         * modules/sys_ioctl (Depends-on): Update.
2927         * modules/sys_select (Depends-on): Update.
2928         * modules/sys_socket (Depends-on): Update.
2929         * modules/sys_stat (Depends-on): Update.
2930         * modules/sys_time (Depends-on): Update.
2931         * modules/sys_wait (Depends-on): Update.
2932         * modules/termios (Depends-on): Update.
2933         * modules/time (Depends-on): Update.
2934         * modules/unistd (Depends-on): Update.
2935         * modules/wchar (Depends-on): Update.
2936         * modules/wctype-h (Depends-on): Update.
2937
2938         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2939         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2940         (Files, Makefile.am): Update.
2941         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2942         * modules/argv-iter (Depends-on): Update.
2943         * modules/arpa_inet (Depends-on): Update.
2944         * modules/dirent (Depends-on): Update.
2945         * modules/fcntl-h (Depends-on): Update.
2946         * modules/fnmatch (Depends-on): Update.
2947         * modules/getopt-posix (Depends-on): Update.
2948         * modules/glob (Depends-on): Update.
2949         * modules/iconv-h (Depends-on): Update.
2950         * modules/inttypes-incomplete (Depends-on): Update.
2951         * modules/locale (Depends-on): Update.
2952         * modules/math (Depends-on): Update.
2953         * modules/netdb (Depends-on): Update.
2954         * modules/search (Depends-on): Update.
2955         * modules/signal (Depends-on): Update.
2956         * modules/spawn (Depends-on): Update.
2957         * modules/stdio (Depends-on): Update.
2958         * modules/stdlib (Depends-on): Update.
2959         * modules/string (Depends-on): Update.
2960         * modules/strings (Depends-on): Update.
2961         * modules/sys_socket (Depends-on): Update.
2962         * modules/sys_stat (Depends-on): Update.
2963         * modules/sys_time (Depends-on): Update.
2964         * modules/sys_times (Depends-on): Update.
2965         * modules/sys_utsname (Depends-on): Update.
2966         * modules/time (Depends-on): Update.
2967         * modules/unistd (Depends-on): Update.
2968         * modules/wchar (Depends-on): Update.
2969         * MODULES.html.sh (Support for building libraries and executables):
2970         Update.
2971
2972 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         Improvements on _Noreturn and related modules.
2975
2976         modules/_Exit-tests: test _Noreturn too
2977         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2978         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2979         (main): Use them.
2980
2981         stdnoreturn, stdnoreturn-tests: remove modules
2982         They're not needed here and a bit premature for use elsewhere.  See
2983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2984         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2985         * tests/test-stdnoreturn.c: Remove files.
2986         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2987         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2988         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2989         and using noreturn.
2990         * modules/openat, modules/sigpipe-die, modules/xalloc:
2991         * modules/xmemdup0, modules/xstrtol:
2992         Remove dependency on stdnoreturn.
2993
2994         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2995         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2996         Reparenthesize to avoid GCC warning.
2997         Support Microsoft's syntax.
2998         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2999
3000         _Noreturn-tests: remove module
3001         * modules/_Noreturn-tests: Remove.
3002         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3003         * tests/test-_Noreturn.c: Remove.
3004         * tests/test-stdnoreturn.c: Merge from the old
3005         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3006
3007 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3008
3009         _Noreturn, stdnoreturn, and related modules.
3010
3011         * top/maint.mk: Adjust to new noreturn support.
3012         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3013         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3014
3015         xalloc: use stdnoreturn.h
3016         * lib/xalloc.h: Include <stdnoreturn.h>.
3017         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3018         * modules/xalloc (Depends-on): Add stdnoreturn.
3019
3020         xstrtol: use stdnoreturn.h
3021         * lib/xstrtol.h: Include <stdnoreturn.h>.
3022         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3023         * modules/xstrtol (Depends-on): Add stdnoreturn.
3024
3025         xmemdup0: use stdnoreturn.h
3026         * lib/xmemdup0.h: Include <stdnoreturn.h>.
3027         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3028         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
3029
3030         sigpipe-die: use stdnoreturn.h
3031         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
3032         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3033         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
3034
3035         openat: use stdnoreturn.h
3036         * lib/openat.h: Include <stdnoreturn.h>.
3037         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3038         * modules/openat (Depends-on): Add stdnoreturn.
3039
3040         * lib/openat-die.c (openat_save_fail): Modernize comment.
3041
3042         * lib/xalloc-die.c (xalloc_die): Modernize comment.
3043
3044         * lib/glthread/thread.h: Modernize comment.
3045
3046         obstack: use _Noreturn
3047         * lib/obstack.c (__attribute__): Remove macro.
3048         (print_and_abort): Use _Noreturn.
3049
3050         c-stack: use _Noreturn
3051         * lib/c-stack.c (die, overflow_handler, segv_handler):
3052         Use _Noreturn rather than __attribute__((noreturn)).
3053
3054         argmatch-tests, exclude_tests: use _Noreturn
3055         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3056         Remove.
3057         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3058
3059         stdlib: use _Noreturn
3060         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3061         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3062         * modules/stdlib (Depends-on): Add _Noreturn.
3063         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3064
3065         stdnoreturn-tests: new module
3066         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3067
3068         stdnoreturn: new module
3069         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3070         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3071
3072         _Noreturn-tests: new module
3073         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3074
3075         _Noreturn: new module
3076         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3077         New section, mentioning it.
3078         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3079
3080         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3081
3082 2011-07-11  Eric Blake  <eblake@redhat.com>
3083
3084         ffs: new module
3085         * modules/ffs: New file.
3086         * m4/ffs.m4: Likewise.
3087         * lib/ffs.c: Likewise.
3088         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3089         * modules/strings (Makefile.am): Substitute witness.
3090         (Depends-on): Add c++defs.
3091         * lib/strings.in.h (ffs): Declare.
3092         * modules/ffs-tests: New test file.
3093         * tests/test-ffs.c: Test new module.
3094         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3095         * doc/posix-functions/ffs.texi (ffs): Likewise.
3096
3097         regex: avoid compiler warning
3098         * lib/regex.c (includes): Include <strings.h>, for use of
3099         strcasecmp in regcomp.c.
3100         Reported by Joachim Schmitz.
3101
3102 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3103
3104         stdint: respect system's intmax_t if INTMAX_MAX
3105         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3106         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3107         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3108         long but int64_t is long long, and where we will clash with the
3109         system intmax_t if we override it.  See
3110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3111         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3112         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3113         similarly for UINTMAX_C.
3114
3115 2011-07-08  Bruno Haible  <bruno@clisp.org>
3116
3117         pthread_sigmask tests: Avoid a compiler warning.
3118         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3119         non-zero.
3120
3121         sigprocmask tests: A better way to avoid a compiler warning.
3122         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
3123         (main): Complain if system() returns non-zero.
3124         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
3125
3126 2011-07-08  Bruno Haible  <bruno@clisp.org>
3127
3128         pthread_sigmask: Work around IRIX bug.
3129         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
3130         bug.
3131         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
3132         there may be unblocked pending signals.
3133         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
3134
3135 2011-07-08  Bruno Haible  <bruno@clisp.org>
3136
3137         pthread_sigmask: Work around Cygwin bug.
3138         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
3139         bug.
3140         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
3141         the system's pthread_sigmask function.
3142         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
3143
3144 2011-07-08  Bruno Haible  <bruno@clisp.org>
3145
3146         pthread_sigmask: Work around bug in single-threaded implementation.
3147         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
3148         FreeBSD, HP-UX, Solaris bug.
3149         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
3150         * lib/pthread_sigmask.c: Include <stddef.h>.
3151         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
3152         the system's pthread_sigmask function.
3153         * modules/pthread_sigmask (configure.ac): Invoke
3154         gl_PREREQ_PTHREAD_SIGMASK.
3155         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
3156         HP-UX, Solaris.
3157
3158 2011-07-08  Eric Blake  <eblake@redhat.com>
3159
3160         test-sigprocmask: avoid compiler warning
3161         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
3162         * tests/test-sigprocmask.c (main): Use it to silence warning.
3163         Reported by Jim Meyering.
3164
3165         test-snprintf: avoid compiler warning
3166         * tests/test-snprintf.c (main): Avoid shadowed declaration.
3167         * tests/test-vsnprintf.c (main): Likewise.
3168         Reported by Jim Meyering.
3169
3170 2011-07-08  Bruno Haible  <bruno@clisp.org>
3171
3172         Tests for module 'pthread_sigmask'.
3173         * modules/pthread_sigmask-tests: New file.
3174         * tests/test-pthread_sigmask1.c: New file, based on
3175         tests/test-sigprocmask.c.
3176         * tests/test-pthread_sigmask2.c: New file.
3177
3178 2011-07-08  Jim Meyering  <meyering@redhat.com>
3179
3180         test-getopt.h: avoid warning about an unused variable
3181         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
3182
3183 2011-07-07  Jim Meyering  <meyering@redhat.com>
3184
3185         maint: reduce list of files exempt from sc_prohibit_leading_TABs
3186         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
3187         now that it no longer contains leading TABs.
3188         Remove unused "url=FIXME" statement.
3189
3190 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3191
3192         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
3193         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3194         When gl_THREADLIB is not in use, assume that the POSIX sematics
3195         are desired.  This is better for Emacs, which uses POSIX semantics
3196         on GNUish and/or POSIXish platforms, and does not use threads at
3197         all otherwise.
3198
3199         pthread_sigmask: fix typo when testing for libraries
3200         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
3201         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
3202
3203 2011-07-08  Eric Blake  <eblake@redhat.com>
3204
3205         fts: introduce FTS_NOATIME
3206         * lib/fts_.h (FTS_NOATIME): New bit flag.
3207         (FTS_OPTIONMASK): Adjust.
3208         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
3209         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
3210
3211 2011-07-08  Bruno Haible  <bruno@clisp.org>
3212
3213         Tests for module 'thread'.
3214         * modules/thread-tests: New file.
3215         * tests/test-thread_self.c: New file.
3216         * tests/test-thread_create.cc: New file.
3217
3218 2011-07-08  Bruno Haible  <bruno@clisp.org>
3219
3220         thread: Avoid gcc warnings when using gl_thread_self().
3221         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
3222         'void *'.
3223         (gl_thread_self_pointer): Update.
3224
3225 2011-07-07  Bruno Haible  <bruno@clisp.org>
3226
3227         signal-c++-tests: Check declaration of pthread_sigmask.
3228         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
3229         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
3230         $(LIB_PTHREAD_SIGMASK).
3231
3232 2011-07-07  Bruno Haible  <bruno@clisp.org>
3233
3234         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
3235         * lib/signal.in.h (pthread_sigmask): Override if
3236         REPLACE_PTHREAD_SIGMASK is 1.
3237         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3238         REPLACE_PTHREAD_SIGMASK.
3239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
3240         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
3241         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
3242         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3243         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
3244
3245 2011-07-07  Bruno Haible  <bruno@clisp.org>
3246
3247         pthread_sigmask: Ensure declaration in <signal.h>.
3248         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
3249         include <pthread.h>.
3250         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
3251         problem.
3252
3253 2011-07-07  Bruno Haible  <bruno@clisp.org>
3254
3255         pthread_sigmask: Document the module.
3256         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
3257
3258 2011-07-07  Bruno Haible  <bruno@clisp.org>
3259
3260         pthread_sigmask: Follow gnulib conventions.
3261         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
3262         gl_PTHREAD_SIGMASK.
3263         * modules/pthread_sigmask (configure.ac): Update.
3264
3265 2011-07-07  Bruno Haible  <bruno@clisp.org>
3266
3267         pthread_sigmask: Make declaration C++ safe.
3268         * lib/signal.in.h: In two special conditions, just do an #include_next.
3269         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3270         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
3271         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
3272         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
3273         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
3274         not REPLACE_PTHREAD_MASK.
3275         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
3276         not REPLACE_PTHREAD_MASK.
3277         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
3278
3279 2011-07-07  Bruno Haible  <bruno@clisp.org>
3280
3281         pthread_sigmask: Fix return value.
3282         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
3283         * lib/pthread_sigmask.c: New file.
3284         * modules/pthread_sigmask (Files): Add it.
3285         (configure.ac): Invoke AC_LIBOBJ.
3286
3287 2011-07-07  Eric Blake  <eblake@redhat.com>
3288
3289         getopt: more portable argv creation
3290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
3291         const, use char arrays rather than strings.
3292         Suggested by Paul Eggert.
3293
3294 2011-07-07  Bruno Haible  <bruno@clisp.org>
3295
3296         Tests for module 'sigprocmask'.
3297         * modules/sigprocmask-tests: New file.
3298         * tests/test-sigprocmask.c: New file.
3299
3300 2011-07-07  Bruno Haible  <bruno@clisp.org>
3301
3302         float tests: Tweak.
3303         * tests/test-float.c (main): Tweak skip message.
3304
3305 2011-07-07  Eric Blake  <eblake@redhat.com>
3306
3307         getopt: avoid compiler warning during configure
3308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
3309         assigning string literals to non-const pointer.
3310
3311         getopt-gnu: avoid crash in glibc getopt
3312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
3313         * tests/test-getopt.h (test_getopt): Enhance test.
3314         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3315         * doc/posix-functions/getopt.texi (getopt): Document it.
3316         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3317         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3318         Likewise.
3319
3320 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
3321
3322         getopt: handle W; without long options in getopt [BZ #12922]
3323         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
3324         but no long options are defined, just return 'W'.
3325
3326 2011-07-07  Bruno Haible  <bruno@clisp.org>
3327
3328         Avoid literal tabs.
3329         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
3330         variable containing a tab instead of a literal tab.
3331         Reported by Jim Meyering.
3332
3333 2011-07-07  Bruno Haible  <bruno@clisp.org>
3334
3335         Comments.
3336         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
3337
3338 2011-07-06  Bruno Haible  <bruno@clisp.org>
3339
3340         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
3341         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
3342         <winsock2.h>.
3343         (rpl_fd_isset, FD_ISSET): New definitions, copied from
3344         lib/sys_socket.in.h.
3345         (close, gethostname): Hide declarations from <winsock2.h>.
3346         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
3347         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
3348         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
3349         (select): Don't override if gnulib's <sys/select.h> was already
3350         included.
3351         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
3352         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
3353         setsockopt, shutdown, select): Tweak indentation.
3354
3355 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3356
3357         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
3358         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
3359         in an application that does not use the sys_select module.
3360
3361 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
3362
3363         poll: do not return 0 on timeout=-1
3364         * lib/poll.c: Loop with yield if no events occured
3365
3366 2011-07-06  Eric Blake  <eblake@redhat.com>
3367
3368         pthread_sigmask: always replace when not using pthread
3369         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
3370         replacement when using some threading other than pthread.  Fix
3371         logic bug.
3372
3373 2011-07-06  Bruno Haible  <bruno@clisp.org>
3374
3375         Comments.
3376         * m4/printf.m4: Update comments about mingw.
3377
3378 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3379
3380         sys_select: define sigset_t more portably
3381         * lib/sys_select.in.h: Always include <sys/types.h>, since
3382         we now need sigset_t and mingw defines it there.
3383         Include <signal.h> before split inclusion guard, to avoid
3384         mishaps on Solaris, whose <signal.h> eventually includes us.
3385         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
3386         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
3387         which come from ...
3388         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3389         gl_CHECK_TYPE_SIGSET_T.
3390         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
3391         does the real work.
3392         * modules/sys_select (Depends-on): Add 'signal'.
3393
3394         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
3395         Suggested by Bruno Haible.
3396
3397         pselect: Use pthread_sigmask, not sigprocmask.
3398         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
3399         multithreaded apps better than sigprocmask does.
3400         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
3401         sigprocmask directly.
3402
3403 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3404
3405         * lib/pselect.c (pselect): Use plain name, without "rpl_".
3406         Don't #undef,  since we don't need any underlying pselect.
3407         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
3408         (Depends-on): Add select.
3409         (Link): Add $(LIBSOCKET).
3410         These changes suggested by Bruno Haible.
3411
3412         pselect: document better
3413         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3414         * doc/posix-functions/pselect.texi (pselect): Document new module.
3415
3416         pthread_sigmask: new module
3417         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
3418         * doc/posix-functions/pthread_sigmask.texi: Document new module.
3419         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
3420         This is done only as a macro; I don't know how well that'll
3421         work for C++.  Move <sys/types.h> include before the include_next,
3422         to avoid mishap on Solaris.
3423         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
3424         * modules/signal (Makefile.am): Substitute the check's results.
3425         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
3426
3427         test-pselect: new module
3428         * modules/pselect-tests, tests/test-pselect.c: New files.
3429         * tests/test-select.c, tests/test-sys_select-c++.cc:
3430         If TEST_PSELECT is defined, test pselect instead of testing select.
3431
3432         * tests/test-sys_select.c (sigset_t): Test for it, too.
3433         Suggested by Bruno Haible.
3434
3435 2011-07-05  Eric Blake  <eblake@redhat.com>
3436
3437         snprintf: guarantee %1$d, for libintl
3438         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
3439         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
3440         * doc/posix-functions/snprintf.texi (snprintf): Update.
3441         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
3442         * tests/test-snprintf.c (main): Enhance test.
3443         * tests/test-vsnprintf.c (main): Likewise.
3444
3445 2011-07-05  Jim Meyering  <meyering@redhat.com>
3446
3447         maint: exempt stdio-read.c and stdio-write.c from the cppi check
3448         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
3449         per Bruno's request, to accommodate this idiom (no space after "#")
3450         even when the function is inside an #if block:
3451         char *
3452         gets (char *s)
3453         #undef gets
3454         {
3455           ...
3456         }
3457
3458 2011-07-04  Jim Meyering  <meyering@redhat.com>
3459
3460         maint: indent with spaces, not TABs, and add a rule to check this
3461         * tests/test-userspec.c: Indent with spaces, not TABs.
3462         * tests/test-argp.c: Likewise.
3463         * tests/test-c-stack2.sh: Likewise.
3464         * tests/test-parse-duration.sh: Likewise
3465         * m4/strtod.m4: Likewise.
3466         * m4/alloca.m4: Likewise.
3467         * m4/pselect.m4: Likewise.
3468         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
3469
3470 2011-07-03  Jim Meyering  <meyering@redhat.com>
3471
3472         maint.mk: correct omissions in prohibit_argmatch_without_use check
3473         This rule would mistakenly report that argmatch.h is included without
3474         use even when both the argmatch and invalid_arg macro were used.
3475         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
3476         of argmatch and invalid_arg.
3477
3478 2011-07-03  Bruno Haible  <bruno@clisp.org>
3479
3480         Comments about EINTR.
3481         * lib/safe-read.h: Explain the purpose of this module.
3482         * lib/safe-write.h: Likewise.
3483         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
3484         module.
3485         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
3486         module.
3487         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3488
3489 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3490
3491         xnanosleep: Rewrite to use new dtotimespec module.
3492         It has the conversion code that used to be in xnanosleep.
3493         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
3494         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
3495         (TIME_T_MAX): Remove.
3496         (xnanosleep): Rewrite in terms of dtotimespec.
3497         * modules/xnanosleep (Depends-on): Add dtotimespec.
3498         Remove intprops, stdbool.
3499
3500         timespec-add, timespec-sub: new modules
3501         * lib/timespec.h (timespec_add, timespec_sub): New decls.
3502         * lib/timespec-add.c, lib/timespec-sub.c:
3503         * modules/timespec-add, modules/timespec-sub: New files.
3504
3505         dtotimespec: new module
3506         * lib/timespec.h (dtotimespec): New decl.
3507         * lib/dtotimespec.c, modules/dtotimespec: New files.
3508
3509         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
3510
3511         pselect: new module
3512         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
3513         (pselect): New decls.
3514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
3515         since the standard pselect decl uses 'restrict'.
3516         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
3517         HAVE_PSELECT, REPLACE_PSELECT.
3518         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
3519         HAVE_PSELECT, REPLACE_PSELECT.
3520         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
3521
3522         sys_select: don't depend on sys_socket
3523         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
3524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
3525         This fix works on GNU and GNU-like platforms, but has not been tested
3526         on native Windows.
3527         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
3528         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
3529         gl_HEADER_SYS_SOCKET.
3530         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
3531         gl_PREREQ_SYS_H_WINSOCK2.
3532
3533 2011-06-29  Eric Blake  <eblake@redhat.com>
3534
3535         pipe2: fix C89 compile problem
3536         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
3537         Reported by Bruno Haible.
3538
3539         pipe, pipe2: don't corrupt fd on error
3540         * lib/pipe.c (pipe): Leave fd unchanged on error.
3541         * lib/pipe2.c (pipe2): Likewise.
3542         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
3543         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3544
3545 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
3546
3547         mmap-anon: do not use regular expressions inadvertently
3548         * m4/mmap-anon.m4: Remove trailing period from strings sought
3549         in the output.
3550
3551 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
3552
3553         nanosleep: fix integer overflow problem
3554         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3555         arithmetic wraps around on overflow.
3556
3557         nanosleep: simplify carrying
3558         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3559         first call to the underyling nanosleep, not for the last one.
3560         This doesn't fix any bugs, but it simplifies the computation of
3561         the remaining delay.  Found while auditing integer overflow issues.
3562
3563         dup2: remove test for existence of fcntl
3564         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3565         "#if HAVE_FCNTL", in the configure-time test program.
3566         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3567         and therefore speeds up "configure" a bit.  Found while
3568         adding the dup2 module to Emacs.
3569
3570 2011-06-24  Eric Blake  <eblake@redhat.com>
3571
3572         maint.mk: enhance useless header checks
3573         * top/maint.mk (_sc_header_without_use): Check both include
3574         styles.
3575         (sc_prohibit_assert_without_use)
3576         (sc_prohibit_close_stream_without_use)
3577         (sc_prohibit_getopt_without_use)
3578         (sc_prohibit_quotearg_without_use)
3579         (sc_prohibit_quote_without_use)
3580         (sc_prohibit_long_options_without_use)
3581         (sc_prohibit_inttostr_without_use)
3582         (sc_prohibit_ignore_value_without_use)
3583         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3584         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3585         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3586         (sc_prohibit_hash_pjw_without_use)
3587         (sc_prohibit_safe_read_without_use)
3588         (sc_prohibit_argmatch_without_use)
3589         (sc_prohibit_canonicalize_without_use)
3590         (sc_prohibit_root_dev_ino_without_use)
3591         (sc_prohibit_openat_without_use)
3592         (sc_prohibit_c_ctype_without_use)
3593         (sc_prohibit_signal_without_use)
3594         (sc_prohibit_stdio--_without_use)
3595         (sc_prohibit_stdio-safer_without_use)
3596         (sc_prohibit_strings_without_use)
3597         (sc_prohibit_intprops_without_use)
3598         (sc_prohibit_stddef_without_use)
3599         (sc_prohibit_xfreopen_without_use): Update clients.
3600
3601 2011-06-24  Jim Meyering  <meyering@redhat.com>
3602
3603         syntax-check: keep one maint.mk rule in sync with its header
3604         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3605         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3606         I prefer to avoid temporary files here, so use <(...), but that
3607         is not supported by /bin/sh, so...
3608         (SHELL): Define to /bin/bash.
3609
3610 2011-06-24  Eric Blake  <eblake@redhat.com>
3611
3612         maint.mk: update sc_prohibit_intprops_without_use
3613         * top/maint.mk (_intprops_names): Match recent changes.
3614
3615 2011-06-24  Bruno Haible  <bruno@clisp.org>
3616
3617         strerror-override: No-op tweak.
3618         * lib/strerror-override.h (strerror_override): Reorder conditions,
3619         for consistency with lib/strerror-override.c.
3620
3621 2011-06-23  Eric Blake  <eblake@redhat.com>
3622
3623         maint.mk: test further PATH_MAX issues
3624         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3625         (sc_prohibit_path_max_allocation): ...and also test alloca.
3626         Suggested by Jim Meyering.
3627
3628 2011-06-22  Eric Blake  <eblake@redhat.com>
3629
3630         maint.mk: add syntax-check to avoid char[PATH_MAX]
3631         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3632
3633         stat: be robust to PATH_MAX definition
3634         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3635         * modules/stat (Depends-on): Add verify.
3636
3637         link: work around IRIX bug
3638         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3639         * lib/link.c (rpl_link): Work around it.
3640         * tests/test-link.h (test_link): Enhance test.
3641         * doc/posix-functions/link.texi (link): Document the bug.
3642
3643         getopt: silence clang warning
3644         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3645         dereference.
3646         Reported by Gustavo Martin Domato.
3647
3648 2011-06-22  Jim Meyering  <meyering@redhat.com>
3649
3650         bootstrap: do not insert a blank line into each .gitignore file
3651         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3652
3653 2011-06-21  Eric Blake  <eblake@redhat.com>
3654
3655         perror: test for output mismatch
3656         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3657         perror on IRIX.
3658
3659         strerror_r: fix OpenBSD behavior on out-of-range
3660         * lib/strerror_r.c (strerror_r): Always use maximal string.
3661         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3662
3663         strerror_r: fix OpenBSD behavior on 0
3664         * lib/strerror-override.c (strerror_override): Also override 0
3665         when needed.
3666         * lib/strerror-override.h (strerror_override): Likewise.
3667         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3668         earlier.
3669         * lib/strerror_r.c (strerror_r): Likewise.
3670         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3671         behavior...
3672         (gl_FUNC_STRERROR_0): ...into new macro.
3673         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3674         is overridden.
3675         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3676         * modules/strerror-override (Files): Add strerror.m4.
3677         (configure.ac): Also provide override for 0 when needed.
3678         * doc/posix-functions/strerror.texi (strerror): Document this.
3679         * doc/posix-functions/perror.texi (perror): Likewise.
3680
3681         perror: adjust array size
3682         * modules/perror (Depends-on): Add strerror-override.
3683         * lib/perror.c (perror): Use it to avoid magic number.
3684
3685         strerror-override: reduce size
3686         * lib/strerror-override.c (strerror_override): Use fewer lines.
3687
3688 2011-06-20  Bruno Haible  <bruno@clisp.org>
3689
3690         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3691         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3692
3693 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3694
3695         alloca: port to compilers that can optimize like GCC 4.6.0
3696         * lib/alloca.c (find_stack_direction): New signature, taken from
3697         Autoconf git.  This works with GCC 4.6.0.  This code should never
3698         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3699         be used with other compilers that optimize as well as GCC 4.6.0 does.
3700         (alloca): Adjust to new signature.
3701         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3702         New macro, which patches Autoconf in a similar way.
3703
3704         c-stack: stop worrying about stack direction
3705         * lib/c-stack.c (find_stack_direction): Remove.
3706         (segv_handler): Don't worry about stack direction growth, as it's
3707         too much of a pain to configure this correctly, given how compilers
3708         are optimizing-away our stack-growth detection code.  Instead, assume
3709         that any access to just before or just after the stack is OK.
3710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3711         Don't require AC_FUNC_ALLOCA; no longer needed.
3712
3713 2011-06-20  Eric Blake  <eblake@redhat.com>
3714
3715         test-stat: don't allocate PATH_MAX bytes
3716         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3717         PATH_MAX-sized buffer.
3718         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3719         * modules/stat-tests (Depends-on): Likewise.
3720         * tests/test-fstatat.c (includes): Drop pathmax.h.
3721         * tests/test-stat.c (includes): Likewise.
3722         Reported by Bruno Haible.
3723
3724 2011-06-20  Bruno Haible  <bruno@clisp.org>
3725
3726         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3727         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3728         * lib/float.c: New file.
3729         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3730         REPLACE_FLOAT_LDBL.
3731         * modules/float (Files): Add lib/float.c.
3732         (configure.ac): Invoke AC_LIBOBJ.
3733         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3734
3735 2011-06-20  Bruno Haible  <bruno@clisp.org>
3736
3737         Tests for module 'float'.
3738         * modules/float-tests: New file.
3739         * tests/test-float.c: New file.
3740
3741 2011-06-19  Bruno Haible  <bruno@clisp.org>
3742
3743         isinf: Coding style.
3744         * lib/isinf.c: Use GNU coding style.
3745
3746 2011-06-19  Bruno Haible  <bruno@clisp.org>
3747
3748         linkat test: Avoid test failure on AIX 7.1.
3749         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3750         * tests/test-link.h (test_link): Likewise.
3751
3752 2011-06-19  Bruno Haible  <bruno@clisp.org>
3753
3754         pread test: Avoid test failure on OpenBSD 4.9.
3755         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3756
3757 2011-06-19  Bruno Haible  <bruno@clisp.org>
3758
3759         sprintf-posix: Fix test failure on AIX 7.1.
3760         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3761         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3762         on AIX.
3763         * doc/posix-functions/fprintf.texi: Likewise.
3764         * doc/posix-functions/printf.texi: Likewise.
3765         * doc/posix-functions/snprintf.texi: Likewise.
3766         * doc/posix-functions/sprintf.texi: Likewise.
3767         * doc/posix-functions/vdprintf.texi: Likewise.
3768         * doc/posix-functions/vfprintf.texi: Likewise.
3769         * doc/posix-functions/vprintf.texi: Likewise.
3770         * doc/posix-functions/vsnprintf.texi: Likewise.
3771         * doc/posix-functions/vsprintf.texi: Likewise.
3772
3773 2011-06-19  Bruno Haible  <bruno@clisp.org>
3774
3775         roundl-ieee: Fix test failure on AIX 7.1.
3776         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3777         * doc/posix-functions/roundl.texi: Mention problem with negative
3778         arguments.
3779
3780 2011-06-19  Bruno Haible  <bruno@clisp.org>
3781
3782         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3783         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3784         * doc/posix-functions/round.texi: Mention problem with negative
3785         arguments.
3786         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3787
3788 2011-06-19  Bruno Haible  <bruno@clisp.org>
3789
3790         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3791         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3792         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3793         * doc/posix-functions/roundf.texi: Mention problem with negative
3794         arguments.
3795         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3796
3797 2011-06-19  Bruno Haible  <bruno@clisp.org>
3798
3799         ceilf-ieee: Work around bug on MacOS X 10.5.
3800         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3801
3802         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3803         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3804         IEEE compliant, avoid compiler optimizations.
3805         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3806         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3807         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3808         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3809         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3810         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3811         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3812         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3813         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3814         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3815
3816 2011-06-19  Bruno Haible  <bruno@clisp.org>
3817
3818         ceilf-ieee: Work around bug on AIX 7.1.
3819         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3820         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3821
3822 2011-06-19  Bruno Haible  <bruno@clisp.org>
3823
3824         ceil-ieee: Work around bug on AIX 7.1.
3825         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3826         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3827
3828 2011-06-18  Bruno Haible  <bruno@clisp.org>
3829
3830         fsync test: Avoid test failure on MacOS X and AIX.
3831         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3832         EINVAL.
3833
3834 2011-06-18  Bruno Haible  <bruno@clisp.org>
3835
3836         openat, fdopendir tests: Fix link errors.
3837         * modules/openat-tests (Depends-on): Add progname.
3838         * modules/fdopendir-tests (Depends-on): Likewise.
3839         * tests/test-fchownat.c: Include progname.h.
3840         (main): Call set_program_name.
3841         * tests/test-fstatat.c: Include progname.h.
3842         (main): Call set_program_name.
3843         * tests/test-mkdirat.c: Include progname.h.
3844         (main): Call set_program_name.
3845         * tests/test-openat.c: Include progname.h.
3846         (main): Call set_program_name.
3847         * tests/test-unlinkat.c: Include progname.h.
3848         (main): Call set_program_name.
3849         * tests/test-fdopendir.c: Include progname.h.
3850         (main): Call set_program_name.
3851
3852 2011-06-18  Bruno Haible  <bruno@clisp.org>
3853
3854         Doc update.
3855         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3856         HP-UX.
3857         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3858
3859 2011-06-18  Bruno Haible  <bruno@clisp.org>
3860
3861         getcwd tests: Avoid compilation error on HP-UX 11.31.
3862         * modules/getcwd-tests (Depends-on): Add pathmax.
3863         * tests/test-getcwd.c: Include pathmax.h.
3864
3865 2011-06-18  Bruno Haible  <bruno@clisp.org>
3866
3867         isfinite, isinf: Fix link error on AIX 6 and 7.
3868         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3869         needed, also test the macro with a 'float' argument.
3870         * m4/isinf.m4 (gl_ISINF): Likewise.
3871
3872 2011-06-18  Bruno Haible  <bruno@clisp.org>
3873
3874         getloadavg: Don't clobber LIBS. Regression from previous commit.
3875         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3876         AC_CHECK_LIB from here...
3877         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3878         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3879         gl_func_getloadavg_done.
3880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3881
3882 2011-06-18  Bruno Haible  <bruno@clisp.org>
3883
3884         clean-temp: Improve documentation.
3885         * lib/clean-temp.h: Explain better how to use this module.
3886         Reported by John Darrington <john@darrington.wattle.id.au>.
3887
3888 2011-06-17  Bruno Haible  <bruno@clisp.org>
3889
3890         pread, pwrite: Avoid cc warning on AIX.
3891         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3892         (pwrite): Likewise.
3893
3894 2011-06-17  Bruno Haible  <bruno@clisp.org>
3895
3896         spawn-pipe tests: Fix link error.
3897         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3899
3900 2011-06-17  Bruno Haible  <bruno@clisp.org>
3901
3902         Tests: Remove unnecessary dependency.
3903         * modules/canonicalize-tests (Depends-on): Remove progname.
3904         * modules/chown-tests (Depends-on): Likewise.
3905         * modules/dirname-tests (Depends-on): Likewise.
3906         * modules/fdopendir-tests (Depends-on): Likewise.
3907         * modules/fdutimensat-tests (Depends-on): Likewise.
3908         * modules/hash-tests (Depends-on): Likewise.
3909         * modules/lchown-tests (Depends-on): Likewise.
3910         * modules/linkat-tests (Depends-on): Likewise.
3911         * modules/renameat-tests (Depends-on): Likewise.
3912         * modules/spawn-pipe-tests (Depends-on): Likewise.
3913         * modules/utimensat-tests (Depends-on): Likewise.
3914
3915 2011-06-17  Bruno Haible  <bruno@clisp.org>
3916
3917         spawn-pipe tests: Fix link error.
3918         * tests/test-spawn-pipe-child.c: Undefine fflush.
3919
3920 2011-06-17  Bruno Haible  <bruno@clisp.org>
3921
3922         Fix tests link errors.
3923         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3924         * modules/chown-tests (Makefile.am): Don't link test-chown with
3925         LIBINTL.
3926         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3927         LIBINTL.
3928         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3929         LIBINTL.
3930         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3931         LIBINTL.
3932
3933 2011-06-16  Bruno Haible  <bruno@clisp.org>
3934
3935         crypto/gc-sha1: Fix recent regression.
3936         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3937         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3938
3939         crypto/gc-md5: Fix recent regression.
3940         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3941
3942         crypto/gc-md4: Fix recent regression.
3943         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3944         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3945
3946         crypto/gc-arctwo: Fix recent regression.
3947         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3948         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3949
3950         crypto/gc-rijndael: Fix recent regression.
3951         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3952         (configure.ac): Invoke AC_LIBOBJ here.
3953         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3955
3956         crypto/gc-hmac-sha1: Fix recent regression.
3957         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3958         (configure.ac): Invoke AC_LIBOBJ here.
3959         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3960         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3961
3962         crypto/gc-hmac-md5: Fix recent regression.
3963         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3964         (configure.ac): Invoke AC_LIBOBJ here.
3965         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3966         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3967
3968         crypto/gc-des: Fix recent regression.
3969         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3970         (configure.ac): Invoke AC_LIBOBJ here.
3971         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3973
3974         crypto/gc-arcfour: Fix recent regression.
3975         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3976         (configure.ac): Invoke AC_LIBOBJ here.
3977         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3979
3980 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3981
3982         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3983         After the 2011-05-21 change, this macro requires
3984         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3985         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3986
3987 2011-06-16  Bruno Haible  <bruno@clisp.org>
3988
3989         fprintftime: Move AC_LIBOBJ invocations to module description.
3990         * m4/fprintftime.m4: Remove file.
3991         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3992         (configure.ac): Remove gl_FPRINTFTIME call.
3993         (Makefile.am): Augment lib_SOURCES.
3994         Reported by Jim Meyering.
3995
3996 2011-06-16  Bruno Haible  <bruno@clisp.org>
3997
3998         tmpfile-safer: Finish 2011-05-23 commit.
3999         * m4/stdio-safer.m4: Really remove file.
4000         Reported by Jim Meyering.
4001
4002 2011-06-16  Bruno Haible  <bruno@clisp.org>
4003
4004         syntax-check: Fix typo.
4005         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4006         printf-posix.m4.
4007         Reported by Jim Meyering.
4008
4009 2011-06-13  Jim Meyering  <meyering@redhat.com>
4010
4011         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4012         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4013
4014 2011-05-23  Bruno Haible  <bruno@clisp.org>
4015
4016         yesno: Move AC_LIBOBJ invocations to module description.
4017         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4018         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4019
4020 2011-05-23  Bruno Haible  <bruno@clisp.org>
4021
4022         xstrtol: Move AC_LIBOBJ invocations to module description.
4023         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
4024         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
4025
4026 2011-05-23  Bruno Haible  <bruno@clisp.org>
4027
4028         xstrtold: Move AC_LIBOBJ invocations to module description.
4029         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
4030         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
4031
4032 2011-05-23  Bruno Haible  <bruno@clisp.org>
4033
4034         xstrtod: Move AC_LIBOBJ invocations to module description.
4035         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
4036         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
4037
4038 2011-05-23  Bruno Haible  <bruno@clisp.org>
4039
4040         xnanosleep: Move AC_LIBOBJ invocations to module description.
4041         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
4042         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
4043
4044 2011-05-23  Bruno Haible  <bruno@clisp.org>
4045
4046         xgetcwd: Move AC_LIBOBJ invocations to module description.
4047         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
4048         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
4049
4050 2011-05-23  Bruno Haible  <bruno@clisp.org>
4051
4052         xalloc: Move AC_LIBOBJ invocations to module description.
4053         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4054         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4055
4056 2011-05-23  Bruno Haible  <bruno@clisp.org>
4057
4058         write-any-file: Move AC_LIBOBJ invocations to module description.
4059         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4060         invocation.
4061         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4062
4063 2011-05-23  Bruno Haible  <bruno@clisp.org>
4064
4065         utimens: Move AC_LIBOBJ invocations to module description.
4066         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4067         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4068
4069 2011-05-23  Bruno Haible  <bruno@clisp.org>
4070
4071         utimecmp: Move AC_LIBOBJ invocations to module description.
4072         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4073         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4074
4075 2011-05-23  Bruno Haible  <bruno@clisp.org>
4076
4077         userspec: Move AC_LIBOBJ invocations to module description.
4078         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4079         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4080
4081 2011-05-23  Bruno Haible  <bruno@clisp.org>
4082
4083         unlinkdir: Move AC_LIBOBJ invocations to module description.
4084         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4085         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4086
4087 2011-05-23  Bruno Haible  <bruno@clisp.org>
4088
4089         unistd-safer: Move AC_LIBOBJ invocations to module description.
4090         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4091         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4092
4093 2011-05-23  Bruno Haible  <bruno@clisp.org>
4094
4095         tempname: Move AC_LIBOBJ invocations to module description.
4096         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4097         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4098
4099 2011-05-23  Bruno Haible  <bruno@clisp.org>
4100
4101         strftime: Move AC_LIBOBJ invocations to module description.
4102         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4103         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4104
4105 2011-05-23  Bruno Haible  <bruno@clisp.org>
4106
4107         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4108         * m4/stdlib-safer.m4: Remove file.
4109         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4110         (configure.ac): Remove gl_STDLIB_SAFER call.
4111         (Makefile.am): Augment lib_SOURCES.
4112
4113 2011-05-23  Bruno Haible  <bruno@clisp.org>
4114
4115         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4116         * m4/stdio-safer.m4: Remove file.
4117         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4118         (configure.ac): Remove gl_TMPFILE_SAFER call.
4119         (Makefile.am): Augment lib_SOURCES.
4120
4121 2011-05-23  Bruno Haible  <bruno@clisp.org>
4122
4123         popen-safer: Move AC_LIBOBJ invocations to module description.
4124         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
4125         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
4126         (configure.ac): Remove gl_POPEN_SAFER call.
4127         (Makefile.am): Augment lib_SOURCES.
4128
4129 2011-05-23  Bruno Haible  <bruno@clisp.org>
4130
4131         freopen-safer: Move AC_LIBOBJ invocations to module description.
4132         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
4133         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
4134         (configure.ac): Remove gl_FREOPEN_SAFER call.
4135         (Makefile.am): Augment lib_SOURCES.
4136
4137 2011-05-23  Bruno Haible  <bruno@clisp.org>
4138
4139         fopen-safer: Move AC_LIBOBJ invocations to module description.
4140         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
4141         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
4142         (configure.ac): Remove gl_FOPEN_SAFER call.
4143         (Makefile.am): Augment lib_SOURCES.
4144
4145 2011-05-23  Bruno Haible  <bruno@clisp.org>
4146
4147         crypto/sha512: Move AC_LIBOBJ invocations to module description.
4148         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
4149         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
4150
4151 2011-05-23  Bruno Haible  <bruno@clisp.org>
4152
4153         crypto/sha256: Move AC_LIBOBJ invocations to module description.
4154         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
4155         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
4156
4157 2011-05-23  Bruno Haible  <bruno@clisp.org>
4158
4159         crypto/sha1: Move AC_LIBOBJ invocations to module description.
4160         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
4161         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
4162
4163 2011-05-23  Bruno Haible  <bruno@clisp.org>
4164
4165         settime: Move AC_LIBOBJ invocations to module description.
4166         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
4167         * modules/settime (Makefile.am): Augment lib_SOURCES.
4168
4169 2011-05-23  Bruno Haible  <bruno@clisp.org>
4170
4171         savedir: Move AC_LIBOBJ invocations to module description.
4172         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
4173         * modules/savedir (Makefile.am): Augment lib_SOURCES.
4174
4175 2011-05-23  Bruno Haible  <bruno@clisp.org>
4176
4177         save-cwd: Move AC_LIBOBJ invocations to module description.
4178         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
4179         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
4180
4181 2011-05-23  Bruno Haible  <bruno@clisp.org>
4182
4183         same: Move AC_LIBOBJ invocations to module description.
4184         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
4185         * modules/same (Makefile.am): Augment lib_SOURCES.
4186
4187 2011-05-23  Bruno Haible  <bruno@clisp.org>
4188
4189         safe-write: Move AC_LIBOBJ invocations to module description.
4190         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
4191         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
4192         instead of gl_SAFE_WRITE.
4193         (Makefile.am): Augment lib_SOURCES.
4194
4195 2011-05-23  Bruno Haible  <bruno@clisp.org>
4196
4197         safe-read: Move AC_LIBOBJ invocations to module description.
4198         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
4199         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
4200         of gl_SAFE_READ.
4201         (Makefile.am): Augment lib_SOURCES.
4202
4203 2011-05-23  Bruno Haible  <bruno@clisp.org>
4204
4205         safe-alloc: Move AC_LIBOBJ invocations to module description.
4206         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
4207         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
4208
4209 2011-05-23  Bruno Haible  <bruno@clisp.org>
4210
4211         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
4212         * m4/rijndael.m4: Remove file.
4213         * modules/crypto/rijndael (Files): Remove it.
4214         (configure.ac): Remove gl_RIJNDAEL call.
4215         (Makefile.am): Augment lib_SOURCES.
4216
4217 2011-05-23  Bruno Haible  <bruno@clisp.org>
4218
4219         readtokens: Move AC_LIBOBJ invocations to module description.
4220         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
4221         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
4222
4223 2011-05-23  Bruno Haible  <bruno@clisp.org>
4224
4225         read-file: Move AC_LIBOBJ invocations to module description.
4226         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
4227         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
4228         of gl_FUNC_READ_FILE.
4229         (Makefile.am): Augment lib_SOURCES.
4230
4231 2011-05-23  Bruno Haible  <bruno@clisp.org>
4232
4233         quotearg: Move AC_LIBOBJ invocations to module description.
4234         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
4235         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
4236
4237 2011-05-23  Bruno Haible  <bruno@clisp.org>
4238
4239         quote: Move AC_LIBOBJ invocations to module description.
4240         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
4241         * modules/quote (Makefile.am): Augment lib_SOURCES.
4242
4243 2011-05-23  Bruno Haible  <bruno@clisp.org>
4244
4245         posixver: Move AC_LIBOBJ invocations to module description.
4246         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
4247         * modules/posixver (Makefile.am): Augment lib_SOURCES.
4248
4249 2011-05-23  Bruno Haible  <bruno@clisp.org>
4250
4251         posixtm: Move AC_LIBOBJ invocations to module description.
4252         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
4253         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
4254
4255 2011-05-23  Bruno Haible  <bruno@clisp.org>
4256
4257         physmem: Move AC_LIBOBJ invocations to module description.
4258         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
4259         * modules/physmem (Makefile.am): Augment lib_SOURCES.
4260
4261 2011-05-23  Bruno Haible  <bruno@clisp.org>
4262
4263         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
4264         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
4265         invocation.
4266         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
4267
4268 2011-05-23  Bruno Haible  <bruno@clisp.org>
4269
4270         mpsort: Move AC_LIBOBJ invocations to module description.
4271         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
4272         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
4273
4274 2011-05-23  Bruno Haible  <bruno@clisp.org>
4275
4276         modechange: Move AC_LIBOBJ invocations to module description.
4277         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
4278         * modules/modechange (Makefile.am): Augment lib_SOURCES.
4279
4280 2011-05-23  Bruno Haible  <bruno@clisp.org>
4281
4282         mkdir-p: Move AC_LIBOBJ invocations to module description.
4283         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
4284         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
4285
4286 2011-05-23  Bruno Haible  <bruno@clisp.org>
4287
4288         mkancesdirs: Move AC_LIBOBJ invocations to module description.
4289         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
4290         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
4291
4292 2011-05-23  Bruno Haible  <bruno@clisp.org>
4293
4294         mgetgroups: Move AC_LIBOBJ invocations to module description.
4295         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
4296         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
4297
4298 2011-05-23  Bruno Haible  <bruno@clisp.org>
4299
4300         memxor: Move AC_LIBOBJ invocations to module description.
4301         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
4302         * modules/memxor (Makefile.am): Augment lib_SOURCES.
4303
4304 2011-05-23  Bruno Haible  <bruno@clisp.org>
4305
4306         memcoll: Move AC_LIBOBJ invocations to module description.
4307         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
4308         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
4309
4310 2011-05-23  Bruno Haible  <bruno@clisp.org>
4311
4312         memcasecmp: Move AC_LIBOBJ invocations to module description.
4313         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
4314         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
4315
4316 2011-05-23  Bruno Haible  <bruno@clisp.org>
4317
4318         crypto/md5: Move AC_LIBOBJ invocations to module description.
4319         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
4320         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
4321
4322 2011-05-23  Bruno Haible  <bruno@clisp.org>
4323
4324         crypto/md4: Move AC_LIBOBJ invocations to module description.
4325         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
4326         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
4327
4328 2011-05-23  Bruno Haible  <bruno@clisp.org>
4329
4330         crypto/md2: Move AC_LIBOBJ invocations to module description.
4331         * m4/md2.m4: Remove file.
4332         * modules/crypto/md2 (Files): Remove it.
4333         (configure.ac): Remove gl_MD2 call.
4334         (Makefile.am): Augment lib_SOURCES.
4335
4336 2011-05-23  Bruno Haible  <bruno@clisp.org>
4337
4338         long-options: Move AC_LIBOBJ invocations to module description.
4339         * m4/long-options.m4: Remove file.
4340         * modules/long-options (Files): Remove it.
4341         (configure.ac): Remove gl_LONG_OPTIONS call.
4342         (Makefile.am): Augment lib_SOURCES.
4343
4344 2011-05-23  Bruno Haible  <bruno@clisp.org>
4345
4346         i-ring: Move AC_LIBOBJ invocations to module description.
4347         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
4348         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
4349
4350 2011-05-23  Bruno Haible  <bruno@clisp.org>
4351
4352         idcache: Move AC_LIBOBJ invocations to module description.
4353         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
4354         * modules/idcache (Makefile.am): Augment lib_SOURCES.
4355
4356 2011-05-23  Bruno Haible  <bruno@clisp.org>
4357
4358         human: Move AC_LIBOBJ invocations to module description.
4359         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
4360         * modules/human (Makefile.am): Augment lib_SOURCES.
4361
4362 2011-05-23  Bruno Haible  <bruno@clisp.org>
4363
4364         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
4365         * m4/hmac-sha1.m4: Remove file.
4366         * modules/crypto/hmac-sha1 (Files): Remove it.
4367         (configure.ac): Remove gl_HMAC_SHA1 call.
4368         (Makefile.am): Augment lib_SOURCES.
4369
4370 2011-05-23  Bruno Haible  <bruno@clisp.org>
4371
4372         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
4373         * m4/hmac-md5.m4: Remove file.
4374         * modules/crypto/hmac-md5 (Files): Remove it.
4375         (configure.ac): Remove gl_HMAC_MD5 call.
4376         (Makefile.am): Augment lib_SOURCES.
4377
4378 2011-05-23  Bruno Haible  <bruno@clisp.org>
4379
4380         hash: Move AC_LIBOBJ invocations to module description.
4381         * m4/hash.m4: Remove file.
4382         * modules/hash (Files): Remove it.
4383         (configure.ac): Remove gl_HASH call.
4384         (Makefile.am): Augment lib_SOURCES.
4385
4386 2011-05-23  Bruno Haible  <bruno@clisp.org>
4387
4388         hard-locale: Move AC_LIBOBJ invocations to module description.
4389         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
4390         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
4391
4392 2011-05-23  Bruno Haible  <bruno@clisp.org>
4393
4394         getugroups: Move AC_LIBOBJ invocations to module description.
4395         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
4396         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
4397
4398 2011-05-23  Bruno Haible  <bruno@clisp.org>
4399
4400         gettime: Move AC_LIBOBJ invocations to module description.
4401         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
4402         * modules/gettime (Makefile.am): Augment lib_SOURCES.
4403
4404 2011-05-23  Bruno Haible  <bruno@clisp.org>
4405
4406         getndelim2: Move AC_LIBOBJ invocations to module description.
4407         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
4408         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
4409
4410 2011-05-23  Bruno Haible  <bruno@clisp.org>
4411
4412         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
4413         * m4/gc-pbkdf2-sha1.m4: Remove file.
4414         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
4415         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
4416         (Makefile.am): Augment lib_SOURCES.
4417
4418 2011-05-23  Bruno Haible  <bruno@clisp.org>
4419
4420         fts: Move AC_LIBOBJ invocations to module description.
4421         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
4422         * modules/fts (configure.ac): ... to here.
4423
4424 2011-05-23  Bruno Haible  <bruno@clisp.org>
4425
4426         file-type: Move AC_LIBOBJ invocations to module description.
4427         * m4/file-type.m4: Remove file.
4428         * modules/file-type (Files): Remove it.
4429         (configure.ac): Remove gl_FILE_TYPE call.
4430         (Makefile.am): Augment lib_SOURCES.
4431
4432 2011-05-23  Bruno Haible  <bruno@clisp.org>
4433
4434         filenamecat*: Respect rules for use of AC_LIBOBJ.
4435         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
4436         Remove AC_LIBOBJ invocation.
4437         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
4438         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
4439
4440 2011-05-23  Bruno Haible  <bruno@clisp.org>
4441
4442         filemode: Move AC_LIBOBJ invocations to module description.
4443         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
4444         * modules/filemode (Makefile.am): Augment lib_SOURCES.
4445
4446 2011-05-23  Bruno Haible  <bruno@clisp.org>
4447
4448         openat-safer: Move AC_LIBOBJ invocations to module description.
4449         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
4450         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
4451
4452 2011-05-23  Bruno Haible  <bruno@clisp.org>
4453
4454         fcntl-safer: Move AC_LIBOBJ invocations to module description.
4455         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
4456         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
4457
4458 2011-05-23  Bruno Haible  <bruno@clisp.org>
4459
4460         exclude: Move AC_LIBOBJ invocations to module description.
4461         * m4/exclude.m4: Remove file.
4462         * modules/exclude (Files): Remove it.
4463         (configure.ac): Remove gl_EXCLUDE call.
4464         (Makefile.am): Augment lib_SOURCES.
4465
4466 2011-05-23  Bruno Haible  <bruno@clisp.org>
4467
4468         dirname*: Respect rules for use of AC_LIBOBJ.
4469         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
4470         invocations.
4471         * modules/dirname (Makefile.am): Augment lib_SOURCES.
4472         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
4473
4474 2011-05-23  Bruno Haible  <bruno@clisp.org>
4475
4476         dirent-safer: Move AC_LIBOBJ invocations to module description.
4477         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
4478         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
4479
4480 2011-05-23  Bruno Haible  <bruno@clisp.org>
4481
4482         crypto/des: Move AC_LIBOBJ invocations to module description.
4483         * m4/des.m4: Remove file.
4484         * modules/crypto/des (Files): Remove it.
4485         (configure.ac): Remove gl_DES call.
4486         (Makefile.am): Augment lib_SOURCES.
4487
4488 2011-05-23  Bruno Haible  <bruno@clisp.org>
4489
4490         cycle-check: Move AC_LIBOBJ invocations to module description.
4491         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
4492         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
4493
4494 2011-05-23  Bruno Haible  <bruno@clisp.org>
4495
4496         c-strtold: Move AC_LIBOBJ invocations to module description.
4497         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
4498         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
4499
4500 2011-05-23  Bruno Haible  <bruno@clisp.org>
4501
4502         c-strtod: Move AC_LIBOBJ invocations to module description.
4503         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
4504         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
4505
4506 2011-05-23  Bruno Haible  <bruno@clisp.org>
4507
4508         crc: Move AC_LIBOBJ invocations to module description.
4509         * m4/crc.m4: Remove file.
4510         * modules/crc (Files): Remove it.
4511         (configure.ac): Remove gl_CRC call.
4512         (Makefile.am): Augment lib_SOURCES.
4513
4514 2011-05-23  Bruno Haible  <bruno@clisp.org>
4515
4516         close-stream: Move AC_LIBOBJ invocations to module description.
4517         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
4518         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
4519
4520 2011-05-23  Bruno Haible  <bruno@clisp.org>
4521
4522         closeout: Move AC_LIBOBJ invocations to module description.
4523         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
4524         * modules/closeout (Makefile.am): Augment lib_SOURCES.
4525
4526 2011-05-23  Bruno Haible  <bruno@clisp.org>
4527
4528         closein: Move AC_LIBOBJ invocations to module description.
4529         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
4530         * modules/closein (Makefile.am): Augment lib_SOURCES.
4531
4532 2011-05-23  Bruno Haible  <bruno@clisp.org>
4533
4534         cloexec: Move AC_LIBOBJ invocations to module description.
4535         * m4/cloexec.m4: Remove file.
4536         * modules/cloexec (Files): Remove it.
4537         (configure.ac): Remove gl_CLOEXEC call.
4538         (Makefile.am): Augment lib_SOURCES.
4539
4540 2011-05-23  Bruno Haible  <bruno@clisp.org>
4541
4542         check-version: Move AC_LIBOBJ invocations to module description.
4543         * m4/check-version.m4: Remove file.
4544         * modules/check-version (Files): Remove it.
4545         (configure.ac): Remove gl_CHECK_VERSION call.
4546         (Makefile.am): Augment lib_SOURCES.
4547
4548 2011-05-23  Bruno Haible  <bruno@clisp.org>
4549
4550         chdir-safer: Move AC_LIBOBJ invocations to module description.
4551         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
4552         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
4553
4554 2011-05-23  Bruno Haible  <bruno@clisp.org>
4555
4556         canonicalize: Move AC_LIBOBJ invocations to module description.
4557         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4558         AC_LIBOBJ invocation.
4559         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4560
4561 2011-05-23  Bruno Haible  <bruno@clisp.org>
4562
4563         canon-host: Move AC_LIBOBJ invocations to module description.
4564         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4565         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4566         instead of gl_CANON_HOST.
4567         (Makefile.am): Augment lib_SOURCES.
4568
4569 2011-05-23  Bruno Haible  <bruno@clisp.org>
4570
4571         backupfile: Move AC_LIBOBJ invocations to module description.
4572         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4573         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4574
4575 2011-05-23  Bruno Haible  <bruno@clisp.org>
4576
4577         argmatch: Move AC_LIBOBJ invocations to module description.
4578         * m4/argmatch.m4: Remove file.
4579         * modules/argmatch (Files): Remove it.
4580         (configure.ac): Remove gl_ARGMATCH call.
4581         (Makefile.am): Augment lib_SOURCES.
4582
4583 2011-05-23  Bruno Haible  <bruno@clisp.org>
4584
4585         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4586         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4587         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4588
4589 2011-05-23  Bruno Haible  <bruno@clisp.org>
4590
4591         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4592         * m4/arcfour.m4: Remove file.
4593         * modules/crypto/arcfour (Files): Remove it.
4594         (configure.ac): Remove gl_ARCFOUR call.
4595         (Makefile.am): Augment lib_SOURCES.
4596
4597 2011-05-22  Bruno Haible  <bruno@clisp.org>
4598
4599         write: Move AC_LIBOBJ invocations to module description.
4600         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4601         * modules/write (configure.ac): ... to here.
4602
4603 2011-05-22  Bruno Haible  <bruno@clisp.org>
4604
4605         wmemset: Move AC_LIBOBJ invocations to module description.
4606         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4607         here...
4608         * modules/wmemset (configure.ac): ... to here.
4609
4610 2011-05-22  Bruno Haible  <bruno@clisp.org>
4611
4612         wmemmove: Move AC_LIBOBJ invocations to module description.
4613         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4614         here...
4615         * modules/wmemmove (configure.ac): ... to here.
4616
4617 2011-05-22  Bruno Haible  <bruno@clisp.org>
4618
4619         wmemcpy: Move AC_LIBOBJ invocations to module description.
4620         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4621         here...
4622         * modules/wmemcpy (configure.ac): ... to here.
4623
4624 2011-05-22  Bruno Haible  <bruno@clisp.org>
4625
4626         wmemcmp: Move AC_LIBOBJ invocations to module description.
4627         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4628         here...
4629         * modules/wmemcmp (configure.ac): ... to here.
4630
4631 2011-05-22  Bruno Haible  <bruno@clisp.org>
4632
4633         wmemchr: Move AC_LIBOBJ invocations to module description.
4634         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4635         here...
4636         * modules/wmemchr (configure.ac): ... to here.
4637
4638 2011-05-22  Bruno Haible  <bruno@clisp.org>
4639
4640         wcswidth: Move AC_LIBOBJ invocations to module description.
4641         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4642         here...
4643         * modules/wcswidth (configure.ac): ... to here.
4644
4645 2011-05-22  Bruno Haible  <bruno@clisp.org>
4646
4647         wcwidth: Respect rules for use of AC_LIBOBJ.
4648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4649         invocation from here...
4650         * modules/wcwidth (configure.ac): ... to here.
4651         (Depends-on): Update conditions.
4652
4653 2011-05-22  Bruno Haible  <bruno@clisp.org>
4654
4655         wctype: Move AC_LIBOBJ invocations to module description.
4656         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4657         invocation from here...
4658         * modules/wctype (configure.ac): ... to here.
4659         (Depends-on): Update conditions.
4660
4661 2011-05-22  Bruno Haible  <bruno@clisp.org>
4662
4663         wctrans: Move AC_LIBOBJ invocations to module description.
4664         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4665         invocation from here...
4666         * modules/wctrans (configure.ac): ... to here.
4667
4668 2011-05-22  Bruno Haible  <bruno@clisp.org>
4669
4670         wctomb: Move AC_LIBOBJ invocations to module description.
4671         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4672         invocations from here...
4673         * modules/wctomb (configure.ac): ... to here.
4674
4675 2011-05-22  Bruno Haible  <bruno@clisp.org>
4676
4677         wctob: Move AC_LIBOBJ invocations to module description.
4678         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4679         gl_PREREQ_WCTOB invocations from here...
4680         * modules/wctob (configure.ac): ... to here.
4681         (Depends-on): Update conditions.
4682
4683 2011-05-22  Bruno Haible  <bruno@clisp.org>
4684
4685         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4686         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4687         here...
4688         * modules/wcsxfrm (configure.ac): ... to here.
4689
4690 2011-05-22  Bruno Haible  <bruno@clisp.org>
4691
4692         wcstok: Move AC_LIBOBJ invocations to module description.
4693         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4694         * modules/wcstok (configure.ac): ... to here.
4695
4696 2011-05-22  Bruno Haible  <bruno@clisp.org>
4697
4698         wcsstr: Move AC_LIBOBJ invocations to module description.
4699         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4700         * modules/wcsstr (configure.ac): ... to here.
4701
4702 2011-05-22  Bruno Haible  <bruno@clisp.org>
4703
4704         wcsspn: Move AC_LIBOBJ invocations to module description.
4705         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4706         * modules/wcsspn (configure.ac): ... to here.
4707
4708 2011-05-22  Bruno Haible  <bruno@clisp.org>
4709
4710         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4711         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4712         gl_PREREQ_WCSRTOMBS invocations from here...
4713         * modules/wcsrtombs (configure.ac): ... to here.
4714
4715 2011-05-22  Bruno Haible  <bruno@clisp.org>
4716
4717         wcsrchr: Move AC_LIBOBJ invocations to module description.
4718         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4719         here...
4720         * modules/wcsrchr (configure.ac): ... to here.
4721
4722 2011-05-22  Bruno Haible  <bruno@clisp.org>
4723
4724         wcspbrk: Move AC_LIBOBJ invocations to module description.
4725         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4726         here...
4727         * modules/wcspbrk (configure.ac): ... to here.
4728
4729 2011-05-22  Bruno Haible  <bruno@clisp.org>
4730
4731         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4732         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4733         gl_PREREQ_WCSNRTOMBS invocations from here...
4734         * modules/wcsnrtombs (configure.ac): ... to here.
4735
4736 2011-05-22  Bruno Haible  <bruno@clisp.org>
4737
4738         wcsnlen: Move AC_LIBOBJ invocations to module description.
4739         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4740         here...
4741         * modules/wcsnlen (configure.ac): ... to here.
4742
4743 2011-05-22  Bruno Haible  <bruno@clisp.org>
4744
4745         wcsncpy: Move AC_LIBOBJ invocations to module description.
4746         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4747         here...
4748         * modules/wcsncpy (configure.ac): ... to here.
4749
4750 2011-05-22  Bruno Haible  <bruno@clisp.org>
4751
4752         wcsncmp: Move AC_LIBOBJ invocations to module description.
4753         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4754         here...
4755         * modules/wcsncmp (configure.ac): ... to here.
4756
4757 2011-05-22  Bruno Haible  <bruno@clisp.org>
4758
4759         wcsncat: Move AC_LIBOBJ invocations to module description.
4760         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4761         here...
4762         * modules/wcsncat (configure.ac): ... to here.
4763
4764 2011-05-22  Bruno Haible  <bruno@clisp.org>
4765
4766         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4767         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4768         from here...
4769         * modules/wcsncasecmp (configure.ac): ... to here.
4770
4771 2011-05-22  Bruno Haible  <bruno@clisp.org>
4772
4773         wcslen: Move AC_LIBOBJ invocations to module description.
4774         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4775         * modules/wcslen (configure.ac): ... to here.
4776
4777 2011-05-22  Bruno Haible  <bruno@clisp.org>
4778
4779         wcsdup: Move AC_LIBOBJ invocations to module description.
4780         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4781         * modules/wcsdup (configure.ac): ... to here.
4782
4783 2011-05-22  Bruno Haible  <bruno@clisp.org>
4784
4785         wcscspn: Move AC_LIBOBJ invocations to module description.
4786         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4787         here...
4788         * modules/wcscspn (configure.ac): ... to here.
4789
4790 2011-05-22  Bruno Haible  <bruno@clisp.org>
4791
4792         wcscpy: Move AC_LIBOBJ invocations to module description.
4793         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4794         * modules/wcscpy (configure.ac): ... to here.
4795
4796 2011-05-22  Bruno Haible  <bruno@clisp.org>
4797
4798         wcscoll: Move AC_LIBOBJ invocations to module description.
4799         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4800         here...
4801         * modules/wcscoll (configure.ac): ... to here.
4802
4803 2011-05-22  Bruno Haible  <bruno@clisp.org>
4804
4805         wcscmp: Move AC_LIBOBJ invocations to module description.
4806         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4807         * modules/wcscmp (configure.ac): ... to here.
4808
4809 2011-05-22  Bruno Haible  <bruno@clisp.org>
4810
4811         wcschr: Move AC_LIBOBJ invocations to module description.
4812         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4813         * modules/wcschr (configure.ac): ... to here.
4814
4815 2011-05-22  Bruno Haible  <bruno@clisp.org>
4816
4817         wcscat: Move AC_LIBOBJ invocations to module description.
4818         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4819         * modules/wcscat (configure.ac): ... to here.
4820
4821 2011-05-22  Bruno Haible  <bruno@clisp.org>
4822
4823         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4824         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4825         here...
4826         * modules/wcscasecmp (configure.ac): ... to here.
4827
4828 2011-05-22  Bruno Haible  <bruno@clisp.org>
4829
4830         wcrtomb: Move AC_LIBOBJ invocations to module description.
4831         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4832         invocations from here...
4833         * modules/wcrtomb (configure.ac): ... to here.
4834
4835 2011-05-22  Bruno Haible  <bruno@clisp.org>
4836
4837         wcpncpy: Move AC_LIBOBJ invocations to module description.
4838         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4839         here...
4840         * modules/wcpncpy (configure.ac): ... to here.
4841
4842 2011-05-22  Bruno Haible  <bruno@clisp.org>
4843
4844         wcpcpy: Move AC_LIBOBJ invocations to module description.
4845         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4846         * modules/wcpcpy (configure.ac): ... to here.
4847
4848 2011-05-22  Bruno Haible  <bruno@clisp.org>
4849
4850         waitpid: Move AC_LIBOBJ invocations to module description.
4851         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4852         invocation from here...
4853         * modules/waitpid (configure.ac): ... to here.
4854
4855 2011-05-22  Bruno Haible  <bruno@clisp.org>
4856
4857         utimensat: Move AC_LIBOBJ invocations to module description.
4858         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4859         here...
4860         * modules/utimensat (configure.ac): ... to here.
4861
4862 2011-05-22  Bruno Haible  <bruno@clisp.org>
4863
4864         usleep: Move AC_LIBOBJ invocations to module description.
4865         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4866         here...
4867         * modules/usleep (configure.ac): ... to here.
4868
4869 2011-05-22  Bruno Haible  <bruno@clisp.org>
4870
4871         unlockpt: Move AC_LIBOBJ invocations to module description.
4872         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4873         gl_PREREQ_UNLOCKPT invocations from here...
4874         * modules/unlockpt (configure.ac): ... to here.
4875
4876 2011-05-22  Bruno Haible  <bruno@clisp.org>
4877
4878         unlink: Respect rules for use of AC_LIBOBJ.
4879         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4880         * modules/unlink (configure.ac): ... to here.
4881
4882 2011-05-22  Bruno Haible  <bruno@clisp.org>
4883
4884         uname: Move AC_LIBOBJ invocations to module description.
4885         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4887         here...
4888         * modules/uname (configure.ac): ... to here.
4889
4890 2011-05-22  Bruno Haible  <bruno@clisp.org>
4891
4892         ttyname_r: Move AC_LIBOBJ invocations to module description.
4893         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4894         gl_PREREQ_TTYNAME_R invocations from here...
4895         * modules/ttyname_r (configure.ac): ... to here.
4896
4897 2011-05-22  Bruno Haible  <bruno@clisp.org>
4898
4899         tsearch: Move AC_LIBOBJ invocations to module description.
4900         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4901         invocations from here...
4902         * modules/tsearch (configure.ac): ... to here.
4903
4904 2011-05-22  Bruno Haible  <bruno@clisp.org>
4905
4906         towctrans: Move AC_LIBOBJ invocations to module description.
4907         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4908         AC_LIBOBJ invocation from here...
4909         * modules/towctrans (configure.ac): ... to here.
4910
4911 2011-05-22  Bruno Haible  <bruno@clisp.org>
4912
4913         tmpfile: Move AC_LIBOBJ invocations to module description.
4914         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4915         invocations from here...
4916         * modules/tmpfile (configure.ac): ... to here.
4917
4918 2011-05-22  Bruno Haible  <bruno@clisp.org>
4919
4920         times: Move AC_LIBOBJ invocations to module description.
4921         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4922         * modules/times (configure.ac): ... to here.
4923
4924 2011-05-22  Bruno Haible  <bruno@clisp.org>
4925
4926         time_r: Move AC_LIBOBJ invocations to module description.
4927         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4928         invocations from here...
4929         * modules/time_r (configure.ac): ... to here.
4930
4931 2011-05-22  Bruno Haible  <bruno@clisp.org>
4932
4933         timegm: Move AC_LIBOBJ invocations to module description.
4934         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4935         invocations from here...
4936         * modules/timegm (configure.ac): ... to here.
4937
4938 2011-05-22  Bruno Haible  <bruno@clisp.org>
4939
4940         tcgetsid: Move AC_LIBOBJ invocations to module description.
4941         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4942         and gl_PREREQ_TCGETSID invocations from here...
4943         * modules/tcgetsid (configure.ac): ... to here.
4944         (Depends-on): Update conditions.
4945
4946 2011-05-22  Bruno Haible  <bruno@clisp.org>
4947
4948         symlinkat: Move AC_LIBOBJ invocations to module description.
4949         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4950         here...
4951         * modules/symlinkat (configure.ac): ... to here.
4952
4953 2011-05-22  Bruno Haible  <bruno@clisp.org>
4954
4955         symlink: Move AC_LIBOBJ invocations to module description.
4956         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4957         here...
4958         * modules/symlink (configure.ac): ... to here.
4959
4960 2011-05-22  Bruno Haible  <bruno@clisp.org>
4961
4962         strverscmp: Move AC_LIBOBJ invocations to module description.
4963         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4964         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4965         from here...
4966         * modules/strverscmp (configure.ac): ... to here.
4967
4968 2011-05-22  Bruno Haible  <bruno@clisp.org>
4969
4970         strtok_r: Move AC_LIBOBJ invocations to module description.
4971         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4972         and gl_PREREQ_STRTOK_R invocations from here...
4973         * modules/strtok_r (configure.ac): ... to here.
4974         (Depends-on): Update conditions.
4975
4976 2011-05-22  Bruno Haible  <bruno@clisp.org>
4977
4978         strtoumax: Move AC_LIBOBJ invocations to module description.
4979         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4980         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4981         from here...
4982         * modules/strtoumax (configure.ac): ... to here.
4983
4984 2011-05-22  Bruno Haible  <bruno@clisp.org>
4985
4986         strtoimax: Move AC_LIBOBJ invocations to module description.
4987         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4988         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4989         from here...
4990         * modules/strtoimax (configure.ac): ... to here.
4991
4992 2011-05-22  Bruno Haible  <bruno@clisp.org>
4993
4994         strtoull: Move AC_LIBOBJ invocations to module description.
4995         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4996         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4997         from here...
4998         * modules/strtoull (configure.ac): ... to here.
4999
5000 2011-05-22  Bruno Haible  <bruno@clisp.org>
5001
5002         strtoll: Move AC_LIBOBJ invocations to module description.
5003         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5004         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5005         here...
5006         * modules/strtoll (configure.ac): ... to here.
5007
5008 2011-05-22  Bruno Haible  <bruno@clisp.org>
5009
5010         strtoul: Move AC_LIBOBJ invocations to module description.
5011         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5012         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5013         * modules/strtoul (configure.ac): ... to here.
5014
5015 2011-05-22  Bruno Haible  <bruno@clisp.org>
5016
5017         strtol: Move AC_LIBOBJ invocations to module description.
5018         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5019         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5020         * modules/strtol (configure.ac): ... to here.
5021
5022 2011-05-22  Bruno Haible  <bruno@clisp.org>
5023
5024         strtod: Move AC_LIBOBJ invocations to module description.
5025         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
5026         invocations from here...
5027         * modules/strtod (configure.ac): ... to here.
5028
5029 2011-05-22  Bruno Haible  <bruno@clisp.org>
5030
5031         strstr*: Move AC_LIBOBJ invocations to module description.
5032         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
5033         invocations from here...
5034         * modules/strstr-simple (configure.ac): ... to here.
5035         * modules/strstr (configure.ac): ... and here.
5036
5037 2011-05-22  Bruno Haible  <bruno@clisp.org>
5038
5039         strsignal: Move AC_LIBOBJ invocations to module description.
5040         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
5041         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
5042         * modules/strsignal (configure.ac): ... to here.
5043         (Depends-on): Update conditions.
5044
5045 2011-05-22  Bruno Haible  <bruno@clisp.org>
5046
5047         strsep: Move AC_LIBOBJ invocations to module description.
5048         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5049         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
5050         here...
5051         * modules/strsep (configure.ac): ... to here.
5052
5053 2011-05-22  Bruno Haible  <bruno@clisp.org>
5054
5055         strptime: Move AC_LIBOBJ invocations to module description.
5056         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5057         gl_PREREQ_STRPTIME invocations from here...
5058         * modules/strptime (configure.ac): ... to here.
5059
5060 2011-05-22  Bruno Haible  <bruno@clisp.org>
5061
5062         strpbrk: Move AC_LIBOBJ invocations to module description.
5063         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5064         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5065         here...
5066         * modules/strpbrk (configure.ac): ... to here.
5067
5068 2011-05-22  Bruno Haible  <bruno@clisp.org>
5069
5070         strnlen: Move AC_LIBOBJ invocations to module description.
5071         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5072         invocations from here...
5073         * modules/strnlen (configure.ac): ... to here.
5074
5075 2011-05-22  Bruno Haible  <bruno@clisp.org>
5076
5077         strndup: Move AC_LIBOBJ invocations to module description.
5078         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5079         invocations from here...
5080         * modules/strndup (configure.ac): ... to here.
5081         (Depends-on): Update conditions.
5082
5083 2011-05-22  Bruno Haible  <bruno@clisp.org>
5084
5085         strncat: Move AC_LIBOBJ invocations to module description.
5086         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5087         invocations from here...
5088         * modules/strncat (configure.ac): ... to here.
5089
5090 2011-05-22  Bruno Haible  <bruno@clisp.org>
5091
5092         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5093         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5094         invocations from here...
5095         * modules/strdup (configure.ac): ... to here.
5096         * modules/strdup-posix (configure.ac): ... and here.
5097
5098 2011-05-22  Bruno Haible  <bruno@clisp.org>
5099
5100         strcspn: Move AC_LIBOBJ invocations to module description.
5101         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5102         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5103         here...
5104         * modules/strcspn (configure.ac): ... to here.
5105
5106 2011-05-22  Bruno Haible  <bruno@clisp.org>
5107
5108         strchrnul: Move AC_LIBOBJ invocations to module description.
5109         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5110         gl_PREREQ_STRCHRNUL invocations from here...
5111         * modules/strchrnul (configure.ac): ... to here.
5112
5113 2011-05-22  Bruno Haible  <bruno@clisp.org>
5114
5115         strcasestr*: Move AC_LIBOBJ invocations to module description.
5116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5117         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5118         * modules/strcasestr-simple (configure.ac): ... to here.
5119         * modules/strcasestr (configure.ac): ... and here.
5120
5121 2011-05-22  Bruno Haible  <bruno@clisp.org>
5122
5123         strcase: Move AC_LIBOBJ invocations to module description.
5124         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
5125         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
5126         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
5127         gl_PREREQ_STRNCASECMP invocations from here...
5128         * modules/strcase (configure.ac): ... to here.
5129
5130 2011-05-22  Bruno Haible  <bruno@clisp.org>
5131
5132         stpncpy: Move AC_LIBOBJ invocations to module description.
5133         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
5134         here...
5135         * modules/stpncpy (configure.ac): ... to here.
5136
5137 2011-05-22  Bruno Haible  <bruno@clisp.org>
5138
5139         stpcpy: Move AC_LIBOBJ invocations to module description.
5140         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
5141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
5142         here...
5143         * modules/stpcpy (configure.ac): ... to here.
5144
5145 2011-05-21  Bruno Haible  <bruno@clisp.org>
5146
5147         stat: Move AC_LIBOBJ invocations to module description.
5148         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
5149         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
5150         here...
5151         * modules/stat (configure.ac): ... to here.
5152
5153 2011-05-21  Bruno Haible  <bruno@clisp.org>
5154
5155         sleep: Move AC_LIBOBJ invocations to module description.
5156         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
5157         * modules/sleep (configure.ac): ... to here.
5158
5159 2011-05-21  Bruno Haible  <bruno@clisp.org>
5160
5161         signbit: Move AC_LIBOBJ invocations to module description.
5162         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
5163         * modules/signbit (configure.ac): ... to here.
5164
5165 2011-05-21  Bruno Haible  <bruno@clisp.org>
5166
5167         sigprocmask: Move AC_LIBOBJ invocations to module description.
5168         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
5169         gl_PREREQ_SIGPROMASK invocations from here...
5170         * modules/sigprocmask (configure.ac): ... to here.
5171
5172 2011-05-21  Bruno Haible  <bruno@clisp.org>
5173
5174         sigaction: Move AC_LIBOBJ invocations to module description.
5175         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
5176         gl_PREREQ_SIGACTION invocations from here...
5177         * modules/sigaction (configure.ac): ... to here.
5178
5179 2011-05-21  Bruno Haible  <bruno@clisp.org>
5180
5181         sig2str: Move AC_LIBOBJ invocations to module description.
5182         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
5183         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
5184         here...
5185         * modules/sig2str (configure.ac): ... to here.
5186
5187 2011-05-21  Bruno Haible  <bruno@clisp.org>
5188
5189         setlocale: Move AC_LIBOBJ invocations to module description.
5190         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
5191         gl_PREREQ_SETLOCALE invocations from here...
5192         * modules/setlocale (configure.ac): ... to here.
5193
5194 2011-05-21  Bruno Haible  <bruno@clisp.org>
5195
5196         unsetenv: Move AC_LIBOBJ invocations to module description.
5197         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
5198         and gl_PREREQ_UNSETENV invocations from here...
5199         * modules/unsetenv (configure.ac): ... to here.
5200         (Depends-on): Update.
5201
5202 2011-05-21  Bruno Haible  <bruno@clisp.org>
5203
5204         setenv: Move AC_LIBOBJ invocations to module description.
5205         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
5206         here...
5207         * modules/setenv (configure.ac): ... to here.
5208
5209 2011-05-21  Bruno Haible  <bruno@clisp.org>
5210
5211         selinux-h: Move AC_LIBOBJ invocations to module description.
5212         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
5213         AC_LIBOBJ invocation from here...
5214         * modules/selinux-h (configure.ac): ... to here.
5215
5216 2011-05-21  Bruno Haible  <bruno@clisp.org>
5217
5218         select: Respect rules for use of AC_LIBOBJ.
5219         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
5220         here...
5221         * modules/select (configure.ac): ... to here.
5222
5223 2011-05-21  Bruno Haible  <bruno@clisp.org>
5224
5225         scandir: Move AC_LIBOBJ invocations to module description.
5226         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
5227         invocations from here...
5228         * modules/scandir (configure.ac): ... to here.
5229
5230 2011-05-21  Bruno Haible  <bruno@clisp.org>
5231
5232         rpmatch: Move AC_LIBOBJ invocations to module description.
5233         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
5234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
5235         here...
5236         * modules/rpmatch (configure.ac): ... to here.
5237
5238 2011-05-21  Bruno Haible  <bruno@clisp.org>
5239
5240         rmdir: Respect rules for use of AC_LIBOBJ.
5241         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
5242         * modules/rmdir (configure.ac): ... to here.
5243
5244 2011-05-21  Bruno Haible  <bruno@clisp.org>
5245
5246         renameat: Move AC_LIBOBJ invocations to module description.
5247         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
5248         here...
5249         * modules/renameat (configure.ac): ... to here.
5250
5251 2011-05-21  Bruno Haible  <bruno@clisp.org>
5252
5253         rename: Respect rules for use of AC_LIBOBJ.
5254         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
5255         here...
5256         * modules/rename (configure.ac): ... to here.
5257
5258 2011-05-21  Bruno Haible  <bruno@clisp.org>
5259
5260         remove: Move AC_LIBOBJ invocations to module description.
5261         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
5262         here...
5263         * modules/remove (configure.ac): ... to here.
5264
5265 2011-05-21  Bruno Haible  <bruno@clisp.org>
5266
5267         relocatable-lib: Move AC_LIBOBJ invocations to module description.
5268         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
5269         macro.
5270         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
5271         * modules/relocatable-lib (configure.ac): ... to here.
5272         * modules/relocatable-prog-wrapper (configure.ac): Invoke
5273         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
5274
5275 2011-05-21  Bruno Haible  <bruno@clisp.org>
5276
5277         relocatable-prog: Move AC_LIBOBJ invocations to module description.
5278         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
5279         here...
5280         * modules/relocatable-prog (configure.ac): ... to here.
5281
5282 2011-05-21  Bruno Haible  <bruno@clisp.org>
5283
5284         regex: Move AC_LIBOBJ invocations to module description.
5285         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
5286         invocations from here...
5287         * modules/regex (configure.ac): ... to here.
5288
5289 2011-05-21  Bruno Haible  <bruno@clisp.org>
5290
5291         realloc-*: Move AC_LIBOBJ invocations to module description.
5292         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
5293         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
5294         AC_LIBOBJ invocations from here...
5295         * modules/realloc-gnu (configure.ac): ... to here.
5296         * modules/realloc-posix (configure.ac): ... and here.
5297
5298 2011-05-21  Bruno Haible  <bruno@clisp.org>
5299
5300         readutmp: Move AC_LIBOBJ invocations to module description.
5301         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
5302         * modules/readutmp (configure.ac): ... to here.
5303
5304 2011-05-21  Bruno Haible  <bruno@clisp.org>
5305
5306         readlinkat: Move AC_LIBOBJ invocations to module description.
5307         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
5308         here...
5309         * modules/readlinkat (configure.ac): ... to here.
5310
5311 2011-05-21  Bruno Haible  <bruno@clisp.org>
5312
5313         readlink: Move AC_LIBOBJ invocations to module description.
5314         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
5315         gl_PREREQ_READLINK invocations from here...
5316         * modules/readlink (configure.ac): ... to here.
5317
5318 2011-05-21  Bruno Haible  <bruno@clisp.org>
5319
5320         readline: Move AC_LIBOBJ invocations to module description.
5321         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
5322         gl_PREREQ_READLINE invocations from here...
5323         * modules/readline (configure.ac): ... to here.
5324
5325 2011-05-21  Bruno Haible  <bruno@clisp.org>
5326
5327         read: Move AC_LIBOBJ invocations to module description.
5328         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
5329         * modules/read (configure.ac): ... to here.
5330
5331 2011-05-21  Bruno Haible  <bruno@clisp.org>
5332
5333         rawmemchr: Move AC_LIBOBJ invocations to module description.
5334         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
5335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
5336         from here...
5337         * modules/rawmemchr (configure.ac): ... to here.
5338
5339 2011-05-21  Bruno Haible  <bruno@clisp.org>
5340
5341         random_r: Move AC_LIBOBJ invocations to module description.
5342         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
5343         gl_PREREQ_RANDOM_R invocations from here...
5344         * modules/random_r (configure.ac): ... to here.
5345
5346 2011-05-21  Bruno Haible  <bruno@clisp.org>
5347
5348         pwrite: Move AC_LIBOBJ invocations to module description.
5349         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
5350         * modules/pwrite (configure.ac): ... to here.
5351
5352 2011-05-21  Bruno Haible  <bruno@clisp.org>
5353
5354         putenv: Move AC_LIBOBJ invocations to module description.
5355         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
5356         * modules/putenv (configure.ac): ... to here.
5357
5358 2011-05-21  Bruno Haible  <bruno@clisp.org>
5359
5360         login_tty: Move AC_LIBOBJ invocations to module description.
5361         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
5362         * modules/login_tty (configure.ac): ... to here.
5363
5364 2011-05-21  Bruno Haible  <bruno@clisp.org>
5365
5366         openpty: Move AC_LIBOBJ invocations to module description.
5367         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
5368         * modules/openpty (configure.ac): ... to here.
5369
5370 2011-05-21  Bruno Haible  <bruno@clisp.org>
5371
5372         forkpty: Move AC_LIBOBJ invocations to module description.
5373         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
5374         * modules/forkpty (configure.ac): ... to here.
5375
5376 2011-05-21  Bruno Haible  <bruno@clisp.org>
5377
5378         ptsname: Move AC_LIBOBJ invocations to module description.
5379         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
5380         invocations from here...
5381         * modules/ptsname (configure.ac): ... to here.
5382
5383 2011-05-21  Bruno Haible  <bruno@clisp.org>
5384
5385         pread: Move AC_LIBOBJ invocations to module description.
5386         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
5387         * modules/pread (configure.ac): ... to here.
5388
5389 2011-05-21  Bruno Haible  <bruno@clisp.org>
5390
5391         posix_spawn*: Move AC_LIBOBJ invocations to module description.
5392         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
5393         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
5394         * modules/posix_spawn (configure.ac): ... to here.
5395         * modules/posix_spawnp (configure.ac): ... and here.
5396
5397 2011-05-21  Bruno Haible  <bruno@clisp.org>
5398
5399         popen: Move AC_LIBOBJ invocations to module description.
5400         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
5401         invocations from here...
5402         * modules/popen (configure.ac): ... to here.
5403
5404 2011-05-21  Bruno Haible  <bruno@clisp.org>
5405
5406         poll: Move AC_LIBOBJ invocations to module description.
5407         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
5408         invocations from here...
5409         * modules/poll (configure.ac): ... to here.
5410
5411 2011-05-21  Bruno Haible  <bruno@clisp.org>
5412
5413         pipe-posix: Move AC_LIBOBJ invocations to module description.
5414         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
5415         * modules/pipe-posix (configure.ac): ... to here.
5416
5417 2011-05-21  Bruno Haible  <bruno@clisp.org>
5418
5419         openat: Respect rules for use of AC_LIBOBJ.
5420         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
5421         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5422         * modules/openat (configure.ac): ... to here.
5423
5424 2011-05-21  Bruno Haible  <bruno@clisp.org>
5425
5426         obstack-printf*: Move AC_LIBOBJ invocations to module description.
5427         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
5428         invocation from here...
5429         * modules/obstack-printf (configure.ac): ... to here.
5430         * modules/obstack-printf-posix (configure.ac): ... and here.
5431
5432 2011-05-21  Bruno Haible  <bruno@clisp.org>
5433
5434         nl_langinfo: Move AC_LIBOBJ invocations to module description.
5435         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
5436         from here...
5437         * modules/nl_langinfo (configure.ac): ... to here.
5438
5439 2011-05-21  Bruno Haible  <bruno@clisp.org>
5440
5441         nanosleep: Move AC_LIBOBJ invocations to module description.
5442         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
5443         gl_PREREQ_NANOSLEEP invocations from here...
5444         * modules/nanosleep (configure.ac): ... to here.
5445
5446 2011-05-21  Bruno Haible  <bruno@clisp.org>
5447
5448         mountlist: Move AC_LIBOBJ invocations to module description.
5449         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
5450         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
5451         * modules/mountlist (configure.ac): ... to here.
5452
5453 2011-05-21  Bruno Haible  <bruno@clisp.org>
5454
5455         mktime: Respect rules for use of AC_LIBOBJ.
5456         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
5457         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
5458         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
5459         (gl_FUNC_MKTIME_INTERNAL): ... and here...
5460         * modules/mktime (configure.ac): ... to here.
5461         * modules/mktime-internal (configure.ac): ... and here.
5462         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
5463
5464 2011-05-21  Bruno Haible  <bruno@clisp.org>
5465
5466         mkstemps: Move AC_LIBOBJ invocations to module description.
5467         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
5468         here...
5469         * modules/mkstemps (configure.ac): ... to here.
5470
5471 2011-05-21  Bruno Haible  <bruno@clisp.org>
5472
5473         mkstemp: Move AC_LIBOBJ invocations to module description.
5474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
5475         gl_PREREQ_MKSTEMP invocations from here...
5476         * modules/mkstemp (configure.ac): ... to here.
5477
5478 2011-05-21  Bruno Haible  <bruno@clisp.org>
5479
5480         mkostemps: Move AC_LIBOBJ invocations to module description.
5481         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
5482         here...
5483         * modules/mkostemps (configure.ac): ... to here.
5484
5485 2011-05-21  Bruno Haible  <bruno@clisp.org>
5486
5487         mkostemp: Move AC_LIBOBJ invocations to module description.
5488         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
5489         gl_PREREQ_MKOSTEMP invocations from here...
5490         * modules/mkostemp (configure.ac): ... to here.
5491
5492 2011-05-21  Bruno Haible  <bruno@clisp.org>
5493
5494         mknod: Move AC_LIBOBJ invocations to module description.
5495         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
5496         * modules/mknod (configure.ac): ... to here.
5497
5498 2011-05-21  Bruno Haible  <bruno@clisp.org>
5499
5500         mkfifoat: Move AC_LIBOBJ invocations to module description.
5501         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
5502         here...
5503         * modules/mkfifoat (configure.ac): ... to here.
5504
5505 2011-05-21  Bruno Haible  <bruno@clisp.org>
5506
5507         mkfifo: Respect rules for use of AC_LIBOBJ.
5508         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
5509         here...
5510         * modules/mkfifo (configure.ac): ... to here.
5511
5512 2011-05-21  Bruno Haible  <bruno@clisp.org>
5513
5514         mkdtemp: Move AC_LIBOBJ invocations to module description.
5515         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
5516         invocations from here...
5517         * modules/mkdtemp (configure.ac): ... to here.
5518
5519 2011-05-21  Bruno Haible  <bruno@clisp.org>
5520
5521         mkdir: Move AC_LIBOBJ invocations to module description.
5522         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
5523         * modules/mkdir (configure.ac): ... to here.
5524
5525 2011-05-21  Bruno Haible  <bruno@clisp.org>
5526
5527         memset: Move AC_LIBOBJ invocations to module description.
5528         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
5529         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
5530         here...
5531         * modules/memset (configure.ac): ... to here.
5532
5533 2011-05-21  Bruno Haible  <bruno@clisp.org>
5534
5535         memrchr: Move AC_LIBOBJ invocations to module description.
5536         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
5537         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
5538         here...
5539         * modules/memrchr (configure.ac): ... to here.
5540
5541 2011-05-21  Bruno Haible  <bruno@clisp.org>
5542
5543         mempcpy: Move AC_LIBOBJ invocations to module description.
5544         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
5545         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
5546         here...
5547         * modules/mempcpy (configure.ac): ... to here.
5548
5549 2011-05-21  Bruno Haible  <bruno@clisp.org>
5550
5551         memmove: Move AC_LIBOBJ invocations to module description.
5552         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
5553         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
5554         here...
5555         * modules/memmove (configure.ac): ... to here.
5556
5557 2011-05-21  Bruno Haible  <bruno@clisp.org>
5558
5559         memmem*: Move AC_LIBOBJ invocations to module description.
5560         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5561         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5562         here...
5563         (gl_FUNC_MEMMEM): ... and here...
5564         * modules/memmem-simple (configure.ac): ... to here.
5565         * modules/memmem (configure.ac): ... and here.
5566
5567 2011-05-21  Bruno Haible  <bruno@clisp.org>
5568
5569         memcpy: Move AC_LIBOBJ invocations to module description.
5570         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5571         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5572         here...
5573         * modules/memcpy (configure.ac): ... to here.
5574
5575 2011-05-21  Bruno Haible  <bruno@clisp.org>
5576
5577         memcmp: Simplify autoconf macro.
5578         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5579         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5580         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5581
5582 2011-05-21  Bruno Haible  <bruno@clisp.org>
5583
5584         memcmp: Move AC_LIBOBJ invocations to module description.
5585         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5586         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5587         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5588         * modules/memcmp (configure.ac): ... to here.
5589         (Depends-on): Update conditions.
5590
5591 2011-05-21  Bruno Haible  <bruno@clisp.org>
5592
5593         memchr: Respect rules for use of AC_LIBOBJ.
5594         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5595         invocations from here...
5596         * modules/memchr (configure.ac): ... to here.
5597
5598 2011-05-21  Bruno Haible  <bruno@clisp.org>
5599
5600         mbtowc: Move AC_LIBOBJ invocations to module description.
5601         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5602         invocations from here...
5603         * modules/mbtowc (configure.ac): ... to here.
5604
5605 2011-05-21  Bruno Haible  <bruno@clisp.org>
5606
5607         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5608         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5609         gl_PREREQ_MBSRTOWCS invocations from here...
5610         * modules/mbsrtowcs (configure.ac): ... to here.
5611
5612 2011-05-21  Bruno Haible  <bruno@clisp.org>
5613
5614         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5615         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5616         gl_PREREQ_MBSNRTOWCS invocations from here...
5617         * modules/mbsnrtowcs (configure.ac): ... to here.
5618
5619 2011-05-21  Bruno Haible  <bruno@clisp.org>
5620
5621         mbsinit: Move AC_LIBOBJ invocations to module description.
5622         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5623         invocations from here...
5624         * modules/mbsinit (configure.ac): ... to here.
5625
5626 2011-05-21  Bruno Haible  <bruno@clisp.org>
5627
5628         mbrlen: Move AC_LIBOBJ invocations to module description.
5629         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5630         invocations from here...
5631         * modules/mbrlen (configure.ac): ... to here.
5632
5633 2011-05-21  Bruno Haible  <bruno@clisp.org>
5634
5635         mbrtowc: Respect rules for use of AC_LIBOBJ.
5636         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5637         invocations from here...
5638         * modules/mbrtowc (configure.ac): ... to here.
5639
5640 2011-05-21  Bruno Haible  <bruno@clisp.org>
5641
5642         malloc-*: Move AC_LIBOBJ invocations to module description.
5643         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5644         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5645         AC_LIBOBJ invocations from here...
5646         * modules/malloc-gnu (configure.ac): ... to here.
5647         * modules/malloc-posix (configure.ac): ... and here.
5648
5649 2011-05-21  Bruno Haible  <bruno@clisp.org>
5650
5651         lstat, openat: Respect rules for use of AC_LIBOBJ.
5652         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5653         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5654         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5655         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5656         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5657         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5658         here.
5659         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5660
5661 2011-05-21  Bruno Haible  <bruno@clisp.org>
5662
5663         lseek: Move AC_LIBOBJ invocations to module description.
5664         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5665         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5666         * modules/lseek (configure.ac): ... to here.
5667
5668 2011-05-21  Bruno Haible  <bruno@clisp.org>
5669
5670         linkat: Move AC_LIBOBJ invocations to module description.
5671         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5672         here...
5673         * modules/linkat (configure.ac): ... to here.
5674
5675 2011-05-21  Bruno Haible  <bruno@clisp.org>
5676
5677         link: Respect rules for use of AC_LIBOBJ.
5678         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5679         * modules/link (configure.ac): ... to here.
5680
5681 2011-05-21  Bruno Haible  <bruno@clisp.org>
5682
5683         lchown: Move AC_LIBOBJ invocations to module description.
5684         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5685         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5686         * modules/lchown (configure.ac): ... to here.
5687
5688 2011-05-21  Bruno Haible  <bruno@clisp.org>
5689
5690         iswctype: Move AC_LIBOBJ invocations to module description.
5691         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5692         here...
5693         * modules/iswctype (configure.ac): ... to here.
5694
5695 2011-05-21  Bruno Haible  <bruno@clisp.org>
5696
5697         iswblank: Move AC_LIBOBJ invocations to module description.
5698         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5699         here...
5700         * modules/iswblank (configure.ac): ... to here.
5701
5702 2011-05-21  Bruno Haible  <bruno@clisp.org>
5703
5704         atanl: Move AC_LIBOBJ invocations to module description.
5705         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5706         * modules/atanl (configure.ac): ... to here.
5707
5708 2011-05-21  Bruno Haible  <bruno@clisp.org>
5709
5710         acosl: Move AC_LIBOBJ invocations to module description.
5711         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5712         * modules/acosl (configure.ac): ... to here.
5713
5714 2011-05-21  Bruno Haible  <bruno@clisp.org>
5715
5716         asinl: Respect rules for use of AC_LIBOBJ.
5717         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5718         * modules/asinl (configure.ac): ... to here.
5719
5720 2011-05-21  Bruno Haible  <bruno@clisp.org>
5721
5722         tanl: Move AC_LIBOBJ invocations to module description.
5723         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5724         * modules/tanl (configure.ac): ... to here.
5725
5726 2011-05-21  Bruno Haible  <bruno@clisp.org>
5727
5728         cosl: Move AC_LIBOBJ invocations to module description.
5729         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5730         * modules/cosl (configure.ac): ... to here.
5731
5732 2011-05-21  Bruno Haible  <bruno@clisp.org>
5733
5734         sinl: Move AC_LIBOBJ invocations to module description.
5735         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5736         * modules/sinl (configure.ac): ... to here.
5737
5738 2011-05-21  Bruno Haible  <bruno@clisp.org>
5739
5740         logl: Move AC_LIBOBJ invocations to module description.
5741         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5742         * modules/logl (configure.ac): ... to here.
5743
5744 2011-05-21  Bruno Haible  <bruno@clisp.org>
5745
5746         expl: Move AC_LIBOBJ invocations to module description.
5747         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5748         * modules/expl (configure.ac): ... to here.
5749
5750 2011-05-21  Bruno Haible  <bruno@clisp.org>
5751
5752         roundl: Move AC_LIBOBJ invocations to module description.
5753         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5754         * modules/roundl (configure.ac): ... to here.
5755
5756 2011-05-21  Bruno Haible  <bruno@clisp.org>
5757
5758         round: Move AC_LIBOBJ invocations to module description.
5759         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5760         * modules/round (configure.ac): ... to here.
5761
5762 2011-05-21  Bruno Haible  <bruno@clisp.org>
5763
5764         roundf: Move AC_LIBOBJ invocations to module description.
5765         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5766         * modules/roundf (configure.ac): ... to here.
5767
5768 2011-05-21  Bruno Haible  <bruno@clisp.org>
5769
5770         truncl: Move AC_LIBOBJ invocations to module description.
5771         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5772         * modules/truncl (configure.ac): ... to here.
5773
5774 2011-05-21  Bruno Haible  <bruno@clisp.org>
5775
5776         trunc: Move AC_LIBOBJ invocations to module description.
5777         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5778         * modules/trunc (configure.ac): ... to here.
5779
5780 2011-05-21  Bruno Haible  <bruno@clisp.org>
5781
5782         truncf: Move AC_LIBOBJ invocations to module description.
5783         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5784         * modules/truncf (configure.ac): ... to here.
5785
5786 2011-05-21  Bruno Haible  <bruno@clisp.org>
5787
5788         ceill: Move AC_LIBOBJ invocations to module description.
5789         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5790         * modules/ceill (configure.ac): ... to here.
5791
5792 2011-05-21  Bruno Haible  <bruno@clisp.org>
5793
5794         ceil: Move AC_LIBOBJ invocations to module description.
5795         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5796         * modules/ceil (configure.ac): ... to here.
5797
5798 2011-05-21  Bruno Haible  <bruno@clisp.org>
5799
5800         ceilf: Move AC_LIBOBJ invocations to module description.
5801         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5802         * modules/ceilf (configure.ac): ... to here.
5803
5804 2011-05-21  Bruno Haible  <bruno@clisp.org>
5805
5806         floorl: Respect rules for use of AC_LIBOBJ.
5807         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5808         * modules/floorl (configure.ac): ... to here.
5809
5810 2011-05-21  Bruno Haible  <bruno@clisp.org>
5811
5812         floor: Respect rules for use of AC_LIBOBJ.
5813         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5814         * modules/floor (configure.ac): ... to here.
5815
5816 2011-05-21  Bruno Haible  <bruno@clisp.org>
5817
5818         floorf: Move AC_LIBOBJ invocations to module description.
5819         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5820         * modules/floorf (configure.ac): ... to here.
5821
5822 2011-05-20  Bruno Haible  <bruno@clisp.org>
5823
5824         sqrtl: Respect rules for use of AC_LIBOBJ.
5825         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5826         * modules/sqrtl (configure.ac): ... to here.
5827
5828 2011-05-20  Bruno Haible  <bruno@clisp.org>
5829
5830         ldexpl: Respect rules for use of AC_LIBOBJ.
5831         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5832         * modules/ldexpl (configure.ac): ... to here.
5833
5834 2011-05-20  Bruno Haible  <bruno@clisp.org>
5835
5836         frexpl*: Respect rules for use of AC_LIBOBJ.
5837         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5838         invocation from here...
5839         * modules/frexpl (configure.ac): ... to here.
5840         * modules/frexpl-nolibm (configure.ac): ... and here.
5841
5842 2011-05-20  Bruno Haible  <bruno@clisp.org>
5843
5844         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5845         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5846         invocation from here...
5847         * modules/frexp (configure.ac): ... to here.
5848         * modules/frexp-nolibm (configure.ac): ... and here.
5849
5850 2011-05-20  Bruno Haible  <bruno@clisp.org>
5851
5852         isnan: Respect rules for use of AC_LIBOBJ.
5853         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5854         invocations here.
5855         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5856         REPLACE_ISNAN.
5857         * modules/isnand (configure.ac): Likewise.
5858         * modules/isnanl (configure.ac): Likewise.
5859
5860 2011-05-20  Bruno Haible  <bruno@clisp.org>
5861
5862         isnanl*: Respect rules for use of AC_LIBOBJ.
5863         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5864         invocation from here...
5865         * modules/isnanl (configure.ac): ... to here.
5866         * modules/isnanl-nolibm (configure.ac): ... and here.
5867
5868 2011-05-20  Bruno Haible  <bruno@clisp.org>
5869
5870         isnand*: Move AC_LIBOBJ invocations to module description.
5871         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5872         invocation from here...
5873         * modules/isnand (configure.ac): ... to here.
5874         * modules/isnand-nolibm (configure.ac): ... and here.
5875
5876 2011-05-20  Bruno Haible  <bruno@clisp.org>
5877
5878         isnanf*: Move AC_LIBOBJ invocations to module description.
5879         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5880         invocation from here...
5881         * modules/isnanf (configure.ac): ... to here.
5882         * modules/isnanf-nolibm (configure.ac): ... and here.
5883
5884 2011-05-20  Bruno Haible  <bruno@clisp.org>
5885
5886         isnan*: Separate the AC_LIBOBJ invocations.
5887         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5888         AC_LIBOBJ invocation.
5889         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5890         here.
5891         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5892         AC_LIBOBJ invocation.
5893         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5894         here.
5895         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5896         AC_LIBOBJ invocation.
5897         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5898         here.
5899         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5900
5901 2011-05-08  Bruno Haible  <bruno@clisp.org>
5902
5903         isinf: Move AC_LIBOBJ invocations to module description.
5904         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5905         * modules/isinf (configure.ac): ... to here.
5906
5907 2011-05-08  Bruno Haible  <bruno@clisp.org>
5908
5909         isfinite: Move AC_LIBOBJ invocations to module description.
5910         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5911         * modules/isfinite (configure.ac): ... to here.
5912
5913 2011-05-08  Bruno Haible  <bruno@clisp.org>
5914
5915         isblank: Move AC_LIBOBJ invocations to module description.
5916         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5917         here...
5918         * modules/isblank (configure.ac): ... to here.
5919
5920 2011-05-08  Bruno Haible  <bruno@clisp.org>
5921
5922         isapipe: Move AC_LIBOBJ invocations to module description.
5923         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5924         gl_PREREQ_ISAPIPE invocations from here...
5925         * modules/isapipe (configure.ac): ... to here.
5926         (Depends-on): Update condition.
5927
5928 2011-05-08  Bruno Haible  <bruno@clisp.org>
5929
5930         ioctl: Move AC_LIBOBJ invocations to module description.
5931         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5932         invocations from here...
5933         * modules/ioctl (configure.ac): ... to here.
5934         (Depends-on): Update condition.
5935
5936 2011-05-08  Bruno Haible  <bruno@clisp.org>
5937
5938         imaxdiv: Move AC_LIBOBJ invocations to module description.
5939         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5940         invocations from here...
5941         * modules/imaxdiv (configure.ac): ... to here.
5942
5943 2011-05-08  Bruno Haible  <bruno@clisp.org>
5944
5945         imaxabs: Move AC_LIBOBJ invocations to module description.
5946         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5947         invocations from here...
5948         * modules/imaxabs (configure.ac): ... to here.
5949
5950 2011-05-08  Bruno Haible  <bruno@clisp.org>
5951
5952         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5953         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5954         AC_LIBOBJ invocations from here...
5955         * modules/getaddrinfo (configure.ac): ... to here.
5956         (Depends-on): Add conditions.
5957
5958 2011-05-08  Bruno Haible  <bruno@clisp.org>
5959
5960         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5961         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5962         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5963         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5964         (gl_PREREQ_INET_PTON): ... from here.
5965         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5966         gl_PREREQ_INET_PTON here.
5967         (Depends-on): Update condition.
5968
5969 2011-05-08  Bruno Haible  <bruno@clisp.org>
5970
5971         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5972         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5973         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5974         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5975         (gl_PREREQ_INET_NTOP): ... from here.
5976         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5977         gl_PREREQ_INET_NTOP here.
5978         (Depends-on): Update condition.
5979
5980 2011-05-08  Bruno Haible  <bruno@clisp.org>
5981
5982         iconv_open: Move AC_LIBOBJ invocations to module description.
5983         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5984         AC_LIBOBJ invocations from here...
5985         * modules/iconv_open (configure.ac): ... to here.
5986
5987 2011-05-08  Bruno Haible  <bruno@clisp.org>
5988
5989         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5990         If module 'iconv_open' is among the main modules and module
5991         'iconv_open-utf' is among the tests dependencies, then
5992         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5993         return the special iconv_t values. Therefore iconv() and iconv_close()
5994         must support these special iconv_t values, already in lib, not only in
5995         tests.
5996         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5997         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5998         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5999         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6000         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6001         (Depends-on): Add the dependencies of iconv_open-utf.
6002         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6003         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6004         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6005
6006 2011-05-08  Bruno Haible  <bruno@clisp.org>
6007
6008         group-member: Move AC_LIBOBJ invocations to module description.
6009         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6010         gl_PREREQ_GROUP_MEMBER invocations from here...
6011         * modules/group-member (configure.ac): ... to here.
6012
6013 2011-05-08  Bruno Haible  <bruno@clisp.org>
6014
6015         grantpt: Move AC_LIBOBJ invocations to module description.
6016         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6017         invocations from here...
6018         * modules/grantpt (configure.ac): ... to here.
6019
6020 2011-05-08  Bruno Haible  <bruno@clisp.org>
6021
6022         glob: Move AC_LIBOBJ invocations to module description.
6023         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
6024         from here...
6025         * modules/glob (configure.ac): ... to here.
6026
6027 2011-05-08  Bruno Haible  <bruno@clisp.org>
6028
6029         getusershell: Move AC_LIBOBJ invocations to module description.
6030         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
6031         Move AC_LIBOBJ invocation from here...
6032         * modules/getusershell (configure.ac): ... to here.
6033         (Depends-on): Update condition.
6034
6035 2011-05-08  Bruno Haible  <bruno@clisp.org>
6036
6037         gettimeofday: Move AC_LIBOBJ invocations to module description.
6038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6039         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
6040         gl_PREREQ_GETTIMEOFDAY invocations from here...
6041         * modules/gettimeofday (configure.ac): ... to here.
6042
6043 2011-05-08  Bruno Haible  <bruno@clisp.org>
6044
6045         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
6046         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
6047         just gl_FUNC_TZSET.
6048         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
6049         (gl_FUNC_TZSET_CLOBBER): Remove actions.
6050         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
6051         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
6052
6053 2011-05-08  Bruno Haible  <bruno@clisp.org>
6054
6055         getsubopt: Move AC_LIBOBJ invocations to module description.
6056         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6057         gl_PREREQ_GETSUBOPT invocations from here...
6058         * modules/getsubopt (configure.ac): ... to here.
6059
6060 2011-05-08  Bruno Haible  <bruno@clisp.org>
6061
6062         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6063         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6064         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6065         * modules/getpass-gnu (configure.ac): ... to here.
6066
6067 2011-05-08  Bruno Haible  <bruno@clisp.org>
6068
6069         getpass: Move AC_LIBOBJ invocations to module description.
6070         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6071         gl_PREREQ_GETPASS invocations from here...
6072         * modules/getpass (configure.ac): ... to here.
6073
6074 2011-05-08  Bruno Haible  <bruno@clisp.org>
6075
6076         getpagesize: Move AC_LIBOBJ invocations to module description.
6077         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6078         from here...
6079         * modules/getpagesize (configure.ac): ... to here.
6080
6081 2011-05-08  Bruno Haible  <bruno@clisp.org>
6082
6083         getopt: Move AC_LIBOBJ invocations to module description.
6084         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6085         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6086         invocations from here...
6087         * modules/getopt-gnu (configure.ac): ... to here.
6088         * modules/getopt-posix (configure.ac): ... and here.
6089         (Depends-on): Update condition.
6090
6091 2011-05-08  Bruno Haible  <bruno@clisp.org>
6092
6093         getopt, argp: Respect rules for use of AC_LIBOBJ.
6094         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6095         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6096         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6097         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6098
6099 2011-05-08  Bruno Haible  <bruno@clisp.org>
6100
6101         getlogin_r: Move AC_LIBOBJ invocations to module description.
6102         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6103         gl_PREREQ_GETLOGIN_R invocations from here...
6104         * modules/getlogin_r (configure.ac): ... to here.
6105
6106 2011-05-08  Bruno Haible  <bruno@clisp.org>
6107
6108         getlogin: Move AC_LIBOBJ invocations to module description.
6109         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6110         here...
6111         * modules/getlogin (configure.ac): ... to here.
6112
6113 2011-05-08  Bruno Haible  <bruno@clisp.org>
6114
6115         getloadavg: Move AC_LIBOBJ invocations to module description.
6116         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6117         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6118         * modules/getloadavg (configure.ac): ... to here.
6119
6120 2011-05-08  Bruno Haible  <bruno@clisp.org>
6121
6122         gethrxtime: Move AC_LIBOBJ invocations to module description.
6123         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
6124         LIB_GETHRXTIME from here...
6125         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
6126         invocations from here...
6127         * modules/gethrxtime (configure.ac): ... to here.
6128
6129 2011-05-08  Bruno Haible  <bruno@clisp.org>
6130
6131         gethostname: Move AC_LIBOBJ invocations to module description.
6132         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
6133         gl_PREREQ_GETHOSTNAME invocations from here...
6134         * modules/gethostname (configure.ac): ... to here.
6135
6136 2011-05-08  Bruno Haible  <bruno@clisp.org>
6137
6138         getgroups: Move AC_LIBOBJ invocations to module description.
6139         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
6140         here...
6141         * modules/getgroups (configure.ac): ... to here.
6142
6143 2011-05-08  Bruno Haible  <bruno@clisp.org>
6144
6145         getdtablesize: Move AC_LIBOBJ invocations to module description.
6146         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
6147         invocation from here...
6148         * modules/getdtablesize (configure.ac): ... to here.
6149
6150 2011-05-08  Bruno Haible  <bruno@clisp.org>
6151
6152         getdomainname: Move AC_LIBOBJ invocations to module description.
6153         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
6154         gl_PREREQ_GETDOMAINNAME invocations from here...
6155         * modules/getdomainname (configure.ac): ... to here.
6156
6157 2011-05-08  Bruno Haible  <bruno@clisp.org>
6158
6159         getline: Move AC_LIBOBJ invocations to module description.
6160         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
6161         invocations from here...
6162         * modules/getline (configure.ac): ... to here.
6163
6164 2011-05-08  Bruno Haible  <bruno@clisp.org>
6165
6166         getline: Simplify.
6167         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
6168         It's already handled through the module dependency.
6169
6170 2011-05-08  Bruno Haible  <bruno@clisp.org>
6171
6172         getdelim: Move AC_LIBOBJ invocations to module description.
6173         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
6174         and gl_PREREQ_GETDELIM invocations from here...
6175         * modules/getdelim (configure.ac): ... to here.
6176         (Depends-on): Fix condition.
6177
6178 2011-05-08  Bruno Haible  <bruno@clisp.org>
6179
6180         getcwd: Move AC_LIBOBJ invocations to module description.
6181         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
6182         invocations from here...
6183         * modules/getcwd (configure.ac): ... to here.
6184
6185 2011-05-08  Bruno Haible  <bruno@clisp.org>
6186
6187         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
6188         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
6189         here...
6190         * modules/getcwd-lgpl (configure.ac): ... to here.
6191
6192 2011-05-07  Bruno Haible  <bruno@clisp.org>
6193
6194         crypto/gc: Move AC_LIBOBJ invocations to module description.
6195         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
6196         * modules/crypto/gc (configure.ac): ... to here.
6197
6198 2011-05-07  Bruno Haible  <bruno@clisp.org>
6199
6200         fwriting: Move AC_LIBOBJ invocations to module description.
6201         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
6202         here...
6203         * modules/fwriting (configure.ac): ... to here.
6204
6205 2011-05-07  Bruno Haible  <bruno@clisp.org>
6206
6207         fwritable: Move AC_LIBOBJ invocations to module description.
6208         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
6209         here...
6210         * modules/fwritable (configure.ac): ... to here.
6211
6212 2011-05-07  Bruno Haible  <bruno@clisp.org>
6213
6214         futimens: Move AC_LIBOBJ invocations to module description.
6215         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
6216         here...
6217         * modules/futimens (configure.ac): ... to here.
6218
6219 2011-05-07  Bruno Haible  <bruno@clisp.org>
6220
6221         ftruncate: Move AC_LIBOBJ invocations to module description.
6222         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
6223         gl_PREREQ_FTRUNCATE invocations from here...
6224         * modules/ftruncate (configure.ac): ... to here.
6225
6226 2011-05-07  Bruno Haible  <bruno@clisp.org>
6227
6228         fsync: Move AC_LIBOBJ invocations to module description.
6229         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
6230         invocations from here...
6231         * modules/fsync (configure.ac): ... to here.
6232
6233 2011-05-07  Bruno Haible  <bruno@clisp.org>
6234
6235         fsusage: Move AC_LIBOBJ invocations to module description.
6236         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
6237         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
6238         * modules/fsusage (configure.ac): ... to here.
6239
6240 2011-05-07  Bruno Haible  <bruno@clisp.org>
6241
6242         freopen: Move AC_LIBOBJ invocations to module description.
6243         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
6244         invocations from here...
6245         * modules/freopen (configure.ac): ... to here.
6246
6247 2011-05-07  Bruno Haible  <bruno@clisp.org>
6248
6249         free: Move AC_LIBOBJ invocations to module description.
6250         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
6251         invocations from here...
6252         * modules/free (configure.ac): ... to here.
6253
6254 2011-05-07  Bruno Haible  <bruno@clisp.org>
6255
6256         freadable: Move AC_LIBOBJ invocations to module description.
6257         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
6258         here...
6259         * modules/freadable (configure.ac): ... to here.
6260
6261 2011-05-07  Bruno Haible  <bruno@clisp.org>
6262
6263         fpurge: Move AC_LIBOBJ invocations to module description.
6264         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
6265         invocations from here...
6266         * modules/fpurge (configure.ac): ... to here.
6267
6268 2011-05-07  Bruno Haible  <bruno@clisp.org>
6269
6270         fpending: Move AC_LIBOBJ invocations to module description.
6271         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
6272         gl_FUNC_FPENDING.
6273         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
6274         invocations from here...
6275         * modules/fpending (configure.ac): ... to here.
6276
6277 2011-05-07  Bruno Haible  <bruno@clisp.org>
6278
6279         fopen: Move AC_LIBOBJ invocations to module description.
6280         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
6281         invocations from here...
6282         * modules/fopen (configure.ac): ... to here.
6283
6284 2011-05-07  Bruno Haible  <bruno@clisp.org>
6285
6286         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
6287         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
6288         gl_FUNC_FNMATCH_POSIX.
6289         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
6290         invocations from here...
6291         * modules/fnmatch (configure.ac): ... to here.
6292         * modules/fnmatch-gnu (configure.ac): ... and here.
6293
6294 2011-05-07  Bruno Haible  <bruno@clisp.org>
6295
6296         flock: Move AC_LIBOBJ invocations to module description.
6297         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
6298         invocations from here...
6299         * modules/flock (configure.ac): ... to here.
6300
6301 2011-05-07  Bruno Haible  <bruno@clisp.org>
6302
6303         fileblocks: Move AC_LIBOBJ invocations to module description.
6304         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
6305         gl_PREREQ_FILEBLOCKS invocations from here...
6306         * modules/fileblocks (configure.ac): ... to here.
6307
6308 2011-05-06  Bruno Haible  <bruno@clisp.org>
6309
6310         fflush: Move AC_LIBOBJ invocations to module description.
6311         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
6312         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
6313         invocations from here...
6314         * modules/fflush (configure.ac): ... to here.
6315
6316 2011-05-06  Bruno Haible  <bruno@clisp.org>
6317
6318         fdopendir: Move AC_LIBOBJ invocations to module description.
6319         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
6320         here...
6321         * modules/fdopendir (configure.ac): ... to here.
6322         (Depends-on): Improve conditions.
6323
6324 2011-05-06  Bruno Haible  <bruno@clisp.org>
6325
6326         _Exit: Move AC_LIBOBJ invocations to module description.
6327         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
6328         invocations from here...
6329         * modules/_Exit (configure.ac): ... to here.
6330
6331 2011-05-21  Bruno Haible  <bruno@clisp.org>
6332
6333         euidaccess: Respect rules for use of AC_LIBOBJ.
6334         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
6336         from here...
6337         * modules/euidaccess (configure.ac): ... to here.
6338
6339 2011-05-06  Bruno Haible  <bruno@clisp.org>
6340
6341         error: Move AC_LIBOBJ invocations to module description.
6342         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
6343         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
6344         invocations from here...
6345         * modules/error (configure.ac): ... to here.
6346
6347 2011-05-06  Bruno Haible  <bruno@clisp.org>
6348
6349         duplocale: Move AC_LIBOBJ invocations to module description.
6350         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
6351         gl_PREREQ_DUPLOCALE invocations from here...
6352         * modules/duplocale (configure.ac): ... to here.
6353
6354 2011-05-05  Bruno Haible  <bruno@clisp.org>
6355
6356         dirfd: Move AC_LIBOBJ invocations to module description.
6357         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
6358         gl_FUNC_DIRFD.
6359         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
6360         here...
6361         * modules/dirfd (configure.ac): ... to here.
6362         (Depends-on): Fix condition.
6363
6364 2011-05-05  Bruno Haible  <bruno@clisp.org>
6365
6366         chown: Respect rules for use of AC_LIBOBJ.
6367         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
6368         * modules/chown (configure.ac): ... to here.
6369
6370 2011-05-05  Bruno Haible  <bruno@clisp.org>
6371
6372         chdir-long: Move AC_LIBOBJ invocations to module description.
6373         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
6374         gl_PREREQ_CHDIR_LONG invocations from here...
6375         * modules/chdir-long (configure.ac): ... to here.
6376
6377 2011-05-05  Bruno Haible  <bruno@clisp.org>
6378
6379         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
6380         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
6381         from here...
6382         * modules/canonicalize-lgpl (configure.ac): ... to here.
6383
6384 2011-05-05  Bruno Haible  <bruno@clisp.org>
6385
6386         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
6387         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
6388         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
6389         REPLACE_CALLOC.
6390         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
6391         * modules/calloc-gnu (configure.ac): Likewise.
6392
6393 2011-05-05  Bruno Haible  <bruno@clisp.org>
6394
6395         btowc: Move AC_LIBOBJ invocations to module description.
6396         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
6397         invocations from here...
6398         * modules/btowc (configure.ac): ... to here.
6399
6400 2011-05-21  Bruno Haible  <bruno@clisp.org>
6401
6402         atexit: Move AC_LIBOBJ invocations to module description.
6403         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
6404         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
6405         here...
6406         * modules/atexit (configure.ac): ... to here.
6407
6408 2011-05-05  Bruno Haible  <bruno@clisp.org>
6409
6410         atoll: Move AC_LIBOBJ invocations to module description.
6411         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
6412         invocations from here...
6413         * modules/atoll (configure.ac): ... to here.
6414
6415 2011-05-05  Bruno Haible  <bruno@clisp.org>
6416
6417         argz: Move AC_LIBOBJ invocations to module description.
6418         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
6419         * modules/argz (configure.ac): ... to here.
6420
6421 2011-05-05  Bruno Haible  <bruno@clisp.org>
6422
6423         alphasort: Move AC_LIBOBJ invocations to module description.
6424         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
6425         gl_PREREQ_ALPHASORT invocations from here...
6426         * modules/alphasort (configure.ac): ... to here.
6427
6428 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
6429
6430         verify: new macro verify_expr; verify_true deprecated
6431         * NEWS: Mention this.
6432         * doc/verify.texi (Compile-time Assertions): Document this.
6433         * lib/verify.h (verify_true): Deprecate.
6434         (verify_expr): New macro.
6435         * tests/test-verify.c (function): Test verify_expr.
6436
6437 2011-06-14  Jim Meyering  <meyering@redhat.com>
6438
6439         init.sh: give more portable redirection-related advice in a comment
6440         * tests/init.sh (stderr_fileno_): Update the advice in comments.
6441         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
6442         for lots of discussion.  Stefano Lattarini suggested the solution
6443         of putting "9>&2" after the command.  Reported by Bruno Haible.
6444
6445 2011-06-13  Bruno Haible  <bruno@clisp.org>
6446
6447         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
6448         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
6449         'none'.
6450
6451 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6452
6453         ftoastr: use strtof only if HAVE_STRTOF
6454         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
6455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
6456         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
6457         * modules/ftoastr (configure.ac): Check for strtof.
6458
6459 2011-06-13  Bruno Haible  <bruno@clisp.org>
6460
6461         gnulib-tool: Addendum to 2011-06-08 commit.
6462         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
6463         and --witness-c-macro have been given, augment AM_CPPFLAGS.
6464
6465 2011-06-13  Bruno Haible  <bruno@clisp.org>
6466
6467         fseeko: Provide a non-inline replacement of fseek().
6468         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
6469         * modules/fseeko (Depends-on): Add fseek.
6470         * modules/fseek (License): Change to LGPLv2+.
6471
6472 2011-06-13  Bruno Haible  <bruno@clisp.org>
6473
6474         ftello: Provide a non-inline replacement of ftell().
6475         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
6476         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
6477         not have ftello() (such as on mingw).
6478         * modules/ftello (Depends-on): Add ftell.
6479         * modules/ftell (License): Change to LGPLv2+.
6480
6481 2011-05-07  Bruno Haible  <bruno@clisp.org>
6482
6483         ftell: Move AC_LIBOBJ invocations to module description.
6484         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
6485         * modules/ftell (configure.ac): ... to here.
6486
6487 2011-05-07  Bruno Haible  <bruno@clisp.org>
6488
6489         ftello: Respect rules for use of AC_LIBOBJ.
6490         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
6491         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
6492         here...
6493         * modules/ftello (configure.ac): ... to here.
6494
6495 2011-05-07  Bruno Haible  <bruno@clisp.org>
6496
6497         fseeko: Simplify.
6498         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
6499         (gl_FUNC_FSEEKO): Inline it here.
6500
6501 2011-05-07  Bruno Haible  <bruno@clisp.org>
6502
6503         fseek: Move AC_LIBOBJ invocations to module description.
6504         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
6505         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6506         * modules/fseek (configure.ac): ... to here.
6507
6508 2011-05-07  Bruno Haible  <bruno@clisp.org>
6509
6510         fseek: Respect rules for use of AC_LIBOBJ.
6511         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
6512         here...
6513         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
6514
6515 2011-05-07  Bruno Haible  <bruno@clisp.org>
6516
6517         fseeko: Respect rules for use of AC_LIBOBJ.
6518         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
6519         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
6520         here...
6521         * modules/fseeko (configure.ac): ... to here.
6522
6523 2011-06-13  Bruno Haible  <bruno@clisp.org>
6524
6525         gnulib-tool: Allow comments in the 'Depends-on' section.
6526         * doc/gnulib.texi (Module description): Mention comment syntax in the
6527         Depends-on section.
6528         * gnulib-tool (func_get_dependencies): Filter out comment lines.
6529
6530 2011-06-13  Bruno Haible  <bruno@clisp.org>
6531
6532         file-set.h: guard __attibute__ use, now that it's not always defined
6533         * lib/file-set.h (record_file): Use __attribute__ only with compiler
6534         versions that support it.  This fixes a coreutils build failure with
6535         the vendor cc on HP-UX 11.31.
6536
6537 2011-06-12  Bruno Haible  <bruno@clisp.org>
6538
6539         acl: Add support for HP-UX >= 11.11 JFS ACLs.
6540         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
6541         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
6542         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
6543         (acl, aclsort): New declarations.
6544         (aclv_nontrivial): New declaration.
6545         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
6546         (file_has_acl): Read also the second kind of HP-UX ACLs.
6547         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
6548         kind of HP-UX ACLs if the first kind fails.
6549         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
6550         second kind of HP-UX ACLs.
6551         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
6552         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
6553         agree.
6554         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6555         hpuxjfs.
6556         Handle hpuxjfs.
6557         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6558         hpuxjfs.
6559         Handle hpuxjfs.
6560         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6561         (func_test_same_acls): Use both lsacl and getacl.
6562         Handle hpuxjfs.
6563         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6564         (func_test_same_acls): Use both lsacl and getacl.
6565         Handle hpuxjfs.
6566
6567 2011-06-12  Bruno Haible  <bruno@clisp.org>
6568
6569         acl: Complete the 2010-08-10 fix.
6570         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6571         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6572         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6573         explicitly.
6574         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6575         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6576
6577 2011-06-12  Bruno Haible  <bruno@clisp.org>
6578
6579         spawn-pipe tests: Comments.
6580         * tests/test-spawn-pipe-child.c (main): Update comment.
6581         Reported by James Youngman <jay@gnu.org>.
6582
6583 2011-06-11  James Youngman  <jay@gnu.org>
6584
6585         New module 'stat-size'.
6586         * modules/stat-size: New module.  Provides macros for accessing
6587         file size information in instances of struct stat.  Depends on the
6588         fileblocks module because it calls st_blocks.
6589         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6590         * doc/gnulib.texi: Include stat-size.texi.
6591         * doc/stat-size.texi: Documentation for this module.
6592         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6593         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6594         AC_STRUCT_ST_BLOCKS.
6595
6596 2011-06-09  Bruno Haible  <bruno@clisp.org>
6597
6598         thread: Support pthreads-win32.
6599         * lib/glthread/thread.h (gl_thread_self): Define differently on
6600         pthreads-win32.
6601         (gl_null_thread): New declaration.
6602         (gl_thread_self_pointer): New macro.
6603         * lib/glthread/thread.c (gl_null_thread): New constant.
6604         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6605         gl_thread_self.
6606         * tests/test-tls.c: Likewise.
6607         Suggested by Paul Eggert. Reported by Eric Blake.
6608
6609 2011-06-09  Bruno Haible  <bruno@clisp.org>
6610
6611         thread: Fix confusion between NULL and 0.
6612         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6613         Reported by Paul Eggert.
6614
6615 2011-06-09  Bruno Haible  <bruno@clisp.org>
6616
6617         spawn-pipe tests: Avoid test failure on HP-UX 11.
6618         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6619         is closed.
6620
6621 2011-06-09  Bruno Haible  <bruno@clisp.org>
6622
6623         acl tests: Fix compilation error on HP-UX 11.
6624         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6625
6626 2011-06-09  Bruno Haible  <bruno@clisp.org>
6627
6628         rmdir: Avoid test failure on HP-UX 10.20.
6629         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6630         EEXIST.
6631
6632 2011-06-08  Eric Blake  <eblake@redhat.com>
6633
6634         perror: fix test on mingw
6635         * modules/perror-tests (Depends-on): Add dup2.
6636
6637         strerror_r-posix: fix on MacOS
6638         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6639         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6640         logic bug.
6641         * lib/strerror_r.c (strerror_r): Fix the bug.
6642         * lib/strerror.c (strerror): Likewise.
6643         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6644         problem.
6645         * doc/posix-functions/strerror.texi (strerror): Likewise.
6646         * doc/posix-functions/perror.texi (perror): Likewise.
6647         * tests/test-strerror.c (main): Enhance test.
6648         * tests/test-strerror_r.c (main): Likewise.
6649
6650 2011-06-08  Bruno Haible  <bruno@clisp.org>
6651
6652         gnulib-tool: Better isolation between different gnulib-tool invocations.
6653         * gnulib-tool: New option --witness-c-macro.
6654         (witness_c_macro): New variable.
6655         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6656         AM_CPPFLAGS define it as a C macro.
6657         (func_emit_tests_Makefile_am): Likewise.
6658         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6659         read it from there.
6660         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6661         m4_define, not AC_DEFUN.
6662         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6663         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6664         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6665         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6666         s|...|...|, to substitute the values of the GNULIB_* module indicator
6667         variables.
6668         * modules/dirent (Makefile.am): Likewise.
6669         * modules/fcntl-h (Makefile.am): Likewise.
6670         * modules/iconv-h (Makefile.am): Likewise.
6671         * modules/langinfo (Makefile.am): Likewise.
6672         * modules/locale (Makefile.am): Likewise.
6673         * modules/math (Makefile.am): Likewise.
6674         * modules/netdb (Makefile.am): Likewise.
6675         * modules/poll-h (Makefile.am): Likewise.
6676         * modules/pty (Makefile.am): Likewise.
6677         * modules/search (Makefile.am): Likewise.
6678         * modules/signal (Makefile.am): Likewise.
6679         * modules/spawn (Makefile.am): Likewise.
6680         * modules/stdio (Makefile.am): Likewise.
6681         * modules/stdlib (Makefile.am): Likewise.
6682         * modules/string (Makefile.am): Likewise.
6683         * modules/sys_ioctl (Makefile.am): Likewise.
6684         * modules/sys_select (Makefile.am): Likewise.
6685         * modules/sys_socket (Makefile.am): Likewise.
6686         * modules/sys_stat (Makefile.am): Likewise.
6687         * modules/sys_times (Makefile.am): Likewise.
6688         * modules/sys_utsname (Makefile.am): Likewise.
6689         * modules/sys_wait (Makefile.am): Likewise.
6690         * modules/termios (Makefile.am): Likewise.
6691         * modules/time (Makefile.am): Likewise.
6692         * modules/unistd (Makefile.am): Likewise.
6693         * modules/wchar (Makefile.am): Likewise.
6694
6695 2011-06-08  Eric Blake  <eblake@redhat.com>
6696
6697         strerror: simplify replacement
6698         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6699         * modules/strerror (configure.ac): No prereqs needed here...
6700         * modules/strerror-override (configure.ac): ...but this needs it.
6701         (Files): Add file for needed prereq macro.
6702
6703 2011-06-08  Bruno Haible  <bruno@clisp.org>
6704
6705         strerror_r-posix: Tweaks.
6706         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6707         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6709         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6710         (gl_FUNC_STRERROR_R): ... to here.
6711         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6712
6713 2011-06-07  Eric Blake  <eblake@redhat.com>
6714
6715         perror: document fixed bugs
6716         * doc/posix-functions/perror.texi (perror): Document recent
6717         patches.
6718
6719 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6720
6721         stat-time: get_stat_birthtime failure is better-defined
6722         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6723         return a timestamp whose tv_sec and tv_nsec values are both -1.
6724         Previously, the spec said only that the tv_nsec value was negative.
6725         This upward-compatible change simplifies GNU tar a bit.
6726
6727 2011-06-07  Eric Blake  <eblake@redhat.com>
6728
6729         strerror_r-posix: work around cygwin 1.7.9
6730         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6731         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6732         bug without replacing strerror_r.
6733         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6734         strerror_r is buggy, but without requiring strerror_r compilation.
6735         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6736
6737         test-perror: relax test to ignore cygwin bug
6738         * tests/test-perror2.c (main): Relax test on requiring detection
6739         of stream errors, and use unbuffered stream.
6740         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6741         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6742         * doc/posix-functions/fputc.texi (fputc): Likewise.
6743         * doc/posix-functions/fputs.texi (fputs): Likewise.
6744         * doc/posix-functions/fputws.texi (fputws): Likewise.
6745         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6746         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6747         * doc/posix-functions/getopt.texi (getopt): Likewise.
6748         * doc/posix-functions/perror.texi (perror): Likewise.
6749         * doc/posix-functions/printf.texi (printf): Likewise.
6750         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6751         * doc/posix-functions/psignal.texi (psignal): Likewise.
6752         * doc/posix-functions/putc.texi (putc): Likewise.
6753         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6754         Likewise.
6755         * doc/posix-functions/putchar.texi (putchar): Likewise.
6756         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6757         Likewise.
6758         * doc/posix-functions/puts.texi (puts): Likewise.
6759         * doc/posix-functions/putwc.texi (putwc): Likewise.
6760         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6761         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6762         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6763         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6764         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6765         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6766         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6767         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6768
6769 2011-05-22  Bruno Haible  <bruno@clisp.org>
6770
6771         strerror: Move AC_LIBOBJ invocations to module description.
6772         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6773         gl_PREREQ_STRERROR invocations from here...
6774         * modules/strerror (configure.ac): ... to here.
6775
6776 2011-05-21  Bruno Haible  <bruno@clisp.org>
6777
6778         perror: Use common idiom.
6779         * modules/perror (configure.ac): Reorder statements.
6780
6781 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6782
6783         tests: fix usage message in 'mktempd_'
6784         * tests/init.sh (mktempd_): In the usage message, use literal
6785         'mktempd_', not '$ME' (which is even undefined), as the name of
6786         the subroutine.
6787
6788 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6789
6790         tests init: new function 'fatal_', for hard errors
6791         Before this patch, the only way offered by tests/init.sh to
6792         properly signal a hard error was the `framework_failure_'
6793         function.  But the error message issued by that function,
6794         as its name would suggest, refers to a set-up failure in the
6795         testsuite, while hard errors can obviously also be due to
6796         other reasons.  The best way to fix this inconsistency is to
6797         introduce a new function with a more general error message.
6798         * tests/init.sh (fatal_): New function.
6799
6800 2011-06-06  Eric Blake  <eblake@redhat.com>
6801
6802         canonicalize-lgpl: use common idiom
6803         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6804         over newer POSIX -Rf.
6805         Reported by Bruno Haible.
6806
6807         canonicalize-lgpl: work around AIX realpath bug
6808         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6809         * doc/posix-functions/realpath.texi (realpath): Document it.
6810         Reported by Bruno Haible.
6811
6812         strerror: work around FreeBSD bug
6813         * lib/strerror.c (strerror): Special case 0.
6814         Reported by Bruno Haible.
6815
6816         strerror-override: avoid bloating errno module
6817         * modules/errno (Files, configure.ac): Move replacement strings...
6818         * modules/strerror-override: ...to new module.
6819         * modules/strerror (Depends-on): Add strerror-override.
6820         * modules/strerror_r-posix (Depends-on): Likewise.
6821         * MODULES.html.sh: Document new module.
6822         Reported by Bruno Haible.
6823
6824 2011-06-06  Bruno Haible  <bruno@clisp.org>
6825
6826         spawn-pipe tests: Rename program.
6827         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6828         * tests/test-spawn-pipe-child.c: Update comment.
6829         * tests/test-spawn-pipe.sh: Update.
6830         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6831
6832         spawn-pipe tests: Link the child program only against libc.
6833         * tests/test-spawn-pipe-child.c: New file, extracted from
6834         tests/test-spawn-pipe.c.
6835         (main): Expect only one argument.
6836         (is_open): New function, copied from tests/test-pipe.c.
6837         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6838         (child_main): Remove function.
6839         (test_pipe): Pass only one argument to the child program.
6840         (main): Remove child process code. Expect the child program's name as
6841         first argument.
6842         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6843         argument.
6844         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6845         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6846         test-spawn-pipe-child against no libraries.
6847
6848 2011-06-06  Bruno Haible  <bruno@clisp.org>
6849
6850         careadlinkat: Avoid mismatch between ssize_t and int.
6851         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6852         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6853
6854 2011-06-06  Jim Meyering  <meyering@redhat.com>
6855
6856         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6857         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6858         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6859
6860 2011-06-05  Bruno Haible  <bruno@clisp.org>
6861
6862         ansi-c++-opt: Interoperability with libtool.
6863         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6864         set the variable to "no", not to ":".
6865         * NEWS: Mention the change.
6866
6867 2011-06-05  Bruno Haible  <bruno@clisp.org>
6868
6869         acl: Fix test failure on AIX 7.
6870         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6871         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6872
6873 2011-06-05  Bruno Haible  <bruno@clisp.org>
6874
6875         pipe-filter-ii: Fix test failure on AIX and IRIX.
6876         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6877         with EAGAIN, retry with a smaller buffer size.
6878
6879 2011-06-05  Bruno Haible  <bruno@clisp.org>
6880
6881         localename: Fix link dependencies.
6882         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6883         * modules/localename-tests (Makefile.am): Link test-localename with
6884         $(LIBTHREAD).
6885
6886 2011-06-05  Bruno Haible  <bruno@clisp.org>
6887
6888         error: Avoid gcc warning.
6889         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6890
6891 2011-06-05  Bruno Haible  <bruno@clisp.org>
6892
6893         unsetenv: Avoid gcc warning.
6894         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6895
6896 2011-06-05  Bruno Haible  <bruno@clisp.org>
6897
6898         setenv: Avoid gcc warning.
6899         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6900
6901 2011-06-05  Bruno Haible  <bruno@clisp.org>
6902
6903         sys_select: Ensure memset is declared also on AIX 7.
6904         * lib/sys_select.in.h: Include <string.h> also on AIX.
6905         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6906         self-contained also on AIX 7.1.
6907
6908 2011-06-04  Jim Meyering  <meyering@redhat.com>
6909
6910         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6911         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6912         function name, "error".
6913         (_gl_translatable_diag_func_re): New configurable variable.
6914
6915 2011-06-04  Bruno Haible  <bruno@clisp.org>
6916
6917         getopt: Avoid gcc warning.
6918         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6919
6920 2011-06-04  Bruno Haible  <bruno@clisp.org>
6921
6922         strerror_r: Fix comments.
6923         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6924         commit.
6925
6926 2011-06-04  Bruno Haible  <bruno@clisp.org>
6927
6928         perror: Fix compilation error.
6929         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6930         Undefine fprintf, not sprintf.
6931         * modules/perror (Depends-on): Remove intprops, verify.
6932
6933 2011-06-04  Bruno Haible  <bruno@clisp.org>
6934
6935         setlocale: Enable replacement on Cygwin 1.5.
6936         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6937         Cygwin 1.5.x.
6938         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6939         LC_CTYPE category also exists on Cygwin 1.5.x.
6940
6941 2011-06-04  Bruno Haible  <bruno@clisp.org>
6942
6943         strerror-override: Don't disable symbol renamings.
6944         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6945         * lib/strerror-override.c: Include config.h.
6946         (strerror_override): Don't undefine.
6947
6948 2011-06-03  Bruno Haible  <bruno@clisp.org>
6949
6950         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6951         * lib/localename.h: Update copyright header.
6952         * lib/localename.c: Likewise.
6953         * lib/relocatable.h: Likewise.
6954         * lib/relocatable.c: Likewise.
6955
6956 2011-06-02  Bruno Haible  <bruno@clisp.org>
6957
6958         doc: Fix a module name.
6959         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6960
6961 2011-06-02  Bruno Haible  <bruno@clisp.org>
6962
6963         pipe2: Remove dependency on 'nonblocking' module.
6964         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6965         O_NONBLOCK is defined by gnulib.
6966         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6967         is zero.
6968         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6969         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6970         defined by gnulib.
6971         (get_nonblocking_flag): New function.
6972         (main): Test O_NONBLOCK flag only if it is nonzero.
6973         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6974
6975 2011-06-03  Jim Meyering  <meyering@redhat.com>
6976
6977         maint: three new prohibit-header-without-use rules
6978         Prohibit use of cloexec.h, posixver.h, same.h without use.
6979         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6980         (sc_prohibit_posixver_without_use): Likewise.
6981         (sc_prohibit_same_without_use): Likewise.
6982
6983 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6984
6985         allocator: 'die' routine is now given requested size
6986         * lib/allocator.h (struct allocator.die): New size arg.
6987         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6988         If the actual problem is an ssize_t limitation, not a size_t or
6989         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6990
6991 2011-06-01  Eric Blake  <eblake@redhat.com>
6992
6993         strerror: drop strerror_r dependency
6994         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6995         * lib/strerror-override.c (strerror_override): ...to new file.
6996         * lib/strerror-override.h: Add prototype.
6997         * lib/strerror-impl.h: Delete.
6998         * lib/strerror.c (strerror): New implementation.
6999         * modules/errno (Files): Add new files.
7000         (configure.ac): Compile new file as appropriate.
7001         * modules/strerror (Files): Drop unused file.
7002         (Depends-on): Drop strerror_r-posix.
7003         * MODULES.html.sh: Document strerror_r-posix.
7004         Requested by Sam Steingold.
7005
7006         perror: call strerror_r directly
7007         * modules/perror (Files): Drop strerror-impl.h.
7008         * lib/perror.c (perror): Use our own stack buffer, rather than
7009         calling a wrapper that uses static storage.
7010         * doc/posix-functions/perror.texi (perror): Document a limitation
7011         of our replacement.
7012
7013         strerror_r: fix includes for FreeBSD
7014         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7015         since we use abort on some platforms.
7016         Reported by Matthias Bolte.
7017
7018 2011-05-31  Bruno Haible  <bruno@clisp.org>
7019
7020         Fix link errors in tests: openat-die uses gettext-h.
7021         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
7022         against $(LIBINTL).
7023         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
7024         against $(LIBINTL).
7025         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
7026         $(LIBINTL).
7027         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
7028         against $(LIBINTL).
7029         * modules/linkat-tests (Makefile.am): Link test-linkat against
7030         $(LIBINTL).
7031         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
7032         $(LIBINTL).
7033         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
7034         against $(LIBINTL).
7035         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
7036         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
7037         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
7038         $(LIBINTL).
7039         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
7040         $(LIBINTL).
7041         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
7042         $(LIBINTL).
7043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7044
7045 2011-05-31  Bruno Haible  <bruno@clisp.org>
7046
7047         Fix link errors in tests: wait-process uses gettext-h.
7048         * modules/nonblocking-pipe-tests (Makefile.am): Set
7049         test_nonblocking_pipe_main_LDADD.
7050         * modules/nonblocking-socket-tests (Makefile.am): Link
7051         test-nonblocking-socket-main against $(LIBINTL).
7052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7053
7054 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7055
7056         assert-h: work around 'verify' incompatibility
7057         * lib/verify.h: Use @...@ directives, not ifdef.
7058         * modules/assert-h (assert.h): Implement the directives.
7059         (assert.h): Substitute the symbol-prefix more consistently.
7060
7061 2011-05-29  Jim Meyering  <meyering@redhat.com>
7062
7063         trim: remove three superfluous assignments
7064         * lib/trim.c (trim2): Remove three superfluous assignments
7065         and correct brace positioning.
7066
7067 2011-05-29  Bruno Haible  <bruno@clisp.org>
7068
7069         wctype-h: Avoid namespace pollution on Solaris 2.6.
7070         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7071         identifiers.
7072         * doc/posix-headers/wctype.texi: Mention the problem.
7073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7074
7075 2011-05-28  Jim Meyering  <meyering@redhat.com>
7076
7077         parse-datetime.y: accommodate -Wstrict-overflow
7078         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7079         placate -Wstrict-overflow.
7080
7081         trim: avoid a warning from -O2 -Wstrict-overflow
7082         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7083
7084 2011-05-29  Bruno Haible  <bruno@clisp.org>
7085
7086         gnulib-tool: Fix bug in yesterday's commit.
7087         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7088         twice.
7089
7090 2011-05-29  Bruno Haible  <bruno@clisp.org>
7091
7092         Allow multiple gnulib generated include files to be combined.
7093         * gnulib-tool (func_compute_include_guard_prefix): New function.
7094         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7095         ${gl_include_guard_prefix} references.
7096         (func_import, func_create_testdir): Invoke
7097         func_compute_include_guard_prefix.
7098         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7099         * lib/ctype.in.h: Likewise.
7100         * lib/dirent.in.h: Likewise.
7101         * lib/errno.in.h: Likewise.
7102         * lib/fcntl.in.h: Likewise.
7103         * lib/float.in.h: Likewise.
7104         * lib/getopt.in.h: Likewise.
7105         * lib/iconv.in.h: Likewise.
7106         * lib/langinfo.in.h: Likewise.
7107         * lib/locale.in.h: Likewise.
7108         * lib/math.in.h: Likewise.
7109         * lib/netdb.in.h: Likewise.
7110         * lib/netinet_in.in.h: Likewise.
7111         * lib/poll.in.h: Likewise.
7112         * lib/pthread.in.h: Likewise.
7113         * lib/pty.in.h: Likewise.
7114         * lib/sched.in.h: Likewise.
7115         * lib/se-selinux.in.h: Likewise.
7116         * lib/search.in.h: Likewise.
7117         * lib/signal.in.h: Likewise.
7118         * lib/spawn.in.h: Likewise.
7119         * lib/stdarg.in.h: Likewise.
7120         * lib/stddef.in.h: Likewise.
7121         * lib/stdint.in.h: Likewise.
7122         * lib/stdio.in.h: Likewise.
7123         * lib/stdlib.in.h: Likewise.
7124         * lib/string.in.h: Likewise.
7125         * lib/strings.in.h: Likewise.
7126         * lib/sys_file.in.h: Likewise.
7127         * lib/sys_ioctl.in.h: Likewise.
7128         * lib/sys_select.in.h: Likewise.
7129         * lib/sys_socket.in.h: Likewise.
7130         * lib/sys_stat.in.h: Likewise.
7131         * lib/sys_time.in.h: Likewise.
7132         * lib/sys_times.in.h: Likewise.
7133         * lib/sys_uio.in.h: Likewise.
7134         * lib/sys_utsname.in.h: Likewise.
7135         * lib/sys_wait.in.h: Likewise.
7136         * lib/sysexits.in.h: Likewise.
7137         * lib/termios.in.h: Likewise.
7138         * lib/time.in.h: Likewise.
7139         * lib/unistd.in.h: Likewise.
7140         * lib/wchar.in.h: Likewise.
7141         * lib/wctype.in.h: Likewise.
7142         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
7143         * modules/ctype (Makefile.am): Likewise.
7144         * modules/dirent (Makefile.am): Likewise.
7145         * modules/errno (Makefile.am): Likewise.
7146         * modules/fcntl-h (Makefile.am): Likewise.
7147         * modules/float (Makefile.am): Likewise.
7148         * modules/getopt-posix (Makefile.am): Likewise.
7149         * modules/iconv-h (Makefile.am): Likewise.
7150         * modules/langinfo (Makefile.am): Likewise.
7151         * modules/locale (Makefile.am): Likewise.
7152         * modules/math (Makefile.am): Likewise.
7153         * modules/netdb (Makefile.am): Likewise.
7154         * modules/netinet_in (Makefile.am): Likewise.
7155         * modules/poll-h (Makefile.am): Likewise.
7156         * modules/pthread (Makefile.am): Likewise.
7157         * modules/pty (Makefile.am): Likewise.
7158         * modules/sched (Makefile.am): Likewise.
7159         * modules/search (Makefile.am): Likewise.
7160         * modules/selinux-h (Makefile.am): Likewise.
7161         * modules/signal (Makefile.am): Likewise.
7162         * modules/spawn (Makefile.am): Likewise.
7163         * modules/stdarg (Makefile.am): Likewise.
7164         * modules/stddef (Makefile.am): Likewise.
7165         * modules/stdint (Makefile.am): Likewise.
7166         * modules/stdio (Makefile.am): Likewise.
7167         * modules/stdlib (Makefile.am): Likewise.
7168         * modules/string (Makefile.am): Likewise.
7169         * modules/strings (Makefile.am): Likewise.
7170         * modules/sys_file (Makefile.am): Likewise.
7171         * modules/sys_ioctl (Makefile.am): Likewise.
7172         * modules/sys_select (Makefile.am): Likewise.
7173         * modules/sys_socket (Makefile.am): Likewise.
7174         * modules/sys_stat (Makefile.am): Likewise.
7175         * modules/sys_time (Makefile.am): Likewise.
7176         * modules/sys_times (Makefile.am): Likewise.
7177         * modules/sys_uio (Makefile.am): Likewise.
7178         * modules/sys_utsname (Makefile.am): Likewise.
7179         * modules/sys_wait (Makefile.am): Likewise.
7180         * modules/sysexits (Makefile.am): Likewise.
7181         * modules/termios (Makefile.am): Likewise.
7182         * modules/time (Makefile.am): Likewise.
7183         * modules/unistd (Makefile.am): Likewise.
7184         * modules/wchar (Makefile.am): Likewise.
7185         * modules/wctype-h (Makefile.am): Likewise.
7186         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
7187
7188 2011-05-29  Bruno Haible  <bruno@clisp.org>
7189
7190         assert-h: Allow multiple gnulib generated replacements to coexist.
7191         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
7192
7193 2011-05-29  Bruno Haible  <bruno@clisp.org>
7194
7195         argp: Allow coexistence with strerror_r-posix module.
7196         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
7197         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
7198         by gnulib's <string.h> replacement), assume it has the POSIX signature,
7199         not the glibc signature.
7200
7201 2011-05-28  Bruno Haible  <bruno@clisp.org>
7202
7203         gnulib-tool: Alternative structure of testdirs, similar to --import.
7204         * gnulib-tool: New option --single-configure.
7205         (func_usage): Document it.
7206         (single_configure): New variable.
7207         (func_modules_transitive_closure_separately,
7208         func_modules_transitive_closure_separately,
7209         func_determine_use_libtests, func_modules_add_dummy_separately,
7210         func_modules_to_filelist_separately): New functions, extracted from
7211         func_import.
7212         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
7213         (func_import): Use the new functions.
7214         (func_create_testdir): Set final_modules. Handle $single_configure =
7215         true case.
7216
7217 2011-05-28  Bruno Haible  <bruno@clisp.org>
7218
7219         getloadavg: Remove an unreliable safety check.
7220         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
7221         getloadavg.c is in place.
7222         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
7223         Reported by Sam Steingold <sds@gnu.org>.
7224
7225 2011-05-28  Bruno Haible  <bruno@clisp.org>
7226
7227         doc: Cleanup yet another file produced by texinfo.tex.
7228         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
7229
7230 2011-05-28  Bruno Haible  <bruno@clisp.org>
7231
7232         Finish the conditional dependencies mechanism.
7233         * gnulib-tool: New option --no-conditional-dependencies.
7234         (func_usage): Document it. Don't mark --conditional-dependencies as
7235         experimental.
7236         (cond_dependencies): The possible values can now be true, false, empty.
7237         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
7238         (func_import): Store setting in gnulib-cache.m4 and read it from there.
7239         * doc/gnulib-tool.texi (Conditional dependencies): New section.
7240
7241 2011-05-28  Bruno Haible  <bruno@clisp.org>
7242
7243         doc: Use a recent texinfo.tex.
7244         * doc/Makefile (tex_opts): New variable.
7245         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
7246
7247 2011-05-28  Jim Meyering  <meyering@redhat.com>
7248
7249         intprops.h: adjust comment to match code change
7250         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
7251         only once, it *may* have side effects.  Also fix an unrelated typo.
7252         (_GL_INT_SIGNED): Likewise.
7253
7254 2011-05-26  Simon Josefsson  <simon@josefsson.org>
7255
7256         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
7257
7258 2011-05-26  Bruno Haible  <bruno@clisp.org>
7259
7260         mbsrchr: Avoid collision with system function on Interix.
7261         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
7262         Reported by Markus Duft <mduft@gentoo.org>.
7263
7264 2011-05-15  James Youngman  <jay@gnu.org>
7265
7266         getopt: for ambiguous options, enumerate the possibilities.
7267         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
7268         the ambiguous options when an ambiguous prefix is given. This was
7269         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
7270         glibc change was
7271         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
7272
7273 2011-05-25  Eric Blake  <eblake@redhat.com>
7274
7275         getcwd: work around mingw bug
7276         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
7277         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7278         Reported by Matthias Bolte.
7279
7280 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7281
7282         test-intprops: disable -Wtype-limits diagnostics
7283         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
7284         diagnostics.  Otherwise, the integer overflow macros generate many
7285         diagnostics.  Reported by Jim Meyering in
7286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7287
7288         intprops: shorten, to pacify gcc -Woverlength-strings
7289         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
7290         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
7291         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
7292         likely to run afoul of C compiler limits for string constant lengths.
7293         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
7294
7295 2011-05-24  Eric Blake  <eblake@redhat.com>
7296
7297         docs: document recently fixed glibc printf bug
7298         * doc/posix-functions/fprintf.texi (fprintf): Document it.
7299         * doc/posix-functions/printf.texi (printf): Likewise.
7300         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7301         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7302
7303         closein-tests: convert to init.sh
7304         * modules/closein-tests (Files): Add init.sh
7305         * tests/test-closein.sh Use it.
7306
7307         yesno-tests: convert to init.sh
7308         * modules/yesno-tests (Files): Add init.sh.
7309         * tests/test-yesno.sh: Use it.
7310
7311         atexit-tests: ensure reliable exit status
7312         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
7313         Reported by Bruno Haible.
7314
7315 2011-05-24  Bruno Haible  <bruno@clisp.org>
7316
7317         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
7318         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
7319         gl_PREREQ_STRERROR_R invocations from here...
7320         * modules/strerror_r-posix (configure.ac): ... to here.
7321
7322 2011-05-24  Eric Blake  <eblake@redhat.com>
7323
7324         strerror_r: fix missing header
7325         * lib/strerror_r.c: Avoid compiler warning about snprintf.
7326
7327         strerror_r: fix AIX test failures
7328         * lib/strerror_r.c (strerror_r): Convert silent truncation to
7329         ERANGE failure.
7330
7331         strerror_r: fix Solaris test failures
7332         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
7333         failures.
7334         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7335
7336         strerror_r: enforce POSIX recommendations
7337         * lib/strerror_r.c (safe_copy): New helper method.
7338         (strerror_r): Guarantee a non-empty string.
7339         * tests/test-strerror_r.c (main): Enhance tests to incorporate
7340         recent POSIX rulings and to match our strerror guarantees.
7341         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
7342
7343 2011-05-24  Jim Meyering  <meyering@redhat.com>
7344
7345         test-perror2.c: avoid warning about unused variable
7346         * tests/test-perror2.c (main): Remove declaration of unused "fp".
7347
7348 2011-05-24  Eric Blake  <eblake@redhat.com>
7349
7350         perror: avoid spurious test failure on HP-UX
7351         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
7352
7353         tests: fix logic bug in init.sh
7354         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
7355         shell.
7356
7357 2011-05-24  Jim Meyering  <meyering@redhat.com>
7358
7359         utimensat: do not reference an out-of-scope buffer
7360         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
7361         declared in an inner scope, yet "times" would be dereferenced outside
7362         the scope in which "ts" was valid.
7363         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
7364         of ts[2] "out/up", so that the use of aliased "times" (via
7365         "times = ts;") does not end up referencing an out-of-scope "ts"
7366
7367         opendir-safer.c: don't clobber errno; don't close negative FD
7368         * lib/opendir-safer.c (opendir_safer):
7369         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
7370         file descriptor, and more importantly, don't clobber the
7371         offending errno value with EINVAL.  Before, upon failure
7372         of dup_safer, we would pass the negative file descriptor to
7373         fdopendir, which would clobber errno.
7374
7375 2011-05-23  Bruno Haible  <bruno@clisp.org>
7376
7377         idcache: Fix module description.
7378         * modules/idcache (Include): Set to "idcache.h".
7379
7380 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7381
7382         gnulib-tool: fix portability problem with MacOS sed
7383         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
7384         before the "}".  Problem reported by Leo in
7385         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
7386         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
7387         sed_extract_condition1, sed_extract_condition2.
7388
7389 2011-05-23  Bruno Haible  <bruno@clisp.org>
7390
7391         hash: Simplify autoconf macro.
7392         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
7393
7394 2011-05-23  Bruno Haible  <bruno@clisp.org>
7395
7396         getugroups: Fix module description.
7397         * modules/getugroups (Include): Set to "getugroups.h".
7398
7399 2011-05-23  Bruno Haible  <bruno@clisp.org>
7400
7401         linkat: Simplify autoconf macro.
7402         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
7403
7404 2011-05-23  Bruno Haible  <bruno@clisp.org>
7405             Eric Blake  <eblake@redhat.com>
7406
7407         linkat, renameat: Update dependencies.
7408         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
7409         * modules/linkat (Depends-on): Likewise. Remove also readlink,
7410         symlinkat.
7411
7412 2011-05-23  Jim Meyering  <meyering@redhat.com>
7413
7414         maint.mk: more tight_scope improvements
7415         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
7416         (_gl_TS_headers): Define only in if-0'd block.
7417         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
7418         sometimes we must *not* use it.  Adjust uses accordingly.
7419         (sc_tight_scope): Use much simpler grep-based test to determine
7420         whether we skip this rule.
7421
7422         maint.mk: generalize/improve the tight-scope rule
7423         * top/maint.mk: Emit a warning when the test is skipped.
7424         (_gl_TS_dir): Add $(srcdir)/ prefix.
7425         (_gl_TS_function_match): Simplify, rather than trying
7426         to enumerate common types.  Otherwise, it would fail to match an
7427         "extern unsigned char const *" declaration in idutils.
7428         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
7429         a way to support use of that type of macro.
7430         (_gl_TS_var_match): Simplify regexp.
7431         (_gl_TS_obj_files): New configurable variable.
7432         (_gl_TS_headers): Likewise.
7433
7434 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7435
7436         verify: fix bug when gnulib <assert.h> is also included
7437         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
7438         is defined, not if _GL_STATIC_ASSERT_H is not defined.
7439         Perhaps there's a better way, but this fixes the immediate problem.
7440         Problem reported by Bruno Haible in
7441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
7442
7443 2011-05-22  Bruno Haible  <bruno@clisp.org>
7444
7445         xgetcwd: Simplify autoconf macro.
7446         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
7447
7448 2011-05-22  Bruno Haible  <bruno@clisp.org>
7449
7450         New module 'mktime-internal'.
7451         * modules/mktime-internal: New file.
7452         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
7453         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
7454         mktime_internal as a C macro if libc has __mktime_internal.
7455         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
7456         conditions.
7457         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
7458
7459 2011-05-22  Bruno Haible  <bruno@clisp.org>
7460
7461         timegm: Correct mktime replacement statements.
7462         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
7463         defining mktime as a C macro. This completes a 2009-07-28 commit.
7464
7465 2011-05-22  Bruno Haible  <bruno@clisp.org>
7466
7467         timegm: Simplify autoconf macro.
7468         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
7469
7470 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
7471
7472         clock-time: change to LGPLv2+.
7473         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
7474         BSD-like but we have no mark for that; this is good enough for now.
7475
7476 2011-05-21  Bruno Haible  <bruno@clisp.org>
7477
7478         strerror_r: Fix comments.
7479         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
7480
7481 2011-05-21  Bruno Haible  <bruno@clisp.org>
7482
7483         relocatable-prog-wrapper: Fix possible link error.
7484         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
7485         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
7486         (gl_FUNC_SETENV): ... to here.
7487         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
7488         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
7489
7490 2011-05-21  Bruno Haible  <bruno@clisp.org>
7491
7492         relocatable-prog-wrapper: Assume strerror() exists.
7493         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
7494         m4/strerror.m4.
7495         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
7496         * lib/relocwrapper.c: Remove mention of strerror module.
7497         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
7498         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
7499         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
7500         C macro.
7501
7502 2011-05-21  Bruno Haible  <bruno@clisp.org>
7503
7504         select: Simplify replacement idiom.
7505         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
7506         Win32 platforms.
7507         * lib/sys_select.in.h (select): Simplify accordingly.
7508         * modules/select (Depends-on): Likewise.
7509
7510 2011-05-21  Bruno Haible  <bruno@clisp.org>
7511
7512         mkdir-p: Simplify autoconf macro.
7513         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
7514         gl_FUNC_LCHOWN.
7515
7516 2011-05-21  Eric Blake  <eblake@redhat.com>
7517
7518         strerror_r: avoid clobbering strerror on cygwin
7519         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
7520         fall back instead to sys_errlist.
7521         * modules/strerror (configure.ac): Add witness.
7522         * tests/test-strerror_r.c (main): Enhance test.
7523         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7524         * tests/test-perror2.c (main): Free memory before exit.
7525
7526 2011-05-21  Bruno Haible  <bruno@clisp.org>
7527
7528         mkdtemp: Use gnulib naming conventions.
7529         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
7530         * modules/mkdtemp (configure.ac): Update.
7531
7532 2011-05-20  Eric Blake  <eblake@redhat.com>
7533
7534         strerror_r: avoid corrupting errno on Solaris
7535         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
7536         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7537
7538         strerror_r: avoid compiler warning
7539         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
7540
7541         strerror_r: simplify AIX code
7542         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
7543
7544         test-perror: avoid spurious failure on FreeBSD
7545         * modules/perror-tests (Depends-on): Add strerror, now that
7546         strerror_r no longer pulls it in.
7547
7548 2011-05-20  Bruno Haible  <bruno@clisp.org>
7549
7550         strerror_r-posix: Remove unused dependencies.
7551         * modules/strerror_r-posix (Depends-on): Remove strerror.
7552         Reported by Eric Blake.
7553
7554 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7555
7556         intprops: remove assumption about A|B representation
7557         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7558         is a valid integer if both A and B are.  Although this is true for
7559         all known practical hosts, the C standard doesn't guarantee it,
7560         and the code need not assume it.  Also, this change may work around
7561         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7563
7564 2011-05-20  Eric Blake  <eblake@redhat.com>
7565
7566         perror: work around FreeBSD bug
7567         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7568         is broken.  Move AC_LIBOBJ...
7569         * modules/perror (configure.ac): Here.
7570         * doc/posix-functions/perror.texi (perror): Document this.
7571         * tests/test-perror2.c (main): Enhance test.
7572
7573         test-perror: check for strerror interactions
7574         * tests/macros.h (STREQ): Add macro.
7575         * modules/perror-tests (Files): Add second test.
7576         * tests/test-perror2.c (main): New file.
7577         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7578
7579         test-perror: rewrite to use init script
7580         * modules/perror-tests (Files): Add init.sh.
7581         * tests/test-perror.sh: Use temporary directory.
7582
7583 2011-05-20  Jim Meyering  <meyering@redhat.com>
7584
7585         maint: replace misused "a" with "an"
7586         * doc/intprops.texi: "a integer"
7587         * doc/regex.texi: "a explanation"
7588         * lib/alignof.h: "a object"
7589         * lib/argmatch.h: "a explanation"
7590         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7591         * lib/stdint.in.h: "a integer"
7592         * lib/userspec.c: "a owner"
7593         * doc/gnulib.texi: Fix "a idea", and reword.
7594
7595 2011-05-19  Jim Meyering  <meyering@redhat.com>
7596
7597         maint: correct misuse of "a" and "an"
7598         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7599         * lib/argp-help.c: "an docum...": s/an/a/
7600         * lib/argp-parse.c: "An vector": s/An/A/
7601         * lib/execute.c: "an native": s/an/a/
7602         * lib/spawn-pipe.c: Likewise.
7603         * lib/gc.h: "an Gc_rc": s/an/a/
7604         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7605         * lib/fts.c: "an stat.st_dev": s/an/a/
7606
7607 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7608
7609         intprops-tests: work around HP-UX 11.23 cc bug with constants
7610         * tests/test-intprops.c (VERIFY): New macro.
7611         (main): Use it, instead of verify, to work around the compiler bug; see
7612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7613
7614         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7615         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7616         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7617         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7618         (_GL_REMAINDER_OVERFLOW): Use it.
7619
7620         intprops-tests: revert unsigned part of previous change
7621         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7622         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7623         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7625
7626 2011-05-19  Bruno Haible  <bruno@clisp.org>
7627
7628         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7629         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7630         strerror_r() returned without filling the buffer.
7631         Reported by Eric Blake.
7632
7633 2011-05-19  Eric Blake  <eblake@redhat.com>
7634
7635         strerror_r: guarantee unchanged errno
7636         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7637         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7638         failure.
7639         * tests/test-strerror_r.c (main): Enhance test.
7640
7641 2011-05-19  Bruno Haible  <bruno@clisp.org>
7642
7643         strerror_r: Reorder #if blocks.
7644         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7645         for consistency with the previous commit.
7646
7647 2011-05-19  Bruno Haible  <bruno@clisp.org>
7648
7649         perror: Avoid clobbering the strerror buffer when possible.
7650         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7651         * lib/strerror.c: Include it.
7652         * modules/strerror (Files): Add lib/strerror-impl.h.
7653         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7654         (my_strerror): New function, defined through lib/strerror-impl.h.
7655         (perror): Use it instead of strerror.
7656         * modules/perror (Files): Add lib/strerror-impl.h.
7657         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7658
7659 2011-05-19  Eric Blake  <eblake@redhat.com>
7660
7661         strerror_r: fix on newer cygwin
7662         * lib/strerror_r.c (strerror_r): Cygwin now has
7663         __xpg_strerror_r, use it.
7664
7665 2011-05-19  Bruno Haible  <bruno@clisp.org>
7666
7667         strerror_r: Avoid clobbering the strerror buffer when possible.
7668         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7669         (sys_nerr, sys_errlist): New declarations.
7670         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7671         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7672         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7673
7674 2011-05-19  Bruno Haible  <bruno@clisp.org>
7675
7676         strerror_r: Fix test failure on mingw.
7677         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7678         EXTEND_STRERROR_R.
7679         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7680         macros from errno.in.h instead.
7681
7682 2011-05-19  Eric Blake  <eblake@redhat.com>
7683
7684         strerror: relax test for Solaris
7685         * tests/test-strerror.c (main): Permit Solaris behavior.
7686         * tests/test-strerror_r.c (main): Likewise.
7687
7688         strerror: enforce POSIX ruling on strerror(0)
7689         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7690         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7691         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7692         * doc/posix-functions/strerror.texi (strerror): Document it.
7693         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7694         * tests/test-strerror.c (main): Strengthen test.
7695         * tests/test-strerror_r.c (main): Likewise.
7696
7697 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7698
7699         intprop-tests: port to older and more-pedantic compilers
7700         * modules/intprops-tests (Files): Add tests/macros.h.
7701         * tests/test-intprops.c: Include macros.h.
7702         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7703         it's no longer documented to expand to an integer constant expression.
7704         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7705         argument is floating point, as it's no longer documented to expand
7706         to an integer constant expression in that case.
7707         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7708         compiler bugs reported by Bruno Haible.  See
7709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7710         (U0, U1): New constants, to work around the same bugs.  Also,
7711         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7712
7713         intprops: work around C compiler bugs
7714         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7715         bug in Sun C 5.11 2010/08/13 and other compilers; see
7716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7717
7718         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7719         * doc/intprops.texi (Integer Type Determination): Fix
7720         documentation for TYPE_IS_INTEGER: it returns an constant
7721         expression, not an integer constant expression.  Fix doc for
7722         TYPE_SIGNED: it returns an integer constant expression only if its
7723         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7724         hardly worth documented that way....)
7725
7726 2011-05-18  Bruno Haible  <bruno@clisp.org>
7727
7728         strerror_r: Avoid clobbering the strerror buffer when possible.
7729         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7730         Handle gnulib defined errno values here. When strerror() returns NULL
7731         or an empty string, return EINVAL.
7732         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7733         gnulib defined errno values here.
7734         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7735
7736 2011-05-18  Eric Blake  <eblake@redhat.com>
7737
7738         fnmatch: avoid compiler warning
7739         * lib/fnmatch_loop.c (FCT): Use correct type.
7740         Reported by Matthias Bolte.
7741
7742 2011-05-13  Jim Meyering  <meyering@redhat.com>
7743
7744         maint.mk: three new prohibit_<HDR>_without_use rules
7745         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7746         (sc_prohibit_stdio-safer_without_use): Likewise.
7747         (sc_prohibit_xfreopen_without_use): Likewise.
7748
7749 2011-05-17  Jim Meyering  <meyering@redhat.com>
7750
7751         announce-gen: fail if the NEWS delta is empty
7752         If there's nothing noteworthy in NEWS, then either you forgot
7753         or you shouldn't be releasing.
7754         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7755
7756 2011-05-17  Pádraig Brady <P@draigBrady.com>
7757
7758         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7759         reserved symbols starting with double underscore from the check.
7760
7761 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7762
7763         intprops: add doc
7764         * doc/intprops.texi: New file, documenting intprops.
7765         * doc/gnulib.texi (Particular Modules): Include it.
7766
7767         verify: add doc to gnulib manual and fix example
7768         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7769         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7770         (Compile-time Assertions): Fix example so it can't overflow.
7771
7772 2011-05-17  Jim Meyering  <meyering@redhat.com>
7773
7774         warnings.m4: don't usurp save_CPPFLAGS variable name
7775         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7776
7777         doc: fix typo
7778         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7779
7780 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7781             Bruno Haible  <bruno@clisp.org>
7782
7783         doc: Tweak recent change.
7784         * README (Portability guidelines): Tweak new text.
7785         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7786         Interix 6.1.
7787
7788 2011-05-16  Eric Blake  <eblake@redhat.com>
7789
7790         inttypes: avoid autoconf warning
7791         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7792         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7793
7794 2011-05-16  Sam Steingold <sds@gnu.org>
7795         and Eric Blake  <eblake@redhat.com>
7796
7797         vc-list-files: accept multiple directory operands
7798         * build-aux/vc-list-files: Iterate over all remaining operands.
7799
7800 2011-05-16  Bruno Haible  <bruno@clisp.org>
7801
7802         Fix confusion regarding deprecated modules.
7803         * modules/calloc (Status, Notice): Mark module as deprecated, not
7804         obsolete.
7805         * modules/fnmatch-posix (Status, Notice): Likewise.
7806         * modules/getdate (Status, Notice): Likewise.
7807         * modules/getopt (Status, Notice): Likewise.
7808         * modules/malloc (Status, Notice): Likewise.
7809         * modules/pipe (Status, Notice): Likewise.
7810         * modules/realloc (Status, Notice): Likewise.
7811         * modules/rename-dest-slash (Status, Notice): Likewise.
7812         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7813         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7814         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7815         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7816         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7817
7818 2011-05-16  Bruno Haible  <bruno@clisp.org>
7819
7820         doc: List the target platforms.
7821         * doc/gnulib-intro.texi (Target Platforms): New section.
7822         * doc/gnulib.texi (Introduction): Update menu.
7823         * README (Portability guidelines): Refer to the new section. Update
7824         statement about oldest supported environment. Remove rationale why
7825         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7826         unportable C89 function.
7827         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7828         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7829
7830 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7831
7832         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7833
7834 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7835
7836         intprops-tests: new module
7837         * modules/intprops-tests, tests/test-intprops.c: New files.
7838
7839         intprops: add safe, portable integer overflow checking
7840         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7841         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7842         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7843         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7844         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7845         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7846         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7847         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7848         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7849         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7850         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7851
7852 2011-05-12  James Youngman  <jay@gnu.org>
7853
7854         Add a test for glibc's Bugzilla bug #12378.
7855         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7856         doesn't allow the literal matching of a lone "[" (which is
7857         required by POSIX).
7858         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7859
7860 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7861
7862         Sync glibc change fixing Bugzilla bug #12378.
7863         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7864         beginning and fall back to matching as normal character if the
7865         string ends before the matching ']' is found.  This is what POSIX
7866         requires.
7867
7868 2011-05-13  Eric Blake  <eblake@redhat.com>
7869
7870         getcwd-lgpl: relax test for FreeBSD
7871         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7872         issue.
7873         * tests/test-getcwd-lgpl.c (main): Relax test.
7874         Reported by Matthias Bolte.
7875
7876 2011-05-11  Eric Blake  <eblake@redhat.com>
7877
7878         test-fflush: silence compiler warning
7879         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7880
7881 2011-05-11  Bruno Haible  <bruno@clisp.org>
7882
7883         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7884         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7885         * modules/canonicalize (Depends-on): Add 'nocrash'.
7886         * modules/canonicalize-lgpl (Depends-on): Likewise.
7887         * doc/posix-functions/realpath.texi: Update platforms list.
7888         Reported by Ryan Schmidt <ryandesign@macports.org>.
7889
7890 2011-05-11  Bruno Haible  <bruno@clisp.org>
7891
7892         group-member: Declare function in <unistd.h>.
7893         * lib/unistd.in.h (group_member): New declaration.
7894         * lib/group-member.h: Remove file.
7895         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7896         * tests/test-unistd-c++.cc: Check signature of group_member.
7897         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7898         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7899         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7900         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7901         HAVE_GROUP_MEMBER.
7902         * modules/group-member (Files): Remove lib/group-member.h.
7903         (Depends-on): Add unistd. Specify conditions.
7904         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7905         (Include): Change to <unistd.h>.
7906         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7907         HAVE_GROUP_MEMBER.
7908         * NEWS: Mention the change.
7909         * lib/euidaccess.c: Don't include group-member.h.
7910
7911 2011-05-11  Bruno Haible  <bruno@clisp.org>
7912
7913         group-member: Document module.
7914         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7915         module.
7916
7917 2011-05-11  Bruno Haible  <bruno@clisp.org>
7918
7919         fclose: Fix mistake earlier today.
7920         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7921
7922 2011-05-11  Eric Blake  <eblake@redhat.com>
7923
7924         fclose: preserve fflush errors
7925         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7926         Reported by Jim Meyering.
7927
7928         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7929         * build-aux/bootstrap (check_versions): When no specific version
7930         is required, merely check that the app produces an exit status
7931         that indicates its existence.
7932
7933         maint.mk: drop redundant check
7934         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7935         the same but better.
7936
7937 2011-05-11  Bruno Haible  <bruno@clisp.org>
7938
7939         fclose: Fix possible link error.
7940         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7941         unregister_shadow_fd. Improve comments.
7942         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7943         Eric Blake.
7944
7945 2011-05-11  Jim Meyering  <meyering@redhat.com>
7946
7947         maint.mk: improve "can not" detection and generalize rule name
7948         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7949         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7950         Use the same technique as in sc_prohibit_doubled_word, so that
7951         we recognize "can not" also when the words are separated by a newline.
7952         Suggested by Eric Blake.
7953         (perl_filename_lineno_text_): Define.  Factored out of...
7954         (prohibit_doubled_word_): ...here.  Use the new definition.
7955         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7956         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7957         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7958
7959 2011-05-10  Eric Blake  <eblake@redhat.com>
7960
7961         fclose: avoid double close race when possible
7962         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7963         all but WINDOWS_SOCKETS.
7964
7965 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7966
7967         openat: correct new comment
7968         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7969
7970 2011-05-10  Jim Meyering  <meyering@redhat.com>
7971
7972         openat: add comments
7973         * lib/openat-proc.c (openat_proc_name): Add comments,
7974         mostly from Eric Blake.
7975
7976 2011-05-09  Eric Blake  <eblake@redhat.com>
7977
7978         openat: reduce syscalls in first probe of /proc
7979         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7980         be a directory.  Simplify the probe for .. bugs.
7981         * modules/openat (Depends-on): Drop same-inode.
7982         Reported by Bastien ROUCARIES.
7983
7984 2011-05-09  Jim Meyering  <meyering@redhat.com>
7985
7986         maint.mk: change semantics/name of tight_scope variables
7987         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7988         Rename variables to align with semantics that make them more useful.
7989
7990         maint.mk: tweak new rule's name not to impinge
7991         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7992         (sc_tight_scope): Use new rule name rather than $@-0.
7993
7994         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7995         * top/maint.mk (sc_tight_scope): New rule.
7996         (sc_tight_scope-0): New rule, ifdef'd out.
7997         (_gl_TS_dir): Default.
7998         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7999         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8000
8001 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8002
8003         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8004         Haible <bruno@clisp.org>.
8005
8006 2011-05-08  Bruno Haible  <bruno@clisp.org>
8007
8008         Comments.
8009         * m4/isnanf.m4: Add comment.
8010         * m4/isnanl.m4: Likewise.
8011
8012 2011-05-08  Bruno Haible  <bruno@clisp.org>
8013
8014         glob: Remove obsolete macro.
8015         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8016
8017 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8018
8019         intprops: Sun C 5.11 supports __typeof__
8020         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8021         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
8022         which is new.
8023         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
8024
8025         intprops: switch to usual gnulib indenting and naming
8026         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
8027         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
8028
8029         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
8030
8031 2011-05-08  Jim Meyering  <meyering@redhat.com>
8032
8033         maint.mk: suppress "Entering/Leaving directory" diag in announcement
8034         * top/maint.mk (release-prep): Use make's --no-print-directory
8035         option when generating the announcement.  This eliminates the
8036         pesky "make[2]: Entering/Leaving directory" diagnostics in the
8037         generated announcement template.
8038
8039 2011-05-08  Bruno Haible  <bruno@clisp.org>
8040
8041         tzset: Fix gettimeofday wrapper on Solaris 2.6.
8042         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
8043         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
8044
8045 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8046
8047         ignore-value, verify: Omit include files from lib_SOURCES.
8048         * modules/ignore-value, modules/verify (Makefile.am):
8049         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
8050         that leads Automake to duplicate use of am__objects_... variables
8051         in Makefile.in.  See
8052         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8053
8054 2011-05-07  Bruno Haible  <bruno@clisp.org>
8055
8056         fclose: Simplify autoconf macro.
8057         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8058         defined.
8059
8060 2011-05-07  Bruno Haible  <bruno@clisp.org>
8061
8062         canonicalize-lgpl: Fix autoconf macro ordering bug.
8063         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8064         gl_STDLIB_H_DEFAULTS.
8065
8066 2011-05-06  Eric Blake  <eblake@redhat.com>
8067
8068         maintainer-makefile: make sc_po_check easier to tune
8069         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8070         to probe for strings, such as an alternate location for gnulib.
8071
8072         fclose: guarantee behavior on seekable stdin
8073         * modules/fclose (Depends-on): Add fflush.
8074         * doc/posix-functions/fclose.texi (fclose): Document this.
8075         * tests/test-fclose.c (main): Make test for this unconditional.
8076
8077 2011-05-06  Bruno Haible  <bruno@clisp.org>
8078
8079         fflush, fpurge: Relicense under LGPLv2+.
8080         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8081         * modules/fpurge (License): Likewise.
8082         With permission from Eric Blake and Jim Meyering.
8083         Suggested by Eric Blake.
8084
8085 2011-05-06  Karl Berry  <karl@gnu.org>
8086
8087         * MODULES.html.sh (func_all_modules): remove exit.
8088
8089 2011-05-06  Jim Meyering  <meyering@redhat.com>
8090
8091         maint.mk: use info-gnu@ as the default only for a stable release
8092         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8093         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8094         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8095         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8096
8097 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8098
8099         assert-h: new module, which supports C1X-style static_assert
8100         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8101         * lib/verify.h: Revamp so that this can be copied into assert.h,
8102         while retaining the ability to use it standalone as before.
8103         Rename private identifiers so as not to encroach on the
8104         standard C namespace, since this is now used by assert.h.
8105         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8106         the old verify_true.
8107         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8108         the old verify_true.  Use _GL_VERIFY_TYPE.
8109         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8110         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8111         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8112         defined when this file is copied into the replacement assert.h.
8113         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8114         and _Static_assert is not built in.
8115         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8116         defined, and use the new macros mentioned above.
8117         * doc/posix-headers/assert.texi: Document this.
8118
8119 2011-05-05  Bruno Haible  <bruno@clisp.org>
8120
8121         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8122         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
8123         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
8124         gl_REPLACE_FCLOSE here.
8125         * modules/fflush (Depends-on): Remove fclose.
8126         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
8127         combination with module 'fclose'.
8128
8129 2011-05-05  Bruno Haible  <bruno@clisp.org>
8130
8131         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
8132         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
8133         gl_FUNC_FFLUSH.
8134         (gl_FUNC_FFLUSH): Use it.
8135         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
8136         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
8137         gl_REPLACE_FSEEKO here.
8138
8139 2011-05-05  Bruno Haible  <bruno@clisp.org>
8140
8141         tzset: Relicense under LGPL.
8142         * modules/tzset (License): Change to LGPL.
8143         No agreement needed; it's a no-op.
8144
8145         strtoimax, strtoumax: Relicense under LGPL.
8146         * modules/strtoimax (License): Change to LGPL.
8147         * modules/strtoumax (License): Likewise.
8148         With permission from Jim Meyering, Paul Eggert:
8149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
8150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
8151
8152         getgroups: Relicense under LGPL.
8153         * modules/getgroups (License): Change to LGPL.
8154         With permission from Jim Meyering, Paul Eggert, Eric Blake:
8155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8158
8159         nanosleep: Relicense under LGPL.
8160         * modules/nanosleep (License): Change to LGPL.
8161         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
8162         Haible:
8163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
8164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
8165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8167
8168         futimens: Relicense under LGPL.
8169         * modules/futimens (License): Change to LGPL.
8170         With permission from Eric Blake:
8171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8172
8173         fflush: Relicense under LGPL.
8174         * modules/fflush (License): Change to LGPL.
8175         With permission from Eric Blake, Bruno Haible, Jim Meyering:
8176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
8177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
8178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
8179
8180         tmpfile: Relicense under LGPL.
8181         * modules/tmpfile (License): Change to LGPL.
8182         With permission from Ben Pfaff:
8183         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8184
8185         isfinite: Relicense under LGPL.
8186         * modules/isfinite (License): Change to LGPL.
8187         With permission from Ben Pfaff, Bruno Haible:
8188         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
8189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
8190
8191         acosl..tanl: Relicense under LGPL.
8192         * modules/acosl (License): Change to LGPL.
8193         * modules/asinl (License): Likewise.
8194         * modules/atanl (License): Likewise.
8195         * modules/cosl (License): Likewise.
8196         * modules/expl (License): Likewise.
8197         * modules/logl (License): Likewise.
8198         * modules/sinl (License): Likewise.
8199         * modules/sqrtl (License): Likewise.
8200         * modules/tanl (License): Likewise.
8201         Source code originally from glibc and Paolo Bonzini. Agreements:
8202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
8203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
8204
8205 2011-05-05  Bruno Haible  <bruno@clisp.org>
8206
8207         signal: Define sighandler_t.
8208         * lib/signal.in.h (sighandler_t): New type.
8209         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
8210         whether sighandler_t is defined.
8211         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
8212         * modules/signal (Depends-on): Add extensions.
8213         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
8214         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
8215         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
8216
8217 2011-05-05  Eric Blake  <eblake@redhat.com>
8218
8219         maint: remove useless REPLACE_*_H macros
8220         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
8221         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8222         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8223         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
8224         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8225         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8226         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
8227         * m4/btowc.m4: Update callers.
8228         * m4/dirfd.m4: Likewise.
8229         * m4/duplocale.m4: Likewise.
8230         * m4/fchdir.m4: Likewise.
8231         * m4/fdopendir.m4: Likewise.
8232         * m4/inet_ntop.m4: Likewise.
8233         * m4/inet_pton.m4: Likewise.
8234         * m4/ioctl.m4: Likewise.
8235         * m4/mbrlen.m4: Likewise.
8236         * m4/mbrtowc.m4: Likewise.
8237         * m4/mbsinit.m4: Likewise.
8238         * m4/mbsnrtowcs.m4: Likewise.
8239         * m4/mbsrtowcs.m4: Likewise.
8240         * m4/poll.m4: Likewise.
8241         * m4/setlocale.m4: Likewise.
8242         * m4/wcrtomb.m4: Likewise.
8243         * m4/wcsnrtombs.m4: Likewise.
8244         * m4/wcsrtombs.m4: Likewise.
8245         * m4/wctob.m4: Likewise.
8246         * m4/wcwidth.m4: Likewise.
8247         * modules/posix_spawn: Likewise.
8248         * modules/posix_spawn_file_actions_addclose: Likewise.
8249         * modules/posix_spawn_file_actions_adddup2: Likewise.
8250         * modules/posix_spawn_file_actions_addopen: Likewise.
8251         * modules/posix_spawn_file_actions_destroy: Likewise.
8252         * modules/posix_spawn_file_actions_init: Likewise.
8253         * modules/posix_spawnattr_destroy: Likewise.
8254         * modules/posix_spawnattr_getflags: Likewise.
8255         * modules/posix_spawnattr_getpgroup: Likewise.
8256         * modules/posix_spawnattr_getschedparam: Likewise.
8257         * modules/posix_spawnattr_getschedpolicy: Likewise.
8258         * modules/posix_spawnattr_getsigdefault: Likewise.
8259         * modules/posix_spawnattr_getsigmask: Likewise.
8260         * modules/posix_spawnattr_init: Likewise.
8261         * modules/posix_spawnattr_setflags: Likewise.
8262         * modules/posix_spawnattr_setpgroup: Likewise.
8263         * modules/posix_spawnattr_setschedparam: Likewise.
8264         * modules/posix_spawnattr_setschedpolicy: Likewise.
8265         * modules/posix_spawnattr_setsigdefault: Likewise.
8266         * modules/posix_spawnattr_setsigmask: Likewise.
8267         * modules/posix_spawnp: Likewise.
8268
8269 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
8270
8271         Add option to do-release-commit-and-tag to specify branch.
8272         * build-aux/do-release-commit-and-tag: Add --branch.
8273
8274 2011-05-03  Bruno Haible  <bruno@clisp.org>
8275
8276         Avoid unnecessary compilation units, through conditional dependencies.
8277         * modules/accept (Depends-on): Add conditions to the dependencies.
8278         * modules/acosl (Depends-on): Likewise.
8279         * modules/argz (Depends-on): Likewise.
8280         * modules/asinl (Depends-on): Likewise.
8281         * modules/atanl (Depends-on): Likewise.
8282         * modules/atoll (Depends-on): Likewise.
8283         * modules/bind (Depends-on): Likewise.
8284         * modules/btowc (Depends-on): Likewise.
8285         * modules/canonicalize-lgpl (Depends-on): Likewise.
8286         * modules/ceil (Depends-on): Likewise.
8287         * modules/ceilf (Depends-on): Likewise.
8288         * modules/ceill (Depends-on): Likewise.
8289         * modules/chdir-long (Depends-on): Likewise.
8290         * modules/chown (Depends-on): Likewise.
8291         * modules/close (Depends-on): Likewise.
8292         * modules/connect (Depends-on): Likewise.
8293         * modules/cosl (Depends-on): Likewise.
8294         * modules/dirfd (Depends-on): Likewise.
8295         * modules/dprintf (Depends-on): Likewise.
8296         * modules/dprintf-posix (Depends-on): Likewise.
8297         * modules/error (Depends-on): Likewise.
8298         * modules/euidaccess (Depends-on): Likewise.
8299         * modules/expl (Depends-on): Likewise.
8300         * modules/faccessat (Depends-on): Likewise.
8301         * modules/fchdir (Depends-on): Likewise.
8302         * modules/fclose (Depends-on): Likewise.
8303         * modules/fcntl (Depends-on): Likewise.
8304         * modules/fdopendir (Depends-on): Likewise.
8305         * modules/fflush (Depends-on): Likewise.
8306         * modules/floor (Depends-on): Likewise.
8307         * modules/floorf (Depends-on): Likewise.
8308         * modules/floorl (Depends-on): Likewise.
8309         * modules/fnmatch (Depends-on): Likewise.
8310         * modules/fopen (Depends-on): Likewise.
8311         * modules/fprintf-posix (Depends-on): Likewise.
8312         * modules/frexp (Depends-on): Likewise.
8313         * modules/frexp-nolibm (Depends-on): Likewise.
8314         * modules/frexpl (Depends-on): Likewise.
8315         * modules/frexpl-nolibm (Depends-on): Likewise.
8316         * modules/fseek (Depends-on): Likewise.
8317         * modules/fsusage (Depends-on): Likewise.
8318         * modules/ftell (Depends-on): Likewise.
8319         * modules/ftello (Depends-on): Likewise.
8320         * modules/futimens (Depends-on): Likewise.
8321         * modules/getcwd (Depends-on): Likewise.
8322         * modules/getcwd-lgpl (Depends-on): Likewise.
8323         * modules/getdelim (Depends-on): Likewise.
8324         * modules/getdomainname (Depends-on): Likewise.
8325         * modules/getgroups (Depends-on): Likewise.
8326         * modules/gethostname (Depends-on): Likewise.
8327         * modules/getline (Depends-on): Likewise.
8328         * modules/getlogin_r (Depends-on): Likewise.
8329         * modules/getopt-posix (Depends-on): Likewise.
8330         * modules/getpeername (Depends-on): Likewise.
8331         * modules/getsockname (Depends-on): Likewise.
8332         * modules/getsockopt (Depends-on): Likewise.
8333         * modules/getsubopt (Depends-on): Likewise.
8334         * modules/getusershell (Depends-on): Likewise.
8335         * modules/glob (Depends-on): Likewise.
8336         * modules/grantpt (Depends-on): Likewise.
8337         * modules/iconv_open (Depends-on): Likewise.
8338         * modules/iconv_open-utf (Depends-on): Likewise.
8339         * modules/inet_ntop (Depends-on): Likewise.
8340         * modules/inet_pton (Depends-on): Likewise.
8341         * modules/ioctl (Depends-on): Likewise.
8342         * modules/isapipe (Depends-on): Likewise.
8343         * modules/isfinite (Depends-on): Likewise.
8344         * modules/isinf (Depends-on): Likewise.
8345         * modules/lchown (Depends-on): Likewise.
8346         * modules/ldexpl (Depends-on): Likewise.
8347         * modules/link (Depends-on): Likewise.
8348         * modules/linkat (Depends-on): Likewise.
8349         * modules/listen (Depends-on): Likewise.
8350         * modules/logl (Depends-on): Likewise.
8351         * modules/lstat (Depends-on): Likewise.
8352         * modules/mbrlen (Depends-on): Likewise.
8353         * modules/mbrtowc (Depends-on): Likewise.
8354         * modules/mbsinit (Depends-on): Likewise.
8355         * modules/mbsnrtowcs (Depends-on): Likewise.
8356         * modules/mbsrtowcs (Depends-on): Likewise.
8357         * modules/mbtowc (Depends-on): Likewise.
8358         * modules/memcmp (Depends-on): Likewise.
8359         * modules/mkdir (Depends-on): Likewise.
8360         * modules/mkdtemp (Depends-on): Likewise.
8361         * modules/mkfifo (Depends-on): Likewise.
8362         * modules/mkfifoat (Depends-on): Likewise.
8363         * modules/mknod (Depends-on): Likewise.
8364         * modules/mkostemp (Depends-on): Likewise.
8365         * modules/mkostemps (Depends-on): Likewise.
8366         * modules/mkstemp (Depends-on): Likewise.
8367         * modules/mkstemps (Depends-on): Likewise.
8368         * modules/mktime (Depends-on): Likewise.
8369         * modules/nanosleep (Depends-on): Likewise.
8370         * modules/open (Depends-on): Likewise.
8371         * modules/openat (Depends-on): Likewise.
8372         * modules/perror (Depends-on): Likewise.
8373         * modules/poll (Depends-on): Likewise.
8374         * modules/popen (Depends-on): Likewise.
8375         * modules/posix_spawn (Depends-on): Likewise.
8376         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
8377         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
8378         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
8379         * modules/posix_spawnp (Depends-on): Likewise.
8380         * modules/pread (Depends-on): Likewise.
8381         * modules/printf-posix (Depends-on): Likewise.
8382         * modules/ptsname (Depends-on): Likewise.
8383         * modules/putenv (Depends-on): Likewise.
8384         * modules/pwrite (Depends-on): Likewise.
8385         * modules/readline (Depends-on): Likewise.
8386         * modules/readlink (Depends-on): Likewise.
8387         * modules/readlinkat (Depends-on): Likewise.
8388         * modules/recv (Depends-on): Likewise.
8389         * modules/recvfrom (Depends-on): Likewise.
8390         * modules/regex (Depends-on): Likewise.
8391         * modules/remove (Depends-on): Likewise.
8392         * modules/rename (Depends-on): Likewise.
8393         * modules/renameat (Depends-on): Likewise.
8394         * modules/rmdir (Depends-on): Likewise.
8395         * modules/round (Depends-on): Likewise.
8396         * modules/roundf (Depends-on): Likewise.
8397         * modules/roundl (Depends-on): Likewise.
8398         * modules/rpmatch (Depends-on): Likewise.
8399         * modules/select (Depends-on): Likewise.
8400         * modules/send (Depends-on): Likewise.
8401         * modules/sendto (Depends-on): Likewise.
8402         * modules/setenv (Depends-on): Likewise.
8403         * modules/setlocale (Depends-on): Likewise.
8404         * modules/setsockopt (Depends-on): Likewise.
8405         * modules/shutdown (Depends-on): Likewise.
8406         * modules/sigaction (Depends-on): Likewise.
8407         * modules/signbit (Depends-on): Likewise.
8408         * modules/sigprocmask (Depends-on): Likewise.
8409         * modules/sinl (Depends-on): Likewise.
8410         * modules/sleep (Depends-on): Likewise.
8411         * modules/snprintf (Depends-on): Likewise.
8412         * modules/snprintf-posix (Depends-on): Likewise.
8413         * modules/socket (Depends-on): Likewise.
8414         * modules/sprintf-posix (Depends-on): Likewise.
8415         * modules/sqrtl (Depends-on): Likewise.
8416         * modules/stat (Depends-on): Likewise.
8417         * modules/strchrnul (Depends-on): Likewise.
8418         * modules/strdup-posix (Depends-on): Likewise.
8419         * modules/strerror (Depends-on): Likewise.
8420         * modules/strerror_r-posix (Depends-on): Likewise.
8421         * modules/strndup (Depends-on): Likewise.
8422         * modules/strnlen (Depends-on): Likewise.
8423         * modules/strptime (Depends-on): Likewise.
8424         * modules/strsep (Depends-on): Likewise.
8425         * modules/strsignal (Depends-on): Likewise.
8426         * modules/strstr-simple (Depends-on): Likewise.
8427         * modules/strtod (Depends-on): Likewise.
8428         * modules/strtoimax (Depends-on): Likewise.
8429         * modules/strtok_r (Depends-on): Likewise.
8430         * modules/strtoumax (Depends-on): Likewise.
8431         * modules/symlink (Depends-on): Likewise.
8432         * modules/symlinkat (Depends-on): Likewise.
8433         * modules/tanl (Depends-on): Likewise.
8434         * modules/tcgetsid (Depends-on): Likewise.
8435         * modules/tmpfile (Depends-on): Likewise.
8436         * modules/trunc (Depends-on): Likewise.
8437         * modules/truncf (Depends-on): Likewise.
8438         * modules/truncl (Depends-on): Likewise.
8439         * modules/uname (Depends-on): Likewise.
8440         * modules/unlink (Depends-on): Likewise.
8441         * modules/unlockpt (Depends-on): Likewise.
8442         * modules/unsetenv (Depends-on): Likewise.
8443         * modules/usleep (Depends-on): Likewise.
8444         * modules/utimensat (Depends-on): Likewise.
8445         * modules/vasprintf (Depends-on): Likewise.
8446         * modules/vdprintf (Depends-on): Likewise.
8447         * modules/vdprintf-posix (Depends-on): Likewise.
8448         * modules/vfprintf-posix (Depends-on): Likewise.
8449         * modules/vprintf-posix (Depends-on): Likewise.
8450         * modules/vsnprintf (Depends-on): Likewise.
8451         * modules/vsnprintf-posix (Depends-on): Likewise.
8452         * modules/vsprintf-posix (Depends-on): Likewise.
8453         * modules/wcrtomb (Depends-on): Likewise.
8454         * modules/wcscasecmp (Depends-on): Likewise.
8455         * modules/wcscspn (Depends-on): Likewise.
8456         * modules/wcsdup (Depends-on): Likewise.
8457         * modules/wcsncasecmp (Depends-on): Likewise.
8458         * modules/wcsnrtombs (Depends-on): Likewise.
8459         * modules/wcspbrk (Depends-on): Likewise.
8460         * modules/wcsrtombs (Depends-on): Likewise.
8461         * modules/wcsspn (Depends-on): Likewise.
8462         * modules/wcsstr (Depends-on): Likewise.
8463         * modules/wcstok (Depends-on): Likewise.
8464         * modules/wcswidth (Depends-on): Likewise.
8465         * modules/wctob (Depends-on): Likewise.
8466         * modules/wctomb (Depends-on): Likewise.
8467         * modules/wctype (Depends-on): Likewise.
8468         * modules/wcwidth (Depends-on): Likewise.
8469         * modules/write (Depends-on): Likewise.
8470
8471 2011-05-03  Bruno Haible  <bruno@clisp.org>
8472
8473         Support for conditional dependencies.
8474         * doc/gnulib.texi (Module description): Document the syntax of
8475         conditional dependencies.
8476         * gnulib-tool: New option --conditional-dependencies.
8477         (func_usage): Document it.
8478         (cond_dependencies): New variable.
8479         (func_get_automake_snippet_conditional,
8480         func_get_automake_snippet_unconditional): New functions, extracted from
8481         func_get_automake_snippet.
8482         (func_get_automake_snippet): Use them.
8483         (sed_first_32_chars): New variable.
8484         (func_module_shellfunc_name): New function.
8485         (func_module_shellvar_name): New function.
8486         (func_module_conditional_name): New function.
8487         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
8488         func_cond_module_condition): New functions.
8489         (func_modules_transitive_closure): Add support for conditional
8490         dependencies.
8491         (func_emit_lib_Makefile_am): For a conditional module, enclose the
8492         conditional automake snippet in an automake conditional.
8493         (func_emit_autoconf_snippets): Emit shell functions that contain the
8494         code for conditional modules.
8495         (func_import, func_create_testdir): Update specification.
8496
8497 2011-05-03  Eric Blake  <eblake@redhat.com>
8498
8499         test-getaddrinfo: report error information
8500         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
8501
8502 2011-05-03  Jim Meyering  <meyering@redhat.com>
8503
8504         bootstrap: avoid build failure when $GZIP is set
8505         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
8506         program name.  If defined at all, it is supposed to list gzip options.
8507         Reported by Alan Curry in http://debbugs.gnu.org/8609
8508
8509 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
8510
8511         readme-release: new module with release instructions
8512         * modules/readme-release: New module.
8513         * top/README-release: New file, from coreutils, grep, diffutils.
8514         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8515
8516 2011-05-02  Eric Blake  <eblake@redhat.com>
8517
8518         fflush: also replace fclose when fixing fflush
8519         * modules/fflush (Depends-on): Add fclose.
8520         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
8521         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
8522         memstreams with no backing fd.
8523         * doc/posix-functions/fclose.texi (fclose): Document the use of
8524         fflush module to fix the bug.
8525         * tests/test-fclose.c (main): Relax test when fclose is used in
8526         isolation.
8527
8528         fclose: add some tests
8529         * modules/fclose-tests: New test module.
8530         * tests/test-fclose.c: New file.
8531         * doc/posix-functions/fclose.texi (fclose): Document the bug.
8532
8533         fclose: reduced dependencies
8534         * modules/fclose (Depends-on): Switch from fflush/fseeko to
8535         simpler lseek.
8536         * lib/fclose.c (rpl_fclose): Likewise.
8537         Reported by Simon Josefsson.
8538
8539         exit: drop remaining clients
8540         * modules/argmatch (Depends-on): Replace exit with stdlib.
8541         * modules/copy-file (Depends-on): Likewise.
8542         * modules/execute (Depends-on): Likewise.
8543         * modules/exitfail (Depends-on): Likewise.
8544         * modules/obstack (Depends-on): Likewise.
8545         * modules/pagealign_alloc (Depends-on): Likewise.
8546         * modules/pipe-filter-gi (Depends-on): Likewise.
8547         * modules/pipe-filter-ii (Depends-on): Likewise.
8548         * modules/savewd (Depends-on): Likewise.
8549         * modules/spawn-pipe (Depends-on): Likewise.
8550         * modules/wait-process (Depends-on): Likewise.
8551         * modules/xsetenv (Depends-on): Likewise.
8552         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
8553         * modules/git-merge-changelog (Depends-on): Likewise.
8554         * modules/long-options (Depends-on): Likewise.
8555         * modules/pt_chown (Depends-on): Likewise.
8556         * modules/sysexits (Depends-on): Likewise.
8557
8558         freading: relax license from LGPLv3+ to LGPLv2+
8559         * modules/freading (License): Relax LGPL version.
8560
8561 2011-05-02  Bruno Haible  <bruno@clisp.org>
8562
8563         fchdir: Remove unused dependencies.
8564         * modules/fchdir (Depends-on): Remove include_next.
8565
8566 2011-05-02  Bruno Haible  <bruno@clisp.org>
8567
8568         gnulib-tool: Refactor.
8569         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8570         from func_emit_autoconf_snippets.
8571         (func_emit_autoconf_snippets): Use it.
8572
8573 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8574
8575         * NEWS: Document removal of 'exit'.
8576         * modules/exit: Remove file.
8577
8578 2011-05-01  Bruno Haible  <bruno@clisp.org>
8579
8580         Update DEPENDENCIES.
8581         * DEPENDENCIES (gettext): Recommend the newest release.
8582         Reported by Simon Josefsson.
8583
8584 2011-05-01  Bruno Haible  <bruno@clisp.org>
8585
8586         gnulib-tool: Reduce code duplication.
8587         * gnulib-tool (func_emit_autoconf_snippets): New function.
8588         (func_import, func_create_testdir): Use it.
8589
8590 2011-04-30  Eric Blake  <eblake@redhat.com>
8591
8592         fclose: don't fail on non-seekable input stream
8593         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8594         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8595         since fflush is allowed to fail in that case.
8596
8597 2011-04-30  Bruno Haible  <bruno@clisp.org>
8598
8599         dup3: cleanup
8600         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8601
8602 2011-04-30  Bruno Haible  <bruno@clisp.org>
8603
8604         netdb: Make it work in C++ mode.
8605         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8606         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8607         module.
8608         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8609         gl_MODULE_INDICATOR_FOR_TESTS.
8610         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8611         * modules/netdb-c++-tests: New file.
8612         * tests/test-netdb-c++.cc: New file.
8613
8614 2011-04-30  Bruno Haible  <bruno@clisp.org>
8615
8616         New modules 'vfscanf', 'vscanf'.
8617         * modules/vfscanf: New file.
8618         * modules/vscanf: New file.
8619         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8620         here.
8621         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8622         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8623
8624 2011-04-30  Bruno Haible  <bruno@clisp.org>
8625
8626         passfd: Add comments.
8627         * lib/passfd.c: Add comments about platforms.
8628
8629 2011-04-30  Bruno Haible  <bruno@clisp.org>
8630
8631         sys_uio: Make <sys/uio.h> self-contained.
8632         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8633         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8634
8635 2011-04-30  Bruno Haible  <bruno@clisp.org>
8636
8637         sys_socket: Ensure 'struct iovec' definition.
8638         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8639         <sys/socket.h>.
8640         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8641
8642 2011-04-30  Bruno Haible  <bruno@clisp.org>
8643
8644         sys_uio: Protect definition of 'struct iovec'.
8645         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8646         it as a C struct.
8647
8648 2011-04-30  Bruno Haible  <bruno@clisp.org>
8649
8650         manywarnings: fix indentation
8651         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8652
8653 2011-04-30  Pádraig Brady <P@draigBrady.com>
8654
8655         manywarnings: add -Wno-missing-field-initializers if needed.
8656         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8657         option if it's needed to allow initialization with { 0, }
8658
8659 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8660
8661         announce-gen: cosmetic improvement
8662         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8663
8664 2011-04-29  Jim Meyering  <meyering@redhat.com>
8665
8666         vc-list-files: indent with spaces, not TABs
8667         * build-aux/vc-list-files: Convert leading TABs to spaces,
8668         to match the style of most other files in gnulib.
8669
8670         announce-gen: indent with spaces, not TABs
8671         * build-aux/announce-gen: Convert all TABs to spaces, to match
8672         the style of most other files in gnulib.
8673
8674 2011-04-29  Eric Blake  <eblake@redhat.com>
8675
8676         quotearg: avoid uninitialized variable use
8677         * lib/quotearg.c (quoting_options_from_style): Initialize
8678         remaining fields, and ensure that custom styles are only used via
8679         quoting_options rather than quoting_style.
8680
8681 2011-04-29  Jim Meyering  <meyering@redhat.com>
8682
8683         maint.mk: remove unused VC-tag variable
8684         * top/maint.mk (VC-tag): Remove unused variable.
8685
8686 2011-04-29  Bruno Haible  <bruno@clisp.org>
8687
8688         netdb: fix gai_strerror replacements
8689         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8690         * modules/netdb: Substitute it.
8691
8692 2011-04-29  Jim Meyering  <meyering@redhat.com>
8693
8694         test-getcwd.c: avoid new set-but-not-used warning
8695         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8696         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8697         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8698         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8699
8700         test-hash.c: avoid a new shadowing warning
8701         * tests/test-hash.c (main): Don't shadow "dup".
8702
8703 2011-04-28  Eric Blake  <eblake@redhat.com>
8704
8705         getaddrinfo: fix gai_strerror signature
8706         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8707         and work around mingw with UNICODE defined.
8708         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8709         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8710         * modules/netdb (Makefile.am): Substitute it.
8711         * lib/netdb.in.h (gai_strerror): Declare replacement.
8712         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8713         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8714         the fix.
8715
8716         getsockopt: avoid compiler warning
8717         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8718         Reported by Matthias Bolte.
8719
8720         tests: drop unused link dependency
8721         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8722         * modules/dirent-safer-tests (Makefile.am): Likewise.
8723         * modules/fdopendir-tests (Makefile.am): Likewise.
8724         * modules/mkfifoat-tests (Makefile.am): Likewise.
8725         * modules/openat-safer-tests (Makefile.am): Likewise.
8726         * modules/openat-tests (Makefile.am): Likewise.
8727         * modules/readlinkat-tests (Makefile.am): Likewise.
8728         * modules/symlinkat-tests (Makefile.am): Likewise.
8729         * modules/linkat-tests (Makefile.am): Likewise.
8730         (Depends-on): Switch to filenamecat-lgpl.
8731         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8732         LIBINTL.
8733         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8734         * tests/test-linkat.c (main): Don't require xalloc.
8735
8736         hash, mgetgroups: drop xalloc dependency
8737         * lib/hash.c (includes): Adjust includes.
8738         * lib/mgetgroups.c (includes): Likewise.
8739         (xgetgroups): Move...
8740         * lib/xgetgroups.c: ...to new file.
8741         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8742         * modules/xgetgroups: New file, split from...
8743         * modules/mgetgroups: ...here.
8744         (Depends-on): Add xalloc-oversized.
8745         * modules/hash (Depends-on): Likewise.
8746         * modules/hash-tests (Depends-on): Drop xalloc.
8747         (test_hash_LDADD): Drop unused library.
8748         * tests/test-hash.c (main): Break xalloc dependency.
8749         (includes): Drop unused include.
8750
8751         xalloc-oversized: new module
8752         * modules/xalloc-oversized: New module.
8753         * modules/xalloc (Depends-on): Add it.
8754         * lib/xalloc.h (xalloc_oversized): Move...
8755         * lib/xalloc-oversized.h: ...into new file.
8756
8757         utimecmp: drop dependency on xmalloc
8758         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8759         due to memory pressure.
8760         * modules/utimecmp (Depends-on): Drop xalloc.
8761
8762 2011-04-27  Eric Blake  <eblake@redhat.com>
8763
8764         getcwd: fix mingw bugs
8765         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8766         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8767         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8768
8769 2011-04-27  Bruno Haible  <bruno@clisp.org>
8770
8771         mkstemps: Ensure declaration on MacOS X 10.5.
8772         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8773         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8774         MacOS X.
8775
8776 2011-04-27  Bruno Haible  <bruno@clisp.org>
8777
8778         mkstemp: More documentation.
8779         * doc/posix-functions/mkstemp.texi: Document header file problem on
8780         MacOS X.
8781
8782 2011-04-27  Bruno Haible  <bruno@clisp.org>
8783
8784         mkstemp: Tweak configure message when cross-compiling.
8785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8786         result as a guess.
8787
8788 2011-04-27  Bruno Haible  <bruno@clisp.org>
8789
8790         clean-temp: Clarify what it does.
8791         * lib/clean-temp.h: Add more comments.
8792         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8793         module.
8794         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8795         * doc/glibc-functions/mkstemps.texi: Likewise.
8796         * doc/glibc-functions/mkostemps.texi: Likewise.
8797
8798 2011-04-27  Eric Blake  <eblake@redhat.com>
8799
8800         fchdir: avoid extra chdir and fix test
8801         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8802         getcwd-lgpl.
8803         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8804         have to be canonical.
8805         (canonicalize_file_name): Drop unused macro.
8806         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8807
8808         filenamecat-lgpl: fix licence
8809         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8810         when it was first created.
8811
8812         linkat, renameat: add missing dependency
8813         * modules/linkat (Depends-on): Require getcwd-lgpl.
8814         * modules/renameat (Depends-on): Likewise.
8815
8816         tests: reduce dependencies
8817         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8818         * tests/test-renameat.c (main): Likewise.
8819         * modules/linkat-tests (Depends-on): Relax dependency.
8820         * modules/renameat-tests (Depends-on): Likewise.
8821         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8822         dependency explicit.
8823
8824         save-cwd: reduce default dependency
8825         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8826         * lib/save-cwd.c: Update comments.
8827         * NEWS: Document the semantic change.
8828
8829         getcwd: enhance tests
8830         * tests/test-getcwd-lgpl.c: New file, taken from...
8831         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8832         repeat long path stress tests from m4 probe.
8833         * modules/getcwd-lgpl-tests: New module.
8834         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8835         * m4/getcwd-abort-bug.m4: Update comment.
8836         * m4/getcwd-path-max.m4: Likewise.
8837
8838         getcwd-lgpl: new module
8839         * modules/getcwd-lgpl: New module.
8840         * lib/getcwd-lgpl.c: New file.
8841         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8842         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8843         * modules/getcwd (configure.ac): Set C witness.
8844         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8845
8846         getcwd: tweak comments
8847         * m4/getcwd-abort-bug.m4: Fix comments.
8848         * m4/getcwd-path-max.m4: Likewise.
8849         * m4/getcwd.m4: Likewise.
8850
8851 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8852         and Eric Blake  <eblake@redhat.com>
8853
8854         mkstemp: replace if system version uses wrong permissions
8855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8856         read/write mode bits set in file created by mkstemp.
8857         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8858
8859 2011-04-27  Eric Blake  <eblake@redhat.com>
8860
8861         passfd: avoid compiler warning
8862         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8863         Reported by Laine Stump.
8864
8865 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8866
8867         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8868         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8869
8870 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8871         and Eric Blake  <eblake@redhat.com>
8872
8873         mkstemp: mention clean-temp module
8874         * lib/mkstemp.c: Add comment.
8875         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8876
8877 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8878
8879         inttypes: also provide default values for 32-bit tests
8880         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8881         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8882
8883 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8884
8885         strtoumax: remove dependency on strtoimax
8886         This is like the strtoull change of yesterday.
8887         * modules/strtoumax (Files): Add lib/strtoimax.c.
8888         (Depends-on): Remove strtoimax and add verify.
8889
8890         inttypes-incomplete: new module
8891         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8892         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8893         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8894         of gl_INTTYPES_H.
8895         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8896         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8897         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8898         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8899         * modules/strtoumax, modules/xstrtol (Depends-on):
8900         Depend on inttypes-incomplete, not inttypes.
8901         * modules/inttypes-incomplete: New module, containing the contents
8902         of the old modules/inttypes module, except that the Files: section
8903         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8904         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8905         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8906         (Depends-on): Depend only on inttypes-incomplete.
8907         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8908
8909         inttypes: omit now-redundant strtoimax and strtoumax work
8910         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8911         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8912
8913         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8914         This supports apps that need pointers to strtoimax and strtoumax,
8915         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8916         nonexistent functions.  See
8917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8918         et seq.
8919         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8920         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8921         a macro.
8922         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8923
8924 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8925
8926         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8927
8928 2011-04-25  Bruno Haible  <bruno@clisp.org>
8929
8930         strtol, strtoul: Mark modules as obsolete.
8931         * modules/strtol (Status, Notice): New sections.
8932         * modules/strtoul (Status, Notice): New sections.
8933
8934 2011-04-25  Bruno Haible  <bruno@clisp.org>
8935
8936         strtod: Remove check for strtod, unless supporting old platforms.
8937         * modules/strtod-obsolete: New file.
8938         * m4/strtod-obsolete.m4: New file.
8939         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8940         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8941         * modules/strtod (Depends-on): Add strtod-obsolete.
8942         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8943
8944 2011-04-25  Bruno Haible  <bruno@clisp.org>
8945
8946         strcase: Make module obsolete.
8947         * modules/strcase (Status, Notice): New sections.
8948
8949 2011-04-25  Bruno Haible  <bruno@clisp.org>
8950
8951         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8952         * modules/dup2-obsolete: New file.
8953         * m4/dup2-obsolete.m4: New file.
8954         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8955         gl_FUNC_DUP2_OBSOLETE is not also defined.
8956         * modules/dup2 (Depends-on): Add dup2-obsolete.
8957         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8958
8959 2011-04-25  Bruno Haible  <bruno@clisp.org>
8960
8961         strnlen: Avoid memchr related link error on old obsolete platforms.
8962         * modules/memchr-obsolete: New file.
8963         * m4/memchr-obsolete.m4: New file.
8964         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8965         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8966         * modules/memchr (Depends-on): Add memchr-obsolete.
8967         * modules/strnlen (Depends-on): Likewise.
8968         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8969
8970 2011-04-25  Jim Meyering  <meyering@redhat.com>
8971
8972         maint.mk: makefile_at_at_check extend and clean up
8973         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8974         in addition to */Makefile.am.
8975         Exempt legitimate uses of @VAR@ notation, e.g.,
8976         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8977         Remove obsolete coreutils-specific comment.
8978         Prompted by discussion here:
8979         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8980
8981 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8982
8983         strtoul: remove dependency on strtol
8984         This is so that 'configure' need not check for strtol merely because
8985         the application needs strtoul.
8986         * modules/strtoul (Files): Add lib/strtol.c.
8987         (Depends-on): Remove strtol.
8988
8989         strtoull: remove dependency on strtoul
8990         This is like the strtoll change.
8991         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8992         (Depends-on): Remove strtoul.
8993
8994         strtoll: remove dependency on strtol
8995         This is so that 'configure' need not check for strtol merely because
8996         the application needs strtoll.
8997         * modules/strtoll (Files): Add lib/strtol.c.
8998         (Depends-on): Remove strtol.
8999
9000 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9001
9002         inttypes: Move some configure check to module 'imaxdiv'.
9003         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9004         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9005         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9006
9007 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9008
9009         inttypes: Move some configure check to module 'imaxabs'.
9010         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9011         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9012         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9013
9014 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9015
9016         inttypes: Remove configure tests that are not needed since 2009-12-31.
9017         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9018         gl_cv_header_working_inttypes_h.
9019
9020 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9021
9022         * modules/strnlen (Depends-on): Remove memchr.
9023         The strnlen implementation doesn't need the memchr module's fixes; see
9024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
9025
9026         strtol: remove dependency on wchar
9027         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
9028         * modules/strtol (Depends-on): Remove wchar.
9029
9030 2011-04-21  Eric Blake  <eblake@redhat.com>
9031
9032         passfd: fix test regression on Linux
9033         * modules/passfd-tests (configure.ac): Correct socketpair check.
9034
9035         passfd: speed up configure and drop unused code
9036         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
9037         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
9038         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
9039         Instead of probing at configure for unix_scm_rights_bsd44_way,
9040         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
9041         check to a struct member probe.
9042         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
9043         (sendfd, recvfd): Update preprocessor checks.
9044         * modules/passfd (Files): Reflect rename, and drop unused file.
9045         (Depends-on): Drop unused dependency.
9046
9047         passfd: allow compilation on mingw
9048         * modules/sys_socket (Depends-on): Add sys_uio.
9049         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
9050         iovec and a minimal struct msghdr.
9051         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
9052         * tests/test-sys_socket.c (main): Enhance test.
9053         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9054         guaranteed to provide what we need.
9055         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9056         * modules/passfd-tests (Depends-on): Add sys_wait.
9057         * tests/test-passfd.c (main): Skip test on mingw, for now.
9058         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9059         partial 'struct msghdr' implementation.
9060
9061         sys_uio: new module
9062         * modules/sys_uio: New module.
9063         * modules/sys_uio-tests: Likewise.
9064         * lib/sys_uio.in.h: New file.
9065         * m4/sys_uio_h.m4: Likewise.
9066         * tests/test-sys_uio.c: Likewise.
9067         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9068         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9069
9070 2011-04-20  Jim Meyering  <meyering@redhat.com>
9071
9072         useless-if-before-free: avoid false-positive
9073         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9074         disjunct so that it too requires a terminating ";".  Without that,
9075         this script would identify as useless one statement from gcc that
9076         was not:
9077           if (aligned_ptr)
9078             free (((void **) aligned_ptr) [-1]);
9079
9080 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9081
9082         doc: update users.txt.
9083         * users.txt: Add barcode.
9084
9085 2011-04-19  Bruno Haible  <bruno@clisp.org>
9086
9087         ioctl: Remove link dependency on native Windows.
9088         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9089         (gl_close_fn, gl_ioctl_fn): New types.
9090         (struct fd_hook): Renamed from struct close_hook. Change type of
9091         private_close_fn field. Add private_ioctl_fn field.
9092         (close_hook_fn): Add parameter for primary close method.
9093         (execute_close_hooks, execute_all_close_hooks): Likewise.
9094         (ioctl_hook_fn): New type.
9095         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9096         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9097         argument.
9098         (unregister_fd_hook): Renamed from unregister_close_hook.
9099         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9100         Don't include <unistd.h>.
9101         (close): Remove undef.
9102         (anchor): Update.
9103         (execute_close_hooks): Add argument for primary close method.
9104         (execute_all_close_hooks): Likewise.
9105         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9106         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9107         argument. Allow each argument to be NULL.
9108         (unregister_fd_hook): Renamed from unregister_close_hook.
9109         * lib/close.c (rpl_close): Pass 'close' function pointer to
9110         execute_all_close_hooks.
9111         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9112         (primary_ioctl): New function.
9113         (ioctl): Don't call ioctlsocket here. Instead, call
9114         execute_all_ioctl_hooks.
9115         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9116         close method.
9117         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9118         (fd_sockets_hook): Renamed from close_sockets_hook.
9119         (gl_sockets_startup, gl_sockets_cleanup): Update.
9120         * modules/fd-hook: Renamed from modules/close-hook. Update.
9121         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9122         * modules/sockets (Depends-on): Likewise.
9123         * modules/ioctl (Depends-on): Add fd-hook.
9124         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
9125         GNULIB_SOCKET.
9126
9127 2011-04-19  Bruno Haible  <bruno@clisp.org>
9128
9129         Move the support of O_NONBLOCK in open() to the 'open' module.
9130         * modules/nonblocking (Depends-on): Remove 'open'.
9131         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
9132         gl_cv_have_open_O_NONBLOCK.
9133         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
9134         O_NONBLOCK support.
9135         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
9136
9137 2011-04-17  Bruno Haible  <bruno@clisp.org>
9138
9139         pipe2: Simplify code.
9140         * lib/pipe2.c (pipe2): Reduce code duplication.
9141
9142 2011-04-17  Bruno Haible  <bruno@clisp.org>
9143
9144         nonblocking: Add comment.
9145         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
9146
9147 2011-04-17  Bruno Haible  <bruno@clisp.org>
9148
9149         nonblocking: Add tests for sockets.
9150         * tests/test-nonblocking-socket.sh: New file.
9151         * tests/test-nonblocking-socket-main.c: New file.
9152         * tests/test-nonblocking-socket-child.c: New file.
9153         * tests/test-nonblocking-socket.h: New file.
9154         * tests/socket-server.h: New file.
9155         * tests/socket-client.h: New file.
9156         * modules/nonblocking-socket-tests: New file.
9157         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
9158
9159 2011-04-17  Bruno Haible  <bruno@clisp.org>
9160
9161         nonblocking: Add tests for pipes.
9162         * tests/test-nonblocking-pipe.sh: New file.
9163         * tests/test-nonblocking-pipe-main.c: New file.
9164         * tests/test-nonblocking-pipe-child.c: New file.
9165         * tests/test-nonblocking-pipe.h: New file.
9166         * tests/test-nonblocking-writer.h: New file.
9167         * tests/test-nonblocking-reader.h: New file.
9168         * tests/test-nonblocking-misc.h: New file.
9169         * modules/nonblocking-pipe-tests: New file.
9170         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
9171
9172 2011-04-16  Bruno Haible  <bruno@clisp.org>
9173
9174         gettext: Clarify the needed programmer actions.
9175         * modules/gettext (Notice): New field.
9176         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
9177
9178 2011-04-16  Bruno Haible  <bruno@clisp.org>
9179
9180         strchrnul: Tweak last commit.
9181         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
9182         bug.
9183         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
9184         as in _GL_FUNCDECL_SYS.
9185         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
9186         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
9187
9188 2011-04-15  Eric Blake  <eblake@redhat.com>
9189
9190         strchrnul: work around cygwin bug
9191         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
9192         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
9193         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
9194         * modules/string (Makefile.am): Substitute it.
9195         * lib/string.in.h (strchrnul): Use it.
9196
9197 2011-04-15  Bruno Haible  <bruno@clisp.org>
9198
9199         Don't require lib/stdio-write.c when only module 'stdio' is used.
9200         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
9201         invocation.
9202         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
9203
9204 2011-04-14  Bruno Haible  <bruno@clisp.org>
9205
9206         Support non-blocking pipe I/O in read() on native Windows.
9207         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
9208         (read): New declaration.
9209         * lib/read.c: New file.
9210         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
9211         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
9212         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
9213         vscanf): New declarations.
9214         * lib/stdio-read.c: New file.
9215         * m4/read.m4: New file.
9216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
9217         REPLACE_READ.
9218         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
9219         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9220         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
9221         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
9222         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
9223         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9224         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9225         * modules/read: New file.
9226         * modules/nonblocking (Files): Add lib/stdio-read.c.
9227         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
9228         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
9229         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
9230         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
9231         * modules/pread (Depends-on): Add read.
9232         * modules/safe-read (Depends-on): Likewise.
9233         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
9234         gets, scanf, vfscanf, vscanf): Verify signatures.
9235         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
9236         problem with non-blocking pipes.
9237         * doc/posix-functions/fgetc.texi: Likewise.
9238         * doc/posix-functions/fgets.texi: Likewise.
9239         * doc/posix-functions/fread.texi: Likewise.
9240         * doc/posix-functions/fscanf.texi: Likewise.
9241         * doc/posix-functions/getc.texi: Likewise.
9242         * doc/posix-functions/getchar.texi: Likewise.
9243         * doc/posix-functions/gets.texi: Likewise.
9244         * doc/posix-functions/scanf.texi: Likewise.
9245         * doc/posix-functions/vfscanf.texi: Likewise.
9246         * doc/posix-functions/vscanf.texi: Likewise.
9247
9248 2011-04-14  Bruno Haible  <bruno@clisp.org>
9249
9250         Support non-blocking pipe I/O in write() on native Windows.
9251         * lib/write.c (rpl_write): Split a write request that failed merely
9252         because the byte count was larger than the pipe buffer's size.
9253         * doc/posix-functions/write.texi: Mention the problem with large byte
9254         counts.
9255
9256 2011-04-14  Bruno Haible  <bruno@clisp.org>
9257
9258         wchar: Ensure that wchar_t gets defined on uClibc.
9259         * lib/wchar.in.h: On uClibc, include <stddef.h>.
9260         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
9261
9262 2011-04-13  Bruno Haible  <bruno@clisp.org>
9263
9264         safe-write, full-read: Avoid unnecessary compilation units.
9265         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
9266         (Depends-on): Remove safe-read. Add ssize_t.
9267         * modules/full-read (Files): Add lib/full-write.c.
9268         (Depends-on): Add full-write.
9269
9270 2011-04-13  Bruno Haible  <bruno@clisp.org>
9271
9272         Support non-blocking pipe I/O and SIGPIPE in pwrite().
9273         * modules/pwrite (Depends-on): Add 'write'.
9274
9275 2011-04-13  Bruno Haible  <bruno@clisp.org>
9276
9277         Support non-blocking pipe I/O in write() on native Windows.
9278         * lib/unistd.in.h (write): Enable replacement also if
9279         GNULIB_UNISTD_H_NONBLOCKING is 1.
9280         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
9281         (rpl_write): When failing to write on a non-blocking pipe, change
9282         errno from ENOSPC to EAGAIN.
9283         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
9284         putchar, puts, vfprintf, vprintf): Enable replacement also if
9285         GNULIB_STDIO_H_NONBLOCKING is 1.
9286         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
9287         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
9288         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
9289         CALL_WITH_SIGPIPE_EMULATION.
9290         (CALL_WITH_SIGPIPE_EMULATION): Use them.
9291         * m4/nonblocking.m4: New file.
9292         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
9293         for non-blocking I/O support.
9294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9295         GNULIB_UNISTD_H_NONBLOCKING.
9296         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
9297         required for non-blocking I/O support.
9298         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
9299         * modules/nonblocking (Files): Add m4/nonblocking.m4,
9300         lib/stdio-write.c, m4/asm-underscore.m4.
9301         (Depends-on): Add stdio, unistd.
9302         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
9303         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
9304         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
9305         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
9306         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
9307         problem with non-blocking pipes.
9308         * doc/posix-functions/fputc.texi: Likewise.
9309         * doc/posix-functions/fputs.texi: Likewise.
9310         * doc/posix-functions/fwrite.texi: Likewise.
9311         * doc/posix-functions/printf.texi: Likewise.
9312         * doc/posix-functions/putc.texi: Likewise.
9313         * doc/posix-functions/putchar.texi: Likewise.
9314         * doc/posix-functions/puts.texi: Likewise.
9315         * doc/posix-functions/vfprintf.texi: Likewise.
9316         * doc/posix-functions/vprintf.texi: Likewise.
9317         * doc/posix-functions/write.texi: Likewise.
9318
9319 2011-04-10  Jim Meyering  <meyering@redhat.com>
9320
9321         maint.mk: prohibit doubled words
9322         Detect them also when they're separated by a newline.
9323         There are 3 ways to customize it:
9324           - disable the test on a per file basis, as usual with rules using
9325             $(VC_LIST_EXCEPT)
9326           - replace the default doubled-word-selecting regexp (affects all files)
9327           - ignore a particular file-vs-doubled-word match
9328         I nearly used that last one to ignore the "is is" match in
9329         coreutils' NEWS file, since the text was "ls -is is ..."
9330         To do that, I would have added this line to cfg.mk:
9331           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
9332         but it would have ignored any "is is" match in NEWS.
9333         Low probability, but still...
9334         Instead, I changed the text, slightly:
9335           -  ls -is is now consistent with ls -lis in ignoring values returned
9336           +  "ls -is" is now consistent with ls -lis in ignoring values returned
9337         * top/maint.mk (prohibit_double_word_RE_): Provide default.
9338         (prohibit_doubled_word_): Define.
9339         (sc_prohibit_doubled_word): New rule.
9340         (sc_prohibit_the_the): Remove.  Subsumed by the above.
9341
9342 2011-04-10  Jim Meyering  <meyering@redhat.com>
9343
9344         maint: fix doubled-word typo in comment
9345         * m4/gethostname.m4: s/is is/it is/
9346         * m4/getdomainname.m4: Likewise.
9347
9348 2011-04-10  Jim Meyering  <meyering@redhat.com>
9349
9350         maint: remove doubled word: s/it it/it/
9351         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
9352
9353 2011-04-10  Jim Meyering  <meyering@redhat.com>
9354
9355         maint.mk: remove useless semicolon and backslash
9356         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
9357         semicolon and backslash.
9358
9359 2011-04-10  Bruno Haible  <bruno@clisp.org>
9360
9361         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
9362         * modules/stdint-tests (Depends-on): Add wchar.
9363
9364 2011-04-10  Jim Meyering  <meyering@redhat.com>
9365
9366         maint: remove doubled words in comments, e.g., s/a a/a/
9367         * lib/strptime.c (day_of_the_week): s/the the/the/
9368         * tests/test-chown.h (test_chown): s/a a/a/
9369
9370         test-chown.h: correct a cast
9371         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
9372         when the destination is a stat.st_gid.
9373
9374 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
9375
9376         getaddrinfo: Fix test for sa_len member.
9377         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
9378         include <sys/types.h> before <sys/socket.h>.
9379
9380 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
9381
9382         maint: change "can not" to "cannot"
9383         * doc/posix-functions/iconv.texi (iconv): This one crossed line
9384         boundaries.
9385
9386 2011-04-09  Jim Meyering  <meyering@redhat.com>
9387
9388         maint: change "a a" to "a"
9389         * tests/test-lchown.h (test_lchown): s/a a/a/
9390
9391         maint.mk: prohibit \<the the\>
9392         * top/maint.mk (sc_prohibit_the_the): New rule.
9393
9394         maint: fix "the the" in comment
9395         * lib/count-one-bits.h: s/the the/the/
9396
9397         maint: change "can not" to "cannot"
9398         But do not change the occurrences in maintain.texi or in
9399         build-aux/po/Makefile.in.in, which I presume comes from gettext.
9400         * doc/gnulib-tool.texi: s/can not/cannot/
9401         * doc/posix-functions/accept.texi (accept): Likewise.
9402         * doc/posix-functions/socket.texi (socket): Likewise.
9403         * lib/mbrtowc.c: Likewise.
9404
9405         maint.mk: prohibit use of "can not"
9406         * top/maint.mk (sc_prohibit_can_not): New rule.
9407         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
9408
9409 2011-04-09  Bruno Haible  <bruno@clisp.org>
9410
9411         careadlinkat: Guard against misuse of careadlinkatcwd.
9412         * lib/careadlinkat.c: Include <stdlib.h>.
9413         (careadlinkatcwd): Check that the fd argument is as expected.
9414
9415 2011-04-09  Bruno Haible  <bruno@clisp.org>
9416
9417         careadlinkat: Use common coding style.
9418         * lib/careadlinkat.c: Move gnulib includes after system includes.
9419
9420 2011-04-09  Bruno Haible  <bruno@clisp.org>
9421
9422         careadlinkat: Clarify specification.
9423         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
9424         (careadlinkatcwd): Add comment.
9425         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
9426
9427 2011-04-09  Bruno Haible  <bruno@clisp.org>
9428
9429         areadlinkat: Avoid link error on many platforms.
9430         * modules/areadlinkat (Depends-on): Add areadlink.
9431
9432 2011-04-09  Bruno Haible  <bruno@clisp.org>
9433
9434         allocator, careadlinkat: Fix double-inclusion guard.
9435         * lib/allocator.h: Fix double-inclusion guard.
9436         * lib/careadlinkat.h: Likewise.
9437
9438 2011-04-09  Bruno Haible  <bruno@clisp.org>
9439
9440         relocatable-prog-wrapper: Update after module 'areadlink' changed.
9441         * lib/relocwrapper.c: Update dependencies hierarchy.
9442         * build-aux/install-reloc: Update list of files to be compiled.
9443         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
9444         lib/allocator.[hc].
9445
9446 2011-04-08  Eric Blake  <eblake@redhat.com>
9447
9448         strftime: silence gnulib-tool warning
9449         * modules/strftime-tests (Depends-on): Drop automatic dependency.
9450
9451 2011-04-08  Bruno Haible  <bruno@clisp.org>
9452
9453         verify: Fix syntax error with GCC 4.6 in C++ mode.
9454         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
9455         (HAVE_STATIC_ASSERT): New macro.
9456         (verify_true, verify): Use 'static_assert' if it is supported and
9457         '_Static_assert' is not supported.
9458
9459 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
9460
9461         allocator: New module.
9462         * modules/allocator, lib/allocator.c: New files.
9463         * lib/allocator.h (stdlib_allocator): New decl.
9464         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
9465         Remove.  Do not include <stdlib.h>.
9466         (careadlinkat): Use stdlib_allocator instead of rolling our own.
9467         * modules/careadlinkat (Files): Remove lib/allocator.h.
9468         (Depends-on): Add allocator.
9469
9470         stdlib: let modules use system malloc, realloc
9471         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
9472         if !_GL_USE_STDLIB_ALLOC.
9473         (malloc, realloc): Limit this change to a smaller scope.
9474
9475         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
9476         (malloc, realloc): Don't #undef; no longer needed.
9477         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9478         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9479         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9480         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9481         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9482         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9483         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
9484         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
9485
9486         careadlinkat: rename members to avoid problem
9487         * lib/allocator.h (struct allocator): Rename members from
9488         malloc/realloc to allocate/reallocate, to avoid problems if malloc
9489         and realloc are #define'd.  Reported by Eric Blake in
9490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
9491         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
9492
9493 2011-04-08  Eric Blake  <eblake@redhat.com>
9494
9495         nonblocking: reduce dependency
9496         * tests/test-nonblocking.c: Only test sockets when in use.
9497         * modules/nonblocking-tests (Depends-on): Drop socket.
9498         (Makefile.am): Link even if sockets are not present.
9499         * modules/pipe2-tests (Makefile.am): Likewise.
9500         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
9501
9502         pipe2: fix O_NONBLOCK support on mingw
9503         * modules/pipe2 (Depends-on): Add nonblocking.
9504         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
9505         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
9506         * tests/test-nonblocking.c (main): Likewise.
9507         * modules/pipe2-tests (Makefile.am): Avoid link failure.
9508
9509         fcntl-h: fix O_ACCMODE on cygwin
9510         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
9511         * lib/fcntl.in.h (O_ACCMODE): Fix it.
9512
9513         pipe-filter: drop O_NONBLOCK workarounds
9514         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
9515         * modules/pipe-filter-ii (Depends-on): Likewise.
9516         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
9517
9518         nonblocking: provide O_NONBLOCK for mingw
9519         * modules/nonblocking (Depends-on): Add open.
9520         (configure.ac): Set new witness macro.
9521         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
9522         * modules/fcntl-h (Makefile.am): Substitute it.
9523         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
9524         nonblocking module is in use.
9525         * lib/nonblocking.c: Adjust portability test.
9526         * lib/open.c (open): Don't let native open see gnulib flag.
9527         * tests/test-fcntl-h.c (main): Enhance test.
9528         * tests/test-open.h (test_open): Likewise.
9529         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
9530
9531         careadlinkat: fix compilation error on mingw
9532         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
9533         within struct allocator.
9534
9535 2011-04-06  Eric Blake  <eblake@redhat.com>
9536
9537         binary-io: relicense under LGPLv2+
9538         * modules/binary-io (License): Relax to LGPLv2+.
9539         Requested for libvirt, and required by pipe2.
9540
9541 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
9542
9543         verify: use _Static_assert if available
9544         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
9545         (verify_true, verify): Use it if available.  This generates better
9546         diagnostics with GCC 4.6.0 and later.
9547
9548 2011-04-05  Bruno Haible  <bruno@clisp.org>
9549
9550         Remove leftover generated .h files after config.status changed.
9551
9552         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
9553         GL_GENERATE_ALLOCA_H.
9554         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9555         GL_GENERATE_ALLOCA_H evaluates to false.
9556
9557         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9558         GL_GENERATE_ARGZ_H.
9559         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9560         evaluates to false.
9561
9562         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9563         GL_GENERATE_BYTESWAP_H.
9564         * modules/byteswap (Makefile.am): Remove byteswap.h if
9565         GL_GENERATE_BYTESWAP_H evaluates to false.
9566
9567         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9568         GL_GENERATE_ERRNO_H.
9569         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9570         evaluates to false.
9571
9572         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9573         GL_GENERATE_FLOAT_H.
9574         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9575         evaluates to false.
9576
9577         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9578         GL_GENERATE_FNMATCH_H.
9579         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9580         GL_GENERATE_FNMATCH_H evaluates to false.
9581
9582         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9583         GL_GENERATE_GLOB_H.
9584         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9585         evaluates to false.
9586
9587         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9588         automake conditional GL_GENERATE_ICONV_H.
9589         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9590         evaluates to false.
9591
9592         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9593         GL_GENERATE_NETINET_IN_H.
9594         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9595         GL_GENERATE_NETINET_IN_H evaluates to false.
9596
9597         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9598         conditional GL_GENERATE_PTHREAD_H.
9599         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9600         * modules/pthread (Makefile.am): Remove pthread.h if
9601         GL_GENERATE_PTHREAD_H evaluates to false.
9602
9603         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9604         GL_GENERATE_SCHED_H.
9605         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9606         evaluates to false.
9607
9608         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9609         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9610         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9611         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9612
9613         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9614         GL_GENERATE_STDARG_H.
9615         * modules/stdarg (Makefile.am): Remove stdarg.h if
9616         GL_GENERATE_STDARG_H evaluates to false.
9617
9618         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9619         GL_GENERATE_STDBOOL_H.
9620         * modules/stdbool (Makefile.am): Remove stdbool.h if
9621         GL_GENERATE_STDBOOL_H evaluates to false.
9622
9623         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9624         conditional GL_GENERATE_STDDEF_H.
9625         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9626         * modules/stddef (Makefile.am): Remove stddef.h if
9627         GL_GENERATE_STDDEF_H evaluates to false.
9628
9629         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9630         GL_GENERATE_STDINT_H.
9631         * modules/stdint (Makefile.am): Remove stdint.h if
9632         GL_GENERATE_STDINT_H evaluates to false.
9633
9634         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9635         GL_GENERATE_SYSEXITS_H.
9636         * modules/sysexits (Makefile.am): Remove sysexits.h if
9637         GL_GENERATE_SYSEXITS_H evaluates to false.
9638
9639         Reported by Karl Berry and Ralf Wildenhues.
9640
9641 2011-04-05  Bruno Haible  <bruno@clisp.org>
9642
9643         Ensure to rebuild generated .h files when config.status has changed.
9644         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9645         config.status.
9646         * modules/ctype (Makefile.am): Likewise.
9647         * modules/dirent (Makefile.am): Likewise.
9648         * modules/errno (Makefile.am): Likewise.
9649         * modules/fcntl-h (Makefile.am): Likewise.
9650         * modules/float (Makefile.am): Likewise.
9651         * modules/getopt-posix (Makefile.am): Likewise.
9652         * modules/glob (Makefile.am): Likewise.
9653         * modules/iconv-h (Makefile.am): Likewise.
9654         * modules/inttypes (Makefile.am): Likewise.
9655         * modules/langinfo (Makefile.am): Likewise.
9656         * modules/locale (Makefile.am): Likewise.
9657         * modules/math (Makefile.am): Likewise.
9658         * modules/netdb (Makefile.am): Likewise.
9659         * modules/netinet_in (Makefile.am): Likewise.
9660         * modules/poll-h (Makefile.am): Likewise.
9661         * modules/pthread (Makefile.am): Likewise.
9662         * modules/pty (Makefile.am): Likewise.
9663         * modules/sched (Makefile.am): Likewise.
9664         * modules/search (Makefile.am): Likewise.
9665         * modules/selinux-h (Makefile.am): Likewise.
9666         * modules/signal (Makefile.am): Likewise.
9667         * modules/spawn (Makefile.am): Likewise.
9668         * modules/stdarg (Makefile.am): Likewise.
9669         * modules/stdbool (Makefile.am): Likewise.
9670         * modules/stddef (Makefile.am): Likewise.
9671         * modules/stdint (Makefile.am): Likewise.
9672         * modules/stdio (Makefile.am): Likewise.
9673         * modules/stdlib (Makefile.am): Likewise.
9674         * modules/string (Makefile.am): Likewise.
9675         * modules/strings (Makefile.am): Likewise.
9676         * modules/sys_file (Makefile.am): Likewise.
9677         * modules/sys_ioctl (Makefile.am): Likewise.
9678         * modules/sys_select (Makefile.am): Likewise.
9679         * modules/sys_socket (Makefile.am): Likewise.
9680         * modules/sys_stat (Makefile.am): Likewise.
9681         * modules/sys_time (Makefile.am): Likewise.
9682         * modules/sys_times (Makefile.am): Likewise.
9683         * modules/sys_utsname (Makefile.am): Likewise.
9684         * modules/sys_wait (Makefile.am): Likewise.
9685         * modules/sysexits (Makefile.am): Likewise.
9686         * modules/termios (Makefile.am): Likewise.
9687         * modules/time (Makefile.am): Likewise.
9688         * modules/unistd (Makefile.am): Likewise.
9689         * modules/wchar (Makefile.am): Likewise.
9690         * modules/wctype-h (Makefile.am): Likewise.
9691         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9692
9693 2011-04-05  Bruno Haible  <bruno@clisp.org>
9694
9695         pipe2: Relicense under LGPLv2+.
9696         * modules/pipe2 (License): Change to LGPLv2+.
9697         Requested by Eric Blake, for libvirt.
9698
9699 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9700
9701         bootstrap: compute gnulib_extra_files after updating build_aux
9702         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9703         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9704
9705 2011-04-05  Eric Blake  <eblake@redhat.com>
9706
9707         bootstrap: preserve git whitelist item sorting
9708         * build-aux/bootstrap (sort_patterns): New function.
9709         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9710
9711 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9712
9713         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9714         sc_space_tab check.
9715
9716 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9717
9718         areadlink, areadlinkat: rewrite in terms of careadlinkat
9719         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9720         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9721         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9722         (malloc, realloc): Remove #undefs.
9723         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9724         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9725         readlink, ssize_t, stdint, unistd.
9726         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9727         areadlink, stdint.
9728
9729         careadlinkat: new module
9730         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9731         * modules/careadlinkat: New files, written by me with
9732         a review and feedback from Ben Pfaff in
9733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9734
9735 2011-04-01  Bruno Haible  <bruno@clisp.org>
9736
9737         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9738         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9739         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9740         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9741         Reported by Bruce Korb <bruce.korb@gmail.com>.
9742
9743 2011-04-01  Bruno Haible  <bruno@clisp.org>
9744
9745         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9746         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9747         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9748         * modules/wcpcpy (Depends-on): Add extensions.
9749         * modules/wcpncpy (Depends-on): Likewise.
9750         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9751         systems.
9752         * doc/posix-functions/wcpncpy.texi: Likewise.
9753         * doc/posix-functions/wcwidth.texi: Likewise.
9754
9755 2011-03-31  Eric Blake  <eblake@redhat.com>
9756
9757         nonblocking: fix mingw test failures
9758         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9759         non-blocking flag on regular file.
9760         (get_nonblocking_flag): Set errno on invalid fd.
9761         * tests/test-nonblocking.c (main): Avoid test failure on
9762         directories if fchdir is not active.
9763         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9764
9765 2011-03-31  Bruno Haible  <bruno@clisp.org>
9766
9767         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9768         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9769         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9770         Reported by Simon Josefsson <simon@josefsson.org>.
9771
9772 2011-03-31  Bruno Haible  <bruno@clisp.org>
9773         and Eric Blake  <eblake@redhat.com>
9774
9775         nonblocking: new module
9776         * modules/nonblocking: New module.
9777         * modules/nonblocking-tests: Likewise.
9778         * lib/nonblocking.h: New file.
9779         * lib/nonblocking.c: Likewise.
9780         * tests/test-nonblocking.c: New test.
9781         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9782
9783 2011-03-30  Bruno Haible  <bruno@clisp.org>
9784
9785         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9786         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9787         instead of 'printf' format for GCC >= 4.4.
9788         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9789         (fprintf, printf, vfprintf, vprintf): Declare with
9790         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9791         the system's vfprintf() function.
9792         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9793
9794 2011-03-30  Eric Blake  <eblake@redhat.com>
9795
9796         passfd: fix scoping bug
9797         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9798         before sendmsg/recvmsg.
9799
9800         passfd: standardize coding conventions
9801         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9802         can be learned at compile time.
9803         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9804         ifdefs.
9805         (sendfd, recvfd): Follow gnulib code conventions.
9806
9807         passfd: fix incorrect sendmsg arguments
9808         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9809         incorrect msg_controllen value.
9810         * modules/passfd-tests (Depends-on): Check for alarm.
9811         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9812         Reported by Bastien ROUCARIES.
9813
9814 2011-03-30  Bruno Haible  <bruno@clisp.org>
9815
9816         c-strcasestr: Relicense under LGPLv2+.
9817         * modules/c-strcasestr (License): Change to LGPLv2+.
9818         Requested by Eric Blake, for libvirt.
9819
9820 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9821
9822         * users.txt: Add libidn2.  Fix libtasn1 link.
9823
9824 2011-03-30  Jim Meyering  <meyering@redhat.com>
9825
9826         tests: readlink* ("",... fails with EINVAL on newer kernels
9827         readlink and readlinkat have typically failed with ENOENT for
9828         the invalid, empty file name,  "".  However, with the advent
9829         of linux-2.6.39, they fail with EINVAL.
9830         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9831         when operating on the empty file name.
9832         * tests/test-readlink.h (test_readlink): Likewise.
9833
9834 2011-03-29  Bruno Haible  <bruno@clisp.org>
9835
9836         Relicense some modules under LGPLv2+, for libidn2.
9837         * modules/array-mergesort (License): Change to LGPLv2+.
9838         * modules/c-strcaseeq (License): Likewise.
9839         * modules/striconveh (License): Likewise.
9840         * modules/striconveha (License): Likewise.
9841         * modules/uniconv/base (License): Likewise.
9842         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9843         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9844         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9845         * modules/unictype/base (License): Likewise.
9846         * modules/unictype/bidiclass-of (License): Likewise.
9847         * modules/unictype/category-M (License): Likewise.
9848         * modules/unictype/category-none (License): Likewise.
9849         * modules/unictype/category-of (License): Likewise.
9850         * modules/unictype/category-test (License): Likewise.
9851         * modules/unictype/category-test-withtable (License): Likewise.
9852         * modules/unictype/combining-class (License): Likewise.
9853         * modules/unictype/joiningtype-of (License): Likewise.
9854         * modules/unictype/scripts (License): Likewise.
9855         * modules/uninorm/base (License): Likewise.
9856         * modules/uninorm/canonical-decomposition (License): Likewise.
9857         * modules/uninorm/composition (License): Likewise.
9858         * modules/uninorm/decompose-internal (License): Likewise.
9859         * modules/uninorm/decomposition-table (License): Likewise.
9860         * modules/uninorm/nfc (License): Likewise.
9861         * modules/uninorm/nfd (License): Likewise.
9862         * modules/uninorm/u32-normalize (License): Likewise.
9863         * modules/unistr/base (License): Likewise.
9864         * modules/unistr/u32-cpy (License): Likewise.
9865         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9866         * modules/unistr/u32-to-u8 (License): Likewise.
9867         * modules/unistr/u32-uctomb (License): Likewise.
9868         * modules/unistr/u8-check (License): Likewise.
9869         * modules/unistr/u8-mblen (License): Likewise.
9870         * modules/unistr/u8-mbtouc (License): Likewise.
9871         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9872         * modules/unistr/u8-mbtoucr (License): Likewise.
9873         * modules/unistr/u8-prev (License): Likewise.
9874         * modules/unistr/u8-strlen (License): Likewise.
9875         * modules/unistr/u8-to-u32 (License): Likewise.
9876         * modules/unistr/u8-uctomb (License): Likewise.
9877         * modules/unitypes (License): Likewise.
9878         Requested by Simon Josefsson.
9879
9880 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9881
9882         lib-symbol-visibility: Add a notice.
9883         * modules/lib-symbol-visibility (Notice): New field.
9884
9885 2011-03-29  Bruno Haible  <bruno@clisp.org>
9886
9887         getaddrinfo: Doc fix.
9888         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9889         section "fixed in Gnulib".
9890
9891 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9892
9893         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9894         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9895
9896 2011-03-26  Bruno Haible  <bruno@clisp.org>
9897
9898         unictype/property-byname: Reduce the number of load-time relocations.
9899         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9900         (UC_PROPERTY_INDEX_*): New enumeration values.
9901         (uc_property_byname): Convert an index from the lookup table to an
9902         uc_property_t.
9903         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9904         values.
9905
9906 2011-03-26  Bruno Haible  <bruno@clisp.org>
9907
9908         unictype/property-byname: Allow omitted word separators and aliases.
9909         * lib/unictype/pr_byname.gperf: Add property names without word
9910         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9911         for 'space'.
9912
9913 2011-03-26  Bruno Haible  <bruno@clisp.org>
9914
9915         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9916         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9917         also hyphens to space.
9918         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9919         without spaces.
9920         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9921
9922 2011-03-26  Bruno Haible  <bruno@clisp.org>
9923
9924         unictype/joiningtype-byname: Recognize long names as well.
9925         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9926         a long name.
9927         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9928         unictype/joiningtype_byname.h.
9929         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9930         * lib/unictype/joiningtype_byname.gperf: New file.
9931         * modules/unictype/joiningtype-byname (Files): Add
9932         lib/unictype/joiningtype_byname.gperf.
9933         (Depends-on): Add gperf.
9934         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9935         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9936         long names.
9937
9938         Tests for module 'unictype/joiningtype-longname'.
9939         * modules/unictype/joiningtype-longname-tests: New file.
9940         * tests/unictype/test-joiningtype_longname.c: New file.
9941
9942         New module 'unictype/joiningtype-longname'.
9943         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9944         * lib/unictype/joiningtype_longname.c: New file.
9945         * modules/unictype/joiningtype-longname: New file.
9946         * modules/unictype/joiningtype-all (Depends-on): Add
9947         unictype/joiningtype-longname.
9948
9949 2011-03-26  Bruno Haible  <bruno@clisp.org>
9950
9951         unictype/bidiclass-byname: Recognize long names as well.
9952         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9953         name.
9954         * lib/unictype/bidi_byname.c: Include <string.h>,
9955         unictype/bidi_byname.h.
9956         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9957         * lib/unictype/bidi_byname.gperf: New file.
9958         * modules/unictype/bidiclass-byname (Files): Add
9959         lib/unictype/bidi_byname.gperf.
9960         (Depends-on): Add gperf.
9961         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9962         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9963         long names.
9964
9965         Tests for module 'unictype/bidiclass-longname'.
9966         * modules/unictype/bidiclass-longname-tests: New file.
9967         * tests/unictype/test-bidi_longname.c: New file.
9968
9969         New module 'unictype/bidiclass-longname'.
9970         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9971         * lib/unictype/bidi_longname.c: New file.
9972         * modules/unictype/bidiclass-longname: New file.
9973         * modules/unictype/bidiclass-all (Depends-on): Add
9974         unictype/bidiclass-longname.
9975
9976 2011-03-26  Bruno Haible  <bruno@clisp.org>
9977
9978         unictype/bidi*: Rename modules.
9979         * modules/unictype/bidiclass-all: Renamed from
9980         modules/unictype/bidicategory-all.
9981         * modules/unictype/bidiclass-name: Renamed from
9982         modules/unictype/bidiclass-name.
9983         (Description): Update.
9984         * modules/unictype/bidiclass-name-tests: Renamed from
9985         modules/unictype/bidicategory-name-tests.
9986         * modules/unictype/bidiclass-byname: Renamed from
9987         modules/unictype/bidicategory-byname.
9988         (Description): Update.
9989         * modules/unictype/bidiclass-byname-tests: Renamed from
9990         modules/unictype/bidicategory-byname-tests.
9991         * modules/unictype/bidiclass-of: Renamed from
9992         modules/unictype/bidicategory-of.
9993         (Description): Update.
9994         * modules/unictype/bidiclass-of-tests: Renamed from
9995         modules/unictype/bidicategory-of-tests.
9996         * modules/unictype/bidiclass-test: Renamed from
9997         modules/unictype/bidicategory-test.
9998         (Description): Update.
9999         * modules/unictype/bidiclass-test-tests: Renamed from
10000         modules/unictype/bidicategory-test-tests.
10001         * modules/unictype/bidicategory-all: New file, a simple redirection.
10002         * modules/unictype/bidicategory-name: Likewise.
10003         * modules/unictype/bidicategory-byname: Likewise.
10004         * modules/unictype/bidicategory-of: Likewise.
10005         * modules/unictype/bidicategory-test: Likewise.
10006         * modules/unictype/property-bidi-* (Dependencies): Update.
10007         * lib/unictype/bidi_*.c: Update comment.
10008
10009 2011-03-26  Bruno Haible  <bruno@clisp.org>
10010
10011         unictype/bidi*: Rename functions, part 2.
10012         * modules/unictype/bidicategory-name (configure.ac): Update required
10013         libunistring version.
10014         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10015
10016 2011-03-25  Bruno Haible  <bruno@clisp.org>
10017
10018         New module 'unictype/combining-class-all'.
10019         * modules/unictype/combining-class-all: New file.
10020
10021         Tests for module 'unictype/combining-class-byname'.
10022         * modules/unictype/combining-class-byname-tests: New file.
10023         * tests/unictype/test-combiningclass_byname.c: New file.
10024
10025         New module 'unictype/combining-class-byname'.
10026         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
10027         * lib/unictype/combiningclass_byname.c: New file.
10028         * lib/unictype/combiningclass_byname.gperf: New file.
10029         * modules/unictype/combining-class-byname: New file.
10030
10031         Tests for module 'unictype/combining-class-longname'.
10032         * modules/unictype/combining-class-longname-tests: New file.
10033         * tests/unictype/test-combiningclass_longname.c: New file.
10034
10035         New module 'unictype/combining-class-longname'.
10036         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
10037         * lib/unictype/combiningclass_longname.c: New file.
10038         * modules/unictype/combining-class-longname: New file.
10039
10040         Tests for module 'unictype/combining-class-name'.
10041         * modules/unictype/combining-class-name-tests: New file.
10042         * tests/unictype/test-combiningclass_name.c: New file.
10043
10044         New module 'unictype/combining-class-name'.
10045         * lib/unictype.in.h (uc_combining_class_name): New declaration.
10046         * lib/unictype/combiningclass_name.c: New file.
10047         * modules/unictype/combining-class-name: New file.
10048
10049 2011-03-25  Bruno Haible  <bruno@clisp.org>
10050
10051         unictype/combining-class: Rename source files.
10052         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10053         of unictype/combining.h.
10054         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10055         Update.
10056         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10057         * modules/unictype/combining-class (Description): Fix.
10058         (Files, Makefile.am): Update.
10059         * tests/unictype/test-combiningclass.c: Renamed from
10060         tests/unictype/test-combining.c.
10061         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10062
10063 2011-03-25  Bruno Haible  <bruno@clisp.org>
10064
10065         unictype: Update list of canonical combining classes.
10066         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10067
10068 2011-03-25  Bruno Haible  <bruno@clisp.org>
10069
10070         unictype/category-byname: Recognize long names as well.
10071         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10072         a long name.
10073         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10074         unictype/categ_byname.h.
10075         (UC_CATEGORY_INDEX_*): New enumeration values.
10076         (uc_general_category_byname): Use uc_general_category_lookup and
10077         convert from index to value.
10078         * lib/unictype/categ_byname.gperf: New file.
10079         * modules/unictype/category-byname (Files): Add
10080         lib/unictype/categ_byname.gperf.
10081         (Depends-on): Add gperf.
10082         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10083         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10084         long names.
10085
10086         Tests for module 'unictype/category-longname'.
10087         * modules/unictype/category-longname-tests: New file.
10088         * tests/unictype/test-categ_longname.c: New file.
10089
10090         New module 'unictype/category-longname'.
10091         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10092         * lib/unictype/categ_longname.c: New file.
10093         * modules/unictype/category-longname: New file.
10094         * modules/unictype/category-all (Depends-on): Add it.
10095
10096 2011-03-25  Bruno Haible  <bruno@clisp.org>
10097
10098         Tests for module 'unictype/category-LC'.
10099         * modules/unictype/category-LC-tests: New file.
10100         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10101
10102         New module 'unictype/category-LC'.
10103         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10104         (UC_CATEGORY_LC): New declaration.
10105         (UC_CASED_LETTER): New macro.
10106         * lib/gen-uni-tables.c (is_category_LC): New function.
10107         (output_categories): Also handle category LC.
10108         (UC_CATEGORY_MASK_LC): New enumeration value.
10109         (general_category_byname): Also handle category LC.
10110         * lib/unictype/categ_LC.c: New file.
10111         * lib/unictype/categ_LC.h: New file, automatically generated.
10112         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10113         category LC.
10114         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10115         * modules/unictype/category-LC: New file.
10116         * modules/unictype/category-byname (Depends-on): Add
10117         unictype/category-LC.
10118         * modules/unictype/category-all (Depends-on): Likewise.
10119
10120 2011-03-25  Eric Blake  <eblake@redhat.com>
10121
10122         xmalloc: revert yesterday's regression
10123         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
10124         realloc's underlying behavior (allowing allocation of zero-size
10125         objects, especially if malloc-gnu is also in use).
10126
10127 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
10128
10129         maint.mk: add missing version to VC-tag
10130         * top/maint.mk: git tag was missing actual tag name; add it.
10131
10132         valgrind: do leak checking, and exit with code 1 on error (not 0)
10133         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
10134         to VALGRIND.
10135
10136 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
10137
10138         posix-modules: say what it does.
10139         * posix-modules: Add a line to the --help output saying what it does.
10140
10141 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10142
10143         xmalloc: Do not leak if underlying realloc is C99 compatible.
10144         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
10145         This avoids a leak on C99-based systems.  See
10146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
10147
10148 2011-03-24  Eric Blake  <eblake@redhat.com>
10149
10150         realloc: document portability problem
10151         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
10152         passing 0 size to realloc.
10153
10154 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
10155
10156         doc: update users.txt
10157         * users.txt: Add cvsps, tmpwatch
10158
10159 2011-03-23  Matt Rice  <ratmice@gmail.com>
10160
10161         doc: update users.txt
10162         * users.txt: Add gdb.
10163
10164 2011-03-23  Jim Meyering  <meyering@redhat.com>
10165
10166         doc: update users.txt
10167         Looking through matches up to the following URL (there are still
10168         several more pages), I found several projects that use gnulib:
10169         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
10170         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
10171         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
10172
10173 2011-03-22  Bruno Haible  <bruno@clisp.org>
10174
10175         unictype/bidi*: Rename functions.
10176         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
10177         uc_bidi_class, uc_is_bidi_class): New declarations.
10178         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
10179         uc_bidi_category_byname.
10180         (uc_bidi_category_byname): New function.
10181         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
10182         u_bidi_category_name.
10183         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
10184         (uc_bidi_category_name): New function.
10185         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
10186         uc_bidi_category.
10187         (uc_bidi_category): New function.
10188         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
10189         uc_is_bidi_category. Invoke uc_bidi_class.
10190         (uc_is_bidi_category): New function.
10191         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
10192         instead of uc_bidi_category_byname.
10193         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
10194         instead of uc_bidi_category_name.
10195         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
10196         uc_bidi_category.
10197         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
10198         instead of uc_is_bidi_category.
10199
10200 2011-03-21  Bruno Haible  <bruno@clisp.org>
10201
10202         New module 'unictype/joininggroup-all'.
10203         * modules/unictype/joininggroup-all: New file.
10204
10205         Tests for module 'unictype/joininggroup-of'.
10206         * modules/unictype/joininggroup-of-tests: New file.
10207         * tests/unictype/test-joininggroup_of.c: New file.
10208         * tests/unictype/test-joininggroup_of.h: New file, automatically
10209         generated by gen-uni-tables.
10210
10211         New module 'unictype/joininggroup-of'.
10212         * modules/unictype/joininggroup-of: New file.
10213         * lib/unictype/joininggroup_of.c: New file.
10214         * lib/unictype/joininggroup_of.h: New file, automatically generated by
10215         gen-uni-tables.
10216
10217         Tests for module 'unictype/joininggroup-byname'.
10218         * modules/unictype/joininggroup-byname-tests: New file.
10219         * tests/unictype/test-joininggroup_byname.c: New file.
10220
10221         New module 'unictype/joininggroup-byname'.
10222         * modules/unictype/joininggroup-byname: New file.
10223         * lib/unictype/joininggroup_byname.c: New file.
10224         * lib/unictype/joininggroup_byname.gperf: New file.
10225
10226         Tests for module 'unictype/joininggroup-name'.
10227         * modules/unictype/joininggroup-name-tests: New file.
10228         * tests/unictype/test-joininggroup_name.c: New file.
10229
10230         New module 'unictype/joininggroup-name'.
10231         * modules/unictype/joininggroup-name: New file.
10232         * lib/unictype/joininggroup_name.c: New file.
10233         * lib/unictype/joininggroup_name.h: New file.
10234
10235         New module 'unictype/joiningtype-all'.
10236         * modules/unictype/joiningtype-all: New file.
10237
10238         Tests for module 'unictype/joiningtype-of'.
10239         * modules/unictype/joiningtype-of-tests: New file.
10240         * tests/unictype/test-joiningtype_of.c: New file.
10241         * tests/unictype/test-joiningtype_of.h: New file, automatically
10242         generated by gen-uni-tables.
10243
10244         New module 'unictype/joiningtype-of'.
10245         * modules/unictype/joiningtype-of: New file.
10246         * lib/unictype/joiningtype_of.c: New file.
10247         * lib/unictype/joiningtype_of.h: New file, automatically generated by
10248         gen-uni-tables.
10249
10250         Tests for module 'unictype/joiningtype-byname'.
10251         * modules/unictype/joiningtype-byname-tests: New file.
10252         * tests/unictype/test-joiningtype_byname.c: New file.
10253
10254         New module 'unictype/joiningtype-byname'.
10255         * modules/unictype/joiningtype-byname: New file.
10256         * lib/unictype/joiningtype_byname.c: New file.
10257
10258         Tests for module 'unictype/joiningtype-name'.
10259         * modules/unictype/joiningtype-name-tests: New file.
10260         * tests/unictype/test-joiningtype_name.c: New file.
10261
10262         New module 'unictype/joiningtype-name'.
10263         * modules/unictype/joiningtype-name: New file.
10264         * lib/unictype/joiningtype_name.c: New file.
10265
10266         unictype: Add support for Arabic shaping properties.
10267         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
10268         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
10269         declarations.
10270         (UC_JOINING_GROUP_*): New enumeration values.
10271         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
10272         declarations.
10273         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
10274         (unicode_joining_type): New variable.
10275         (UC_JOINING_GROUP_*): New enumeration values.
10276         (unicode_joining_group): New variable.
10277         (fill_arabicshaping, joining_type_as_c_identifier,
10278         output_joining_type_test, output_joining_type,
10279         joining_group_as_c_identifier, output_joining_group_test,
10280         output_joining_group): New functions.
10281         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
10282         fill_arabicshaping and output_joining_type_test, output_joining_type,
10283         output_joining_group_test, output_joining_group.
10284         Reported by Simon Josefsson.
10285
10286 2011-03-21  Jim Meyering  <meyering@redhat.com>
10287
10288         strftime: fix a bug in yesterday's change
10289         * lib/strftime.c (add): Accommodate width's initial value of -1.
10290         Otherwise, nstrftime would copy uninitialized data into
10291         the result buffer.
10292
10293 2011-03-21  Jim Meyering  <meyering@redhat.com>
10294
10295         tests: add strftime-tests module
10296         * tests/test-strftime.c: New file.
10297         * modules/strftime-tests: New module.
10298
10299 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10300
10301         strftime: don't assume a byte count fits in 'int'
10302         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
10303         found this problem by static analysis, using gcc -Wstrict-overflow
10304         (GCC 4.5.2, x86-64).  This reported an optimization that depended
10305         on an integer overflow having undefined behavior, but it turns out
10306         that the argument is a size, which might not fit in 'int' anyway,
10307
10308 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10309
10310         stdio: don't require ignore_value around fwrite
10311
10312         This patch works around libc bug 11959
10313         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
10314         Without this patch, applications must often write
10315         ignore_value (fwrite (...)) even though the ignore_value is
10316         not helpful here.  It's common to write many objects, using
10317         fwrite/printf/etc., and then use ferror to detect output error.
10318
10319         I considered making this patch optional, but decided against it,
10320         because libc is obviously being inconsistent here: there is no
10321         reason libc should insist that user code must inspect fwrite
10322         return's value without also insisting that it inspect printf's,
10323         putchar's, etc.  If user code wants to have a strict style where
10324         all these functions' values are checked (so that ferror need not
10325         be checked), we could add support for that style in a new gnulib
10326         module, but in the meantime it's better to be consistent and to
10327         support common usage.
10328
10329         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
10330         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
10331         that we are compiling in checking mode, and if not C++, and
10332         if not already wrapping fwrite for some other reason.
10333         (fwrite): #define to rpl_fwrite if the latter is defined.
10334
10335 2011-03-20  Bruno Haible  <bruno@clisp.org>
10336
10337         verror: Fix compilation error introduced on 2011-02-13.
10338         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
10339         instead of __attribute__.
10340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10341
10342 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10343             Bruno Haible  <bruno@clisp.org>
10344
10345         socklen: do not depend on sys_socket
10346         While trying to modify Emacs to use gnulib's socklen module,
10347         I discovered a circular dependency: socklen depends on sys_socket
10348         and vice versa.  Emacs can use socklen, but it does not need
10349         sys_socket because it has its own substitute for sys/socket.h.
10350         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
10351         gl_TYPE_SOCKLEN_T.
10352         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
10353         gl_PREREQ_SYS_H_SOCKET.
10354         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
10355         gl_PREREQ_SYS_H_SOCKET.
10356         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
10357         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
10358         * modules/socklen (Depends-on): Do not depend on sys_socket.
10359         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
10360
10361 2011-03-20  Jim Meyering  <meyering@redhat.com>
10362
10363         maint.mk: sort file names *after* new transformation
10364         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
10365         prefix would have led to an unwarranted failure in GNU parted.
10366         Sort after that transformation.
10367
10368 2011-03-19  Jim Meyering  <meyering@redhat.com>
10369
10370         maint.mk: fix po-file syntax-check rule
10371         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
10372         Patch by Bruno Haible.
10373
10374 2011-03-19  Bruno Haible  <bruno@clisp.org>
10375
10376         socklen: Update comment.
10377         * m4/socklen.m4: Update comment about platforms.
10378
10379 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10380             Bruno Haible  <bruno@clisp.org>
10381
10382         inet_ntop, inet_pton: Simplify.
10383         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
10384         documented to provide socklen_t and we already depend on sys_socket.
10385         * modules/inet_pton (Depends-on): Likewise.
10386         * lib/arpa_inet.in.h: Adjust comment.
10387
10388 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10389             Bruno Haible  <bruno@clisp.org>
10390
10391         netdb: Simplify.
10392         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
10393         documented to provide socklen_t and we already depend on sys_socket.
10394         * lib/netdb.in.h: Adjust comment.
10395
10396 2011-03-19  Bruno Haible  <bruno@clisp.org>
10397
10398         sys_socket, netdb: Document problem with socklen_t.
10399         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
10400         platforms.
10401         * doc/posix-headers/netdb.texi: Likewise.
10402
10403 2011-03-18  Eric Blake  <eblake@redhat.com>
10404
10405         maint.mk: let po check work in VPATH build
10406         * top/maint.mk (po_file): Allow cfg.mk override.
10407         (sc_po_check): Allow VPATH use.
10408         Reported by Jiri Denemark.
10409
10410 2011-03-16  Jim Meyering  <meyering@redhat.com>
10411
10412         maint.mk: allow fine-grained syntax-check exclusion via Make variables
10413         Before, you would have had to create one .x-sc_ file per rule in order
10414         to exempt offending files.  Now, you may instead use a Make variable --
10415         usually defined in cfg.mk -- whose name identifies the affected rule.
10416         * top/maint.mk (_sc_excl): Define.
10417         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
10418         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
10419
10420 2011-03-13  Bruno Haible  <bruno@clisp.org>
10421
10422         ignore-value tests: Avoid warnings.
10423         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
10424         empty for gcc < 3.4.
10425
10426 2011-03-13  Bruno Haible  <bruno@clisp.org>
10427
10428         passfd: Fix link error on Solaris.
10429         * modules/passfd (Description): Correct.
10430         (Depends-on): Add socketlib.
10431         (Link): New section.
10432         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
10433
10434 2011-03-13  Bruno Haible  <bruno@clisp.org>
10435
10436         passfd: Fix link error on AIX 5.2.
10437         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
10438
10439 2011-03-13  Bruno Haible  <bruno@clisp.org>
10440
10441         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
10442         * lib/sys_socket.in.h: Include <stddef.h>.
10443         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
10444         CMSG_FIRSTHDR. Remove unused variable.
10445
10446 2011-03-13  Bruno Haible  <bruno@clisp.org>
10447
10448         passfd: Fix compilation error on OpenBSD.
10449         * lib/passfd.c: Include <sys/uio.h>.
10450
10451 2011-03-13  Bruno Haible  <bruno@clisp.org>
10452
10453         passfd test: Fix warnings.
10454         * tests/test-passfd.c: Include <sys/wait.h>.
10455         (main): Fix typo.
10456
10457 2011-03-13  Bruno Haible  <bruno@clisp.org>
10458
10459         passfd module, part 4, tweaks.
10460         * tests/test-passfd.c: Reorder includes.
10461         (main): Fix perror and printf calls.
10462
10463 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10464
10465         passfd module, part 4.
10466         * modules/passfd-tests: New file.
10467         * tests/test-passfd.c: New file.
10468
10469 2011-03-13  Jim Meyering  <meyering@redhat.com>
10470
10471         Makefile: rely on GNU make; derive syntax-check rule names
10472         Rather than requiring that each sc_ rule be listed as a dependent
10473         of "check", use features of GNU make to derive the list.
10474         * Makefile (syntax-check-rules): Define.
10475         (check): Depend on the new variable, not the hard-coded list.
10476
10477 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
10478             Bruno Haible  <bruno@clisp.org>
10479
10480         passfd module, part 3.
10481         * lib/passfd.h (recvfd): Add a flags argument.
10482         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
10483         (recvfd): Add a flags argument.
10484         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
10485         exists.
10486         * modules/passfd (Depends-on): Add cloexec.
10487         Suggested by Eric Blake.
10488
10489 2011-03-13  Bruno Haible  <bruno@clisp.org>
10490
10491         passfd module, part 2, tweaks.
10492         * modules/passfd (Files): Reorder.
10493         (Depends-on): Remove errno.
10494         (Include): Remove <sys/socket.h>, <sys/un.h>.
10495         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
10496         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
10497         specification header. Include <sys/socket.h> always. Don't include
10498         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
10499         (sendfd): Clarify that it sets errno when it fails.
10500         (recvfd): Fix specification.
10501
10502 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10503
10504         passfd module, part 2.
10505         * modules/passfd: New file.
10506         * lib/passfd.h: New file.
10507         * lib/passfd.c: New file.
10508
10509 2011-03-12  Bruno Haible  <bruno@clisp.org>
10510
10511         wcswidth, mbswidth: Avoid integer overflow.
10512         * lib/wcswidth.c: Include <limits.h>.
10513         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
10514         * lib/mbswidth.c: Include <limits.h>.
10515         (mbsnwidth): Avoid 'int' overflow.
10516         Reported by Jim Meyering.
10517
10518 2011-03-12  Bruno Haible  <bruno@clisp.org>
10519
10520         futimens, utimensat: Avoid endless recursion on Solaris 10.
10521         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
10522         Solaris.
10523         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
10524         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
10525
10526 2011-03-11  Jim Meyering  <meyering@redhat.com>
10527
10528         maint.mk: relax a regexp to accommodate other formatting styles
10529         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
10530         between "ngettext" and the following "(".
10531
10532 2011-03-11  Pádraig Brady <P@draigBrady.com>
10533
10534         maint.mk: suppress a false positive warning
10535         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
10536         diagnostics are marked with ngettext.
10537
10538 2011-03-10  Eric Blake  <eblake@redhat.com>
10539
10540         wchar: add explicit dependencies, for Tru64
10541         * modules/mbmemcasecoll (Depends-on): Add wchar.
10542         * modules/mbtowc (Depends-on): Likewise.
10543         * modules/vasnprintf (Depends-on): Likewise.
10544         * modules/unistdio/u-printf-args (Depends-on): Likewise.
10545         * modules/wctomb (Depends-on): Likewise.
10546         Reported by Peter O'Gorman.
10547
10548 2011-03-08  Bruno Haible  <bruno@clisp.org>
10549
10550         passfd module, part 1, tweaks.
10551         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
10552         Improve indentation. Improve AC_MSG_CHECKING messages.
10553         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
10554         gl_SOCKET_FAMILIES.
10555
10556 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10557
10558         passfd module, part 1.
10559         * m4/afunix.m4: New file.
10560         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10561         sockets.
10562
10563 2011-03-08  Bruno Haible  <bruno@clisp.org>
10564
10565         regex-quote: New API.
10566         * lib/regex-quote.h: Include <stdbool.h>.
10567         (struct regex_quote_spec): New type.
10568         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10569         New declarations.
10570         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10571         'const struct regex_quote_spec *' argument.
10572         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10573         (pcre_special): New constant.
10574         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10575         New functions.
10576         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10577         'const struct regex_quote_spec *' argument.
10578         * modules/regex-quote (Depends-on): Add stdbool.
10579         * tests/test-regex-quote.c (check): Update for new API. Add test for
10580         anchored results.
10581         * NEWS: Mention the API change.
10582         Reported by Reuben Thomas and Eric Blake.
10583
10584 2011-03-06  Bruno Haible  <bruno@clisp.org>
10585
10586         regex-quote: Fix creation of POSIX extended regular expressions.
10587         * lib/regex-quote.c (ere_special): Add grouping and alternation
10588         operators.
10589
10590 2011-03-05  Bruno Haible  <bruno@clisp.org>
10591
10592         doc: Improve doc regarding autopoint vs. gnulib.
10593         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10594         disable autopoint while running autoreconf.
10595         Suggested by Ralf Wildenhues.
10596
10597 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10598
10599         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10600         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10601
10602 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10603
10604         parse-duration: remove xalloc.h dependency
10605         * lib/parse-duration.c (parse_period): handle NULL return from
10606         strdup instead of calling xstrdup().
10607         * modules/parse-duration: remove "xalloc" dependency
10608
10609 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10610
10611         bootstrap: honor m4_base when running aclocal
10612         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10613
10614 2011-03-02  Jim Meyering  <meyering@redhat.com>
10615
10616         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10617         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10618         on request from Matt Booth.
10619
10620 2011-03-01  Eric Blake  <eblake@redhat.com>
10621
10622         test-link: work on Hurd
10623         * tests/test-link.h (test_link): Hurd rejects linking directories
10624         with EISDIR instead of the POSIX-mandated EPERM.
10625
10626 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10627
10628         stdio: simplify by moving files to printf-posix, sigpipe
10629         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10630         since this symbol is needed only if printf is replaced.
10631         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10632         Require gl_ASM_SYMBOL_PREFIX.
10633         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10634         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10635         (Depends-on): Add 'raise'.
10636         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10637         * modules/stdio (Files): Remove lib/stdio-write.c,
10638         m4/asm-underscore.m4.
10639         (Depends-on): Remove 'raise'.
10640
10641         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10642         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10643         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10644         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10645
10646 2011-02-28  Bruno Haible  <bruno@clisp.org>
10647
10648         localcharset: Assume ANSI C behaviour of free().
10649         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10650         calling free().
10651         Suggested by Simon Josefsson <simon@josefsson.org>.
10652
10653 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10654             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10655             Bruno Haible  <bruno@clisp.org>  (tiny change)
10656
10657         On Cygwin, use /proc file system instead of win32 API.
10658         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10659         Win32 file names.
10660         (DllMain): Simplify by removing Cygwin specific code.
10661         (find_shared_library_fullname): Use Linux specific implementation also
10662         for Cygwin.
10663         (get_shared_library_fullname): Update accordingly.
10664         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10665         Win32 file names.
10666         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10667         Cygwin specific code.
10668
10669 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10670             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10671
10672         Fix OpenMP flag detection for various Fortran compilers.
10673         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10674         OpenMP-conditional compilation construct, to force compile
10675         failure with missing OpenMP flag.
10676         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10677
10678 2011-02-25  Eric Blake  <eblake@redhat.com>
10679
10680         strstr: expand test coverage
10681         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10682         compilation.
10683         * tests/test-memmem.c (main): Duplicate tests.
10684         * tests/test-strcasestr.c (main): Likewise.
10685         * tests/test-c-strcasestr.c (main): Likewise.
10686
10687 2011-02-25  Jim Meyering  <meyering@redhat.com>
10688
10689         maint.mk: detect missing-NL-at-EOF, too
10690         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10691         it also detects when a file lacks a newline at EOF.
10692         (require_exactly_one_NL_at_EOF_): Renamed from
10693         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10694         since people may well have .x-sc_... file names tied to the
10695         existing name.  Suggested by Eric Blake.
10696
10697 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10698
10699         dirname: move m4/dos.m4 functionality into lib/dosname.h
10700
10701         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10702         extracts symbols from it, puts them into config.h; but it's much
10703         easier to use the symbols directly.  filename.h already does this,
10704         but it disagrees with dos.m4 in some respects.  This patch
10705         introduces a different include file dosname.h that packages up
10706         dos.m4, and then later we can work on merging filename.h and
10707         dosname.h.  Applications that need only the easy-to-configure
10708         symbols should consider including dosname.h rather than dirname.h.
10709         * NEWS: Mention incompatible changes.
10710         * m4/dos.m4: Remove.
10711         * lib/dosname.h, modules/dosname: New files.
10712         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10713         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10714         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10715         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10716         Include dosname.h, not dirname.h.
10717         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10718         Include dosname.h, for definitions of symbols like ISSLASH
10719         that used to be in config.h.
10720         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10721         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10722         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10723         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10724         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10725         * modules/rmdir (Files): Likewise.
10726         * modules/stat (Files): Likewise.
10727         * modules/unlink (Files): Likewise.
10728         * modules/dirname-lgpl (Depends-on): Add dosname.
10729         * modules/lstat (Depends-on): Likewise.
10730         * modules/openat (Depends-on): Likewise.
10731         * modules/rmdir (Depends-on): Likewise.
10732         * modules/savewd (Depends-on): Likewise.
10733         * modules/stat (Depends-on): Likewise.
10734         * modules/unlink (Depends-on): Likewise.
10735         * modules/openat (Depends-on): Remove dirname-lgpl.
10736         * modules/savewd (Depends-on): Likewise.
10737         * tests/test-dirname.c: Do not use removed symbols like
10738         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10739         the remaining symbols, e.g., ISSLASH ('\\').
10740
10741 2011-02-25  Eric Blake  <eblake@redhat.com>
10742
10743         strstr: revert patches that introduced bug and pessimization
10744         * lib/str-two-way.h: Add another reference.
10745         (two_way_short_needle, two_way_long_needle): Revert changes from
10746         2011-02-24; they pessimize search speed.
10747         (critical_factorization): Partially revert changes from
10748         2010-06-22; they violate the requirement that the left half of the
10749         needle be smaller than the period of the needle.
10750
10751 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10752
10753         filenamecat: remove unnecessary dependency on dirname-lgpl
10754         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10755         is no direct dependency, just an indirect one via filenamecat-lgpl.
10756
10757         remove: remove unnecessary use of m4/dos.m4
10758         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10759         * modules/remove (FILES): Remove m4/dos.m4.
10760
10761         * lib/openat-proc.c: Don't include dirname.h; not needed.
10762
10763         backupfile: remove unnecessary use of m4/dos.m4
10764         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10765         of its symbols are used by the backupfile code.  backupfile.c does
10766         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10767         for the rare case of programs that want all their backup file
10768         names to live within 8+3 limits, and dos.m4 doesn't address that.
10769         * modules/backupfile (Files): Remove m4/dos.m4.
10770
10771 2011-02-24  Jim Meyering  <meyering@redhat.com>
10772
10773         strstr: fix a bug whereby strstr would mistakenly return NULL
10774         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10775         in period calculation.
10776         (two_way_long_needle): Likewise.
10777         The original problem was reported by Mike Stump in
10778         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10779         Ralf Wildenhues provided the short needle and haystack.
10780         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10781         Add a more involved test to trigger the bug in two_way_long_needle.
10782
10783 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10784
10785         gnulib-tool: remove use of bold display in help screen
10786         * gnulib-tool (func_usage): Do not use bold display anymore in the
10787         help screen.  That was just meant to be a temporary emphasis for a
10788         backward-incompatible change.
10789
10790 2011-02-23  Bruno Haible  <bruno@clisp.org>
10791
10792         Fix misindentation of preprocessor directives.
10793         * lib/argp-namefrob.h: Reindent preprocessor directives.
10794         * lib/getopt_int.h (struct _getopt_data): Likewise.
10795         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10796         * lib/vasnprintf.c (decode_long_double): Likewise.
10797         * tests/test-argmatch.c: Insert blank lines, for clarity.
10798         * tests/test-exclude.c: Likewise.
10799
10800 2011-02-22  Bruno Haible  <bruno@clisp.org>
10801
10802         ioctl: Fix for MacOS X in 64-bit mode.
10803         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10804         value.
10805         Suggested by Eric Blake.
10806         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10807
10808 2011-02-22  Jim Meyering  <meyering@redhat.com>
10809
10810         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10811         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10812         in lib/.
10813
10814 2011-02-22  Eric Blake  <eblake@redhat.com>
10815
10816         maint: avoid any CDPATH issue
10817         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10818
10819         maint: adjust cpp indentation for my modules, as well
10820         * Makefile (sc_cpp_indent_check): Add my name.
10821         * lib/fbufmode.c: Filter through cppi.
10822         * lib/fpurge.c: Likewise.
10823         * lib/freadable.c: Likewise.
10824         * lib/freading.c: Likewise.
10825         * lib/fwritable.c: Likewise.
10826         * lib/fwriting.c: Likewise.
10827         * lib/sigaction.c: Likewise.
10828
10829 2011-02-22  Jim Meyering  <meyering@redhat.com>
10830
10831         maint: adjust cpp indentation to reflect nesting depth
10832         I.e., in a block of code that begins with an unnested "#if",
10833         put one space between the "#" in column 1 and following token.
10834         For example,
10835         -#include <sys/vfs.h>
10836         +# include <sys/vfs.h>
10837         Do this only in .c files that are part of a module I maintain.
10838         * lib/linkat.c: Filter through cppi.
10839         * lib/nanosleep.c: Likewise.
10840         * lib/openat.c: Likewise.
10841         * lib/openat-die.c: Likewise.
10842         * lib/dup3.c: Likewise.
10843         * lib/fchownat.c: Likewise.
10844         * lib/flock.c: Likewise.
10845         * lib/fsync.c: Likewise.
10846         * lib/fts.c: Likewise.
10847         * lib/getpass.c: Likewise.
10848         * lib/gettimeofday.c: Likewise.
10849         * lib/userspec.c: Likewise.
10850         * Makefile (sc_cpp_indent_check): New rule, to check this.
10851
10852 2011-02-22  Bruno Haible  <bruno@clisp.org>
10853
10854         New module 'wctomb'.
10855         * lib/stdlib.in.h (wctomb): New declaration.
10856         * lib/wctomb.c: New file.
10857         * lib/wctomb-impl.h: New file.
10858         * m4/wctomb.m4: New file.
10859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10860         REPLACE_WCTOMB.
10861         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10862         REPLACE_WCTOMB.
10863         * modules/wctomb: New file.
10864         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10865         * doc/posix-functions/wctomb.texi: Mention the new module.
10866         * modules/wctob (Depends-on): Add wctomb.
10867
10868 2011-02-22  Bruno Haible  <bruno@clisp.org>
10869
10870         New module 'mbtowc'.
10871         * lib/stdlib.in.h (mbtowc): New declaration.
10872         * lib/mbtowc.c: New file.
10873         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10874         * m4/mbtowc.m4: New file.
10875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10876         REPLACE_MBTOWC.
10877         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10878         REPLACE_MBTOWC.
10879         * modules/mbtowc: New file.
10880         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10881         * doc/posix-functions/mbtowc.texi: Mention the new module.
10882         * modules/btowc (Depends-on): Add mbtowc.
10883
10884 2011-02-22  Bruno Haible  <bruno@clisp.org>
10885
10886         wcrtomb: Add more tests for native Windows platforms.
10887         * tests/test-wcrtomb-w32-1.sh: New file.
10888         * tests/test-wcrtomb-w32-2.sh: New file.
10889         * tests/test-wcrtomb-w32-3.sh: New file.
10890         * tests/test-wcrtomb-w32-4.sh: New file.
10891         * tests/test-wcrtomb-w32-5.sh: New file.
10892         * tests/test-wcrtomb-w32.c: New file.
10893         * modules/wcrtomb-tests (Files): Add them.
10894         (Makefile.am): Arrange to run these tests.
10895         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10896         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10897
10898 2011-02-20  Bruno Haible  <bruno@clisp.org>
10899
10900         wcrtomb: Enhance test.
10901         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10902
10903 2011-02-20  Bruno Haible  <bruno@clisp.org>
10904
10905         mbrtowc: Tiny optimization.
10906         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10907
10908 2011-02-20  Jim Meyering  <meyering@redhat.com>
10909
10910         test-exclude.c: remove unmatched #endif
10911         * tests/test-exclude.c: Remove stray #endif, left over from
10912         the change of a week ago.
10913
10914 2011-02-19  Jim Meyering  <meyering@redhat.com>
10915
10916         git-version-gen: skip "-dirty" check when appropriate
10917         * build-aux/git-version-gen: Don't run any git commands when the
10918         version string comes from .tarball-version.  Prior to this, we
10919         would run git update-index --refresh even from a just-unpacked
10920         tarball directory, and that could affect a .git/ directory in a
10921         parent of the build directory.  Reported by Mike Frysinger.
10922
10923 2011-02-19  Bruno Haible  <bruno@clisp.org>
10924
10925         unictype/property-byname: Reduce the size of the 'data' segment.
10926         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10927
10928 2011-02-19  Bruno Haible  <bruno@clisp.org>
10929
10930         unictype/scripts: Reduce the size of the 'data' segment.
10931         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10932         '%pic'.
10933         * lib/unictype/scripts_byname.gperf: Regenerated.
10934
10935 2011-02-19  Bruno Haible  <bruno@clisp.org>
10936
10937         stdint: Update documentation.
10938         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10939
10940 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10941
10942         stdint: omit redundant check for wchar.h
10943         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10944         always tests whether wchar.h exists, so remove the now-redundant test.
10945
10946 2011-02-18  Bruno Haible  <bruno@clisp.org>
10947
10948         stdint: Cut dependency to module 'wchar'.
10949         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10950         include the necessary prerequisites.
10951         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10952         * modules/stdint (Depends-on): Remove wchar.
10953         (Makefile.am): Substitute HAVE_WCHAR_H.
10954         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10955
10956 2011-02-18  Eric Blake  <eblake@redhat.com>
10957
10958         longlong: skip, rather than fail, on cross-compilation
10959         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10960         when cross-compiling; regression from 2011-02-16.
10961
10962 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10963
10964         * NEWS: Mention 2011-02-08 change to stdlib.
10965
10966 2011-02-17  Bruno Haible  <bruno@clisp.org>
10967
10968         getloadavg: Add comments about platforms.
10969         * m4/getloadavg.m4: Add comment.
10970         * lib/getloadavg.c: Likewise.
10971
10972 2011-02-17  Bruno Haible  <bruno@clisp.org>
10973
10974         getloadavg: Fix link error on Solaris 2.6.
10975         * modules/getloadavg (Link): New section.
10976         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10977         linking test-getloadavg.
10978         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10979         getloadavg.
10980
10981 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10982
10983         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10984         It was 'int', but this doesn't match the IRIX 6.5 manual.
10985         Suggested by Bruno Haible in
10986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10987
10988 2011-02-17  Bruno Haible  <bruno@clisp.org>
10989
10990         havelib: Fix comments.
10991         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10992         change.
10993
10994 2011-02-17  Bruno Haible  <bruno@clisp.org>
10995
10996         havelib: Update config.rpath.
10997         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10998
10999 2011-02-17  Bruno Haible  <bruno@clisp.org>
11000
11001         getloadavg test: Add some plausibility checks.
11002         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11003         is improbable.
11004
11005 2011-02-16  Eric Blake  <eblake@redhat.com>
11006
11007         maintainer-makefile: make syntax-check a no-op from tarballs
11008         * top/maint.mk (no-vc-detected): New rule.
11009         (local-checks-available): Use it to avoid hanging if someone tries
11010         'make syntax-check' from a tarball.  Also append to any non-syntax
11011         checks already defined in cfg.mk.
11012
11013 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11014
11015         longlong: tune, particularly for common case of c99
11016
11017         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11018         or running anything if c99, or if unsigned long long int does not
11019         work.  In either case, we know the answer without further tests.
11020         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11021         it at most once, and use its results for both long long int and
11022         unsigned long long int.  This is more likely to be efficient in
11023         the common case where the program wants to check for both long
11024         long int and unsigned long long int.
11025         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
11026         since the answer is already known.
11027
11028 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
11029
11030         getloadavg: set errno
11031         * lib/getloadavg.c: Set errno when returning -1.  If no other
11032         error number looks appropriate, set it to ENOSYS if the getloadavg
11033         looks like it can't possibly ever work, ENOTSUP otherwise.
11034         Suggested by Bruno Haible in
11035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
11036
11037         getloadavg: trim unused parts and speed up 'configure'
11038         * NEWS: Document this.
11039         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
11040         always compiled if getloadavg is absent.
11041         Move test code to ...
11042         * tests/test-getloadavg.c: New file, containing previous
11043         contents of test from lib/getloadavg.c.  It also contains
11044         suggestions by Bruno Haible in
11045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
11046         * modules/getloadavg-tests: New file.
11047         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
11048         Do tests in the same order as they're needed for getloadavg.c.
11049         Omit setgid-related tests that generate symbols KMEM_GROUP,
11050         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
11051         Do only the tests that are needed to see whether the system has
11052         getloadavg, moving the other tests into ...
11053         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11054         NLIST_NAME_UNION; nobody should be using it.  Do not define
11055         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11056         relevant, as the user of this module shouldn't care how getloadavg
11057         is implemented.
11058
11059         getloadavg: omit unused var
11060         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11061
11062 2011-02-15  Jim Meyering  <meyering@redhat.com>
11063
11064         doc: update users.txt
11065         * users.txt: Update iwhd's URL.
11066
11067 2011-02-13  Bruno Haible  <bruno@clisp.org>
11068
11069         Consistent macro naming for macros that use GCC __attribute__.
11070         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11071         _ATTRIBUTE_NONNULL_.
11072         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11073         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11074         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11075         ATTRIBUTE_DEPRECATED.
11076         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11077         ATTRIBUTE_NORETURN.
11078         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11079         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11080         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11081         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11082         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11083         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11084         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11085         ATTRIBUTE_SENTINEL.
11086         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11087         ATTRIBUTE_RETURN_CHECK.
11088         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11089         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11090         ATTRIBUTE_NORETURN.
11091         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11092         Reported by Paul Eggert.
11093
11094 2011-02-13  Bruno Haible  <bruno@clisp.org>
11095
11096         Don't interfere with a program's definition of __attribute__.
11097         * lib/argp.h (__attribute__): Remove definition.
11098         (_GL_ATTRIBUTE_FORMAT): New macro.
11099         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11100         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11101         (_GL_ATTRIBUTE_FORMAT): New macro.
11102         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11103         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11104         GCC 3 or newer.
11105         * lib/error.h (__attribute__): Remove definition.
11106         (_GL_ATTRIBUTE_FORMAT): New macro.
11107         (error, error_at_line): Use it.
11108         * lib/hash.h (__attribute__): Remove definition.
11109         (ATTRIBUTE_WUR): Update definition. Define always.
11110         * lib/openat.h (__attribute__): Remove definition.
11111         (ATTRIBUTE_NORETURN): Update definition. Define always.
11112         * lib/sigpipe-die.h (__attribute__): Remove definition.
11113         (ATTRIBUTE_NORETURN): Update definition. Define always.
11114         * lib/vasnprintf.h (__attribute__): Remove definition.
11115         (_GL_ATTRIBUTE_FORMAT): New macro.
11116         (asnprintf, vasnprintf): Use it.
11117         * lib/xalloc.h (__attribute__): Remove definition.
11118         (ATTRIBUTE_NORETURN): Update definition. Define always.
11119         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11120         * lib/xmemdup0.h (__attribute__): Remove definition.
11121         (ATTRIBUTE_NORETURN): Update definition. Define always.
11122         * lib/xprintf.h (__attribute__): Remove definition.
11123         (_GL_ATTRIBUTE_FORMAT): New macro.
11124         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
11125         * lib/xstrtol.h (__attribute__): Remove definition.
11126         (ATTRIBUTE_NORETURN): Update definition. Define always.
11127         * lib/xvasprintf.h (__attribute__): Remove definition.
11128         (_GL_ATTRIBUTE_FORMAT): New macro.
11129         (xasprintf, xvasprintf): Use it.
11130         * tests/test-argmatch.c (__attribute__): Remove definition.
11131         (ATTRIBUTE_NORETURN): Update definition. Define always.
11132         * tests/test-exclude.c (__attribute__): Remove definition.
11133         (ATTRIBUTE_NORETURN): Update definition. Define always.
11134         Reported by Paul Eggert.
11135
11136 2011-02-13  Bruno Haible  <bruno@clisp.org>
11137
11138         mbrtowc: Add more tests for native Windows platforms.
11139         * tests/test-mbrtowc-w32-1.sh: New file.
11140         * tests/test-mbrtowc-w32-2.sh: New file.
11141         * tests/test-mbrtowc-w32-3.sh: New file.
11142         * tests/test-mbrtowc-w32-4.sh: New file.
11143         * tests/test-mbrtowc-w32-5.sh: New file.
11144         * tests/test-mbrtowc-w32.c: New file.
11145         * modules/mbrtowc-tests (Files): Add them.
11146         (Makefile.am): Arrange to run these tests.
11147         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
11148         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
11149
11150 2011-02-13  Bruno Haible  <bruno@clisp.org>
11151
11152         mbrtowc: Work around native Windows bug.
11153         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
11154         guess when no suitable locale for testing was found.
11155         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
11156
11157 2011-02-13  Bruno Haible  <bruno@clisp.org>
11158
11159         mbsinit: Work around mingw bug.
11160         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
11161         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
11162         Windows.
11163         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
11164
11165 2011-02-13  Bruno Haible  <bruno@clisp.org>
11166
11167         mbsinit: Don't crash for a NULL argument.
11168         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
11169         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
11170
11171 2011-02-13  Bruno Haible  <bruno@clisp.org>
11172
11173         Don't interfere with a program's definition of __attribute__.
11174         * lib/stdio.in.h (__attribute__): Remove definition.
11175         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
11176         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
11177         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
11178         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
11179         * lib/string.in.h (__attribute__): Remove definition.
11180         Reported by Paul Eggert.
11181
11182 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11183
11184         stdlib: don't get in the way of non-GCC __attribute__
11185         See thread starting at
11186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
11187         Revert previous stdlib change, installing the following instead:
11188         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
11189         to get in the way of a non-GCC compiler that supports __attribute__.
11190         (_GL_ATTRIBUTE_RETURN): New macro.
11191         (_Exit): Use it instead of __attribute__.
11192
11193 2011-02-12  Bruno Haible  <bruno@clisp.org>
11194
11195         quotearg test: Avoid test failure on mingw.
11196         * tests/test-quotearg.sh: Convert the locale identifier from native
11197         Windows syntax to Unix syntax.
11198
11199 2011-02-12  Bruno Haible  <bruno@clisp.org>
11200
11201         setlocale: Prefer gnulib's override over libintl's override.
11202         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
11203         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
11204         GNULIB_defined_setlocale is set.
11205
11206 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
11207
11208         stdlib: support non-GCC __attribute__
11209
11210         Fix a serious and tricky problem encountered when attempting to
11211         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
11212         5.5, but it crashed due to memory corruption on Solaris 10 with
11213         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
11214         bits that are otherwise zero.  This tagging is optional inside
11215         Emacs but is preferred and is used when __attribute__ ((__aligned
11216         (8))) works, as it does with both recent-enough GCC and with Sun C
11217         5.11.  However, Sun C 5.11 is not GCC and does not #define
11218         __GNUC__ and __GNUC_MINOR__.
11219
11220         When I added the getloadavg module to Emacs, it brought in
11221         stdlib.in.h, which contained this fragment:
11222
11223            #ifndef __attribute__
11224            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
11225            #  define __attribute__(Spec)   /* empty */
11226            # endif
11227            #endif
11228
11229         When files that include <stdlib.h> were compiled with Sun C 5.11,
11230         the above code disabled __attribute__ ((__aligned (8))), which
11231         caused variables to not be properly aligned, which eventually led
11232         to the pointer corruption mentioned above.  (This was a bit hard
11233         to diagnose, unfortunately.)
11234
11235         Several "#define __attribute__(X) /* empty */" code snippets need
11236         to be eradicated from Gnulib to work with non-GCC compilers that
11237         support __attribute__.  The Autoconf way to do this is to test for
11238         each kind of attribute that we want support for, and selectively
11239         enable that in source code.
11240
11241         Fix this problem just for stdlib.h, by adding a test for the
11242         __noreturn__ attribute, and change stdlib.in.h to use that test
11243         when needed.  This technique can be easily generalized to the
11244         other *.in.h files and attributes, and a similar technique can be
11245         used for *.h and *.c files.  This patch is enough to solve the
11246         problem for Emacs + getloadavg, and I thought I'd publish it for
11247         feedback before undertaking further, similar fixes in other
11248         modules.
11249
11250         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
11251         because it's not needed for stdlib.h.  It merely substitutes the
11252         value directly into stdlib.h.  We may well need to #define it, or
11253         similar symbols, for other modules, but it's nice to also have an
11254         option to not #define it for applications like Emacs that do not
11255         need it.
11256
11257         * lib/stdlib.in.h (__attribute__): Do not #define.
11258         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
11259         be defined only if the _Exit module is also used.
11260         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
11261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
11262         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
11263         platforms.
11264         * modules/_Exit (Files): Add m4/attribute.m4.
11265         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
11266         * m4/attribute.m4: New file.
11267
11268 2011-02-12  Bruno Haible  <bruno@clisp.org>
11269
11270         wcsrtombs: Work around bug on native Windows.
11271         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
11272         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
11273         instead of len.
11274         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
11275
11276 2011-02-12  Bruno Haible  <bruno@clisp.org>
11277
11278         mbsrtowcs: Work around bug on native Windows.
11279         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
11280         against mingw bug.
11281         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
11282
11283 2011-02-12  Bruno Haible  <bruno@clisp.org>
11284
11285         Avoid setlocale bugs in tests.
11286         * modules/btowc (Dependencies): Add setlocale.
11287         * modules/c-strcase (Dependencies): Likewise.
11288         * modules/mbmemcasecmp (Dependencies): Likewise.
11289         * modules/mbmemcasecoll (Dependencies): Likewise.
11290         * modules/mbrtowc (Dependencies): Likewise.
11291         * modules/mbscasecmp (Dependencies): Likewise.
11292         * modules/mbscasestr (Dependencies): Likewise.
11293         * modules/mbschr (Dependencies): Likewise.
11294         * modules/mbscspn (Dependencies): Likewise.
11295         * modules/mbsinit (Dependencies): Likewise.
11296         * modules/mbsncasecmp (Dependencies): Likewise.
11297         * modules/mbsnrtowcs (Dependencies): Likewise.
11298         * modules/mbspbrk (Dependencies): Likewise.
11299         * modules/mbspcasecmp (Dependencies): Likewise.
11300         * modules/mbsrchr (Dependencies): Likewise.
11301         * modules/mbsrtowcs (Dependencies): Likewise.
11302         * modules/mbsspn (Dependencies): Likewise.
11303         * modules/mbsstr (Dependencies): Likewise.
11304         * modules/nl_langinfo (Dependencies): Likewise.
11305         * modules/quotearg (Dependencies): Likewise.
11306         * modules/unicase/locale-language (Dependencies): Likewise.
11307         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
11308         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
11309         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
11310         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
11311         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
11312         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
11313         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
11314         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
11315         * modules/vasnprintf-posix (Dependencies): Likewise.
11316         * modules/wcrtomb (Dependencies): Likewise.
11317         * modules/wcsnrtombs (Dependencies): Likewise.
11318         * modules/wcsrtombs (Dependencies): Likewise.
11319
11320 2011-02-12  Bruno Haible  <bruno@clisp.org>
11321
11322         setlocale: Workaround native Windows bug.
11323         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
11324         succeeds but sets LC_CTYPE to "C", report a failure.
11325         * tests/test-setlocale2.sh: New file.
11326         * tests/test-setlocale2.c: New file.
11327         * modules/setlocale-tests (Files): Add the new files.
11328         (Makefile.am): Enable test-setlocale2.sh test.
11329         * doc/posix-functions/setlocale.texi: Mention workaround.
11330
11331 2011-02-11  Bruno Haible  <bruno@clisp.org>
11332
11333         Tests for module 'setlocale'.
11334         * modules/setlocale-tests: New file.
11335         * tests/test-setlocale1.sh: New file.
11336         * tests/test-setlocale1.c: New file.
11337
11338         New module 'setlocale'.
11339         * lib/locale.in.h (setlocale): New declaration.
11340         * lib/setlocale.c: New file, based on
11341         gettext/gettext-runtime/intl/setlocale.c.
11342         * m4/setlocale.m4: New file.
11343         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
11344         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
11345         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
11346         REPLACE_SETLOCALE.
11347         * modules/setlocale: New file.
11348         * tests/test-locale-c++.cc: Test the declaration of setlocale.
11349         * doc/posix-functions/setlocale.texi: Mention the new module.
11350
11351 2011-02-11  Bruno Haible  <bruno@clisp.org>
11352
11353         Prepare for locale dependent tests on mingw.
11354         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
11355         because it has the wrong locale encoding.
11356         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
11357         French_France.1252 instead of "fr".
11358         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
11359         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
11360         because it has the wrong locale encoding.
11361         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
11362         native Windows, try Turkish_Turkey.65001.
11363         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
11364         Chinese_China.54936.
11365
11366         Prepare for locale dependent tests on mingw.
11367         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
11368         differently.
11369         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
11370         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
11371         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
11372         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11373
11374 2011-02-11  Eric Blake  <eblake@redhat.com>
11375
11376         strptime: avoid compiler warnings
11377         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
11378         compiler warnings about dead code.
11379         Reported by Daniel P. Berrange.
11380
11381 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
11382
11383         doc: update users.txt
11384         * users.txt: Add rcs.
11385
11386 2011-02-10  John W. Eaton  <jwe@gnu.org>
11387
11388         doc: update users.txt
11389         * users.txt: Add octave.
11390
11391 2011-02-10  Jim Meyering  <meyering@redhat.com>
11392
11393         doc: update users.txt
11394         * users.txt: Add iwhd.
11395
11396 2011-02-09  Bruno Haible  <bruno@clisp.org>
11397
11398         gnulib-tool: Make copyright notice adjustment more robust.
11399         * gnulib-tool (func_import): In sed_transform_main_lib_file,
11400         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
11401         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
11402         License".
11403         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
11404
11405 2011-02-06  Bruno Haible  <bruno@clisp.org>
11406
11407         New module 'towctrans'.
11408         * modules/towctrans: New file.
11409         * lib/wctype.in.h (towctrans): New declaration.
11410         * lib/towctrans.c: New file.
11411         * lib/towctrans-impl.h: New file.
11412         * m4/towctrans.m4: New file.
11413         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
11414         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
11415         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
11416         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
11417         * doc/posix-functions/towctrans.texi: Mention the new module.
11418
11419 2011-02-06  Bruno Haible  <bruno@clisp.org>
11420
11421         New module 'wctrans'.
11422         * modules/wctrans: New file.
11423         * lib/wctype.in.h (wctrans): New declaration.
11424         * lib/wctrans.c: New file.
11425         * lib/wctrans-impl.h: New file.
11426         * m4/wctrans.m4: New file.
11427         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
11428         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
11429         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
11430         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
11431         * doc/posix-functions/wctrans.texi: Mention the new module.
11432
11433 2011-02-06  Bruno Haible  <bruno@clisp.org>
11434
11435         New module 'iswctype'.
11436         * modules/iswctype: New file.
11437         * lib/wctype.in.h (iswctype): New declaration.
11438         * lib/iswctype.c: New file.
11439         * lib/iswctype-impl.h: New file.
11440         * m4/iswctype.m4: New file.
11441         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
11442         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
11443         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
11444         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
11445         * doc/posix-functions/iswctype.texi: Mention the new module and the
11446         HP-UX 11.00 problem.
11447
11448 2011-02-06  Bruno Haible  <bruno@clisp.org>
11449
11450         New module 'wctype'.
11451         * modules/wctype: Change to represent the wctype() substitute.
11452         * lib/wctype.in.h (wctype): New declaration.
11453         * lib/wctype.c: New file.
11454         * lib/wctype-impl.h: New file.
11455         * m4/wctype.m4: New file.
11456         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
11457         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
11458         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
11459         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
11460         * doc/posix-functions/wctype.texi: Mention the new module and the
11461         HP-UX 11.00 problem.
11462
11463 2011-02-06  Bruno Haible  <bruno@clisp.org>
11464
11465         wctype-h: Ensure wctype_t and wctrans_t are defined.
11466         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
11467         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11468         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
11469         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
11470         HAVE_WCTRANS_T.
11471         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
11472
11473 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11474
11475         flock: fix license typo
11476
11477         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
11478         omitted.
11479
11480 2011-02-08  Bruno Haible  <bruno@clisp.org>
11481
11482         Split large sed scripts, for HP-UX sed.
11483         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
11484         to avoid HP-UX limit of 99 commands, in the near future.
11485         * modules/stdlib (Makefile.am): Likewise.
11486         * modules/unistd (Makefile.am): Likewise.
11487         * modules/wchar (Makefile.am): Likewise.
11488         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11489         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
11490         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
11491
11492 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11493             Bruno Haible  <bruno@clisp.org>
11494
11495         stdlib: improve random_r modularization
11496         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
11497         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
11498         you also need the random_r module to get this material right.
11499         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
11500         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
11501         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
11502
11503 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
11504
11505         stdlib: don't depend on stdint
11506         * lib/stdlib.in.h: Don't include <stdint.h> merely because
11507         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
11508         be independent of whether stdint.h is needed.
11509         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
11510         here, instead of ...
11511         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
11512         struct random_data should be using the random_r module, not just
11513         the stdlib module (which wouldn't make sense: what package needs
11514         just struct random_data without also needing random_r?).
11515         * modules/stdlib (Depends-on): Remove stdint.
11516
11517         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
11518         See the thread rooted at
11519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
11520         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
11521         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
11522         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
11523         __VMS)); previously it was always included (via fcntl--.h).
11524         (getloadavg): Do not use c_strtod.  Instead, approximate it by
11525         hand; this is good enough for load averages.  Also, do not use
11526         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
11527         flags directly if available and don't bother otherwise.  (Packages
11528         that need the extra reliability should use the modules that define
11529         these flags on older platforms that lack them.)
11530         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
11531         fcntl-safer.
11532
11533 2011-02-08  Jim Meyering  <meyering@redhat.com>
11534
11535         di-set.h, ino-map.h: add multiple-inclusion guard
11536         Technically, the guard is required only for ino-map.h, due to its
11537         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
11538         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
11539         * lib/ino-map.h: Likewise.
11540
11541 2011-02-06  Bruno Haible  <bruno@clisp.org>
11542
11543         iswblank: Ensure declaration on glibc systems.
11544         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
11545         * modules/iswblank (Dependencies): Add 'extensions'.
11546         * doc/posix-functions/iswblank.texi: Document the glibc problem.
11547
11548 2011-02-06  Bruno Haible  <bruno@clisp.org>
11549
11550         New module 'iswblank'.
11551         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
11552         * modules/iswblank: New file.
11553         * modules/wctype-h (Files): Remove lib/iswblank.c.
11554         (Makefile.am): Substitute GNULIB_ISWBLANK.
11555         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11556         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11557         (gl_WCTYPE_H_DEFAULTS): New macro.
11558         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11559         * modules/iswblank-tests: New file.
11560         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11561         * tests/test-wctype-h.c (main): Remove iswblank tests.
11562         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11563         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11564         of 'wctype-h'.
11565         * NEWS: Mention the change.
11566         * modules/mbchar (Depends-on): Add iswblank.
11567
11568 2011-02-08  Bruno Haible  <bruno@clisp.org>
11569
11570         di-set tests: Refactor.
11571         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11572         unnecessary includes.
11573         (ASSERT): Remove macro.
11574         (main): Make C90 compliant by avoiding variable declaration after
11575         statement.
11576         * modules/di-set-tests (Files): Add tests/macros.h.
11577
11578 2011-02-08  Bruno Haible  <bruno@clisp.org>
11579
11580         ino-map tests: Refactor.
11581         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11582         unnecessary includes.
11583         (ASSERT): Remove macro.
11584         (main): Make C90 compliant by avoiding variable declaration after
11585         statement.
11586         * modules/ino-map-tests (Files): Add tests/macros.h.
11587
11588 2011-02-08  Jim Meyering  <meyering@redhat.com>
11589
11590         di-set: add "const" to a cast
11591         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11592         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11593
11594 2011-02-06  Bruno Haible  <bruno@clisp.org>
11595
11596         Rename module 'wctype' to 'wctype-h'.
11597         * modules/wctype-h: Renamed from modules/wctype.
11598         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11599         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11600         (Files, Depends-on, Makefile.am): Update.
11601         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11602         (Files, Makefile.am): Update.
11603         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11604         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11605         * doc/posix-headers/wctype.texi: Update.
11606         * doc/posix-functions/iswalnum.texi: Update.
11607         * doc/posix-functions/iswalpha.texi: Update.
11608         * doc/posix-functions/iswblank.texi: Update.
11609         * doc/posix-functions/iswcntrl.texi: Update.
11610         * doc/posix-functions/iswdigit.texi: Update.
11611         * doc/posix-functions/iswgraph.texi: Update.
11612         * doc/posix-functions/iswlower.texi: Update.
11613         * doc/posix-functions/iswprint.texi: Update.
11614         * doc/posix-functions/iswpunct.texi: Update.
11615         * doc/posix-functions/iswspace.texi: Update.
11616         * doc/posix-functions/iswupper.texi: Update.
11617         * doc/posix-functions/iswxdigit.texi: Update.
11618         * doc/posix-functions/towlower.texi: Update.
11619         * doc/posix-functions/towupper.texi: Update.
11620         * NEWS: Mention the change.
11621         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11622         * modules/mbchar (Dependencies): Likewise.
11623         * modules/mbswidth (Dependencies): Likewise.
11624         * modules/quotearg (Dependencies): Likewise.
11625         * modules/regex (Dependencies): Likewise.
11626         * modules/wcscasecmp (Dependencies): Likewise.
11627         * modules/wcsncasecmp (Dependencies): Likewise.
11628         * modules/wcwidth (Dependencies): Likewise.
11629
11630 2011-02-06  Bruno Haible  <bruno@clisp.org>
11631
11632         New module 'wcswidth'.
11633         * modules/wcswidth: New file.
11634         * lib/wchar.in.h (wcswidth): New declaration.
11635         * lib/wcswidth.c: New file.
11636         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11637         * m4/wcswidth.m4: New file.
11638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11640         REPLACE_WCSWIDTH.
11641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11642         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11643         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11644         * doc/posix-functions/wcswidth.texi: Mention the new module.
11645
11646 2011-02-06  Bruno Haible  <bruno@clisp.org>
11647
11648         New module 'wcstok'.
11649         * modules/wcstok: New file.
11650         * lib/wchar.in.h (wcstok): New declaration.
11651         * lib/wcstok.c: New file.
11652         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11653         * m4/wcstok.m4: New file.
11654         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11655         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11657         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11658         * doc/posix-functions/wcstok.texi: Mention the new module.
11659
11660 2011-02-06  Bruno Haible  <bruno@clisp.org>
11661
11662         New module 'wcsstr'.
11663         * modules/wcsstr: New file.
11664         * lib/wchar.in.h (wcsstr): New declaration.
11665         * lib/wcsstr.c: New file.
11666         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11667         * m4/wcsstr.m4: New file.
11668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11671         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11672         * doc/posix-functions/wcsstr.texi: Mention the new module.
11673
11674 2011-02-06  Bruno Haible  <bruno@clisp.org>
11675
11676         New module 'wcspbrk'.
11677         * modules/wcspbrk: New file.
11678         * lib/wchar.in.h (wcspbrk): New declaration.
11679         * lib/wcspbrk.c: New file.
11680         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11681         * m4/wcspbrk.m4: New file.
11682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11685         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11686         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11687
11688 2011-02-06  Bruno Haible  <bruno@clisp.org>
11689
11690         New module 'wcsspn'.
11691         * modules/wcsspn: New file.
11692         * lib/wchar.in.h (wcsspn): New declaration.
11693         * lib/wcsspn.c: New file.
11694         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11695         * m4/wcsspn.m4: New file.
11696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11699         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11700         * doc/posix-functions/wcsspn.texi: Mention the new module.
11701
11702 2011-02-06  Bruno Haible  <bruno@clisp.org>
11703
11704         New module 'wcscspn'.
11705         * modules/wcscspn: New file.
11706         * lib/wchar.in.h (wcscspn): New declaration.
11707         * lib/wcscspn.c: New file.
11708         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11709         * m4/wcscspn.m4: New file.
11710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11712         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11713         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11714         * doc/posix-functions/wcscspn.texi: Mention the new module.
11715
11716 2011-02-06  Bruno Haible  <bruno@clisp.org>
11717
11718         New module 'wcsrchr'.
11719         * modules/wcsrchr: New file.
11720         * lib/wchar.in.h (wcsrchr): New declaration.
11721         * lib/wcsrchr.c: New file.
11722         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11723         * m4/wcsrchr.m4: New file.
11724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11727         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11728         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11729
11730 2011-02-06  Bruno Haible  <bruno@clisp.org>
11731
11732         New module 'wcschr'.
11733         * modules/wcschr: New file.
11734         * lib/wchar.in.h (wcschr): New declaration.
11735         * lib/wcschr.c: New file.
11736         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11737         * m4/wcschr.m4: New file.
11738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11741         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11742         * doc/posix-functions/wcschr.texi: Mention the new module.
11743
11744 2011-02-06  Bruno Haible  <bruno@clisp.org>
11745
11746         New module 'wcsdup'.
11747         * modules/wcsdup: New file.
11748         * lib/wchar.in.h (wcsdup): New declaration.
11749         * lib/wcsdup.c: New file.
11750         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11751         * m4/wcsdup.m4: New file.
11752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11754         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11755         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11756         * doc/posix-functions/wcsdup.texi: Mention the new module.
11757
11758 2011-02-06  Bruno Haible  <bruno@clisp.org>
11759
11760         New module 'wcsxfrm'.
11761         * modules/wcsxfrm: New file.
11762         * lib/wchar.in.h (wcsxfrm): New declaration.
11763         * lib/wcsxfrm.c: New file.
11764         * lib/wcsxfrm-impl.h: New file.
11765         * m4/wcsxfrm.m4: New file.
11766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11769         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11770         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11771
11772 2011-02-06  Bruno Haible  <bruno@clisp.org>
11773
11774         New module 'wcscoll'.
11775         * modules/wcscoll: New file.
11776         * lib/wchar.in.h (wcscoll): New declaration.
11777         * lib/wcscoll.c: New file.
11778         * lib/wcscoll-impl.h: New file.
11779         * m4/wcscoll.m4: New file.
11780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11783         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11784         * doc/posix-functions/wcscoll.texi: Mention the new module.
11785
11786 2011-02-06  Bruno Haible  <bruno@clisp.org>
11787
11788         New module 'wcsncasecmp'.
11789         * modules/wcsncasecmp: New file.
11790         * lib/wchar.in.h (wcsncasecmp): New declaration.
11791         * lib/wcsncasecmp.c: New file.
11792         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11793         * m4/wcsncasecmp.m4: New file.
11794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11797         HAVE_WCSNCASECMP.
11798         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11799         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11800
11801 2011-02-06  Bruno Haible  <bruno@clisp.org>
11802
11803         New module 'wcscasecmp'.
11804         * modules/wcscasecmp: New file.
11805         * lib/wchar.in.h (wcscasecmp): New declaration.
11806         * lib/wcscasecmp.c: New file.
11807         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11808         * m4/wcscasecmp.m4: New file.
11809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11812         HAVE_WCSCASECMP.
11813         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11814         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11815
11816 2011-02-05  Bruno Haible  <bruno@clisp.org>
11817
11818         New module 'wcsncmp'.
11819         * modules/wcsncmp: New file.
11820         * lib/wchar.in.h (wcsncmp): New declaration.
11821         * lib/wcsncmp.c: New file.
11822         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11823         * m4/wcsncmp.m4: New file.
11824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11827         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11828         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11829
11830 2011-02-05  Bruno Haible  <bruno@clisp.org>
11831
11832         New module 'wcscmp'.
11833         * modules/wcscmp: New file.
11834         * lib/wchar.in.h (wcscmp): New declaration.
11835         * lib/wcscmp.c: New file.
11836         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11837         * m4/wcscmp.m4: New file.
11838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11841         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11842         * doc/posix-functions/wcscmp.texi: Mention the new module.
11843
11844 2011-02-05  Bruno Haible  <bruno@clisp.org>
11845
11846         New module 'wcsncat'.
11847         * modules/wcsncat: New file.
11848         * lib/wchar.in.h (wcsncat): New declaration.
11849         * lib/wcsncat.c: New file.
11850         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11851         * m4/wcsncat.m4: New file.
11852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11855         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11856         * doc/posix-functions/wcsncat.texi: Mention the new module.
11857
11858 2011-02-05  Bruno Haible  <bruno@clisp.org>
11859
11860         New module 'wcscat'.
11861         * modules/wcscat: New file.
11862         * lib/wchar.in.h (wcscat): New declaration.
11863         * lib/wcscat.c: New file.
11864         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11865         * m4/wcscat.m4: New file.
11866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11869         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11870         * doc/posix-functions/wcscat.texi: Mention the new module.
11871
11872 2011-02-05  Bruno Haible  <bruno@clisp.org>
11873
11874         New module 'wcpncpy'.
11875         * modules/wcpncpy: New file.
11876         * lib/wchar.in.h (wcpncpy): New declaration.
11877         * lib/wcpncpy.c: New file.
11878         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11879         * m4/wcpncpy.m4: New file.
11880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11882         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11883         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11884         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11885
11886 2011-02-05  Bruno Haible  <bruno@clisp.org>
11887
11888         New module 'wcsncpy'.
11889         * modules/wcsncpy: New file.
11890         * lib/wchar.in.h (wcsncpy): New declaration.
11891         * lib/wcsncpy.c: New file.
11892         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11893         * m4/wcsncpy.m4: New file.
11894         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11895         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11896         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11897         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11898         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11899
11900 2011-02-05  Bruno Haible  <bruno@clisp.org>
11901
11902         New module 'wcpcpy'.
11903         * modules/wcpcpy: New file.
11904         * lib/wchar.in.h (wcpcpy): New declaration.
11905         * lib/wcpcpy.c: New file.
11906         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11907         * m4/wcpcpy.m4: New file.
11908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11910         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11911         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11912         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11913
11914 2011-02-05  Bruno Haible  <bruno@clisp.org>
11915
11916         New module 'wcscpy'.
11917         * modules/wcscpy: New file.
11918         * lib/wchar.in.h (wcscpy): New declaration.
11919         * lib/wcscpy.c: New file.
11920         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11921         * m4/wcscpy.m4: New file.
11922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11924         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11925         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11926         * doc/posix-functions/wcscpy.texi: Mention the new module.
11927
11928 2011-02-05  Bruno Haible  <bruno@clisp.org>
11929
11930         New module 'wcsnlen'.
11931         * modules/wcsnlen: New file.
11932         * lib/wchar.in.h (wcsnlen): New declaration.
11933         * lib/wcsnlen.c: New file.
11934         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11935         * m4/wcsnlen.m4: New file.
11936         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11937         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11939         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11940         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11941
11942 2011-02-05  Bruno Haible  <bruno@clisp.org>
11943
11944         New module 'wcslen'.
11945         * modules/wcslen: New file.
11946         * lib/wchar.in.h (wcslen): New declaration.
11947         * lib/wcslen.c: New file.
11948         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11949         * m4/wcslen.m4: New file.
11950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11953         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11954         * doc/posix-functions/wcslen.texi: Mention the new module.
11955
11956 2011-02-05  Bruno Haible  <bruno@clisp.org>
11957
11958         New module 'wmemset'.
11959         * modules/wmemset: New file.
11960         * lib/wchar.in.h (wmemset): New declaration.
11961         * lib/wmemset.c: New file.
11962         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11963         * m4/wmemset.m4: New file.
11964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11966         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11967         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11968         * doc/posix-functions/wmemset.texi: Mention the new module.
11969
11970 2011-02-05  Bruno Haible  <bruno@clisp.org>
11971
11972         New module 'wmemmove'.
11973         * modules/wmemmove: New file.
11974         * lib/wchar.in.h (wmemmove): New declaration.
11975         * lib/wmemmove.c: New file.
11976         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11977         * m4/wmemmove.m4: New file.
11978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11980         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11981         HAVE_WMEMMOVE.
11982         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11983         * doc/posix-functions/wmemmove.texi: Mention the new module.
11984
11985 2011-02-05  Bruno Haible  <bruno@clisp.org>
11986
11987         New module 'wmemcpy'.
11988         * modules/wmemcpy: New file.
11989         * lib/wchar.in.h (wmemcpy): New declaration.
11990         * lib/wmemcpy.c: New file.
11991         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11992         * m4/wmemcpy.m4: New file.
11993         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11994         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11995         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11996         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11997         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11998
11999 2011-02-05  Bruno Haible  <bruno@clisp.org>
12000
12001         New module 'wmemcmp'.
12002         * modules/wmemcmp: New file.
12003         * lib/wchar.in.h (wmemcmp): New declaration.
12004         * lib/wmemcmp.c: New file.
12005         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12006         * m4/wmemcmp.m4: New file.
12007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12009         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12010         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12011         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12012
12013 2011-02-07  Jim Meyering  <meyering@redhat.com>
12014
12015         di-set, ino-map: new modules, from coreutils
12016         * lib/di-set.c: New file.
12017         * lib/di-set.h: Likewise.
12018         * lib/ino-map.c: Likewise.
12019         * lib/ino-map.h: Likewise.
12020         * modules/di-set: Likewise.
12021         * modules/di-set-tests: Likewise.
12022         * modules/ino-map: Likewise.
12023         * modules/ino-map-tests: Likewise.
12024         * tests/test-di-set.c: Likewise.
12025         * tests/test-ino-map.c: Likewise.
12026
12027 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12028
12029         getloadavg: merge minor changes from Emacs
12030
12031         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
12032         (getloadavg): Use memset, not bzero.
12033
12034         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
12035         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12036         clash (bug#86).
12037
12038 2010-11-14  Bruno Haible  <bruno@clisp.org>
12039
12040         Allow multiple gnulib generated replacements to coexist.
12041         * lib/getopt.in.h (struct option): Avoid identical redefinition.
12042         * lib/inttypes.in.h (imaxdiv_t): Likewise.
12043         * lib/langinfo.in.h (nl_item): Likewise.
12044         * lib/math.in.h (_NaN, NAN): Likewise.
12045         * lib/netdb.in.h (struct addrinfo): Likewise.
12046         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
12047         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
12048         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
12049         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
12050         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
12051         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
12052         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12053         pthread_mutexattr_init, pthread_mutexattr_settype,
12054         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12055         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12056         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12057         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12058         * lib/sched.in.h (struct sched_param): Likewise.
12059         * lib/se-selinux.in.h (security_class_t, security_context_t,
12060         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12061         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12062         lsetfilecon, fsetfilecon, security_check_context,
12063         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12064         Likewise.
12065         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12066         Likewise.
12067         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12068         _gl_function_taking_int_returning_void_t, union sigval,
12069         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12070         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12071         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12072         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12073         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12074         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12075         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12076         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12077         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12078         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12079         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12080         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12081         socklen_t, rpl_fd_isset): Likewise.
12082         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12083         * lib/sys_time.in.h (struct timeval): Likewise.
12084         * lib/sys_times.in.h (struct tms): Likewise.
12085         * lib/sys_utsname.in.h (struct utsname):
12086         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12087         * lib/unistd.in.h (getpagesize): Likewise.
12088         * lib/wchar.in.h (mbstate_t): Likewise.
12089         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12090         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12091         towlower, towupper): Likewise.
12092         Reported by Sam Steingold <sds@gnu.org>.
12093
12094 2011-02-05  Eric Blake  <eblake@redhat.com>
12095
12096         unsetenv: work around Haiku issues
12097         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12098         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12099
12100 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12101
12102         libposix: avoid calling error() within libposix
12103         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12104         is defined.
12105
12106 2011-02-05  Eric Blake  <eblake@redhat.com>
12107
12108         strerror_r-posix: port to cygwin
12109         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12110         implementation.
12111         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12112         * tests/test-strerror_r.c (main): Fix test.
12113         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12114         issue.
12115
12116 2011-02-05  Bruno Haible  <bruno@clisp.org>
12117
12118         New module 'wmemchr'.
12119         * modules/wmemchr: New file.
12120         * lib/wchar.in.h (wmemchr): New declaration.
12121         * lib/wmemchr.c: New file.
12122         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
12123         * m4/wmemchr.m4: New file.
12124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
12125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
12126         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
12127         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
12128         * doc/posix-functions/wmemchr.texi: Mention the new module.
12129
12130 2011-02-04  Eric Blake  <eblake@redhat.com>
12131
12132         fdopendir: detect FreeBSD bug
12133         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
12134         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
12135
12136 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
12137
12138         stdbool: do not define HAVE_STDBOOL_H
12139         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
12140         AC_HEADER_STDBOOL.  All uses changed.  Do not define
12141         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
12142         imported from the latest Autoconf git.  It was motivated by Emacs,
12143         which uses gnulib but does not need HAVE_STDBOOL_H.
12144
12145 2011-02-04  Bruno Haible  <bruno@clisp.org>
12146
12147         wcsnrtombs: Prepare for new module wwcsnrtombs.
12148         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
12149         * lib/wcsnrtombs.c: Include it.
12150         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
12151
12152         wcsrtombs: Prepare for new module wwcsrtombs.
12153         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
12154         * lib/wcsrtombs.c: Include it.
12155         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
12156
12157         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
12158         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
12159         * lib/mbsnrtowcs.c: Include it.
12160         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
12161
12162         mbsrtowcs: Prepare for new module mbsrtowwcs.
12163         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
12164         * lib/mbsrtowcs.c: Include it.
12165         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
12166
12167 2011-02-04  Bruno Haible  <bruno@clisp.org>
12168
12169         vasnprintf: Reduce use of malloc for small format strings.
12170         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
12171         (arguments): Add room for the first 7 arguments.
12172         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
12173         (char_directives, u8_directives, u16_directives, u32_directives): Add
12174         room for the first 7 directives.
12175         * lib/printf-parse.c: Include <string.h>.
12176         (PRINTF_PARSE): Change memory handling code so that it uses the first
12177         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
12178         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
12179         Reported by Pádraig Brady <P@draigbrady.com>.
12180
12181 2011-01-31  Eric Blake  <eblake@redhat.com>
12182
12183         dup2: work around Haiku bug
12184         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
12185         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
12186         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12187         * tests/test-dup2.c (main): Enhance test.
12188
12189 2011-01-31  Simon Josefsson  <simon@josefsson.org>
12190
12191         doc: off_t is not available in eglibc 2.11.2 stdio.h.
12192         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
12193         declared by eglibc 2.11.2.
12194         * lib/stdio.in.h: Likewise.
12195
12196 2011-01-31  Eric Blake  <eblake@redhat.com>
12197
12198         ignore-value: add missing test dependency
12199         * tests/test-ignore-value.c: Revert previous change; stdio.h
12200         provides off_t.
12201         * modules/ignore-value-tests (Depends-on): Add missing dependency.
12202
12203 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
12204
12205         mktime: clarify long_int width checking
12206         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
12207         the top level, to make it clearer that the assumption about
12208         long_int width is being checked.  See
12209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
12210
12211 2011-01-30  Simon Josefsson  <simon@josefsson.org>
12212
12213         ignore-value: Fix self-test.
12214         * tests/test-ignore-value.c: Include sys/types.h for off_t.
12215
12216 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
12217
12218         TYPE_MAXIMUM: avoid theoretically undefined behavior
12219         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
12220         negative number, which the C Standard says has undefined behavior.
12221         In practice this is not a problem, but might as well do it by the book.
12222         Reported by Rich Felker and Eric Blake; see
12223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
12224         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
12225         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
12226         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12227         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
12228         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12229         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
12230
12231         mktime: #undef mktime before #defining it
12232         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
12233
12234         mktime: systematically normalize tm_isdst comparisons
12235         * lib/mktime.c (isdst_differ): New function.
12236         (__mktime_internal): Use it systematically for all isdst comparisons.
12237         This completes the fix for libc BZ #6723, and removes the need for
12238         normalizing tm_isdst.  See
12239         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
12240         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
12241
12242         mktime: fix some integer overflow issues and sidestep the rest
12243
12244         This was prompted by a bug report by Benjamin Lindner for MinGW
12245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
12246         His bug is due to signed integer overflow (0 - INT_MIN), and I
12247         I scanned through mktime.c looking for other integer overflow
12248         problems, fixing all the bugs I found.
12249
12250         Although the C Standard says the resulting code is still not safe
12251         in the presence of integer overflow, in practice it should be good
12252         enough for all real-world two's-complement implementations, except
12253         for debugging environments that deliberately trap on integer
12254         overflow (e.g., gcc -ftrapv).
12255
12256         * lib/mktime.c (WRAPV): New macro.
12257         (SHR): Also check that long_int and time_t shift right in the
12258         usual way, before using the fast-but-unportable method.
12259         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
12260         used.  The code already assumed two's complement, so there's
12261         no need to test for alternatives.  All uses removed.
12262         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
12263         the C standard.  Problem reported by Rich Felker in
12264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
12265         (twos_complement_arithmetic): Also check long_int and time_t.
12266         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
12267         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
12268         (__mktime_internal): Avoid integer overflow with unary subtraction
12269         in two instances where -1 - X is an adequate replacement for -X,
12270         since the calculations are approximate.
12271
12272 2011-01-29  Eric Blake  <eblake@redhat.com>
12273
12274         mktime: avoid infinite loop
12275         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
12276         type; behavior is still undefined but portable to all known targets.
12277         Reported by Rich Felker.
12278
12279 2011-01-29  Simon Josefsson  <simon@josefsson.org>
12280
12281         rename, unlink, same-inode: Relicense.
12282         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
12283         * modules/unlink (License): Likewise.
12284         * modules/same-inode (License): Likewise.
12285
12286 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
12287
12288         mktime: avoid problems on NetBSD 5 / i386
12289         * lib/mktime.c (long_int): New type.  This works around a problem
12290         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
12291         but time_t is 64 bits, and where I expect the existing code is
12292         wrong in some cases.
12293         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
12294         (ydhms_diff): Bring back the compile-time check for wide-enough
12295         year and yday.
12296
12297         mktime: fix misspelling in comment
12298         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
12299         This merges all recent glibc changes of importance.
12300
12301 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12302
12303         move-if-change: cope with concurrent mv of identical file.
12304         * build-aux/move-if-change (CMPPROG): Accept environment
12305         variable as an override for `cmp'.
12306         (usage): Document CMPPROG.
12307         Adjust comparison to drop stdout.  Cope with failure of mv if
12308         the target file exists and is identical to the source, for
12309         parallel builds.
12310         Report from H.J. Lu against binutils in PR binutils/12283.
12311
12312 2011-01-28  Bruce Korb  <bkorb@gnu.org>
12313
12314         * users.txt: Mention sharutils.
12315
12316 2011-01-28  Simon Josefsson  <simon@josefsson.org>
12317
12318         * users.txt: Mention OATH Toolkit.
12319
12320 2011-01-27  Bruno Haible  <bruno@clisp.org>
12321
12322         Prepare for supporting FreeBSD 10.
12323         * build-aux/config.libpath: Remove handling of freebsd1*.
12324
12325 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
12326
12327         Prepare for supporting FreeBSD 10.
12328         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
12329         match FreeBSD 10.0.
12330
12331 2011-01-27  Bruno Haible  <bruno@clisp.org>
12332
12333         vma-iter, get-rusage-as: Add OpenBSD support.
12334         * modules/vma-iter (configure.ac): Test for mquery.
12335         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
12336         * lib/vma-iter.c: Include <sys/mman.h>.
12337         (vma_iterate): Add an implementation based on mquery().
12338         * lib/resource-ext.h (get_rusage_as): Update comments.
12339         * lib/get-rusage-as.c: Likewise.
12340         * lib/get-rusage-data.c: Likewise.
12341
12342 2011-01-26  Karl Berry  <karl@gnu.org>
12343
12344         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
12345         variables to make it easier to override the makeinfo program used.
12346
12347 2011-01-26  Eric Blake  <eblake@redhat.com>
12348
12349         fcntl: work around Haiku F_DUPFD bugs
12350         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
12351         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
12352         cloexec bit on duplication.
12353         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
12354
12355 2011-01-26  Bruno Haible  <bruno@clisp.org>
12356
12357         Enable memory leak tests on AIX.
12358         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
12359         * tests/test-fprintf-posix3.c (main): Likewise.
12360
12361 2011-01-26  Bruno Haible  <bruno@clisp.org>
12362
12363         Tests for module 'get-rusage-data'.
12364         * modules/get-rusage-data-tests: New file.
12365         * tests/test-get-rusage-data.c: New file.
12366
12367         New module 'get-rusage-data'.
12368         * lib/resource-ext.h (get_rusage_data): New declaration.
12369         * lib/get-rusage-data.c: New file.
12370         * modules/get-rusage-data: New file.
12371
12372 2011-01-25  Bruno Haible  <bruno@clisp.org>
12373
12374         get-rusage-as: Allow for easier testing.
12375         * lib/resource-ext.h (get_rusage_as): Add comment.
12376         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
12377         (main): New function for interactive testing.
12378
12379 2011-01-25  Bruno Haible  <bruno@clisp.org>
12380
12381         vma-iter: Treat Haiku like BeOS.
12382         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
12383         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
12384
12385 2011-01-25  Eric Blake  <eblake@redhat.com>
12386
12387         c-stack: fix regression on cygwin when libsigsegv is present
12388         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
12389
12390 2011-01-24  Bruno Haible  <bruno@clisp.org>
12391
12392         vma-iter: Avoid empty intervals.
12393         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
12394         on an empty interval.
12395
12396 2011-01-24  Jim Meyering  <meyering@redhat.com>
12397
12398         u64: remove unnecessary #include
12399         * lib/u64.h: Don't include <stddef.h>.  It was not used.
12400
12401 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12402
12403         Allow the user to avoid the HAVE_RAW_DECL_* macros.
12404         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
12405
12406 2011-01-23  Bruno Haible  <bruno@clisp.org>
12407
12408         New module 'vma-iter'.
12409         * lib/vma-iter.h: New file.
12410         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
12411         * modules/vma-iter: New file.
12412         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
12413         for get_rusage_as_via_iterator.
12414         (vma_iterate_callback): New function.
12415         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
12416         * modules/get-rusage-as (Depends-on): Add vma-iter.
12417
12418 2011-01-23  Bruno Haible  <bruno@clisp.org>
12419
12420         uninorm: Tweak includes.
12421         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
12422         Reported by Jim Meyering.
12423
12424 2011-01-23  Bruno Haible  <bruno@clisp.org>
12425
12426         get-rusage-as: Improve on NetBSD.
12427         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
12428         /proc, like on FreeBSD.
12429
12430 2011-01-23  Jim Meyering  <meyering@redhat.com>
12431
12432         xreadlink.h: remove unnecessary #include
12433         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
12434
12435         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
12436         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
12437
12438 2011-01-23  Bruno Haible  <bruno@clisp.org>
12439
12440         get-rusage-as: Fix bug.
12441         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
12442         original limit when aborting the first loop.
12443
12444 2011-01-23  Bruno Haible  <bruno@clisp.org>
12445
12446         wctype: Ensure valid C syntax.
12447         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
12448         unconditionally, instead of gl_NEXT_HEADERS conditionally.
12449
12450 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
12451
12452         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
12453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
12454         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
12455         as they are needed only for configure's test case.
12456         This removes two unnecessary symbols from config.h.
12457
12458         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
12459         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
12460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
12461         AC_CHECK_HEADERS_ONCE on a header that we also invoke
12462         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
12463         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
12464         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
12465         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12466         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12467         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12468         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12469         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12470         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12471         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12472         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12473         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12474         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
12475         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
12476
12477 2011-01-21  Eric Blake  <eblake@redhat.com>
12478
12479         maintainer-makefile: work with older git for submodule check
12480         * top/maint.mk (public-submodule-commit): Rewrite to avoid
12481         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
12482         Reported by Matthias Bolte.
12483
12484         bootstrap: minor portability fixes
12485         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
12486         (usage): Omit leading capital and trailing . on help phrases, per
12487         GNU Coding Standards.
12488         (check_versions, top level): Prefix messages with script name.
12489
12490 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
12491
12492         bootstrap: support --no-git option
12493         * build-aux/bootstrap: Add --no-git option, to be used when
12494         --gnulib-srcdir points to the exact desired checkout.
12495
12496 2011-01-21  Eric Blake  <eblake@redhat.com>
12497
12498         strerror_r-posix: work with glibc 2.13
12499         * lib/strerror_r.c (strerror_r): Fix return type.
12500
12501 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12502             Bruno Haible  <bruno@clisp.org>
12503
12504         uN_strstr: New unit tests.
12505         * modules/unistr/u8-strstr-tests: New file.
12506         * modules/unistr/u16-strstr-tests: New file.
12507         * modules/unistr/u32-strstr-tests: New file.
12508         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
12509         * tests/unistr/test-u8-strstr.c: New file.
12510         * tests/unistr/test-u16-strstr.c: New file.
12511         * tests/unistr/test-u32-strstr.c: New file.
12512
12513 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12514             Bruno Haible  <bruno@clisp.org>
12515
12516         Make uN_strstr functions O(n) worst-case.
12517         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
12518         16-bit and 32-bit unit cases, use the unibyte algorithm from
12519         lib/mbsstr.c.
12520         * lib/unistr/u8-strstr.c: Include <string.h>.
12521         (UNIT_IS_UINT8_T): New macro.
12522         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
12523         (U_STRLEN, U_STRNLEN): New macros.
12524         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
12525         (U_STRLEN, U_STRNLEN): New macros.
12526         * modules/unistr/u8-strstr (Depends-on): Add strstr.
12527         (configure.ac): Update required libunistring version.
12528         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
12529         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
12530         malloca.
12531         (configure.ac): Update required libunistring version.
12532         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
12533         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
12534         malloca.
12535         (configure.ac): Update required libunistring version.
12536
12537 2011-01-21  Pádraig Brady  <P@draigBrady.com>
12538             Bruno Haible  <bruno@clisp.org>
12539
12540         Prepare for faster uN_strstr functions.
12541         * lib/str-kmp.h: Support definable UNITs.
12542         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
12543         needle_len argument.
12544         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
12545         * lib/mbscasestr.c (mbscasestr): Likewise.
12546
12547 2011-01-21  Pádraig Brady <P@draigBrady.com>
12548
12549         malloca-tests: make faster by unsetting MALLOC_PERTURB_
12550         * tests/test-malloca.c (main): Unset the environment variable
12551         to greatly speed up the test.
12552         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
12553         * modules/malloca-tests: Depend on unsetenv.
12554
12555 2011-01-21  Pádraig Brady <P@draigBrady.com>
12556
12557         ignore-value: remove stdint dependency
12558         * lib/ignore-value.h: Remove <stdint.h>
12559         * modules/ignore-value: Remove stdint dependency.
12560
12561 2011-01-21  Jim Meyering  <meyering@redhat.com>
12562
12563         maint.mk: adjust variable name to be consistent with other gl_ vars
12564         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12565         to be lower case.
12566
12567 2011-01-20  Jim Meyering  <meyering@redhat.com>
12568
12569         maint.mk: make "check" depend on public-submodule-commit by default
12570         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12571
12572 2011-01-20  Bruno Haible  <bruno@clisp.org>
12573
12574         mbfile, mbiter: Complete change from 2008-12-21.
12575         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12576         * m4/mbiter.m4 (gl_MBITER): Likewise.
12577
12578 2011-01-20  Jim Meyering  <meyering@redhat.com>
12579
12580         init.sh: insert space between each function name and "()"
12581         * tests/init.sh: Make it a little easier to see that a function's
12582         name is "warn_", and not "warn" when looking at the first part of
12583         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12584
12585 2011-01-20  Jim Meyering  <meyering@redhat.com>
12586
12587         mountlist: clean up code formatting
12588         * lib/mountlist.c (read_file_system_list): Split a long line,
12589         correct bracing style, use NULL in place of "(struct statfs *)0",
12590         don't parenthesize return value, add spaces around "=" and after
12591         ";-in-for-stmt".
12592
12593 2011-01-14  Markus Duft <mduft@gentoo.org>
12594
12595         mountlist: add support for Interix
12596         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12597         Apply statvfs to all entries of /dev/fs.
12598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12599         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12600
12601 2011-01-20  Jim Meyering  <meyering@redhat.com>
12602
12603         maint.mk: improve the public-submodule-commit rule
12604         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12605         to suppress printing of its commands... unless V=1.
12606         Add git submodule's --quiet option to suppress printing of e.g.,
12607         "Entering gnulib" output.
12608         "cd" into $(srcdir) before running git submodule.
12609
12610 2011-01-20  Bruno Haible  <bruno@clisp.org>
12611
12612         include_next: Fix bug introduced on 2011-01-18.
12613         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12614         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12615         ac_cv_header_... variable if the second argument is not 'check'.
12616         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12617         gl_NEXT_HEADERS_INTERNAL.
12618
12619 2011-01-20  Bruno Haible  <bruno@clisp.org>
12620
12621         Allow the user to avoid the GNULIB_TEST_* macros.
12622         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12623         Suggested by Paul Eggert.
12624
12625 2011-01-14  Jim Meyering  <meyering@redhat.com>
12626
12627         bootstrap: avoid failure when there is no .gitmodules file
12628         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12629         has been assigned to, even when its value is the empty string.
12630         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12631         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12632         Reported by John W. Eaton <jwe@gnu.org>.
12633
12634 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12635
12636         assume <ctype.h>, ..., <time.h> exist
12637         For years gnulib has been assuming the existence of the headers
12638         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12639         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12640         them, since they don't appear to be needed.
12641         * README (Portability guidelines): Document this.
12642         * lib/flock.c: Assume <fcntl.h> exists.
12643         * lib/regex_internal.h: Assume <locale.h> exists.
12644         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12645         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12646         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12647         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12648         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12649         * m4/regex.m4 (gl_REGEX): Likewise.
12650         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12651         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12652         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12653         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12654         * tests/test-argp.c: Likewise.
12655         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12656
12657         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12658         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12659         AA_APPLE_UNIVERSAL_BUILD.  See
12660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12661         * NEWS: Document this.
12662
12663 2011-01-19  Eric Blake  <eblake@redhat.com>
12664
12665         c-stack: assume stack overflow if SA_SIGINFO unsupported
12666         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12667         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12668         sigaction will work.
12669         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12670         behavior match Linux.
12671         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12672
12673         stdbool-tests: accomodate Haiku
12674         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12675
12676         binary-io: fix O_TEXT on Haiku
12677         * modules/binary-io (Depends-on): Add fcntl-h.
12678         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12679         than blindly undefining O_TEXT.
12680         Reported by Scott McCreary.
12681
12682 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12683
12684         include_next: do not check for standard headers like stddef.h
12685
12686         I found this problem when modifying Emacs to use gnulib.
12687         I noticed that it added HAVE_STDDEF_H to config.h, even though
12688         gnulib always assumes <stddef.h> exists as per README and this
12689         symbol is unnecessary.
12690         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12691         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12692         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12693         faster for headers like stddef.h that are known to exist.
12694         (gl_CHECK_NEXT_HEADERS): Use it.
12695         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12696         rather than gl_CHECK_NEXT_HEADERS.
12697         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12698         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12699
12700 2011-01-18  Eric Blake  <eblake@redhat.com>
12701
12702         ansi-c++-opt: skip C++ dependency style if C++ is unused
12703         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12704         tests when we know C++ compilation is not desired.
12705         Reported by Scott McCreary.
12706
12707 2011-01-18  Bruno Haible  <bruno@clisp.org>
12708
12709         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12710         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12711         (main): Perform test also when getrlimit and setrlimit don't exist or
12712         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12713         limiting the address space size using setrlimit, compare the address
12714         space size before and after the the test.
12715         * tests/test-dprintf-posix2.c: Likewise.
12716         * tests/test-fprintf-posix3.sh: Update skip messages.
12717         * tests/test-dprintf-posix2.sh: Likewise.
12718         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12719         * modules/dprintf-posix-tests (Depends-on): Likewise.
12720         Reported by Bruce Korb <bkorb@gnu.org> and
12721         Gary V. Vaughan <gary@gnu.org>.
12722
12723 2011-01-18  Bruno Haible  <bruno@clisp.org>
12724
12725         get-rusage-as: Improvement for Cygwin.
12726         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12727         areas that are merely reserved.
12728
12729 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12730
12731         strftime: remove dependencies on multibyte modules
12732
12733         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12734         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12735         only if __osf__ is defined, and I suspect OSF doesn't need these
12736         other modules.  If my guess is wrong, we'll need to come up with a
12737         variant of strftime that doesn't need the multibyte modules.
12738
12739         I discovered this problem when attempting modify Emacs to use the
12740         strftime module.  With the previous gnulib, this caused Emacs to
12741         need 31 new files, ranging from lib/config.charset to
12742         m4/wint_t.m4.  This was overkill and I expect would be offputting
12743         to the Emacs maintainers.  After this change, only 6 new files are
12744         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12745         stdbool.m4, and tm_gmtoff.m4.
12746
12747         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12748         Suggested by Bruno Haible in
12749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12750         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12751         and do not check for wchar.h.
12752         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12753         (Depends-on): Remove mbrlen, mbsinit, wchar.
12754
12755 2011-01-18  Bruno Haible  <bruno@clisp.org>
12756
12757         Tests for module 'get-rusage-as'.
12758         * modules/get-rusage-as-tests: New file.
12759         * tests/test-get-rusage-as.c: New file.
12760
12761         New module 'get-rusage-as'.
12762         * modules/get-rusage-as: New file.
12763         * lib/resource-ext.h: New file.
12764         * lib/get-rusage-as.c: New file.
12765
12766 2011-01-17  Eric Blake  <eblake@redhat.com>
12767
12768         sigaction: relax license from LGPLv3+ to LGPLv2+
12769         * modules/sigaction (License): Relax to LGPLv2+.
12770
12771 2011-01-14  Bruno Haible  <bruno@clisp.org>
12772
12773         filemode: Make function declarations usable in C++ mode.
12774         * lib/filemode.h: Enclose function declarations in extern "C" block.
12775         Reported by John W. Eaton <jwe@gnu.org>.
12776
12777 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12778
12779         save-cwd: no longer include "xgetcwd.h"
12780         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12781         This avoids a compilation failure in projects that use save-cwd
12782         without also using the xgetcwd module.
12783
12784 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12785
12786         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12787         This is so that a program like Emacs, which needs only dtoastr,
12788         does not have to bother with distributing and compiling ftoastr
12789         and ldtoastr.
12790         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12791         * modules/dtoastr, modules/ldtoastr: New files.
12792         * modules/ftoastr: Now works just for 'float'.
12793         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12794         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12795         dtoastr.c, ldtoastr.c.
12796
12797 2011-01-11  Jim Meyering  <meyering@redhat.com>
12798
12799         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12800         There is no need to work around the lack of the fchdir function,
12801         since gnulib can now provide a replacement when required.
12802         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12803         * modules/save-cwd (Depends-on): Add fchdir.
12804
12805 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12806
12807         openat, save-cwd: avoid xmalloc
12808
12809         This removes a direct (but undocumented) dependency of openat on
12810         xalloc, along with an indirect dependency via save-cwd.  It also
12811         removes a dependency of save-cwd on xgetcwd, and thereby
12812         indirectly on xalloc.  This change causes the openat substitute
12813         to fall back on save_cwd when memory is tight, and for save_cwd to
12814         fail instead of dying when memory is tight, but that's good enough.
12815         Problem and initial idea for fix reported by Bastien Roucaries in
12816         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12817
12818         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12819         xalloc.h (for xmalloc).
12820         (openat_proc_name): Use malloc, not xmalloc.
12821         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12822         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12823
12824         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12825         This avoids heap allocation for file names whose lengths are in
12826         the range 512..1023, with the upper bound increasing to at most
12827         4031 depending on the platform's PATH_MAX.  (We do not want
12828         pathmax.h here as it might supply a non-constant PATH_MAX.)
12829         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12830         Perhaps they should be moved to malloca.h?
12831         (OPENAT_BUFFER_SIZE): Use them.
12832
12833 2011-01-10  Bruno Haible  <bruno@clisp.org>
12834
12835         doc: Update users.txt.
12836         * users.txt: Add recutils.
12837
12838 2011-01-09  Karl Berry  <karl@gnu.org>
12839
12840         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12841
12842         * doc/configmake.texi: New file.
12843         * doc/gnulib.texi: Include it.
12844         * modules/configmake: Move documentation from here.
12845
12846 2011-01-09  Bruno Haible  <bruno@clisp.org>
12847
12848         Update to Unicode 6.0.0.
12849         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12850         (get_lbp): Update for Unicode 6.0.0.
12851         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12852         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12853         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12854         U+11001, U+11038..U+11046. Remove U+06DE.
12855         (uc_width): Fix bounds of planes.
12856         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12857         lib/uniwidth/width.c.
12858         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12859         trailing whitespace removed.
12860         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12861         without comments, but with the original copyright notice.
12862         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12863         * lib/unicase/ignorable.h: Likewise.
12864         * lib/unicase/tocasefold.h: Likewise.
12865         * lib/unicase/tolower.h: Likewise.
12866         * lib/unicase/totitle.h: Likewise.
12867         * lib/unicase/toupper.h: Likewise.
12868         * lib/unictype/bidi_of.h: Likewise.
12869         * lib/unictype/blocks.h: Likewise.
12870         * lib/unictype/categ_C.h: Likewise.
12871         * lib/unictype/categ_Cn.h: Likewise.
12872         * lib/unictype/categ_L.h: Likewise.
12873         * lib/unictype/categ_Ll.h: Likewise.
12874         * lib/unictype/categ_Lm.h: Likewise.
12875         * lib/unictype/categ_Lo.h: Likewise.
12876         * lib/unictype/categ_Lu.h: Likewise.
12877         * lib/unictype/categ_M.h: Likewise.
12878         * lib/unictype/categ_Mc.h: Likewise.
12879         * lib/unictype/categ_Me.h: Likewise.
12880         * lib/unictype/categ_Mn.h: Likewise.
12881         * lib/unictype/categ_N.h: Likewise.
12882         * lib/unictype/categ_Nd.h: Likewise.
12883         * lib/unictype/categ_No.h: Likewise.
12884         * lib/unictype/categ_P.h: Likewise.
12885         * lib/unictype/categ_Po.h: Likewise.
12886         * lib/unictype/categ_S.h: Likewise.
12887         * lib/unictype/categ_Sc.h: Likewise.
12888         * lib/unictype/categ_Sk.h: Likewise.
12889         * lib/unictype/categ_Sm.h: Likewise.
12890         * lib/unictype/categ_So.h: Likewise.
12891         * lib/unictype/categ_of.h: Likewise.
12892         * lib/unictype/combining.h: Likewise.
12893         * lib/unictype/ctype_alnum.h: Likewise.
12894         * lib/unictype/ctype_alpha.h: Likewise.
12895         * lib/unictype/ctype_graph.h: Likewise.
12896         * lib/unictype/ctype_lower.h: Likewise.
12897         * lib/unictype/ctype_print.h: Likewise.
12898         * lib/unictype/ctype_punct.h: Likewise.
12899         * lib/unictype/ctype_upper.h: Likewise.
12900         * lib/unictype/decdigit.h: Likewise.
12901         * lib/unictype/digit.h: Likewise.
12902         * lib/unictype/numeric.h: Likewise.
12903         * lib/unictype/pr_alphabetic.h: Likewise.
12904         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12905         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12906         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12907         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12908         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12909         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12910         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12911         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12912         * lib/unictype/pr_case_ignorable.h: Likewise.
12913         * lib/unictype/pr_cased.h: Likewise.
12914         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12915         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12916         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12917         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12918         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12919         * lib/unictype/pr_combining.h: Likewise.
12920         * lib/unictype/pr_composite.h: Likewise.
12921         * lib/unictype/pr_currency_symbol.h: Likewise.
12922         * lib/unictype/pr_decimal_digit.h: Likewise.
12923         * lib/unictype/pr_deprecated.h: Likewise.
12924         * lib/unictype/pr_format_control.h: Likewise.
12925         * lib/unictype/pr_grapheme_base.h: Likewise.
12926         * lib/unictype/pr_grapheme_extend.h: Likewise.
12927         * lib/unictype/pr_grapheme_link.h: Likewise.
12928         * lib/unictype/pr_id_continue.h: Likewise.
12929         * lib/unictype/pr_id_start.h: Likewise.
12930         * lib/unictype/pr_ideographic.h: Likewise.
12931         * lib/unictype/pr_lowercase.h: Likewise.
12932         * lib/unictype/pr_math.h: Likewise.
12933         * lib/unictype/pr_numeric.h: Likewise.
12934         * lib/unictype/pr_other_alphabetic.h: Likewise.
12935         * lib/unictype/pr_other_id_continue.h: Likewise.
12936         * lib/unictype/pr_other_math.h: Likewise.
12937         * lib/unictype/pr_punctuation.h: Likewise.
12938         * lib/unictype/pr_sentence_terminal.h: Likewise.
12939         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12940         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12941         * lib/unictype/pr_unified_ideograph.h: Likewise.
12942         * lib/unictype/pr_uppercase.h: Likewise.
12943         * lib/unictype/pr_xid_continue.h: Likewise.
12944         * lib/unictype/pr_xid_start.h: Likewise.
12945         * lib/unictype/scripts.h: Likewise.
12946         * lib/unictype/scripts_byname.gperf: Likewise.
12947         * lib/unictype/sy_java_ident.h: Likewise.
12948         * lib/unigbrk/gbrkprop.h: Likewise.
12949         * lib/unilbrk/lbrkprop1.h: Likewise.
12950         * lib/unilbrk/lbrkprop2.h: Likewise.
12951         * lib/uninorm/decomposition-table2.h: Likewise.
12952         * lib/uniwbrk/wbrkprop.h: Likewise.
12953         * tests/unicase/test-cased.c: Likewise.
12954         * tests/unicase/test-ignorable.c: Likewise.
12955         * tests/unicase/test-uc_tolower.c: Likewise.
12956         * tests/unicase/test-uc_totitle.c: Likewise.
12957         * tests/unicase/test-uc_toupper.c: Likewise.
12958         * tests/unictype/test-categ_C.c: Likewise.
12959         * tests/unictype/test-categ_Cn.c: Likewise.
12960         * tests/unictype/test-categ_L.c: Likewise.
12961         * tests/unictype/test-categ_Ll.c: Likewise.
12962         * tests/unictype/test-categ_Lm.c: Likewise.
12963         * tests/unictype/test-categ_Lo.c: Likewise.
12964         * tests/unictype/test-categ_Lu.c: Likewise.
12965         * tests/unictype/test-categ_M.c: Likewise.
12966         * tests/unictype/test-categ_Mc.c: Likewise.
12967         * tests/unictype/test-categ_Me.c: Likewise.
12968         * tests/unictype/test-categ_Mn.c: Likewise.
12969         * tests/unictype/test-categ_N.c: Likewise.
12970         * tests/unictype/test-categ_Nd.c: Likewise.
12971         * tests/unictype/test-categ_No.c: Likewise.
12972         * tests/unictype/test-categ_P.c: Likewise.
12973         * tests/unictype/test-categ_Po.c: Likewise.
12974         * tests/unictype/test-categ_S.c: Likewise.
12975         * tests/unictype/test-categ_Sc.c: Likewise.
12976         * tests/unictype/test-categ_Sk.c: Likewise.
12977         * tests/unictype/test-categ_Sm.c: Likewise.
12978         * tests/unictype/test-categ_So.c: Likewise.
12979         * tests/unictype/test-ctype_alnum.c: Likewise.
12980         * tests/unictype/test-ctype_alpha.c: Likewise.
12981         * tests/unictype/test-ctype_graph.c: Likewise.
12982         * tests/unictype/test-ctype_lower.c: Likewise.
12983         * tests/unictype/test-ctype_print.c: Likewise.
12984         * tests/unictype/test-ctype_punct.c: Likewise.
12985         * tests/unictype/test-ctype_upper.c: Likewise.
12986         * tests/unictype/test-decdigit.h: Likewise.
12987         * tests/unictype/test-digit.h: Likewise.
12988         * tests/unictype/test-numeric.h: Likewise.
12989         * tests/unictype/test-pr_alphabetic.c: Likewise.
12990         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12991         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12992         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12993         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12994         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12995         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12996         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12997         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12998         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12999         * tests/unictype/test-pr_cased.c: Likewise.
13000         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13001         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13002         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13003         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13004         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13005         * tests/unictype/test-pr_combining.c: Likewise.
13006         * tests/unictype/test-pr_composite.c: Likewise.
13007         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13008         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13009         * tests/unictype/test-pr_deprecated.c: Likewise.
13010         * tests/unictype/test-pr_format_control.c: Likewise.
13011         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13012         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13013         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13014         * tests/unictype/test-pr_id_continue.c: Likewise.
13015         * tests/unictype/test-pr_id_start.c: Likewise.
13016         * tests/unictype/test-pr_ideographic.c: Likewise.
13017         * tests/unictype/test-pr_lowercase.c: Likewise.
13018         * tests/unictype/test-pr_math.c: Likewise.
13019         * tests/unictype/test-pr_numeric.c: Likewise.
13020         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13021         * tests/unictype/test-pr_other_id_continue.c: Likewise.
13022         * tests/unictype/test-pr_other_math.c: Likewise.
13023         * tests/unictype/test-pr_punctuation.c: Likewise.
13024         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13025         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13026         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13027         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13028         * tests/unictype/test-pr_uppercase.c: Likewise.
13029         * tests/unictype/test-pr_xid_continue.c: Likewise.
13030         * tests/unictype/test-pr_xid_start.c: Likewise.
13031         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13032         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13033         changes.
13034         * lib/unictype/categ_Cc.h: Likewise.
13035         * lib/unictype/categ_Cf.h: Likewise.
13036         * lib/unictype/categ_Co.h: Likewise.
13037         * lib/unictype/categ_Cs.h: Likewise.
13038         * lib/unictype/categ_Lt.h: Likewise.
13039         * lib/unictype/categ_Nl.h: Likewise.
13040         * lib/unictype/categ_Pc.h: Likewise.
13041         * lib/unictype/categ_Pd.h: Likewise.
13042         * lib/unictype/categ_Pe.h: Likewise.
13043         * lib/unictype/categ_Pf.h: Likewise.
13044         * lib/unictype/categ_Pi.h: Likewise.
13045         * lib/unictype/categ_Ps.h: Likewise.
13046         * lib/unictype/categ_Z.h: Likewise.
13047         * lib/unictype/categ_Zl.h: Likewise.
13048         * lib/unictype/categ_Zp.h: Likewise.
13049         * lib/unictype/categ_Zs.h: Likewise.
13050         * lib/unictype/ctype_blank.h: Likewise.
13051         * lib/unictype/ctype_cntrl.h: Likewise.
13052         * lib/unictype/ctype_digit.h: Likewise.
13053         * lib/unictype/ctype_space.h: Likewise.
13054         * lib/unictype/ctype_xdigit.h: Likewise.
13055         * lib/unictype/mirror.h: Likewise.
13056         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13057         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13058         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13059         * lib/unictype/pr_bidi_control.h: Likewise.
13060         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13061         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13062         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13063         * lib/unictype/pr_bidi_pdf.h: Likewise.
13064         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13065         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13066         * lib/unictype/pr_dash.h: Likewise.
13067         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13068         * lib/unictype/pr_diacritic.h: Likewise.
13069         * lib/unictype/pr_extender.h: Likewise.
13070         * lib/unictype/pr_hex_digit.h: Likewise.
13071         * lib/unictype/pr_hyphen.h: Likewise.
13072         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13073         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13074         * lib/unictype/pr_ignorable_control.h: Likewise.
13075         * lib/unictype/pr_iso_control.h: Likewise.
13076         * lib/unictype/pr_join_control.h: Likewise.
13077         * lib/unictype/pr_left_of_pair.h: Likewise.
13078         * lib/unictype/pr_line_separator.h: Likewise.
13079         * lib/unictype/pr_logical_order_exception.h: Likewise.
13080         * lib/unictype/pr_non_break.h: Likewise.
13081         * lib/unictype/pr_not_a_character.h: Likewise.
13082         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13083         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13084         * lib/unictype/pr_other_id_start.h: Likewise.
13085         * lib/unictype/pr_other_lowercase.h: Likewise.
13086         * lib/unictype/pr_other_uppercase.h: Likewise.
13087         * lib/unictype/pr_paired_punctuation.h: Likewise.
13088         * lib/unictype/pr_paragraph_separator.h: Likewise.
13089         * lib/unictype/pr_pattern_syntax.h: Likewise.
13090         * lib/unictype/pr_pattern_white_space.h: Likewise.
13091         * lib/unictype/pr_private_use.h: Likewise.
13092         * lib/unictype/pr_quotation_mark.h: Likewise.
13093         * lib/unictype/pr_radical.h: Likewise.
13094         * lib/unictype/pr_soft_dotted.h: Likewise.
13095         * lib/unictype/pr_space.h: Likewise.
13096         * lib/unictype/pr_titlecase.h: Likewise.
13097         * lib/unictype/pr_variation_selector.h: Likewise.
13098         * lib/unictype/pr_white_space.h: Likewise.
13099         * lib/unictype/pr_zero_width.h: Likewise.
13100         * lib/unictype/sy_c_ident.h: Likewise.
13101         * lib/unictype/sy_c_whitespace.h: Likewise.
13102         * lib/unictype/sy_java_whitespace.h: Likewise.
13103         * lib/uninorm/composition-table.gperf: Likewise.
13104         * lib/uninorm/decomposition-table1.h: Likewise.
13105         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13106         LB8.
13107         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13108         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13109         * modules/unictype/*: Bump version number of expected libunistring
13110         version.
13111
13112 2011-01-09  Bruno Haible  <bruno@clisp.org>
13113
13114         Update to Unicode 5.2.0.
13115         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13116         trailing whitespace removed.
13117
13118 2011-01-09  Bruno Haible  <bruno@clisp.org>
13119
13120         New Unicode character properties, from Unicode 5.2.0.
13121         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13122         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
13123         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
13124         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
13125         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
13126         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
13127         uc_is_property_cased, uc_is_property_case_ignorable,
13128         uc_is_property_changes_when_lowercased,
13129         uc_is_property_changes_when_uppercased,
13130         uc_is_property_changes_when_titlecased,
13131         uc_is_property_changes_when_casefolded,
13132         uc_is_property_changes_when_casemapped): New declarations.
13133         * lib/unictype/pr_byname.gperf: Add the new properties.
13134         * modules/unictype/property-byname (Depends-on): Depend on the new
13135         properties modules.
13136         * modules/unictype/property-all (Depends-on): Likewise.
13137         * MODULES.html.sh (Unicode string functions): Add
13138         unictype/property-case-ignorable, unictype/property-cased,
13139         unictype/property-changes-when-casefolded,
13140         unictype/property-changes-when-casemapped,
13141         unictype/property-changes-when-lowercased,
13142         unictype/property-changes-when-titlecased,
13143         unictype/property-changes-when-uppercased.
13144
13145         New module 'unictype/property-changes-when-casemapped'.
13146         * modules/unictype/property-changes-when-casemapped: New file.
13147         * lib/unictype/pr_changes_when_casemapped.c: New file.
13148         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
13149         generated by gen-uni-tables.
13150         * modules/unictype/property-changes-when-casemapped-tests: New file.
13151         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
13152         automatically generated by gen-uni-tables.
13153
13154         New module 'unictype/property-changes-when-casefolded'.
13155         * modules/unictype/property-changes-when-casefolded: New file.
13156         * lib/unictype/pr_changes_when_casefolded.c: New file.
13157         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
13158         generated by gen-uni-tables.
13159         * modules/unictype/property-changes-when-casefolded-tests: New file.
13160         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
13161         automatically generated by gen-uni-tables.
13162
13163         New module 'unictype/property-changes-when-titlecased'.
13164         * modules/unictype/property-changes-when-titlecased: New file.
13165         * lib/unictype/pr_changes_when_titlecased.c: New file.
13166         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
13167         generated by gen-uni-tables.
13168         * modules/unictype/property-changes-when-titlecased-tests: New file.
13169         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
13170         automatically generated by gen-uni-tables.
13171
13172         New module 'unictype/property-changes-when-uppercased'.
13173         * modules/unictype/property-changes-when-uppercased: New file.
13174         * lib/unictype/pr_changes_when_uppercased.c: New file.
13175         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
13176         generated by gen-uni-tables.
13177         * modules/unictype/property-changes-when-uppercased-tests: New file.
13178         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
13179         automatically generated by gen-uni-tables.
13180
13181         New module 'unictype/property-changes-when-lowercased'.
13182         * modules/unictype/property-changes-when-lowercased: New file.
13183         * lib/unictype/pr_changes_when_lowercased.c: New file.
13184         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
13185         generated by gen-uni-tables.
13186         * modules/unictype/property-changes-when-lowercased-tests: New file.
13187         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
13188         automatically generated by gen-uni-tables.
13189
13190         New module 'unictype/property-case-ignorable'.
13191         * modules/unictype/property-case-ignorable: New file.
13192         * lib/unictype/pr_case_ignorable.c: New file.
13193         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
13194         by gen-uni-tables.
13195         * modules/unictype/property-case-ignorable-tests: New file.
13196         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
13197         generated by gen-uni-tables.
13198
13199         New module 'unictype/property-cased'.
13200         * modules/unictype/property-cased: New file.
13201         * lib/unictype/pr_cased.c: New file.
13202         * lib/unictype/pr_cased.h: New file, automatically generated by
13203         gen-uni-tables.
13204         * modules/unictype/property-cased-tests: New file.
13205         * tests/unictype/test-pr_cased.c: New file, automatically generated by
13206         gen-uni-tables.
13207
13208 2011-01-09  Bruno Haible  <bruno@clisp.org>
13209
13210         Update to Unicode 5.2.0.
13211         * lib/gen-uni-tables.c (output_predicate, output_category,
13212         output_combclass, output_bidi_category, output_decimal_digit_test,
13213         output_decimal_digit, output_digit_test, output_digit,
13214         output_numeric_test, output_numeric, output_mirror, output_scripts,
13215         output_scripts_byname, output_blocks, output_ident_category): Fix
13216         comment header.
13217         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
13218         get_wbp.
13219         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
13220         items.
13221         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
13222         Changes_When_Lowercased, Changes_When_Uppercased,
13223         Changes_When_Titlecased, Changes_When_Casefolded,
13224         Changes_When_Casemapped.
13225         (is_property_alphabetic, is_property_default_ignorable_code_point):
13226         Update for Unicode 5.2.0.
13227         (is_property_cased, is_property_case_ignorable,
13228         is_property_changes_when_lowercased,
13229         is_property_changes_when_uppercased,
13230         is_property_changes_when_titlecased,
13231         is_property_changes_when_casefolded,
13232         is_property_changes_when_casemapped): New functions.
13233         (output_properties): Output also the properties cased, case_ignorable,
13234         changes_when_lowercased, changes_when_uppercased,
13235         changes_when_titlecased, changes_when_casefolded,
13236         changes_when_casemapped.
13237         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
13238         Unicode TR#11 revision 17 -> 19.
13239         (LBP_CP): New enumeration value.
13240         (LBP_*): Adjust values accordingly.
13241         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13242         TR#14 revision 22 -> 24.
13243         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
13244         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
13245         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
13246         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
13247         is_WBP_MIDLETTER.
13248         (output_composition_tables): Allow for 24 bits instead of 16 bits in
13249         the code1 and code2 of each composition rule.
13250         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
13251         * lib/unicase/ignorable.h: Likewise.
13252         * lib/unicase/tocasefold.h: Likewise.
13253         * lib/unicase/tolower.h: Likewise.
13254         * lib/unicase/totitle.h: Likewise.
13255         * lib/unicase/toupper.h: Likewise.
13256         * lib/unictype/bidi_of.h: Likewise.
13257         * lib/unictype/blocks.h: Likewise.
13258         * lib/unictype/categ_C.h: Likewise.
13259         * lib/unictype/categ_Cf.h: Likewise.
13260         * lib/unictype/categ_Cn.h: Likewise.
13261         * lib/unictype/categ_L.h: Likewise.
13262         * lib/unictype/categ_Ll.h: Likewise.
13263         * lib/unictype/categ_Lm.h: Likewise.
13264         * lib/unictype/categ_Lo.h: Likewise.
13265         * lib/unictype/categ_Lu.h: Likewise.
13266         * lib/unictype/categ_M.h: Likewise.
13267         * lib/unictype/categ_Mc.h: Likewise.
13268         * lib/unictype/categ_Mn.h: Likewise.
13269         * lib/unictype/categ_N.h: Likewise.
13270         * lib/unictype/categ_Nd.h: Likewise.
13271         * lib/unictype/categ_Nl.h: Likewise.
13272         * lib/unictype/categ_No.h: Likewise.
13273         * lib/unictype/categ_P.h: Likewise.
13274         * lib/unictype/categ_Pd.h: Likewise.
13275         * lib/unictype/categ_Po.h: Likewise.
13276         * lib/unictype/categ_S.h: Likewise.
13277         * lib/unictype/categ_Sc.h: Likewise.
13278         * lib/unictype/categ_So.h: Likewise.
13279         * lib/unictype/categ_of.h: Likewise.
13280         * lib/unictype/combining.h: Likewise.
13281         * lib/unictype/ctype_alnum.h: Likewise.
13282         * lib/unictype/ctype_alpha.h: Likewise.
13283         * lib/unictype/ctype_graph.h: Likewise.
13284         * lib/unictype/ctype_lower.h: Likewise.
13285         * lib/unictype/ctype_print.h: Likewise.
13286         * lib/unictype/ctype_punct.h: Likewise.
13287         * lib/unictype/ctype_upper.h: Likewise.
13288         * lib/unictype/decdigit.h: Likewise.
13289         * lib/unictype/digit.h: Likewise.
13290         * lib/unictype/numeric.h: Likewise.
13291         * lib/unictype/pr_alphabetic.h: Likewise.
13292         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13293         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13294         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13295         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13296         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13297         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13298         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13299         * lib/unictype/pr_combining.h: Likewise.
13300         * lib/unictype/pr_composite.h: Likewise.
13301         * lib/unictype/pr_currency_symbol.h: Likewise.
13302         * lib/unictype/pr_dash.h: Likewise.
13303         * lib/unictype/pr_decimal_digit.h: Likewise.
13304         * lib/unictype/pr_deprecated.h: Likewise.
13305         * lib/unictype/pr_diacritic.h: Likewise.
13306         * lib/unictype/pr_extender.h: Likewise.
13307         * lib/unictype/pr_grapheme_base.h: Likewise.
13308         * lib/unictype/pr_grapheme_extend.h: Likewise.
13309         * lib/unictype/pr_grapheme_link.h: Likewise.
13310         * lib/unictype/pr_id_continue.h: Likewise.
13311         * lib/unictype/pr_id_start.h: Likewise.
13312         * lib/unictype/pr_ideographic.h: Likewise.
13313         * lib/unictype/pr_ignorable_control.h: Likewise.
13314         * lib/unictype/pr_logical_order_exception.h: Likewise.
13315         * lib/unictype/pr_lowercase.h: Likewise.
13316         * lib/unictype/pr_numeric.h: Likewise.
13317         * lib/unictype/pr_other_alphabetic.h: Likewise.
13318         * lib/unictype/pr_punctuation.h: Likewise.
13319         * lib/unictype/pr_sentence_terminal.h: Likewise.
13320         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13321         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13322         * lib/unictype/pr_unified_ideograph.h: Likewise.
13323         * lib/unictype/pr_uppercase.h: Likewise.
13324         * lib/unictype/pr_xid_continue.h: Likewise.
13325         * lib/unictype/pr_xid_start.h: Likewise.
13326         * lib/unictype/pr_zero_width.h: Likewise.
13327         * lib/unictype/scripts.h: Likewise.
13328         * lib/unictype/scripts_byname.gperf: Likewise.
13329         * lib/unictype/sy_java_ident.h: Likewise.
13330         * lib/unigbrk/gbrkprop.h: Likewise.
13331         * lib/unilbrk/lbrkprop1.h: Likewise.
13332         * lib/unilbrk/lbrkprop2.h: Likewise.
13333         * lib/unilbrk/lbrktables.h: Likewise.
13334         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
13335         LBP_CP. Implement rule LB30.
13336         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
13337         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
13338         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
13339         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
13340         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
13341         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
13342         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
13343         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
13344         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
13345         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
13346         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
13347         bits instead of 16 bits in the code1 and code2 of each composition
13348         rule.
13349         (uc_composition): Update for Unicode 5.2.0.
13350         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
13351         * lib/uninorm/decomposition-table2.h: Likewise.
13352         * lib/uniwbrk/wbrkprop.h: Likewise.
13353         * tests/unicase/test-cased.c: Likewise.
13354         * tests/unicase/test-ignorable.c: Likewise.
13355         * tests/unicase/test-uc_tolower.c: Likewise.
13356         * tests/unicase/test-uc_totitle.c: Likewise.
13357         * tests/unicase/test-uc_toupper.c: Likewise.
13358         * tests/unictype/test-categ_C.c: Likewise.
13359         * tests/unictype/test-categ_Cf.c: Likewise.
13360         * tests/unictype/test-categ_Cn.c: Likewise.
13361         * tests/unictype/test-categ_L.c: Likewise.
13362         * tests/unictype/test-categ_Ll.c: Likewise.
13363         * tests/unictype/test-categ_Lm.c: Likewise.
13364         * tests/unictype/test-categ_Lo.c: Likewise.
13365         * tests/unictype/test-categ_Lu.c: Likewise.
13366         * tests/unictype/test-categ_M.c: Likewise.
13367         * tests/unictype/test-categ_Mc.c: Likewise.
13368         * tests/unictype/test-categ_Mn.c: Likewise.
13369         * tests/unictype/test-categ_N.c: Likewise.
13370         * tests/unictype/test-categ_Nd.c: Likewise.
13371         * tests/unictype/test-categ_Nl.c: Likewise.
13372         * tests/unictype/test-categ_No.c: Likewise.
13373         * tests/unictype/test-categ_P.c: Likewise.
13374         * tests/unictype/test-categ_Pd.c: Likewise.
13375         * tests/unictype/test-categ_Po.c: Likewise.
13376         * tests/unictype/test-categ_S.c: Likewise.
13377         * tests/unictype/test-categ_Sc.c: Likewise.
13378         * tests/unictype/test-categ_So.c: Likewise.
13379         * tests/unictype/test-ctype_alnum.c: Likewise.
13380         * tests/unictype/test-ctype_alpha.c: Likewise.
13381         * tests/unictype/test-ctype_graph.c: Likewise.
13382         * tests/unictype/test-ctype_lower.c: Likewise.
13383         * tests/unictype/test-ctype_print.c: Likewise.
13384         * tests/unictype/test-ctype_punct.c: Likewise.
13385         * tests/unictype/test-ctype_upper.c: Likewise.
13386         * tests/unictype/test-decdigit.h: Likewise.
13387         * tests/unictype/test-digit.h: Likewise.
13388         * tests/unictype/test-numeric.h: Likewise.
13389         * tests/unictype/test-pr_alphabetic.c: Likewise.
13390         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13391         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13392         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
13393         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13394         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13395         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13396         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13397         * tests/unictype/test-pr_combining.c: Likewise.
13398         * tests/unictype/test-pr_composite.c: Likewise.
13399         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13400         * tests/unictype/test-pr_dash.c: Likewise.
13401         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13402         * tests/unictype/test-pr_deprecated.c: Likewise.
13403         * tests/unictype/test-pr_diacritic.c: Likewise.
13404         * tests/unictype/test-pr_extender.c: Likewise.
13405         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13406         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13407         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13408         * tests/unictype/test-pr_id_continue.c: Likewise.
13409         * tests/unictype/test-pr_id_start.c: Likewise.
13410         * tests/unictype/test-pr_ideographic.c: Likewise.
13411         * tests/unictype/test-pr_ignorable_control.c: Likewise.
13412         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
13413         * tests/unictype/test-pr_lowercase.c: Likewise.
13414         * tests/unictype/test-pr_numeric.c: Likewise.
13415         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13416         * tests/unictype/test-pr_punctuation.c: Likewise.
13417         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13418         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13419         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13420         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13421         * tests/unictype/test-pr_uppercase.c: Likewise.
13422         * tests/unictype/test-pr_xid_continue.c: Likewise.
13423         * tests/unictype/test-pr_xid_start.c: Likewise.
13424         * tests/unictype/test-pr_zero_width.c: Likewise.
13425         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13426         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
13427         changed behaviour: line breaking is now disallowed between a letter
13428         or '=' and '('.
13429         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13430         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13431         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13432         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
13433         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13434         lib/uniwidth/width.c.
13435         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
13436         without comments, but with the original copyright notice.
13437         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13438         changes.
13439         * lib/unictype/categ_Cc.h: Likewise.
13440         * lib/unictype/categ_Co.h: Likewise.
13441         * lib/unictype/categ_Cs.h: Likewise.
13442         * lib/unictype/categ_Lt.h: Likewise.
13443         * lib/unictype/categ_Me.h: Likewise.
13444         * lib/unictype/categ_Pc.h: Likewise.
13445         * lib/unictype/categ_Pe.h: Likewise.
13446         * lib/unictype/categ_Pf.h: Likewise.
13447         * lib/unictype/categ_Pi.h: Likewise.
13448         * lib/unictype/categ_Ps.h: Likewise.
13449         * lib/unictype/categ_Sk.h: Likewise.
13450         * lib/unictype/categ_Sm.h: Likewise.
13451         * lib/unictype/categ_Z.h: Likewise.
13452         * lib/unictype/categ_Zl.h: Likewise.
13453         * lib/unictype/categ_Zp.h: Likewise.
13454         * lib/unictype/categ_Zs.h: Likewise.
13455         * lib/unictype/ctype_blank.h: Likewise.
13456         * lib/unictype/ctype_cntrl.h: Likewise.
13457         * lib/unictype/ctype_digit.h: Likewise.
13458         * lib/unictype/ctype_space.h: Likewise.
13459         * lib/unictype/ctype_xdigit.h: Likewise.
13460         * lib/unictype/mirror.h: Likewise.
13461         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13462         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13463         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13464         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13465         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13466         * lib/unictype/pr_bidi_control.h: Likewise.
13467         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13468         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13469         * lib/unictype/pr_bidi_pdf.h: Likewise.
13470         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13471         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13472         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13473         * lib/unictype/pr_format_control.h: Likewise.
13474         * lib/unictype/pr_hex_digit.h: Likewise.
13475         * lib/unictype/pr_hyphen.h: Likewise.
13476         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13477         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13478         * lib/unictype/pr_iso_control.h: Likewise.
13479         * lib/unictype/pr_join_control.h: Likewise.
13480         * lib/unictype/pr_left_of_pair.h: Likewise.
13481         * lib/unictype/pr_line_separator.h: Likewise.
13482         * lib/unictype/pr_math.h: Likewise.
13483         * lib/unictype/pr_non_break.h: Likewise.
13484         * lib/unictype/pr_not_a_character.h: Likewise.
13485         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13486         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13487         * lib/unictype/pr_other_id_continue.h: Likewise.
13488         * lib/unictype/pr_other_id_start.h: Likewise.
13489         * lib/unictype/pr_other_lowercase.h: Likewise.
13490         * lib/unictype/pr_other_math.h: Likewise.
13491         * lib/unictype/pr_other_uppercase.h: Likewise.
13492         * lib/unictype/pr_paired_punctuation.h: Likewise.
13493         * lib/unictype/pr_paragraph_separator.h: Likewise.
13494         * lib/unictype/pr_pattern_syntax.h: Likewise.
13495         * lib/unictype/pr_pattern_white_space.h: Likewise.
13496         * lib/unictype/pr_private_use.h: Likewise.
13497         * lib/unictype/pr_quotation_mark.h: Likewise.
13498         * lib/unictype/pr_radical.h: Likewise.
13499         * lib/unictype/pr_soft_dotted.h: Likewise.
13500         * lib/unictype/pr_space.h: Likewise.
13501         * lib/unictype/pr_titlecase.h: Likewise.
13502         * lib/unictype/pr_variation_selector.h: Likewise.
13503         * lib/unictype/pr_white_space.h: Likewise.
13504         * lib/unictype/sy_c_ident.h: Likewise.
13505         * lib/unictype/sy_c_whitespace.h: Likewise.
13506         * lib/unictype/sy_java_whitespace.h: Likewise.
13507         * modules/uni*/*: Bump version number of expected libunistring version.
13508         Reported by Simon Josefsson.
13509
13510 2011-01-09  Karl Heuer  <kwzh@gnu.org>
13511
13512         useless-if-before-free: fix typo in --help and make the internal,
13513         automatic version date update process work once again.
13514         --help output contained a NUL character instead of the
13515         backslash-zero that was intended.  Also, the "must lie within
13516         the first 8 lines" line is on line 9, and hence not getting
13517         automatically updated.
13518         * build-aux/useless-if-before-free: Fix the former by adding a
13519         backslash, and the latter by condensing the three lines of what-it-does
13520         to a single line, leaving one line of slack for the future.
13521
13522 2011-01-09  Bruno Haible  <bruno@clisp.org>
13523
13524         uniwidth/width: Fix width of U+1D173..U+1D17A.
13525         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
13526         symbolic_width, output_width_property_test): New functions.
13527         (main): Invoke output_nonspacing_property, output_width_property_test.
13528         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
13529         U+1D173..U+1D17A.
13530         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
13531         1.
13532         * modules/uniwidth/*: Bump version number of expected libunistring
13533         version.
13534         * modules/unilbrk/*: Likewise.
13535
13536 2011-01-08  Bruno Haible  <bruno@clisp.org>
13537
13538         uninorm tests: Preserve copyright of Unicode data file.
13539         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
13540         Mention modifications.
13541
13542 2011-01-08  Bruno Haible  <bruno@clisp.org>
13543
13544         gen-uni-tables: Prepare for Unicode 5.2.0.
13545         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
13546         (debug_output_lbp, output_lbp): Update.
13547
13548 2011-01-08  Bruno Haible  <bruno@clisp.org>
13549
13550         unilbrk: Clarify gen-uni-tables.c code.
13551         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
13552         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
13553         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
13554
13555 2011-01-07  Bruno Haible  <bruno@clisp.org>
13556
13557         strtod: Restore errno when successfully parsing Infinity or NaN.
13558         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13559         restore the original errno.
13560
13561 2011-01-07  Bruno Haible  <bruno@clisp.org>
13562
13563         remove test: Avoid failure on HP-UX 11.
13564         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13565
13566 2011-01-07  Bruno Haible  <bruno@clisp.org>
13567
13568         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13569         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13570         error code.
13571
13572 2011-01-07  Pádraig Brady <P@draigBrady.com>
13573
13574         ignore-value: fixup comments, and add Eric Blake
13575         as an author since he rewrote the macros.
13576         * lib/ignore-value.h (ignore_value):  State that
13577         we now support aggregates.  Also specify exactly
13578         when the GCC warn_unused_result feature was added.
13579
13580 2011-01-06  Eric Blake  <eblake@redhat.com>
13581
13582         ignore-value: support aggregate types
13583         * lib/ignore-value.h (ignore_value): Provide separate gcc
13584         definition.
13585         * modules/ignore-value-tests: New test module.
13586         * tests/test-ignore-value.c: New test.
13587
13588         maint.mk: improve sc_prohibit_strcmp regex
13589         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13590         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13591         definition of STRNEQ.
13592
13593         signal: work around Haiku issue with SIGBUS
13594         * lib/siglist.h: Add comment.
13595         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13596         strsignal's favoring of SIGSEGV.
13597         * tests/test-signal.c (main): Avoid test failure.
13598         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13599         Reported by Scott McCreary.
13600
13601         maint.mk: add pre-release check to ensure submodule commits are public
13602         * top/maint.mk (public-submodule-commit): New rule.
13603         (submodule-checks): New variable.
13604         (alpha beta stable): Depend on the variable.
13605
13606 2011-01-05  Pádraig Brady <P@draigBrady.com>
13607         and Jim Meyering  <meyering@redhat.com>
13608
13609         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13610         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13611         (ATTRIBUTE_DEPRECATED): Define.
13612         (_ignore_case): New function.
13613         (ignore_value): New macro, to replace the old function.
13614         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13615         * modules/ignore-value (Depends-on): Add stdint.
13616
13617 2011-01-04  Eric Blake  <eblake@redhat.com>
13618
13619         doc: regenerate INSTALL
13620         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13621         @firstparagraphindent support, now that autoconf dropped it.
13622         (INSTALL_PRELUDE): Reinstate old macro.
13623         * doc/install.texi: Resync from autoconf.
13624         * doc/INSTALL: Reflect recent autoconf update.
13625         * doc/INSTALL.ISO: Likewise.
13626         * doc/INSTALL.UTF-8: Likewise.
13627         Reported by Karl Berry.
13628
13629 2011-01-04  Bruce Korb  <address@hidden>
13630
13631         git-version-gen: avoid a sub-shell
13632         * build-aux/git-version-gen: Redirect stderr in `...` via
13633         "exec 2>...", rather than via an added sub-shell.
13634
13635 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13636
13637         git-version-gen: use (...) rather than sh -c '...'
13638         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13639         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13640
13641 2011-01-03  Jim Meyering  <meyering@redhat.com>
13642
13643         git-version-gen: convert leading TABs to spaces
13644         * build-aux/git-version-gen: Expand leading TABs.
13645
13646         git-version-gen: handle failed "git rev-list"
13647         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13648         from git and proceeding as if it had succeeded but printed no SHA1
13649         checksums, suppress the diagnostic and handle the failure.
13650         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13651
13652         git-version-gen: include command name in one more diagnostic
13653         * build-aux/git-version-gen: When the required .tarball-version file
13654         was missing or unreadable, you might see the diagnostic from "cat",
13655         but no trace of the name of the invoking script.  Now, you still see
13656         the diagnostic from cat, but also get one from "git-version-gen: ".
13657         Inspired by a patch from Bruce Korb.
13658
13659         update-copyright: adjust test to match changed code
13660         * tests/test-update-copyright.sh: Change test's expected output
13661         to match new actual output.
13662
13663 2011-01-02  Bruno Haible  <bruno@clisp.org>
13664
13665         getlogin_r: Avoid test failure on HP-UX 11.
13666         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13667         ERANGE when the second argument is zero.
13668         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13669         portability problem.
13670
13671 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13672
13673         * build-aux/update-copyright: doc Simon's changes
13674
13675 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13676
13677         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13678         environment variable.
13679
13680 2011-01-02  Bruno Haible  <bruno@clisp.org>
13681
13682         unigbrk: Avoid gcc warnings.
13683         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13684         unused variable.
13685         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13686         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13687         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13688         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13689         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13690         Change type of first argument to 'const char *'.
13691         (main): Remove unused variable.
13692         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13693         type of first argument to 'const char *'.
13694         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13695         Likewise.
13696         (main): Change type of variable 's'.
13697         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13698         to 'int'.
13699
13700 2011-01-02  Bruno Haible  <bruno@clisp.org>
13701
13702         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13703         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13704         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13705         bug.
13706         * lib/pwrite.c: Undo 2010-12-31 patch.
13707         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13708
13709 2011-01-02  Bruno Haible  <bruno@clisp.org>
13710
13711         pread: Fix test whether it works.
13712         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13713
13714 2011-01-02  Bruno Haible  <bruno@clisp.org>
13715
13716         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13717         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13718         ends in "6". Don't require a specific month name. Try also the locale
13719         names found on HP-UX 11 and Solaris 7.
13720
13721 2011-01-02  Bruno Haible  <bruno@clisp.org>
13722
13723         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13724         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13725         C linkage.
13726         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13727
13728 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13729
13730         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13731         for consistency, since the "cluster" term is not used elsewhere.
13732         * lib/unigbrk.in.h: Update name.
13733         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13734         * lib/unigbrk/u16-grapheme-next.c: Update name.
13735         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13736         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13737         * lib/unigbrk/u32-grapheme-next.c: Update name.
13738         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13739         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13740         * lib/unigbrk/u8-grapheme-next.c: Update name.
13741         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13742         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13743         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13744         Suggested by Bruno Haible.
13745
13746 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13747
13748         Remove module 'u8-grapheme-len' as too redundant with
13749         'u8-grapheme-next'.
13750         * modules/unigbrk/u8-grapheme-len: Delete file.
13751         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13752         * lib/unigbrk.in.h: Remove prototype for deleted function.
13753         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13754         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13755
13756         Remove module 'u16-grapheme-len' as too redundant with
13757         'u16-grapheme-next'.
13758         * modules/unigbrk/u16-grapheme-len: Delete file.
13759         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13760         * lib/unigbrk.in.h: Remove prototype for deleted function.
13761         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13762         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13763
13764         Remove module 'u32-grapheme-len' as too redundant with
13765         'u32-grapheme-next'.
13766         * modules/unigbrk/u32-grapheme-len: Delete file.
13767         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13768         * lib/unigbrk.in.h: Remove prototype for deleted function.
13769         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13770         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13771
13772         Suggested by Bruno Haible.
13773
13774 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13775
13776         * unigbrk.in.h: Fix typo: "ben" => "been".
13777         Reported by Bruno Haible.
13778
13779 2011-01-01  Jim Meyering  <meyering@redhat.com>
13780
13781         maint: update almost all copyright ranges to include 2011
13782         Run the new "make update-copyright" rule.
13783
13784 2011-01-01  Jim Meyering  <meyering@redhat.com>
13785
13786         maint: update-copyright: exempt doc/INSTALL*
13787         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13788         since they are generated.  Suggested by Bruno Haible.
13789
13790 2011-01-01  Jim Meyering  <meyering@redhat.com>
13791
13792         maint: refine the update-copyright rule
13793         * Makefile (update-copyright): Also exclude any file that includes
13794         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13795         code that merely generates the comment.
13796
13797 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13798
13799         New module 'u8-grapheme-len'.
13800         * modules/unigbrk/u8-grapheme-len: New file.
13801         * modules/unigbrk/u8-grapheme-len-tests: New file.
13802         * lib/unigbrk.in.h: Add prototype for new function.
13803         * lib/unigbrk/u8-grapheme-len.c: New file.
13804         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13805
13806         New module 'u16-grapheme-len'.
13807         * modules/unigbrk/u16-grapheme-len: New file.
13808         * modules/unigbrk/u16-grapheme-len-tests: New file.
13809         * lib/unigbrk.in.h: Add prototype for new function.
13810         * lib/unigbrk/u16-grapheme-len.c: New file.
13811         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13812
13813         New module 'u32-grapheme-len'.
13814         * modules/unigbrk/u32-grapheme-len: New file.
13815         * modules/unigbrk/u32-grapheme-len-tests: New file.
13816         * lib/unigbrk.in.h: Add prototype for new function.
13817         * lib/unigbrk/u32-grapheme-len.c: New file.
13818         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13819
13820         New module 'u8-grapheme-next'.
13821         * modules/unigbrk/u8-grapheme-next: New file.
13822         * modules/unigbrk/u8-grapheme-next-tests: New file.
13823         * lib/unigbrk.in.h: Add prototype for new function.
13824         * lib/unigbrk/u8-grapheme-next.c: New file.
13825         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13826
13827         New module 'u16-grapheme-next'.
13828         * modules/unigbrk/u16-grapheme-next: New file.
13829         * modules/unigbrk/u16-grapheme-next-tests: New file.
13830         * lib/unigbrk.in.h: Add prototype for new function.
13831         * lib/unigbrk/u16-grapheme-next.c: New file.
13832         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13833
13834         New module 'u32-grapheme-next'.
13835         * modules/unigbrk/u32-grapheme-next: New file.
13836         * modules/unigbrk/u32-grapheme-next-tests: New file.
13837         * lib/unigbrk.in.h: Add prototype for new function.
13838         * lib/unigbrk/u32-grapheme-next.c: New file.
13839         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13840
13841         New module 'u8-grapheme-prev'.
13842         * modules/unigbrk/u8-grapheme-prev: New file.
13843         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13844         * lib/unigbrk.in.h: Add prototype for new function.
13845         * lib/unigbrk/u8-grapheme-prev.c: New file.
13846         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13847
13848         New module 'u16-grapheme-prev'.
13849         * modules/unigbrk/u16-grapheme-prev: New file.
13850         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13851         * lib/unigbrk.in.h: Add prototype for new function.
13852         * lib/unigbrk/u16-grapheme-prev.c: New file.
13853         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13854
13855         New module 'u32-grapheme-prev'.
13856         * modules/unigbrk/u32-grapheme-prev: New file.
13857         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13858         * lib/unigbrk.in.h: Add prototype for new function.
13859         * lib/unigbrk/u32-grapheme-prev.c: New file.
13860         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13861
13862         New module 'u8-grapheme-breaks'.
13863         * modules/unigbrk/u8-grapheme-breaks: New file.
13864         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13865         * lib/unigbrk.in.h: Add prototype for new function.
13866         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13867         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13868
13869         New module 'u16-grapheme-breaks'.
13870         * modules/unigbrk/u16-grapheme-breaks: New file.
13871         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13872         * lib/unigbrk.in.h: Add prototype for new function.
13873         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13874         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13875
13876         New module 'u32-grapheme-breaks'.
13877         * modules/unigbrk/u32-grapheme-breaks: New file.
13878         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13879         * lib/unigbrk.in.h: Add prototype for new function.
13880         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13881         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13882
13883         New module 'ulc-grapheme-breaks'.
13884         * modules/unigbrk/ulc-grapheme-breaks: New file.
13885         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13886         * m4/locale-ar.m4: New file.
13887         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13888         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13889         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13890
13891 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13892
13893         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13894         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13895         modified how this file was generated before I initially submitted
13896         the module, but failed to regenerate it.  This meant that several
13897         of the level2 entries were wrong.
13898         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13899         Remove the division-by-2 that is folded into the table now that
13900         gbrkprop.h has been regenerated properly.  Now -1 entries are
13901         handled correctly.
13902
13903         New module 'unigbrk/uc-gbrk-prop-tests'.
13904         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13905         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13906         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13907         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13908
13909 2011-01-01  Bruno Haible  <bruno@clisp.org>
13910
13911         Avoid use of hexadecimal escapes.
13912         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13913         instead of hexadecimal escapes.
13914
13915 2011-01-01  Jim Meyering  <meyering@redhat.com>
13916
13917         maint: new rule to update copyright year ranges
13918         * Makefile (update-copyright): New rule.
13919
13920         maint: indent with TABs in Makefile
13921         * Makefile: Expand leading sequences of spaces to TABs
13922
13923         version-etc: update the copyright year it reports
13924         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13925
13926 2010-12-31  Bruno Haible  <bruno@clisp.org>
13927
13928         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13929         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13930         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13931         zero.
13932
13933 2010-12-31  Bruno Haible  <bruno@clisp.org>
13934
13935         pwrite: Work around HP-UX 11.11 bug.
13936         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13937         works and set REPLACE_PWRITE if not.
13938         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13939         function.
13940         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13941
13942 2010-12-31  Bruno Haible  <bruno@clisp.org>
13943
13944         pread: Work around HP-UX 11 bugs.
13945         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13946         and set REPLACE_PREAD if not.
13947         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13948
13949 2010-12-31  Eric Blake  <eblake@redhat.com>
13950
13951         nl_langinfo: fix YESEXPR on Irix 6.5
13952         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13953         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13954         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13955         it.
13956
13957 2010-12-31  Bruno Haible  <bruno@clisp.org>
13958
13959         iconv: Document HP-UX 11 bug.
13960         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13961
13962 2010-12-31  Bruno Haible  <bruno@clisp.org>
13963
13964         ldexpl: Fix link error on HP-UX 11.
13965         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13966         LDEXPL_LIBM, using $ISNANL_LIBM.
13967
13968 2010-12-31  Eric Blake  <eblake@redhat.com>
13969
13970         ftello: avoid compilation failure with SunStudio c89
13971         * lib/ftello.c (ftello): Use lseek, not llseek.
13972
13973         tests: avoid failing coreutils tests on cygwin
13974         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13975         (create_exe_shims_): Return 0 when skipping.
13976
13977 2010-12-31  Bruno Haible  <bruno@clisp.org>
13978
13979         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13980         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13981
13982 2010-12-31  Bruno Haible  <bruno@clisp.org>
13983
13984         waitpid: Fix link error in C++ mode.
13985         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13986
13987 2010-12-31  Bruno Haible  <bruno@clisp.org>
13988
13989         isnan: Use GCC built-ins when possible.
13990         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13991         __builtin_isnan.
13992         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13993         (isnan): Define using GCC built-ins for GCC >= 4.0.
13994
13995 2010-12-31  Bruno Haible  <bruno@clisp.org>
13996
13997         isnand: Fix mistake.
13998         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13999         __builtin_isnand.
14000
14001 2010-12-31  Bruno Haible  <bruno@clisp.org>
14002
14003         open: Avoid C++ error on HP-UX 11.
14004         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14005
14006 2010-12-31  Bruno Haible  <bruno@clisp.org>
14007
14008         time_r: Add missing declarations on HP-UX 11.
14009         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14010         instead of HAVE_LOCALTIME_R.
14011         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14012         HAVE_LOCALTIME_R always.
14013         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14014         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14015         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14016         HAVE_LOCALTIME_R.
14017         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14018         * doc/posix-functions/localtime_r.texi: Likewise.
14019
14020 2010-12-29  Eric Blake  <eblake@redhat.com>
14021
14022         mountlist: tweak previous commit
14023         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
14024         Reported by Paul Eggert.
14025
14026         mountlist: fix local drive detection on cygwin
14027         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
14028         that works for cygwin.
14029
14030 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14031
14032         ftoastr, snprintf: ftoastr + snprintf module
14033         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
14034         since the snprintf module now should be good enough here.
14035         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
14036         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
14037         and gl_MODULE_INDICATOR([snprintf]), but the former enables
14038         GNULIB_SNPRINTF only for the test directory, and the latter
14039         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
14040         seems to suffice by itself.
14041
14042 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14043
14044         alloca: one step towards thread-safety
14045         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
14046         need for a static variable.  All callers changed.  This does not
14047         make the alloca replacement thread-safe, but it's one step.
14048
14049         tests: minor indenting change
14050         * tests/init.sh: Sync from coreutils housekeeping patch
14051         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
14052         to keep lines within 80 columns.
14053
14054 2010-12-28  Jim Meyering  <meyering@redhat.com>
14055
14056         regex: don't infloop on persistent failing calloc
14057         * lib/regexec.c (build_trtable): Return failure indication upon
14058         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14059         In glibc, this was fixed for version 2.13:
14060         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14061
14062 2010-12-28  Bruno Haible  <bruno@clisp.org>
14063             Paul Eggert <eggert@cs.ucla.edu>
14064
14065         linkat: Make implementation robust against system behaviour variations.
14066         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14067         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14068         way, and to -2 if it needs a generic runtime test.
14069         * lib/linkat.c (solaris_optimized_link_immediate,
14070         solaris_optimized_link_follow): New functions.
14071         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14072         (check_same_link): Use it.
14073
14074 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14075
14076         New module 'unigbrk/base'.
14077         * modules/unigbrk/base: New file.
14078         * lib/unigbrk.in.h: New file.
14079
14080         New module 'unigbrk/uc-gbrk-prop'.
14081         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14082         * modules/unigbrk/uc-gbrk-prop: New file.
14083         * lib/unigbrk/gbrkprop.h: New file.
14084         * lib/unigbrk/uc-gbrk-prop.c: New file.
14085
14086         New module 'unigbrk/uc-is-grapheme-break'.
14087         * modules/unigbrk/uc-is-grapheme-break: New file.
14088         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14089         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14090         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14091         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14092         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14093
14094         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14095
14096 2010-12-27  Bruno Haible  <bruno@clisp.org>
14097
14098         linkat test: Avoid failure on Solaris 11 2010-11.
14099         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14100
14101 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14102
14103         utimens: work around glibc rounding bug on more platforms
14104         * lib/utimens.c (fdutimens): Work around rounding bug even if
14105         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14106         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14107
14108 2010-12-27  Bruno Haible  <bruno@clisp.org>
14109
14110         select tests: Improve comments.
14111         * tests/test-select.c (do_select): Add comments.
14112
14113 2010-12-27  Bruno Haible  <bruno@clisp.org>
14114
14115         select tests: Safer way of handling timeout.
14116         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14117         at every invocation.
14118
14119 2010-12-27  Bruno Haible  <bruno@clisp.org>
14120
14121         select tests: Use 'bool' where appropriate.
14122         * tests/test-select.c (connect_to_socket): Change argument type to
14123         'bool'.
14124
14125 2010-12-27  Bruno Haible  <bruno@clisp.org>
14126
14127         select tests: Use existing modules.
14128         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
14129         (configure.ac): Don't test for unistd.h.
14130         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
14131         declared in <unistd.h>.
14132
14133 2010-12-27  Bruno Haible  <bruno@clisp.org>
14134
14135         mbrtowc: Work around a Solaris 7 bug.
14136         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
14137         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
14138         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
14139         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
14140         MBRTOWC_NULL_ARG1_BUG.
14141         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
14142         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
14143         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
14144         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
14145
14146 2010-12-27  Jim Meyering  <meyering@redhat.com>
14147
14148         read-file.c: tweak syntax
14149         * lib/read-file.c (fread_file): Remove space after "*" in function
14150         definitions.
14151
14152 2010-12-27  Bruno Haible  <bruno@clisp.org>
14153
14154         times test: Avoid gcc warnings on OSF/1.
14155         * tests/test-times.c (main): Cast printf arguments from clock_t to
14156         'long int'.
14157
14158 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14159
14160         utimens: work around glibc rounding bug on older Linux kernels
14161         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
14162         on Linux with a glibc whose utimes might not work, then work
14163         around a longstanding glibc bug involving rounding rather than
14164         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
14165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14166
14167 2010-12-26  Bruno Haible  <bruno@clisp.org>
14168
14169         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
14170         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
14171         _GL_CXXALIAS_SYS.
14172         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14173
14174 2010-12-26  Bruno Haible  <bruno@clisp.org>
14175
14176         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
14177         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
14178         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14179         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
14180         looking for the declaration.
14181         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
14182         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
14183         problem.
14184         * doc/posix-functions/inet_pton.texi: Likewise.
14185
14186 2010-12-26  Bruno Haible  <bruno@clisp.org>
14187
14188         arpa_inet: Use the common idioms with C++ support.
14189         * lib/arpa_inet.in.h: Include c++defs.h.
14190         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
14191         support.
14192         * modules/arpa_inet (Depends-on): Add c++defs.
14193         (Makefile.am): Substitute the contents of c++defs.h.
14194         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
14195         * modules/arpa_inet-c++-tests: New file.
14196         * tests/test-arpa_inet-c++.cc: New file.
14197
14198 2010-12-25  Bruno Haible  <bruno@clisp.org>
14199
14200         Fix more C++ link errors on Solaris 8.
14201         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
14202         $(LIB_EACCESS).
14203         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
14204         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
14205         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
14206         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
14207         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
14208
14209 2010-12-25  Bruno Haible  <bruno@clisp.org>
14210
14211         printf-posix: Fix link error when a non-GCC compiler is used.
14212         * lib/stdio.in.h (printf): When not using GCC, override printf
14213         correctly.
14214         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14215
14216 2010-12-25  Bruno Haible  <bruno@clisp.org>
14217
14218         strerror_r-posix: Update doc.
14219         * doc/posix-functions/strerror_r.texi: Update doc about the return
14220         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
14221
14222 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
14223
14224         utimens: simplify the logic of the previous change
14225         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
14226         This should not affect whether the test succeeds or fails.
14227
14228         utimens: configure better on hosts with NFS clock skew
14229         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
14230         uses the clock of the local host.  It might use the clock of the
14231         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
14232         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
14233
14234 2010-12-25  Bruno Haible  <bruno@clisp.org>
14235
14236         ptsname test: Avoid failure on Solaris.
14237         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
14238         open a pseudo-terminal; don't use BSD-style ptys.
14239         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
14240
14241 2010-12-25  Bruno Haible  <bruno@clisp.org>
14242
14243         ptsname: Avoid ERANGE failure on some systems.
14244         * lib/ptsname.c (buffer): Increase size.
14245
14246 2010-12-25  Bruno Haible  <bruno@clisp.org>
14247
14248         rename, renameat: Avoid test failures at NFS mounted locations.
14249         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
14250         so that subsequent mkdir calls succeed.
14251
14252 2010-12-25  Bruno Haible  <bruno@clisp.org>
14253
14254         iswblank: Fix C++ link error on Solaris 8.
14255         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
14256         _GL_FUNCDECL_SYS.
14257
14258 2010-12-25  Bruno Haible  <bruno@clisp.org>
14259
14260         unistd: Fix C++ link error on Solaris 8.
14261         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
14262
14263 2010-12-25  Bruno Haible  <bruno@clisp.org>
14264
14265         readlink doc: Mention an old glibc bug.
14266         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
14267
14268 2010-12-25  Bruno Haible  <bruno@clisp.org>
14269
14270         fcntl-h: Fix for use of C++ on glibc systems.
14271         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14272         also on glibc systems in C++ mode.
14273         Reported by Gary V. Vaughan <gary@gnu.org>.
14274
14275 2010-12-25  Bruno Haible  <bruno@clisp.org>
14276
14277         roundl-ieee: Make it work on OSF/1 5.1 with cc.
14278         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
14279
14280 2010-12-25  Bruno Haible  <bruno@clisp.org>
14281
14282         truncl-ieee: Make it work on OSF/1 5.1 with cc.
14283         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
14284         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
14285         test whether truncl works according to ISO C 99 with IEC 60559.
14286         * m4/truncl-ieee.m4: New file.
14287         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
14288         m4/signbit.m4.
14289         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
14290
14291 2010-12-25  Bruno Haible  <bruno@clisp.org>
14292
14293         ceill-ieee: Make it work on OSF/1 5.1 with cc.
14294         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
14295         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
14296         test whether ceill works according to ISO C 99 with IEC 60559.
14297         * m4/ceill-ieee.m4: New file.
14298         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
14299         m4/signbit.m4.
14300         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
14301
14302 2010-12-25  Bruno Haible  <bruno@clisp.org>
14303
14304         Ensure all prerequisites of <wchar.h> are included.
14305         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
14306         before <wchar.h>.
14307         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14308         gl_MBRLEN_NUL_RETVAL): Likewise.
14309         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14310         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
14311         AC_FUNC_MBRTOWC): Likewise.
14312         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14313         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14314         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14315         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14316         Likewise.
14317         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14318         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
14319         (gl_WCHAR_H): Improve comments.
14320         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
14321
14322 2010-12-25  Bruno Haible  <bruno@clisp.org>
14323
14324         strtok_r: Fix C syntax error in autoconf macro.
14325         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
14326         characters in test program.
14327
14328 2010-12-24  Bruno Haible  <bruno@clisp.org>
14329
14330         ceil, trunc, round: Fix gcc warnings.
14331         * lib/ceil.c (MIN): Undefine before redefining.
14332         * lib/trunc.c (MIN): Likewise.
14333         * lib/round.c (MIN): Likewise.
14334         Include <math.h> first.
14335
14336 2010-12-24  Bruno Haible  <bruno@clisp.org>
14337
14338         select tests: Avoid failures on OSF/1 5.1.
14339         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
14340         failure of closing the last socket; it may fail with ECONNRESET.
14341
14342 2010-12-24  Eric Blake  <eblake@redhat.com>
14343
14344         stdint: avoid HP-UX 10.20 preprocessor bug
14345         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
14346         than #if.
14347         * tests/test-floor2.c (main): Likewise.
14348         Reported by Peter O'Gorman.
14349
14350         pipe: make obsoletion transition easier
14351         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
14352         * modules/pipe (Files): Include revived file.
14353         (Include): Drop reference, to mirror getdate's behavior.
14354
14355 2010-12-24  Bruno Haible  <bruno@clisp.org>
14356
14357         sys_socket: Hide mismatch of declarations on NonStop Kernel.
14358         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
14359         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
14360         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14361
14362 2010-12-24  Bruno Haible  <bruno@clisp.org>
14363
14364         gethostname: Ensure declaration on NonStop Kernel.
14365         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
14366         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14367
14368 2010-12-24  Bruno Haible  <bruno@clisp.org>
14369
14370         sys_select: Ensure all necessary types on NonStop Kernel.
14371         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
14372         include <sys/time.h>.
14373         * doc/posix-headers/sys_select.texi: Mention that it's missing on
14374         NonStop Kernel.
14375         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14376
14377 2010-12-24  Bruno Haible  <bruno@clisp.org>
14378
14379         sys_select: Remove unneeded include.
14380         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
14381         have <sys/select.h>.
14382
14383 2010-12-24  Bruno Haible  <bruno@clisp.org>
14384
14385         gethostname: Provide a fallback for HOST_NAME_MAX.
14386         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
14387         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
14388         instead.
14389         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14390
14391 2010-12-24  Bruno Haible  <bruno@clisp.org>
14392
14393         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
14394         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
14395         (SA_RESTART): Likewise.
14396         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14397
14398 2010-12-24  Bruno Haible  <bruno@clisp.org>
14399
14400         signal: Define NSIG.
14401         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
14402         * tests/test-signal.c (nsig): New variable.
14403         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14404
14405 2010-12-24  Bruno Haible  <bruno@clisp.org>
14406
14407         rename, renameat: Avoid test failures on OSF/1 5.1.
14408         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
14409         alternative error codes.
14410         * tests/test-renameat.c (main): Likewise.
14411
14412 2010-12-24  Bruno Haible  <bruno@clisp.org>
14413
14414         *printf: Detect large precisions bug on Solaris 10/SPARC.
14415         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
14416         by Paul Eggert.
14417         * tests/test-snprintf-posix.h (test_function): Add this test code here
14418         too.
14419         * tests/test-sprintf-posix.h (test_function): Likewise.
14420         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14421         * tests/test-vasprintf-posix.c (test_function): Likewise.
14422         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
14423         around by gnulib.
14424         * doc/posix-functions/printf.texi: Likewise.
14425         * doc/posix-functions/snprintf.texi: Likewise.
14426         * doc/posix-functions/sprintf.texi: Likewise.
14427         * doc/posix-functions/vfprintf.texi: Likewise.
14428         * doc/posix-functions/vprintf.texi: Likewise.
14429         * doc/posix-functions/vsnprintf.texi: Likewise.
14430         * doc/posix-functions/vsprintf.texi: Likewise.
14431         * doc/posix-functions/dprintf.texi: Undo last commit.
14432         * doc/posix-functions/vdprintf.texi: Likewise.
14433
14434 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14435
14436         tests: port test-fdutimensat.c to Solaris 8
14437         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
14438         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
14439         On Solaris 8, it fails with errno == ENOSYS, because there is no
14440         futimens (so it can't use the fd), and there is no lutimens (so it
14441         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
14442
14443         vsnprintf: make more consistent with snprintf; doc fixes
14444
14445         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
14446         the byte count return problem was promoted from the snprintf-posix
14447         to the snprintf module.
14448         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14449         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
14450         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
14451         * tests/test-snprintf.c (main): Check the byte count returned.
14452         * tests/test-vsnprintf.c (main): Likewise.
14453
14454 2010-12-23  Eric Blake  <eblake@redhat.com>
14455
14456         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
14457         * modules/sigpipe (License): Relax license.
14458
14459 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14460
14461         doc: document Solaris printf bug with large float precisions
14462         * doc/posix-functions/dprintf.texi (dprintf):
14463         * doc/posix-functions/fprintf.texi (fprintf):
14464         * doc/posix-functions/printf.texi (printf):
14465         * doc/posix-functions/snprintf.texi (snprintf):
14466         * doc/posix-functions/sprintf.texi (sprintf):
14467         * doc/posix-functions/vdprintf.texi (vdprintf):
14468         * doc/posix-functions/vfprintf.texi (vfprintf):
14469         * doc/posix-functions/vprintf.texi (vprintf):
14470         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14471         * doc/posix-functions/vsprintf.texi (vsprintf):
14472         Mention that these functions mishandle large floating point
14473         precisions on Solaris 10.  The same bug is also present in Solaris
14474         8, and I assume earlier.  This causes "cd gnulib-tests; make
14475         check" to fail on Solaris 8 (and I assume, later) when building
14476         the latest coreutils, in test-vasprintf-posix's call to
14477         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
14478         the wide flavors (e.g., wprintf) so this patch just updates the
14479         documentation for the narrow ones.
14480
14481         test-posixtm.c: add two tests
14482         * tests/test-posixtm.c: Add two tests, to highlight the
14483         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
14484         around this bug; this is merely to document it.
14485
14486 2010-12-22  Bruno Haible  <bruno@clisp.org>
14487
14488         getlogin_r: Work around portability problem on OSF/1.
14489         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
14490         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
14491         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
14492         test for a truncated result.
14493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
14494         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
14495         * modules/getlogin_r (Depends-on): Add memchr.
14496         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
14497
14498 2010-12-22  Bruno Haible  <bruno@clisp.org>
14499
14500         ptsname: Avoid test failure on OSF/1 5.1.
14501         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
14502         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
14503         (same_slave): New function.
14504         (main): Use it to compare ptsname's result with the expected file name.
14505
14506 2010-12-22  Bruno Haible  <bruno@clisp.org>
14507
14508         Port extended stdio modules to HP NonStop Kernel.
14509         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
14510         macros.
14511         * lib/fbufmode.c: Update comments.
14512         * lib/fflush.c: Likewise.
14513         * lib/fpurge.c: Likewise.
14514         * lib/freadable.c: Likewise.
14515         * lib/freadahead.c: Likewise.
14516         * lib/freading.c: Likewise.
14517         * lib/freadptr.c: Likewise.
14518         * lib/freadseek.c: Likewise.
14519         * lib/fseeko.c: Likewise.
14520         * lib/fseterr.c: Likewise.
14521         * lib/fwritable.c: Likewise.
14522         * lib/fwriting.c: Likewise.
14523         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
14524
14525 2010-12-22  Bruno Haible  <bruno@clisp.org>
14526
14527         ttyname_r: Work around bug on OSF/1 5.1.
14528         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
14529         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
14530         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
14531         present.
14532         * lib/ttyname_r.c (ttyname_r): Update comments.
14533
14534 2010-12-22  Bruno Haible  <bruno@clisp.org>
14535
14536         round: Implement result sign according to IEEE 754.
14537         * lib/round.c (MIN, MINUS_ZERO): New macros.
14538         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
14539         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
14540         * tests/test-round-ieee.c (main): Likewise.
14541         * tests/test-roundl-ieee.c (main): Likewise.
14542
14543         trunc: Implement result sign according to IEEE 754.
14544         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
14545         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
14546         * tests/test-trunc2.c: Include minus-zero.h.
14547         (MINUS_ZERO): New macro.
14548         (trunc_reference): Keep in sync with lib/trunc.c.
14549         * tests/test-truncf2.c: Include minus-zero.h.
14550         (MINUS_ZERO): New macro.
14551         (truncf_reference): Keep in sync with lib/trunc.c.
14552         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
14553         * tests/test-trunc-ieee.c (main): Likewise.
14554         * tests/test-truncl-ieee.c (main): Likewise.
14555
14556         ceil: Implement result sign according to IEEE 754.
14557         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14558         (FUNC): Return -0.0 for -1 < x < 0.
14559         * tests/test-ceil2.c: Include minus-zero.h.
14560         (MINUS_ZERO): New macro.
14561         (ceil_reference): Keep in sync with lib/ceil.c.
14562         * tests/test-ceilf2.c: Include minus-zero.h.
14563         (MINUS_ZERO): New macro.
14564         (ceilf_reference): Keep in sync with lib/ceil.c.
14565         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14566         * tests/test-ceil-ieee.c (main): Likewise.
14567         * tests/test-ceill-ieee.c (main): Likewise.
14568
14569         floor: Implement result sign according to IEEE 754.
14570         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14571         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14572         * tests/test-floorf2.c (floorf_reference): Likewise.
14573         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14574         * tests/test-floor-ieee.c (main): Likewise.
14575         * tests/test-floorl-ieee.c (main): Likewise.
14576
14577 2010-12-22  Bruno Haible  <bruno@clisp.org>
14578
14579         getaddrinfo: Update doc.
14580         * doc/posix-functions/gai_strerror.texi: Return type is also different
14581         on AIX and HP-UX.
14582
14583 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14584
14585         getaddrinfo, inet_ntop: Update doc for Solaris.
14586         * doc/posix-functions/gai_strerror.texi: Return type is also an
14587         issue on Solaris 9 and earlier.
14588         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14589         on Solaris 10 and earlier.
14590
14591 2010-12-21  Bruno Haible  <bruno@clisp.org>
14592
14593         New module 'roundl-ieee'.
14594         * modules/roundl-ieee: New file.
14595         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14596         test whether roundl works according to ISO C 99 with IEC 60559.
14597         * m4/roundl-ieee.m4: New file.
14598         * modules/roundl-ieee-tests: New file.
14599         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14600         * tests/test-roundl.c (main): Remove signbit tests.
14601         * modules/roundl-tests (Depends-on): Remove signbit.
14602         * doc/posix-functions/roundl.texi: Mention the new module.
14603
14604 2010-12-21  Bruno Haible  <bruno@clisp.org>
14605
14606         New module 'truncl-ieee'.
14607         * modules/truncl-ieee: New file.
14608         * modules/truncl-ieee-tests: New file.
14609         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14610         * tests/test-truncl.c (main): Remove signbit tests.
14611         * modules/truncl-tests (Depends-on): Remove signbit.
14612         * doc/posix-functions/truncl.texi: Mention the new module.
14613
14614 2010-12-21  Bruno Haible  <bruno@clisp.org>
14615
14616         New module 'ceill-ieee'.
14617         * modules/ceill-ieee: New file.
14618         * modules/ceill-ieee-tests: New file.
14619         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14620         * tests/test-ceill.c (main): Remove signbit tests.
14621         * modules/ceill-tests (Depends-on): Remove signbit.
14622         * doc/posix-functions/ceill.texi: Mention the new module.
14623
14624 2010-12-21  Bruno Haible  <bruno@clisp.org>
14625
14626         New module 'floorl-ieee'.
14627         * modules/floorl-ieee: New file.
14628         * modules/floorl-ieee-tests: New file.
14629         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14630         * tests/test-floorl.c (main): Remove signbit tests.
14631         * modules/floorl-tests (Depends-on): Remove signbit.
14632         * doc/posix-functions/floorl.texi: Mention the new module.
14633
14634 2010-12-21  Bruno Haible  <bruno@clisp.org>
14635
14636         New module 'round-ieee'.
14637         * modules/round-ieee: New file.
14638         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14639         whether round works according to ISO C 99 with IEC 60559.
14640         * m4/round-ieee.m4: New file.
14641         * modules/round-ieee-tests: New file.
14642         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14643         * tests/test-round1.c (main): Remove signbit tests.
14644         * modules/round-tests (Depends-on): Remove 'signbit'.
14645         * doc/posix-functions/round.texi: Mention the new module.
14646
14647 2010-12-21  Bruno Haible  <bruno@clisp.org>
14648
14649         New module 'trunc-ieee'.
14650         * modules/trunc-ieee: New file.
14651         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14652         whether trunc works according to ISO C 99 with IEC 60559.
14653         * m4/trunc-ieee.m4: New file.
14654         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14656         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14657         * modules/trunc-ieee-tests: New file.
14658         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14659         * tests/test-trunc1.c (main): Remove signbit tests.
14660         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14661         * doc/posix-functions/trunc.texi: Mention the new module.
14662
14663 2010-12-21  Bruno Haible  <bruno@clisp.org>
14664
14665         New module 'ceil-ieee'.
14666         * modules/ceil-ieee: New file.
14667         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14668         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14669         ISO C 99 with IEC 60559.
14670         * m4/ceil-ieee.m4: New file.
14671         * modules/ceil (Files): Add lib/ceil.c.
14672         (Depends-on): Add 'float'.
14673         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14674         * lib/math.in.h (ceil): New declaration.
14675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14676         REPLACE_CEIL.
14677         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14678         * modules/ceil-ieee-tests: New file.
14679         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14680         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14681         * doc/posix-functions/ceil.texi: Mention the new module.
14682
14683 2010-12-21  Bruno Haible  <bruno@clisp.org>
14684
14685         New module 'floor-ieee'.
14686         * modules/floor-ieee: New file.
14687         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14688         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14689         ISO C 99 with IEC 60559.
14690         * m4/floor-ieee.m4: New file.
14691         * modules/floor (Files): Add lib/floor.c.
14692         (Depends-on): Add 'float'.
14693         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14694         * lib/math.in.h (floor): New declaration.
14695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14696         REPLACE_FLOOR.
14697         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14698         * modules/floor-ieee-tests: New file.
14699         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14700         * tests/test-math-c++.cc: Check the signature of 'floor'.
14701         * doc/posix-functions/floor.texi: Mention the new module.
14702
14703 2010-12-21  Bruno Haible  <bruno@clisp.org>
14704
14705         New module 'roundf-ieee'.
14706         * modules/roundf-ieee: New file.
14707         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14708         test whether roundf works according to ISO C 99 with IEC 60559.
14709         * m4/roundf-ieee.m4: New file.
14710         * modules/roundf-ieee-tests: New file.
14711         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14712         * tests/test-roundf1.c (main): Remove signbit tests.
14713         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14714         * doc/posix-functions/roundf.texi: Mention the new module.
14715
14716 2010-12-21  Bruno Haible  <bruno@clisp.org>
14717
14718         New module 'truncf-ieee'.
14719         * modules/truncf-ieee: New file.
14720         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14721         test whether truncf works according to ISO C 99 with IEC 60559.
14722         * m4/truncf-ieee.m4: New file.
14723         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14725         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14726         * modules/truncf-ieee-tests: New file.
14727         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14728         * tests/test-truncf1.c (main): Remove signbit tests.
14729         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14730         * doc/posix-functions/truncf.texi: Mention the new module.
14731
14732 2010-12-21  Bruno Haible  <bruno@clisp.org>
14733
14734         New module 'ceilf-ieee'.
14735         * modules/ceilf-ieee: New file.
14736         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14737         test whether ceilf works according to ISO C 99 with IEC 60559.
14738         * m4/ceilf-ieee.m4: New file.
14739         * modules/ceilf-ieee-tests: New file.
14740         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14741         * tests/test-ceilf1.c (main): Remove signbit tests.
14742         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14743         * doc/posix-functions/ceilf.texi: Mention the new module.
14744
14745 2010-12-21  Bruno Haible  <bruno@clisp.org>
14746
14747         New module 'floorf-ieee'.
14748         * modules/floorf-ieee: New file.
14749         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14750         test whether floorf works according to ISO C 99 with IEC 60559.
14751         * m4/floorf-ieee.m4: New file.
14752         * modules/floorf-ieee-tests: New file.
14753         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14754         * tests/test-floorf1.c (main): Remove signbit tests.
14755         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14756         * doc/posix-functions/floorf.texi: Mention the new module.
14757
14758 2010-12-21  Bruno Haible  <bruno@clisp.org>
14759
14760         Support for minus zero in autoconf macros.
14761         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14762         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14763         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14764         * tests/minus-zero.h: Update comments.
14765
14766 2010-12-21  Bruno Haible  <bruno@clisp.org>
14767
14768         Tests for module 'ceil'.
14769         * modules/ceil-tests: New file.
14770         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14771         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14772
14773 2010-12-21  Bruno Haible  <bruno@clisp.org>
14774
14775         Tests for module 'floor'.
14776         * modules/floor-tests: New file.
14777         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14778         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14779
14780 2010-12-21  Bruno Haible  <bruno@clisp.org>
14781
14782         math: Fix indentation.
14783         * lib/math.in.h (floorf): Fix indentation.
14784
14785 2010-12-21  Bruno Haible  <bruno@clisp.org>
14786
14787         Fix cross-compilation guesses on Solaris.
14788         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14789         not match "solaris2.10".
14790         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14791         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14792         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14793
14794 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14795
14796         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14797         This fixes a problem observed with the latest coreutils snapshot
14798         that caused a test to fail on Solaris 8.  src/csplit.c's call
14799         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14800         earlier, instead of returning the number of bytes that would have
14801         been generated; this causes csplit to incorrectly report memory
14802         exhaustion.
14803         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14804         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14805         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14806         comments to match.
14807         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14808         Fix typo in matching older versions of Solaris: "solaris2.10"
14809         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14810         only for guessing while cross-compiling.
14811         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14812
14813 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14814
14815         ftoastr: fix comment again
14816         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14818         Also, simplify example a bit by using flags = 0.
14819
14820 2010-12-20  Bruno Haible  <bruno@clisp.org>
14821
14822         round*, trunc*: Update documentation regarding glibc.
14823         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14824         * doc/posix-functions/round.texi: Likewise.
14825         * doc/posix-functions/roundl.texi: Likewise.
14826         * doc/posix-functions/truncf.texi: Likewise.
14827         * doc/posix-functions/trunc.texi: Likewise.
14828         * doc/posix-functions/truncl.texi: Likewise.
14829
14830 2010-12-20  Bruno Haible  <bruno@clisp.org>
14831
14832         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14833         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14834         * doc/posix-functions/round.texi: Likewise.
14835         * doc/posix-functions/roundl.texi: Likewise.
14836
14837 2010-12-20  Bruno Haible  <bruno@clisp.org>
14838
14839         ttyname_r: Add missing declaration on HP-UX 11.
14840         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14841         HAVE_TTYNAME_R.
14842         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14843         declared. Set HAVE_TTYNAME_R always.
14844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14845         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14846         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14847         HAVE_TTYNAME_R.
14848         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14849
14850 2010-12-20  Bruno Haible  <bruno@clisp.org>
14851
14852         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14853         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14854         * doc/posix-functions/getlogin_r.texi: Likewise.
14855         * tests/test-getlogin.c: Include <errno.h>.
14856         (main): Avoid test failure on HP-UX 11.11.
14857         * tests/test-getlogin_r.c (main): Likewise.
14858
14859 2010-12-20  Bruno Haible  <bruno@clisp.org>
14860
14861         getlogin_r: Add missing declaration on HP-UX 11.
14862         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14863         declared also when it exists as a function.
14864         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14865
14866 2010-12-20  Bruno Haible  <bruno@clisp.org>
14867
14868         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14869         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14870         through wcrtomb.
14871
14872 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14873
14874         ftoastr: fix comment
14875         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14876         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14877
14878 2010-12-19  Bruno Haible  <bruno@clisp.org>
14879
14880         isnan: Ensure it is a macro.
14881         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14882         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14883         Solaris.
14884
14885 2010-12-19  Bruno Haible  <bruno@clisp.org>
14886
14887         ldexpl test: Fix link error on OSF/1 5.1.
14888         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14889
14890 2010-12-19  Bruno Haible  <bruno@clisp.org>
14891
14892         wctype: Make it work in C++ mode on OSF/1 5.1.
14893         * lib/wctype.in.h (iswblank): Declare but not define here.
14894         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14895         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14896         * modules/wctype (Files): Add lib/iswblank.c.
14897
14898 2010-12-19  Bruno Haible  <bruno@clisp.org>
14899
14900         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14901         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14902         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14903
14904 2010-12-19  Bruno Haible  <bruno@clisp.org>
14905
14906         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14907         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14908         _POSIX_PII_SOCKET.
14909         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14910         * doc/posix-functions/recvfrom.texi: Likewise.
14911         * doc/posix-functions/send.texi: Likewise.
14912         * doc/posix-functions/sendto.texi: Likewise.
14913
14914 2010-12-19  Bruno Haible  <bruno@clisp.org>
14915
14916         tcgetsid: Add missing declaration on OSF/1 5.1.
14917         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14918         HAVE_TCGETSID.
14919         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14920         Don't set HAVE_TCGETSID.
14921         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14922         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14923         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14924         HAVE_TCGETSID.
14925         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14926
14927 2010-12-19  Bruno Haible  <bruno@clisp.org>
14928
14929         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14930         * lib/stdio.in.h: During the include_next statement, let recursive
14931         includes of this file include only the system header file.
14932
14933 2010-12-19  Bruno Haible  <bruno@clisp.org>
14934
14935         iconv_open: Fix regression from 2010-12-04.
14936         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14937         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14938
14939 2010-12-19  Bruno Haible  <bruno@clisp.org>
14940
14941         stdbool test: Avoid a gcc warning.
14942         * tests/test-stdbool.c (main): Fail if e1 is false.
14943         Reported by Jim Meyering.
14944
14945 2010-12-19  Jim Meyering  <meyering@redhat.com>
14946
14947         setenv: restore to working order
14948         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14949         mistakenly removed.
14950         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14951         HAVE_SETENV.
14952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14953         HAVE_SETENV.
14954
14955 2010-12-19  Bruno Haible  <bruno@clisp.org>
14956
14957         Document some different function declarations on OSF/1 5.1.
14958         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14959         * doc/posix-functions/inet_ntop.texi: Likewise.
14960         * doc/posix-functions/gethostname.texi: Likewise.
14961         * lib/unistd.in.h (gethostname): Update comment.
14962
14963 2010-12-19  Bruno Haible  <bruno@clisp.org>
14964
14965         doc: Mention vasprintf-posix module.
14966         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14967         the 'vasprintf-posix' module.
14968         * doc/glibc-functions/vasprintf.texi: Likewise.
14969
14970 2010-12-19  Bruno Haible  <bruno@clisp.org>
14971
14972         unsetenv: Add missing declaration on OSF/1 5.1.
14973         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14974         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14975         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14977         not HAVE_UNSETENV.
14978         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14979         HAVE_UNSETENV.
14980         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14981
14982 2010-12-19  Bruno Haible  <bruno@clisp.org>
14983
14984         setenv: Add missing declaration on OSF/1 5.1.
14985         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14986         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14987         declared. Don't set HAVE_SETENV.
14988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14989         not HAVE_SETENV.
14990         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14991         HAVE_SETENV.
14992         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14993
14994 2010-12-19  Bruno Haible  <bruno@clisp.org>
14995
14996         nl_langinfo tests: Avoid gcc warning.
14997         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14998
14999 2010-12-19  Bruno Haible  <bruno@clisp.org>
15000
15001         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15002         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15003         _GL_CXXALIAS_SYS.
15004
15005 2010-12-19  Bruno Haible  <bruno@clisp.org>
15006
15007         stdbool: Relax test.
15008         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15009         address to 'bool' work in static initializer, for compilers other than
15010         GCC.
15011
15012 2010-12-19  Bruno Haible  <bruno@clisp.org>
15013
15014         ftello: Add missing declaration on OSF/1 5.1.
15015         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15016         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15018         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15019         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15020
15021 2010-12-19  Bruno Haible  <bruno@clisp.org>
15022
15023         fseeko: Add missing declaration on OSF/1 5.1.
15024         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
15025         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
15026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
15027         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
15028         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
15029
15030 2010-12-19  Bruno Haible  <bruno@clisp.org>
15031
15032         fchdir: Add missing declaration on OSF/1 5.1.
15033         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
15034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
15035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
15036         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
15037         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
15038
15039 2010-12-19  Bruno Haible  <bruno@clisp.org>
15040
15041         relocatable-prog-wrapper: Separate from relocatable-prog.
15042         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
15043         uninstall-relocwrapper rule here.
15044         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
15045         Reported by Ian Beckwith <ianb@erislabs.net>.
15046
15047 2010-12-19  Bruno Haible  <bruno@clisp.org>
15048
15049         unistr/u8-mbsnlen: Add missing dependency.
15050         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
15051         Reported by Ian Beckwith <ianb@erislabs.net>.
15052
15053 2010-12-19  Bruno Haible  <bruno@clisp.org>
15054
15055         iconv: Make it possible again to use this module without 'iconv-h'.
15056         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15057         if it is not defined.
15058         Reported by Ian Beckwith <ianb@erislabs.net>.
15059
15060 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15061
15062         acl: port to Solaris 8 when copying from tmpfs to ufs
15063         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15064         error number.  Problem observed on Solaris 8 with latest
15065         coreutils, with "mv A B", where A is on a tmpfs file system and B
15066         is on a ufs file system.  This caused coreutils' mv/part-symlink
15067         test to fail.
15068
15069         tests: set fail=0 at start
15070         * tests/init.sh (setup_): Move fail=0 initialization here ...
15071         (mktempd_): ... from here, so that tests can rely on fail being
15072         set to 0 initially.  This fixes a problem in coreutils; see:
15073         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15074
15075 2010-12-18  Bruno Haible  <bruno@clisp.org>
15076
15077         memmem-simple: Stylistic changes.
15078         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15079         Fix preprocessor directive indentation.
15080
15081 2010-12-15  Pádraig Brady <P@draigBrady.com>
15082
15083         memmem, memmem-simple: reorganize and expand empty needle check
15084         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15085         functional checks to memmem-simple so that one has a fully functional
15086         memmem by using just this module.
15087         Restrict the performance only check to the memmem module.
15088         Also expand the empty needle check to ensure the correct
15089         pointer is returned, not just a non NULL pointer.
15090         * doc/glibc-functions/memmem.texi: Rearrange the portability
15091         documentation to correlate with the rearranged checks.
15092         Clarify exactly how the memmem and memmem-simple modules
15093         relate to each other.
15094
15095 2010-12-15  Pádraig Brady <P@draigBrady.com>
15096             Bruno Haible  <bruno@clisp.org>
15097
15098         Improve cross-compilation guesses for uClibc.
15099         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15100         that uClibc does not have the glibc bug.
15101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15102         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15103
15104 2010-12-14  Eric Blake  <eblake@redhat.com>
15105
15106         configmake: provide fallbacks for oldest supported autotools
15107         * m4/configmake.m4: New file.
15108         * modules/configmake (Files): Ship it.
15109         (configure.ac): Use it to guarantee fallbacks.
15110
15111 2010-12-13  Pádraig Brady <P@draigBrady.com>
15112
15113         read-file: Improve handling of large files
15114         * lib/read-file.c (fread_file): Minimize realloc()s
15115         for regular files, and better manage sizes around SIZE_MAX.
15116
15117 2010-12-13  Eric Blake  <eblake@redhat.com>
15118
15119         cloexec, fcntl: relax license
15120         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15121         consent from all contributors.
15122         * modules/fcntl (License): Likewise.
15123
15124 2010-12-10  Bruno Haible  <bruno@clisp.org>
15125
15126         Tests for module 'pipe-posix'.
15127         * modules/pipe-posix-tests: New file.
15128         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
15129
15130 2010-12-10  Bruno Haible  <bruno@clisp.org>
15131
15132         pipe-posix: Make it work in C++ mode.
15133         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
15134         (pipe): Use common idiom, not a macro definition.
15135         * lib/pipe.c: New file.
15136         * m4/pipe.m4: New file.
15137         * modules/pipe-posix (Description): Enhance.
15138         (Files): Add lib/pipe.c, m4/pipe.m4.
15139         (configure.ac): Invoke gl_FUNC_PIPE.
15140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
15141         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
15142         * tests/test-unistd-c++.cc: Check the signature of pipe.
15143
15144 2010-12-10  Bruno Haible  <bruno@clisp.org>
15145
15146         Rename module 'pipe' to 'spawn-pipe'.
15147         * modules/spawn-pipe: New file, renamed from modules/pipe.
15148         (Files, configure.ac, Makefile.am): Update.
15149         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
15150         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
15151         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
15152         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
15153         "spawn-pipe.h" instead of "pipe.h".
15154         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
15155         to gl_SPAWN_PIPE.
15156         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
15157         (Files, Makefile.am): Update.
15158         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
15159         Update.
15160         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
15161         Include "spawn-pipe.h" instead of "pipe.h".
15162         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
15163         * lib/javacomp.c: Likewise.
15164         * lib/javaversion.c: Likewise.
15165         * lib/pipe-filter-gi.c: Likewise.
15166         * lib/pipe-filter-ii.c: Likewise.
15167         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
15168         * modules/javacomp (Depends-on): Likewise.
15169         * modules/javaversion (Depends-on): Likewise.
15170         * modules/pipe-filter-gi (Depends-on): Likewise.
15171         * modules/pipe-filter-ii (Depends-on): Likewise.
15172         * MODULES.html.sh (Executing programs): Update.
15173         * NEWS: Mention the change.
15174
15175 2010-12-10  Eric Blake  <eblake@redhat.com>
15176
15177         pipe-posix: new module
15178         * modules/pipe-posix: New file.
15179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
15180         (gl_UNISTD_H): Check for declaration.
15181         * modules/unistd (Makefile.am): Substitute it.
15182         * lib/unistd.in.h (pipe): Provide it for mingw.
15183         * doc/posix-functions/pipe.texi (pipe): Update documentation.
15184         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
15185
15186 2010-12-07  Bruno Haible  <bruno@clisp.org>
15187
15188         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
15189         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
15190         u8_strcmp_gnu.
15191         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
15192
15193 2010-12-06  Bruno Haible  <bruno@clisp.org>
15194
15195         Update internal documentation.
15196         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
15197
15198 2010-12-04  Bruno Haible  <bruno@clisp.org>
15199
15200         Put more information about failed tests into the test return codes.
15201         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
15202         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
15203         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15204         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15205         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15206         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15207         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15208         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15209         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
15210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
15212         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15213         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15214         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15215         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
15216         returns a bit mask.
15217         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15218         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
15219         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
15220         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
15221         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15222         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
15223         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15225         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
15226         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
15227         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15228         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
15229         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
15231         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15232         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15233         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
15234         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
15235         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15236         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
15237         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15238         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15239         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15240         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15241         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15242         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15243         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
15244         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
15245         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
15246         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
15247         gl_PRINTF_PRECISION): Likewise.
15248         * m4/regex.m4 (gl_REGEX): Likewise.
15249         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15250         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15251         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
15252         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15255         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15256         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
15257         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15258         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15259         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15260         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15261         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
15262         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
15263         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15264         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15265         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15266         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15267         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15268         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
15269         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
15270         enumerated value.
15271         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
15272
15273 2010-12-04  Bruno Haible  <bruno@clisp.org>
15274
15275         Update for Solaris 11 2010-11.
15276         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
15277         Express, released in November 2010.
15278
15279 2010-12-04  Bruno Haible  <bruno@clisp.org>
15280
15281         nproc: Relax license.
15282         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
15283         and Paul Eggert.
15284         Requested by Ludovic Courtès <ludo@gnu.org>.
15285
15286 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
15287
15288         utimecmp: fine-grained src to nearby coarse-grained dest
15289
15290         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
15291         and the source is on a file system with higher-resolution time
15292         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
15293         not work, and the time stamps are close together, the algorithm to
15294         determine the exact resolution from the read-back mtime was buggy:
15295         it had a "!=" where it should have had an "==".  This bug has been
15296         in the code ever since it was introduced to gnulib.
15297         Problem reported by Dan Jacobson in
15298         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
15299
15300 2010-11-30  Bruno Haible  <bruno@clisp.org>
15301
15302         strerror_r-posix: Fix autoconf test.
15303         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
15304
15305 2010-11-28  Bruno Haible  <bruno@clisp.org>
15306             Paul Eggert  <eggert@cs.ucla.edu>
15307
15308         Tests for module 'getdomainname'.
15309         * modules/getdomainname-tests: New file.
15310         * tests/test-getdomainname.c: New file, based on
15311         tests/test-gethostname.c.
15312
15313 2010-11-28  Bruno Haible  <bruno@clisp.org>
15314             Paul Eggert  <eggert@cs.ucla.edu>
15315
15316         getdomainname: Use the system function when possible.
15317         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
15318         (getdomainname): Replace if needed. Provide the declaration if it is
15319         missing. Don't use _GL_CXXALIAS_SYS_CAST.
15320         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
15321         (getdomainname): When the system has getdomainname, call the system
15322         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
15323         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15324         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
15325         found in libnsl. Look for the declaration also in <netdb.h>. Replace
15326         the function if its second argument is of type 'int' or if it is found
15327         in libnsl.
15328         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
15329         <sys/systeminfo.h> and sysinfo().
15330         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
15331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15332         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
15333         HAVE_GETDOMAINNAME.
15334         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
15335         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
15336         * doc/glibc-functions/getdomainname.texi: Document the problems with
15337         the getdomainname declaration.
15338
15339 2010-11-28  Bruno Haible  <bruno@clisp.org>
15340
15341         sys_socket: Ensure ss_family field on AIX.
15342         * lib/sys_socket.in.h (ss_family): New macro definition.
15343         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
15344         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
15345         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15346         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15347         * modules/sys_socket (Makefile.am): Substitute
15348         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
15349         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
15350
15351 2010-11-27  Bruno Haible  <bruno@clisp.org>
15352
15353         readline: Improve configure output.
15354         * m4/readline.m4 (gl_FUNC_READLINE): Make the
15355         "checking for readline..." result understandable.
15356
15357 2010-11-27  Bruno Haible  <bruno@clisp.org>
15358
15359         *printf-posix: Detect a bug on Solaris 10/x86.
15360         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
15361         for floating-point output.
15362         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
15363         directive.
15364         * tests/test-snprintf-posix.h (test_function): Likewise.
15365         * tests/test-sprintf-posix.h (test_function): Likewise.
15366         * tests/test-vasprintf-posix.c (test_function): Likewise.
15367         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
15368         * doc/posix-functions/printf.texi: Likewise.
15369         * doc/posix-functions/snprintf.texi: Likewise.
15370         * doc/posix-functions/sprintf.texi: Likewise.
15371         * doc/posix-functions/vfprintf.texi: Likewise.
15372         * doc/posix-functions/vprintf.texi: Likewise.
15373         * doc/posix-functions/vsnprintf.texi: Likewise.
15374         * doc/posix-functions/vsprintf.texi: Likewise.
15375         * doc/glibc-functions/obstack_printf.texi: Likewise.
15376         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15377
15378 2010-11-27  Bruno Haible  <bruno@clisp.org>
15379
15380         Fix link error when module libunistring-optional is in use.
15381         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
15382         * modules/striconveha-tests (Makefile.am): Likewise.
15383
15384 2010-11-27  Bruno Haible  <bruno@clisp.org>
15385
15386         regex: Mention link dependencies.
15387         * modules/regex (Link): New section.
15388         * modules/rpmatch (Link): Likewise.
15389         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
15390
15391 2010-11-27  Bruno Haible  <bruno@clisp.org>
15392
15393         ftoastr: Fix compilation error on Solaris.
15394         * lib/ftoastr.c: Include <config.h>.
15395
15396 2010-11-27  Bruno Haible  <bruno@clisp.org>
15397
15398         getloadavg: Update documentation.
15399         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
15400
15401 2010-11-27  Bruno Haible  <bruno@clisp.org>
15402
15403         sys_socket: Fix test whether the functions are declared.
15404         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
15405         not <sys/select.h>.
15406
15407 2010-11-27  Bruno Haible  <bruno@clisp.org>
15408
15409         getpass: Make sure to get system declaration on some platforms.
15410         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
15411         gl_USE_SYSTEM_EXTENSIONS.
15412         * modules/getpass (Depends-on): Add extensions.
15413
15414 2010-11-26  Bruno Haible  <bruno@clisp.org>
15415
15416         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
15417         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
15418         'iconv' module is present.
15419         (ICONV_CONST): New macro.
15420         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
15421         ICONV_CONST.
15422         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
15423         set ICONV_CONST.
15424         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
15425         here.
15426         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
15427         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
15428         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
15429         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
15430         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
15431         present.
15432
15433 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15434
15435         ftoastr: comment fix
15436         * lib/ftoastr.c: "little" -> "little or no" in comment
15437
15438 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
15439
15440         stdint: port to GCC 4.3 + OSX + Octave
15441         On this platform, stdint.h is buggy and defines int64_t to long
15442         long int.  The replacement defined it to long int, causing
15443         problems with C++ style name mangling.  Instead, trust the system
15444         definition if INT64_MAX is defined, and likewise for the unsigned
15445         variant.   Problem reported by Jarno Rajahalme in
15446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
15447         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
15448         and don't mess with int64_t and INT64_MAX in this case.
15449         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
15450
15451 2010-11-24  Bruno Haible  <bruno@clisp.org>
15452
15453         doc: Corrections regarding MacOS X 10.4 and 10.5.
15454         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
15455         MacOS X.
15456         Reported by Simon Josefsson.
15457
15458 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
15459
15460         Uninstall ".bin" files installed by relocwrapper.
15461         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
15462         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
15463         unless it is already there.
15464
15465 2010-11-21  Bruno Haible  <bruno@clisp.org>
15466
15467         Update for NetBSD 5.0.
15468         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15469         NetBSD; the test fails on NetBSD 5.0.
15470         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15471         about NetBSD.
15472
15473 2010-11-21  Bruno Haible  <bruno@clisp.org>
15474
15475         Update for HP-UX 11.23 and HP-UX 11.31.
15476         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
15477         HP-UX.
15478
15479 2010-11-21  Bruno Haible  <bruno@clisp.org>
15480
15481         Update for MacOS X 10.5.
15482         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
15483         MacOS X; the test fails on MacOS X 10.5.8.
15484         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
15485         about MacOS X.
15486
15487 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
15488
15489         bootstrap: add bootstrap_sync option.
15490         See discussion at
15491         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
15492         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
15493         * build-aux/bootstrap: Accept --bootstrap-sync to update
15494         bootstrap if it is not identical to the local gnulib's
15495         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
15496         enable this by default.  Accept --no-bootstrap-sync to disable
15497         it.
15498
15499 2010-11-20  Bruno Haible  <bruno@clisp.org>
15500
15501         Ensure that <features.h> is included before __GLIBC__ is tested.
15502         * lib/printf-parse.h: Include <features.h>.
15503         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
15504         Reported by Mike Frysinger <vapier@gentoo.org>.
15505
15506         Ensure that <features.h> is included before __GLIBC__ is tested.
15507         * lib/wchar.in.h: Include <features.h>.
15508         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
15509         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
15510         Reported by Mike Frysinger <vapier@gentoo.org>.
15511
15512         Ensure that <features.h> is included before __GLIBC__ is tested.
15513         * lib/arpa_inet.in.h: Include <features.h>.
15514         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
15515         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
15516         Reported by Mike Frysinger <vapier@gentoo.org>.
15517
15518         Ensure that <features.h> is included before __GLIBC__ is tested.
15519         * build-aux/link-warning.h: Include <features.h>.
15520         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
15521         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
15522         Reported by Mike Frysinger <vapier@gentoo.org>.
15523
15524         Ensure that <features.h> is included before __GLIBC__ is tested.
15525         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
15526         Reported by Mike Frysinger <vapier@gentoo.org>.
15527
15528 2010-11-20  Bruno Haible  <bruno@clisp.org>
15529
15530         memmem: Fix autoconf test.
15531         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
15532
15533 2010-11-20  Bruno Haible  <bruno@clisp.org>
15534
15535         Port to uClibc.
15536         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
15537         * lib/fcntl.in.h: Likewise.
15538         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
15539         * lib/mbrtowc.c (mbrtowc): Likewise.
15540         * lib/relocatable.c (find_shared_library_fullname): Likewise.
15541         * lib/strerror_r.c: Likewise.
15542         * lib/unistr/u8-strnlen.c: Likewise.
15543         * lib/vasnprintf.c (decimal_point_char): Likewise.
15544         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15545         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
15546         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15547         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15548         * tests/test-sigaction.c (handler, main): Likewise.
15549         * lib/freading.h: Treat uClibc like a non-glibc platform.
15550         * lib/freading.c: Likewise.
15551         * lib/gettext.h: Likewise.
15552         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
15553         Likewise.
15554         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15555         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15556         * lib/propername.c (proper_name_utf8): Likewise.
15557         * lib/spawn.in.h: Likewise.
15558         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15559         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15560         mem_cd_iconveh_internal): Likewise.
15561         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15562         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15563         strstr, strcasestr): Likewise.
15564         * lib/unicodeio.c (unicode_to_mb): Likewise.
15565         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15566         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15567         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15568         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15569         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15570         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15571         * lib/unistr/u8-stpncpy.c: Likewise.
15572         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15573         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15574         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15575         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15576         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15577         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15578         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15580         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15581         Likewise.
15582         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15583         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15584         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15586         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15587         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15588         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15589         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15590         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15591         * tests/test-striconveha.c (main): Likewise.
15592         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15593         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15594         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15595         * doc/posix-functions/getline.texi: Likewise.
15596         Reported by Mike Frysinger <vapier@gentoo.org>.
15597
15598 2010-11-20  Bruno Haible  <bruno@clisp.org>
15599
15600         nproc: Fix condition.
15601         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15602         HAVE_PTHREAD_AFFINITY_NP.
15603
15604 2010-11-20  Bruno Haible  <bruno@clisp.org>
15605
15606         Fix a comment.
15607         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15608
15609 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15610
15611         ftoastr: don't assume snprintf
15612         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15613         Implement a subset of snprintf here, by using sprintf safely.
15614         * modules/ftoastr (Depends-on): Remove snprintf.
15615
15616 2010-11-19  Jim Meyering  <meyering@redhat.com>
15617
15618         test-rename.h: fix compilation failure
15619         * tests/test-rename.h (test_rename): Add omitted "}".
15620
15621 2010-11-17  Jim Meyering  <meyering@redhat.com>
15622
15623         maint.mk: add a URL discussing the no-@acronym policy
15624         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15625
15626 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15627
15628         ftoastr: depend on snprintf, improve comments
15629         * lib/ftoastr.c: Also mention Loitsch's draft.
15630         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15631         needed in the current implementation, but it might simplify
15632         speeding up the code later.
15633         * modules/ftoastr: Depend on snprintf; this improves portability.
15634         Suggested by Bruno Haible in the same email.
15635
15636         ftoastr: port to hosts lacking strtof and strtold
15637         Problem reported by Bruno Haible in
15638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15639         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15640         environment and strtold (and presumably strtof) are not available.
15641         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15642         (configure.ac): Require gl_C99_STRTOLD.
15643
15644 2010-11-18  Bruno Haible  <bruno@clisp.org>
15645
15646         c-strtold: Avoid link error on AIX 7.
15647         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15648         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15649         (gl_C_STRTOLD): Test whether strtold_l exists.
15650         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15651
15652 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15653
15654         intprops: new macro INT_BITS_STRLEN_BOUND
15655         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15656         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15657         not exposed.  Also, it uses a slightly tighter bound than before;
15658         though this makes no practical difference, we might as well be as
15659         tight as we easily can.
15660
15661         ftoastr: new module, for lossless conversion of floats to short strings
15662         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15663         * modules/ftoastr: New files.
15664
15665 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15666
15667         bootstrap: port to Solaris sed
15668         * build-aux/bootstrap (get_version): Port to Solaris sed.
15669         See Ralf Wildenhues's note in
15670         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15671
15672 2010-11-14  Jim Meyering  <meyering@redhat.com>
15673
15674         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15675         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15676         and move definition closer to sole use.
15677
15678 2010-11-13  Jim Meyering  <meyering@redhat.com>
15679
15680         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15681         Now we require at least autoconf-2.59, which means the work-around
15682         is no longer needed.
15683         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15684         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15685         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15686         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15687         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15688
15689 2010-11-13  Bruno Haible  <bruno@clisp.org>
15690
15691         rename, renameat: Avoid test failures at NFS mounted locations.
15692         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15693         functions.
15694         (test_rename): Use assert_nonexistent.
15695         * tests/test-rename.c: Include <dirent.h>.
15696         * tests/test-renameat.c: Likewise.
15697         Reported by Gary V. Vaughan <gary@gnu.org>.
15698
15699         rename, renameat: Document Linux bug with NFS
15700         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15701         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15702         * doc/posix-functions/renameat.texi: Likewise.
15703         Suggested by Eric Blake.
15704
15705 2010-11-13  Bruno Haible  <bruno@clisp.org>
15706
15707         rename test: Add comments.
15708         * tests/test-rename.h (test_rename): Add structure and comments.
15709
15710 2010-11-13  Eric Blake  <eblake@redhat.com>
15711
15712         maintainer-makefile: cover a few more files
15713         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15714         scripts generated within C files, for libvirt.
15715
15716 2010-11-13  Bruno Haible  <bruno@clisp.org>
15717
15718         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15719         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15720         character, return the number of bytes that belong together, not always
15721         1.
15722         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15723         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15724         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15725         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15726         number of bytes of an invalid character.
15727         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15728         (main): Invoke it.
15729         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15730         results.
15731         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15732         malformed byte sequences.
15733         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15734         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15735         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15736         Reported by Ben Pfaff and Paolo Bonzini.
15737
15738 2010-11-13  Bruno Haible  <bruno@clisp.org>
15739
15740         openat: Work around glibc bug with fchownat() and empty file names.
15741         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15742         (gl_FUNC_FCHOWNAT): Invoke it.
15743         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15744         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15745         Reported by Gary V. Vaughan <gary@gnu.org>.
15746
15747 2010-11-13  Bruno Haible  <bruno@clisp.org>
15748
15749         openat: Ensure autoconf macro ordering.
15750         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15751         gl_USE_SYSTEM_EXTENSIONS.
15752         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15753
15754 2010-11-13  Bruno Haible  <bruno@clisp.org>
15755
15756         Update comments.
15757         * lib/unistr/u8-check.c: Update file name in comments.
15758         * lib/unistr/u8-mblen.c: Likewise.
15759         * lib/unistr/u8-prev.c: Likewise.
15760         * lib/unistr/u8-strmblen.c: Likewise.
15761         * lib/unistr/u8-strmbtouc.c: Likewise.
15762
15763 2010-11-13  Jim Meyering  <meyering@redhat.com>
15764
15765         tests: avoid test failure on Solaris 10 due to lack of PATH export
15766         * tests/test-update-copyright.sh: Don't forget to export PATH.
15767
15768         init.sh: ensure that IFS is defined, just in case...
15769         * tests/init.sh (setup_): Ensure that IFS is defined,
15770         so that saving and restoring it works as expected.  This
15771         appears to be useful at least for an old version of dash
15772         from a long time ago (RH 6).  See here for details:
15773         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15774
15775         maint.mk: tighten "test a == b" check
15776         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15777         test to files that contain something like #!/bin/sh.
15778         Without this, coreutils would get two false positives in
15779         the comments of C source files.
15780
15781 2010-11-12  Eric Blake  <eblake@redhat.com>
15782
15783         bootstrap: fix typo in previous attempt
15784         * build-aux/bootstrap (buildreq): Correct the grouping.
15785         Reported by Paul Eggert.
15786
15787         maintainer-makefile: prohibit test x == x
15788         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15789         Based on a report by Matthias Bolte.
15790
15791         bootstrap: allow FreeBSD gzip
15792         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15793         which has no '.' and goes to stderr.
15794         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15795         Reported by Matthias Bolte.
15796
15797         maintainer-makefile: check for i18n setup
15798         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15799         will likely work.
15800
15801 2010-11-12  Bruno Haible  <bruno@clisp.org>
15802
15803         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15804         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15805         * lib/nanosleep.c (nanosleep): Likewise.
15806
15807 2010-11-11  Bruno Haible  <bruno@clisp.org>
15808
15809         fcntl-h: Fix for use of C++ on glibc systems.
15810         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15811         also on glibc systems in C++ mode.
15812         Reported by Gary V. Vaughan <gary@gnu.org>.
15813
15814 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15815
15816         mknod: avoid false failure with dash
15817         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15818
15819 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15820
15821         unlink: Fix "is it should" typo in diagnostic.
15822         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15823         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15824
15825 2010-11-11  Bruno Haible  <bruno@clisp.org>
15826
15827         Tests for module 'strerror_r-posix'.
15828         * modules/strerror_r-posix-tests: New file.
15829         * tests/test-strerror_r.c: New file.
15830         * tests/test-string-c++.cc: Check the signature of strerror_r.
15831
15832         New module 'strerror_r-posix'.
15833         * lib/string.in.h (strerror_r): New declaration.
15834         * lib/strerror_r.c: New file.
15835         * m4/strerror_r.m4: New file.
15836         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15837         of strerror_r.
15838         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15839         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15840         * modules/strerror_r-posix: New file.
15841         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15842         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15843         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15844         portability problems.
15845
15846 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15847
15848         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15849         line is also considered for output. Quoted function name in shell
15850         command, so temporary files for functions like MyClass::operator()
15851         are removed correctly without errors.
15852
15853 2010-11-09  Bruno Haible  <bruno@clisp.org>
15854
15855         * doc/posix-functions/strerror.texi: List more failing platforms.
15856
15857         * doc/posix-functions/strerror.texi: Add a comment.
15858
15859 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15860
15861         fdopendir: fix bug on MacOS X when low on file descriptors
15862
15863         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15864         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15865         All callers changed.
15866         (fdopendir): Invoke save_cwd at the top level, not after using
15867         multiple dup() calls to use up file descriptors.  Then retry
15868         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15869         less than the maximum number of open file descriptors, because
15870         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15871         on Mac OS X 10.6.4 for tar 1.24
15872         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15873         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15874         and for tar 1.25
15875         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15876
15877 2010-11-07  Bruno Haible  <bruno@clisp.org>
15878
15879         vasnprintf: Support I flag on glibc systems.
15880         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15881         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15882         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15883         snprintf function.
15884         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15885         glibc systems.
15886         * tests/test-vasnprintf-posix3.c: New file.
15887         * modules/vasnprintf-posix-tests (Files): Add it.
15888         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15889
15890 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15891
15892         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15893         * MODULES.html.sh: For compiler warnings, use name
15894         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15895
15896 2010-11-05  Eric Blake  <eblake@redhat.com>
15897
15898         ceil, floor: avoid spurious failure with icc
15899         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15900         [denormals-as-zero] when optimizing without -mieee-fp option.
15901         * tests/test-floorf2.c (floorf_reference): Likewise.
15902         * tests/test-ceilf1.c (dummy): New function.
15903         (main): Use it to outsmart icc's optimization.
15904         * tests/test-floorf1.c (dummy, main): Likewise.
15905
15906         tests: require working signbit
15907         * modules/ceilf-tests (Depends-on): Add signbit.
15908         * modules/ceill-tests (Depends-on): Likewise.
15909         * modules/floorf-tests (Depends-on): Likewise.
15910         * modules/floorl-tests (Depends-on): Likewise.
15911         * modules/round-tests (Depends-on): Likewise.
15912         * modules/roundf-tests (Depends-on): Likewise.
15913         * modules/roundl-tests (Depends-on): Likewise.
15914         * modules/trunc-tests (Depends-on): Likewise.
15915         * modules/truncf-tests (Depends-on): Likewise.
15916         * modules/truncl-tests (Depends-on): Likewise.
15917
15918         strtod: work around icc bug
15919         * lib/strtod.c (minus_zero): Define to working value.
15920         (strtod): Use it to avoid icc bug.
15921
15922         copysign: enhance tests
15923         * modules/copysign-tests (Files): Add minus-zero.h.
15924         * tests/test-copysign.c (main): Also test zeros.
15925
15926 2010-11-04  Eric Blake  <eblake@redhat.com>
15927
15928         ceil, floor, round, trunc: enhance tests of -0
15929         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15930         * tests/test-ceill.c (main): Likewise.
15931         * tests/test-floorf1.c (main): Likewise.
15932         * tests/test-floorl.c (main): Likewise.
15933         * tests/test-round1.c (main): Likewise.
15934         * tests/test-roundf1.c (main): Likewise.
15935         * tests/test-roundl.c (main): Likewise.
15936         * tests/test-trunc1.c (main): Likewise.
15937         * tests/test-truncf1.c (main): Likewise.
15938         * tests/test-truncl.c (main): Likewise.
15939
15940 2010-11-04  Eric Blake  <eblake@redhat.com>
15941
15942         frexp, tests: work around ICC bug with -zero
15943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15944         works with more compilers.
15945         * tests/minus-zero.h: New file.
15946         * modules/ceilf-tests (Files): Include it.
15947         * modules/ceill-tests (Files): Likewise.
15948         * modules/floorf-tests (Files): Likewise.
15949         * modules/floorl-tests (Files): Likewise.
15950         * modules/frexp-nolibm-tests (Files): Likewise.
15951         * modules/frexp-tests (Files): Likewise.
15952         * modules/frexpl-nolibm-tests (Files): Likewise.
15953         * modules/frexpl-tests (Files): Likewise.
15954         * modules/isnan-tests (Files): Likewise.
15955         * modules/isnand-nolibm-tests (Files): Likewise.
15956         * modules/isnand-tests (Files): Likewise.
15957         * modules/isnanf-nolibm-tests (Files): Likewise.
15958         * modules/isnanf-tests (Files): Likewise.
15959         * modules/isnanl-nolibm-tests (Files): Likewise.
15960         * modules/isnanl-tests (Files): Likewise.
15961         * modules/round-tests (Files): Likewise.
15962         * modules/roundf-tests (Files): Likewise.
15963         * modules/roundl-tests (Files): Likewise.
15964         * modules/ldexpl-tests (Files): Likewise.
15965         * modules/signbit-tests (Files): Likewise.
15966         * modules/snprintf-posix-tests (Files): Likewise.
15967         * modules/sprintf-posix-tests (Files): Likewise.
15968         * modules/strtod-tests (Files): Likewise.
15969         * modules/trunc-tests (Files): Likewise.
15970         * modules/truncf-tests (Files): Likewise.
15971         * modules/truncl-tests (Files): Likewise.
15972         * modules/vsnprintf-posix-tests (Files): Likewise.
15973         * modules/vsprintf-posix-tests (Files): Likewise.
15974         * modules/vasnprintf-posix-tests (Files): Likewise.
15975         * modules/vasprintf-posix-tests (Files): Likewise.
15976         * tests/test-ceilf1.c (main): Use it.
15977         * tests/test-ceill.c (main): Likewise.
15978         * tests/test-floorf1.c (main): Likewise.
15979         * tests/test-floorl.c (main): Likewise.
15980         * tests/test-frexp.c (main): Likewise.
15981         * tests/test-frexpl.c (main): Likewise.
15982         * tests/test-isnan.c (main): Likewise.
15983         * tests/test-isnand.h (main): Likewise.
15984         * tests/test-isnanf.h (main): Likewise.
15985         * tests/test-isnanl.h (main): Likewise.
15986         * tests/test-ldexpl.c (main): Likewise.
15987         * tests/test-round.c (main): Likewise.
15988         * tests/test-roundf.c (main): Likewise.
15989         * tests/test-roundl.c (main): Likewise.
15990         * tests/test-signbit.c (test_signbitf, test_signbitd)
15991         (test_signbitl): Likewise.
15992         * tests/test-snprintf-posix.h (test_function): Likewise.
15993         * tests/test-sprintf-posix.h (test_function): Likewise.
15994         * tests/test-strtod.c (main): Likewise.
15995         * tests/test-trunc1.c (main): Likewise.
15996         * tests/test-truncf1.c (main): Likewise.
15997         * tests/test-truncl.c (main): Likewise.
15998
15999         isnanl: work around icc bug
16000         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16001
16002 2010-11-03  Eric Blake  <eblake@redhat.com>
16003
16004         tests: fix compiler warnings
16005         * tests/test-getopt.h (test_getopt): Fix condition.
16006         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16007         * tests/test-pipe2.c (main): Likewise.
16008         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16009
16010         utimens: fix broken m4 test
16011         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16012
16013 2010-10-28  Bruno Haible  <bruno@clisp.org>
16014
16015         posix_spawn*, getdtablesize: Relax license.
16016         * modules/posix_spawn (License): Change to LGPLv2+.
16017         * modules/posix_spawnp (License): Likewise.
16018         * modules/posix_spawn-internal (License): Likewise.
16019         * modules/posix_spawnattr_init (License): Likewise.
16020         * modules/posix_spawnattr_getflags (License): Likewise.
16021         * modules/posix_spawnattr_setflags (License): Likewise.
16022         * modules/posix_spawnattr_getpgroup (License): Likewise.
16023         * modules/posix_spawnattr_setpgroup (License): Likewise.
16024         * modules/posix_spawnattr_getschedparam (License): Likewise.
16025         * modules/posix_spawnattr_setschedparam (License): Likewise.
16026         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
16027         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
16028         * modules/posix_spawnattr_getsigdefault (License): Likewise.
16029         * modules/posix_spawnattr_setsigdefault (License): Likewise.
16030         * modules/posix_spawnattr_getsigmask (License): Likewise.
16031         * modules/posix_spawnattr_setsigmask (License): Likewise.
16032         * modules/posix_spawnattr_destroy (License): Likewise.
16033         * modules/posix_spawn_file_actions_init (License): Likewise.
16034         * modules/posix_spawn_file_actions_addclose (License): Likewise.
16035         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
16036         * modules/posix_spawn_file_actions_addopen (License): Likewise.
16037         * modules/posix_spawn_file_actions_destroy (License): Likewise.
16038         * modules/getdtablesize (License): Likewise.
16039         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
16040
16041 2010-10-26  Bruno Haible  <bruno@clisp.org>
16042
16043         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
16044         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
16045         Cygwin and mingw.
16046         Suggested by Eric Blake.
16047
16048 2010-10-26  Bruno Haible  <bruno@clisp.org>
16049
16050         stdio: Work around compilation error due to renameat() on Solaris 10.
16051         * lib/stdio.in.h: Include <unistd.h> on Solaris.
16052         * lib/renameat.c: Don't include <unistd.h> here.
16053         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16054         Reported by Paul Eggert and Eric Blake.
16055
16056 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16057
16058         renameat: port to Solaris 10, which declares renameat in unistd.h
16059
16060         * lib/renameat.c: Include unistd.h before stdio.h, because
16061         Solaris 10 declares renameat in unistd.h.  Problem encountered
16062         when building GNU tar 1.24 on Solaris 10.
16063
16064 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16065
16066         fdopendir: fix C89 compilation
16067         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16068         compilers.
16069
16070 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16071
16072         inttostr: simplify by removing unnecessary redundancy
16073         * lib/anytostr.c: Don't include verify.h.
16074         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16075         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16076         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16077         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16078         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16079         Likewise.
16080         * modules/inttostr (Depends-on): Remove 'verify'.
16081
16082 2010-10-23  Bruno Haible  <bruno@clisp.org>
16083
16084         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16085         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16086         Reported by Eric Blake.
16087
16088 2010-10-23  Bruno Haible  <bruno@clisp.org>
16089
16090         Tests: Fix LOCALE_JA on MirBSD 10.
16091         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16092         to an UTF-8 locale.
16093         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16094         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16095         Reported by Eric Blake.
16096
16097 2010-10-21  Bruno Haible  <bruno@clisp.org>
16098
16099         nl_langinfo test: Avoid test failure on NetBSD 5.
16100         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16101         Reported by Eric Blake.
16102
16103 2010-10-21  Eric Blake  <eblake@redhat.com>
16104
16105         c-stack: work around libsigsegv 2.8 bug
16106         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16107         overflow on at least PowerPC64.
16108
16109 2010-10-17  Bruno Haible  <bruno@clisp.org>
16110
16111         userspec: Drop redundant file.
16112         * modules/userspec (Files): Remove lib/inttostr.h.
16113
16114 2010-10-17  Bruno Haible  <bruno@clisp.org>
16115
16116         nl_langinfo tests: Silence some warnings.
16117         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16118         Reported by Jim Meyering.
16119
16120 2010-10-17  Bruno Haible  <bruno@clisp.org>
16121
16122         Make use of GCC's attribute __alloc_size__.
16123         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
16124         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
16125         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
16126         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
16127         __alloc_size__.
16128         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
16129         Suggested by Jim Meyering.
16130
16131 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
16132
16133         bootstrap: anchor .gitignore entries.
16134         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
16135         with...
16136         (insert_vc_ignore): ... this new function, which prepends `/' to
16137         all .gitignore entries before passing them to
16138         insert_sorted_if_absent.
16139
16140 2010-10-16  Bruno Haible  <bruno@clisp.org>
16141
16142         nextafter: Fix configure check.
16143         * modules/nextafter (configure.ac): Correct expected prototype.
16144
16145 2010-10-16  Bruno Haible  <bruno@clisp.org>
16146
16147         termios: Update documentation.
16148         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
16149
16150 2010-10-16  Bruno Haible  <bruno@clisp.org>
16151
16152         tests: Make them compile with TinyCC.
16153         * tests/test-strstr.c (main): Remove parentheses around array
16154         initializer.
16155
16156 2010-10-15  Eric Blake  <eblake@redhat.com>
16157
16158         ignore-value: make header idempotent
16159         * lib/ignore-value.h: Add double-inclusion guards.
16160         Reported by Stefan Berger.
16161
16162 2010-10-15  Jim Meyering  <meyering@redhat.com>
16163
16164         GNUmakefile: handle "stable" target, not "major"
16165         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
16166         lists in maint.mk and announce-gen.  Without this, "make stable"
16167         would fail to ensure that $(VERSION) is up to date.
16168
16169 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
16170
16171         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
16172         & co.
16173
16174 2010-10-14  Bruno Haible  <bruno@clisp.org>
16175
16176         vasnprintf: Don't set errno to 0.
16177         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
16178         block that sets it to 0.
16179         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
16180
16181 2010-10-14  Bruno Haible  <bruno@clisp.org>
16182
16183         socketlib: Fix.
16184         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
16185         gl_PREREQ_SYS_H_WINSOCK2.
16186         Reported by Ian Beckwith <ianb@erislabs.net>.
16187
16188 2010-10-13  Jim Meyering  <meyering@redhat.com>
16189
16190         test-select-stdin.c: avoid warn_unused_result warnings
16191         * tests/test-select-stdin.c: Include "macros.h".
16192         ASSERT that read and fflush succeed.
16193
16194 2010-10-13  Jim Meyering  <meyering@redhat.com>
16195
16196         git-version-gen: do require git-VC'd files in cwd
16197         * build-aux/git-version-gen: Reject a git version string
16198         if there are no commits associated with the current directory.
16199         This avoids an unlikely false-positive (unrelated dir whose parent
16200         repository also contains a tag matching v*), as pointed out
16201         by Giuseppe Scrivano in
16202         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
16203
16204 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16205
16206         argv-iter: omit nonconforming declaration
16207         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
16208         enum arg_iter_err declaration, which doesn't conform to C99.
16209         Solaris 10 cc warns about this.
16210
16211 2010-10-13  Eric Blake  <eblake@redhat.com>
16212
16213         termios: fix compilation on mingw
16214         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
16215         (gl_TERMIOS_H): Adjust it on mingw.
16216         * modules/termios (Makefile.am): Substitute new key.
16217         * lib/termios.in.h (includes): Make include_next conditional.
16218         * doc/posix-headers/termios.texi (termios.h): Update
16219         documentation.
16220         Reported by Daniel P. Berrange.
16221
16222 2010-10-13  Jim Meyering  <meyering@redhat.com>
16223
16224         git-version-gen: don't require that .git/ be in the current dir
16225         * build-aux/git-version-gen: Adjust this script so that it works
16226         when run from any working directory beneath the top-level .git/-
16227         containing directory.  Inspired by a patch from Giuseppe Scrivano,
16228         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
16229
16230         test-select: avoid warn_unused_result warnings
16231         * tests/test-select.c: Include "macros.h".
16232         ASSERT that each call to read, write, and pipe succeeds.
16233         While not technically required, also check each "close".
16234         * modules/select-tests (Files): Add tests/macros.h.
16235
16236         test-symlinkat: remove declaration of unused local
16237         * tests/test-symlinkat.c (main): Remove unused local, "buf".
16238
16239         test-inttostr: avoid shadowing warnings
16240         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
16241         and use malloc rather than the stack for the same reason as
16242         mentioned in the comment justifying the other allocation.
16243
16244 2010-10-11  Bruno Haible  <bruno@clisp.org>
16245
16246         stdlib: Allow multiple gnulib generated replacements to coexist.
16247         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
16248         Reported by Sam Steingold <sds@gnu.org>.
16249
16250 2010-10-11  Jim Meyering  <meyering@redhat.com>
16251
16252         fix a documentation typo
16253         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
16254
16255 2010-10-11  Eric Blake  <eblake@redhat.com>
16256
16257         futimens: work around Solaris 11 bug
16258         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
16259         * tests/test-futimens.h (test_futimens): Enhance, rather than
16260         weaken test.
16261         * doc/posix-functions/futimens.texi (futimens): Document the bug.
16262
16263 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16264
16265         Indentation.
16266         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
16267         higher-level operators more to the left.
16268
16269 2010-10-11  Jim Meyering  <meyering@redhat.com>
16270
16271         test-futimens: avoid unwarranted test failure on Solaris 5.11
16272         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
16273         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
16274         because it tries to dereference the NULL name argument.
16275
16276 2010-10-11  Bruno Haible  <bruno@clisp.org>
16277
16278         Indentation.
16279         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
16280         indentation.
16281
16282 2010-10-11  Jim Meyering  <meyering@redhat.com>
16283
16284         spawn.in.h: make indentation consistent with parentheses
16285         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
16286         Make indentation consistent with parentheses.
16287
16288 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
16289
16290         Fix mismatched parens in previous commit
16291         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
16292         parens.
16293
16294 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16295
16296         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
16297
16298         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
16299         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
16300         * lib/malloca.c: Include "verify.h".
16301         (verify1): Remove, replacing with a verify call.
16302         * lib/relocwrapper.c (verify1): Likewise.
16303         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
16304         Likewise.
16305         * modules/malloca (Depends-on): Add 'verify'.
16306         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
16307         * modules/vasnprintf (Depends-on): Add 'verify'.
16308         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16309         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16310         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16311         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16312         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16313         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16314         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16315
16316         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
16317
16318         Formerly the style was sometimes 2*X - 1, because the C standard
16319         was wrongly thought to disallow ?: in integral constant expressions.
16320         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
16321         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
16322         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16323         * lib/stdint.in.h (_verify_intmax_size): Likewise.
16324         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
16325         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
16326         verify that time_t cannot be floating.
16327
16328 2010-10-08  Eric Blake  <eblake@redhat.com>
16329
16330         time: enforce recent POSIX ruling that time_t is integral
16331         * lib/time.in.h (__time_t_must_be_integral): Detect any
16332         problematic systems, allowing the rest of gnulib to assume POSIX.
16333
16334 2010-10-08  Jim Meyering  <meyering@redhat.com>
16335
16336         fdopendir: fix a bug on systems lacking openat and /proc support
16337         OpenBSD 4.7 is one such system.  The most noticeable effect was
16338         failure of any application making nontrivial use of fts: rm, du,
16339         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
16340           ./rm: traversal failed: `a': Bad file descriptor
16341         Debugging that, you see that even though FD 6 was closed just
16342         prior to the opendir call in fd_clone_opendir, its resulting
16343         dir->dd_fd was 8, rather than the expected value of 6:
16344
16345         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
16346         93                close (fd);
16347         (gdb) n
16348         94                dir = fd_clone_opendir (dupfd);
16349         (gdb) n
16350         95                saved_errno = errno;
16351         (gdb) p dir->dd_fd
16352         $11 = 8
16353
16354         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
16355         The problem is that on OpenBSD, fd_clone_opendir has to resort
16356         to using the old-style save/restore CWD mechanism, due to its
16357         lack of openat/proc support, and *that* would steal the FD (6)
16358         that opendir was supposed to use.
16359
16360         The fix is to squirrel away the desired FD so that save_cwd uses a
16361         different one, and then free the dest FD right before calling opendir.
16362         That guarantees opendir will use the required file descriptor.
16363
16364         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
16365
16366 2010-10-08  Bruno Haible  <bruno@clisp.org>
16367
16368         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
16369         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
16370
16371 2010-10-08  Bruno Haible  <bruno@clisp.org>
16372
16373         nanosleep: Make replacement POSIX compliant.
16374         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
16375         is out of range.
16376         Reported by Jim Meyering.
16377
16378 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16379
16380         bootstrap: add hook for altering gnulib.mk, for Bison
16381         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
16382         the Bison bootstrapping process can rewrite file names and variables
16383         in this file before later parts of 'bootstrap' use the file.
16384         Bison wants to include lib/gnulib.mk from the top-level makefile,
16385         so it needs the file names in this file to be relative to the top
16386         level, not relative to lib; plus it needs variable names to be
16387         rewritten.
16388         (slurp): Use the new function.
16389
16390         bootstrap: reformat for readability
16391         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
16392
16393 2010-10-08  Eric Blake  <eblake@redhat.com>
16394
16395         docs: update cygwin progress
16396         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
16397         1.7.7.
16398         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
16399         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
16400         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
16401         * doc/posix-functions/carg.texi (carg): Likewise.
16402         * doc/posix-functions/cargf.texi (cargf): Likewise.
16403         * doc/posix-functions/casin.texi (casin): Likewise.
16404         * doc/posix-functions/casinf.texi (casinf): Likewise.
16405         * doc/posix-functions/casinh.texi (casinh): Likewise.
16406         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
16407         * doc/posix-functions/catan.texi (catan): Likewise.
16408         * doc/posix-functions/catanf.texi (catanf): Likewise.
16409         * doc/posix-functions/catanh.texi (catanh): Likewise.
16410         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
16411         * doc/posix-functions/ccos.texi (ccos): Likewise.
16412         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
16413         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
16414         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
16415         * doc/posix-functions/cexp.texi (cexp): Likewise.
16416         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
16417         * doc/posix-functions/cimag.texi (cimag): Likewise.
16418         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
16419         * doc/posix-functions/clog.texi (clog): Likewise.
16420         * doc/posix-functions/clogf.texi (clogf): Likewise.
16421         * doc/posix-functions/conj.texi (conj): Likewise.
16422         * doc/posix-functions/conjf.texi (conjf): Likewise.
16423         * doc/posix-functions/cpow.texi (cpow): Likewise.
16424         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
16425         * doc/posix-functions/cproj.texi (cproj): Likewise.
16426         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
16427         * doc/posix-functions/creal.texi (creal): Likewise.
16428         * doc/posix-functions/crealf.texi (crealf): Likewise.
16429         * doc/posix-functions/csin.texi (csin): Likewise.
16430         * doc/posix-functions/csinf.texi (csinf): Likewise.
16431         * doc/posix-functions/csinh.texi (csinh): Likewise.
16432         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
16433         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
16434         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
16435         * doc/posix-functions/ctan.texi (ctan): Likewise.
16436         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
16437         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
16438         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
16439         * doc/posix-headers/complex.texi (complex.h): Likewise.
16440
16441 2010-10-07  Jim Meyering  <meyering@redhat.com>
16442
16443         parse-datetime: avoid compilation failure on OpenBSD 4.7
16444         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
16445         This works around a compilation failure on OpenBSD 4.7:
16446         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
16447
16448 2010-10-07  Eric Blake  <eblake@redhat.com>
16449
16450         docs: update cygwin progress
16451         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
16452         1.7.6.
16453         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16454         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
16455         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
16456         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
16457         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
16458         Likewise.
16459         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
16460         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
16461         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
16462         Likewise.
16463         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
16464         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
16465         Likewise.
16466         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
16467         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
16468         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
16469         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
16470         Likewise.
16471         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
16472         Likewise.
16473         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
16474
16475         docs: update parse-datetime history
16476         * doc/parse-datetime.texi (Authors of parse_datetime): Better
16477         documentation of this function's history and alternatives.
16478
16479         cygwin: use more robust version check
16480         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
16481         exclude an eventual cygwin 1.9.1.
16482         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16484         (gl_FUNC_STRCASESTR): Likewise.
16485         Reported by Bruno Haible.
16486
16487 2010-10-06  Bruno Haible  <bruno@clisp.org>
16488
16489         string, sys_select: Avoid #including large headers unless necessary.
16490         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
16491         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
16492         OSF/1, BeOS, Haiku.
16493         Reported by Jim Meyering.
16494
16495 2010-10-05  Eric Blake  <eblake@redhat.com>
16496
16497         memmem, strstr, strcasestr: fix bug with long periodic needle
16498         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
16499         periodic needle having false positive.
16500         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
16501         and cygwin 1.7.7.
16502         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
16503         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
16504         (gl_FUNC_STRCASESTR): Likewise.
16505         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16506         * tests/test-memmem.c (main): Expose the bug.
16507         * tests/test-strcasestr.c (main): Likewise.
16508         * tests/test-strstr.c (main): Likewise.
16509         * tests/test-c-strcasestr.c (main): Likewise.
16510         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
16511         * doc/posix-functions/strstr.texi (strstr): Likewise.
16512         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
16513         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
16514
16515 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         parse-datetime: do some more renaming
16518         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
16519         parse_datetime, not get_date.  Mention the renaming.
16520         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
16521         in comments.
16522         * m4/bison.m4: Likewise.
16523
16524 2010-10-05  Eric Blake  <eblake@redhat.com>
16525
16526         parse-datetime: better name than get_date
16527         * NEWS: Reword the deprecation notice.
16528         * modules/get_date: Rename to modules/parse-datetime.
16529         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
16530         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
16531         * lib/get_date.y: Rename to lib/parse-datetime.y.
16532         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
16533         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
16534         * doc/getdate.texi: Provide fallback wrapper.
16535         * lib/getdate.h: Move guts, and wrap...
16536         * lib/parse-datetime.h: ...new file.
16537         * lib/parse-datetime.y (get_date): Rename...
16538         (parse_datetime): ...to this.
16539         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
16540         (gl_PARSE_DATETIME): ...to this.
16541         * doc/posix-functions/getdate.texi (get_date): Provide fallback
16542         documentation.
16543         * modules/getdate (Files): Provide fallback docs and header.
16544         (Notice, Depends-on): Update references.
16545         * tests/test-parse-datetime.c: Likewise.
16546         * DEPENDENCIES: Likewise.
16547         * MODULES.html.sh (Date and time <time.h>): Likewise.
16548         * doc/parse-datetime.texi (Date input formats)
16549         (Authors of parse_datetime): Likewise.
16550         * modules/parse-datetime (Files, configure.ac, Makefile.am)
16551         (Include): Likewise.
16552         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
16553         * gnulib-tool: Likewise.
16554         * m4/bison.m4 (gl_BISON): Likewise.
16555         Suggested by Bruno Haible.
16556
16557 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16558
16559         more ports to Solaris tr, which needs [] around ranges
16560         * gnulib-tool: Solaris tr needs [] around ranges.
16561         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16562         * tests/test-pipe-filter-gi1.c (main): Likewise.
16563         * tests/test-pipe-filter-ii1.c (main): Likewise.
16564
16565 2010-10-05  Eric Blake  <eblake@redhat.com>
16566
16567         bootstrap: fix Solaris regression
16568         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16569         around ranges.
16570         Reported by Pádraig Brady.
16571
16572         bootstrap: work with pkg-config
16573         * build-aux/bootstrap (check_versions): Also transliterate - in
16574         prerequisite name.
16575         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16576         prerequisites that were already found, to avoid confusion.
16577         Reported by Justin Clift.
16578
16579         faccessat: remove unused wrappers
16580         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16581         presence of these wrappers dragged in -lgen on Solaris.
16582         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16583
16584 2010-10-05  Jim Meyering  <meyering@redhat.com>
16585
16586         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16587         * Makefile (sc_pragma_columns): New syntax-check rule.
16588
16589 2010-10-04  Bruno Haible  <bruno@clisp.org>
16590
16591         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16592         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16593         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16594         Reported by Bruce Korb and Eric Blake.
16595
16596 2010-10-04  Bruno Haible  <bruno@clisp.org>
16597
16598         threadlib: Make option --with-libpth-prefix work.
16599         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16600         use $LIBPTH, not just -lpth.
16601
16602 2010-10-04  Bruno Haible  <bruno@clisp.org>
16603
16604         Avoid line length limitation from HP NonStop system header files.
16605         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16606         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16607         * lib/ctype.in.h: Likewise.
16608         * lib/dirent.in.h: Likewise.
16609         * lib/errno.in.h: Likewise.
16610         * lib/fcntl.in.h: Likewise.
16611         * lib/float.in.h: Likewise.
16612         * lib/getopt.in.h: Likewise.
16613         * lib/iconv.in.h: Likewise.
16614         * lib/inttypes.in.h: Likewise.
16615         * lib/langinfo.in.h: Likewise.
16616         * lib/locale.in.h: Likewise.
16617         * lib/math.in.h: Likewise.
16618         * lib/netdb.in.h: Likewise.
16619         * lib/netinet_in.in.h: Likewise.
16620         * lib/poll.in.h: Likewise.
16621         * lib/pthread.in.h: Likewise.
16622         * lib/pty.in.h: Likewise.
16623         * lib/sched.in.h: Likewise.
16624         * lib/se-selinux.in.h: Likewise.
16625         * lib/search.in.h: Likewise.
16626         * lib/signal.in.h: Likewise.
16627         * lib/spawn.in.h: Likewise.
16628         * lib/stdarg.in.h: Likewise.
16629         * lib/stddef.in.h: Likewise.
16630         * lib/stdint.in.h: Likewise.
16631         * lib/stdio.in.h: Likewise.
16632         * lib/stdlib.in.h: Likewise.
16633         * lib/string.in.h: Likewise.
16634         * lib/strings.in.h: Likewise.
16635         * lib/sys_file.in.h: Likewise.
16636         * lib/sys_ioctl.in.h: Likewise.
16637         * lib/sys_select.in.h: Likewise.
16638         * lib/sys_socket.in.h: Likewise.
16639         * lib/sys_stat.in.h: Likewise.
16640         * lib/sys_time.in.h: Likewise.
16641         * lib/sys_times.in.h: Likewise.
16642         * lib/sys_utsname.in.h: Likewise.
16643         * lib/sys_wait.in.h: Likewise.
16644         * lib/sysexits.in.h: Likewise.
16645         * lib/termios.in.h: Likewise.
16646         * lib/time.in.h: Likewise.
16647         * lib/unistd.in.h: Likewise.
16648         * lib/wchar.in.h: Likewise.
16649         * lib/wctype.in.h: Likewise.
16650         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16651         * modules/ctype (Makefile.am): Likewise.
16652         * modules/dirent (Makefile.am): Likewise.
16653         * modules/errno (Makefile.am): Likewise.
16654         * modules/fcntl-h (Makefile.am): Likewise.
16655         * modules/float (Makefile.am): Likewise.
16656         * modules/getopt-posix (Makefile.am): Likewise.
16657         * modules/iconv-h (Makefile.am): Likewise.
16658         * modules/inttypes (Makefile.am): Likewise.
16659         * modules/langinfo (Makefile.am): Likewise.
16660         * modules/locale (Makefile.am): Likewise.
16661         * modules/math (Makefile.am): Likewise.
16662         * modules/netdb (Makefile.am): Likewise.
16663         * modules/netinet_in (Makefile.am): Likewise.
16664         * modules/poll-h (Makefile.am): Likewise.
16665         * modules/pthread (Makefile.am): Likewise.
16666         * modules/pty (Makefile.am): Likewise.
16667         * modules/sched (Makefile.am): Likewise.
16668         * modules/search (Makefile.am): Likewise.
16669         * modules/selinux-h (Makefile.am): Likewise.
16670         * modules/signal (Makefile.am): Likewise.
16671         * modules/spawn (Makefile.am): Likewise.
16672         * modules/stdarg (Makefile.am): Likewise.
16673         * modules/stddef (Makefile.am): Likewise.
16674         * modules/stdint (Makefile.am): Likewise.
16675         * modules/stdio (Makefile.am): Likewise.
16676         * modules/stdlib (Makefile.am): Likewise.
16677         * modules/string (Makefile.am): Likewise.
16678         * modules/strings (Makefile.am): Likewise.
16679         * modules/sys_file (Makefile.am): Likewise.
16680         * modules/sys_ioctl (Makefile.am): Likewise.
16681         * modules/sys_select (Makefile.am): Likewise.
16682         * modules/sys_socket (Makefile.am): Likewise.
16683         * modules/sys_stat (Makefile.am): Likewise.
16684         * modules/sys_time (Makefile.am): Likewise.
16685         * modules/sys_times (Makefile.am): Likewise.
16686         * modules/sys_utsname (Makefile.am): Likewise.
16687         * modules/sys_wait (Makefile.am): Likewise.
16688         * modules/sysexits (Makefile.am): Likewise.
16689         * modules/termios (Makefile.am): Likewise.
16690         * modules/time (Makefile.am): Likewise.
16691         * modules/unistd (Makefile.am): Likewise.
16692         * modules/wchar (Makefile.am): Likewise.
16693         * modules/wctype (Makefile.am): Likewise.
16694
16695 2010-10-04  Bruno Haible  <bruno@clisp.org>
16696
16697         read-file tests: Avoid a test failure on NonStop Kernel.
16698         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16699         a regular file.
16700         Reported by Joachim Schmitz <schmitz@hp.com>.
16701
16702 2010-10-03  Bruno Haible  <bruno@clisp.org>
16703
16704         gnulib-tool: Fixes for --create-testdir with --libtool.
16705         * gnulib-tool (func_get_automake_snippet): Don't augment
16706         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16707         an executable.
16708         (func_create_testdir): Handle module 'alloca' like func_import.
16709         Reported by Bruce Korb <bruce.korb@gmail.com>.
16710
16711 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16712
16713         Avoid some lines longer than 80 characters.
16714         * lib/stdint.in.h: Break long comment lines.
16715         * lib/math.in.h: Likewise.
16716         (_GL_NUM_UINT_WORDS): New macro, for readability.
16717         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16718         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16719         * lib/stdlib.in.h: Likewise.
16720         * lib/spawn.in.h: Likewise.
16721         * lib/sys_socket.in.h: Update an URL.
16722         * lib/sys_stat.in.h: Break long line.
16723
16724 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16725
16726         Improve pmccabe2html.
16727         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16728         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16729         when the sources change. Remove the line in the HTML about "Used
16730         ranges" (which implied that there might be other unused ranges),
16731         rename "Resume" to "Summary" (easier to understand for more users).
16732         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16733         styles, and some unnecessary blank lines.
16734
16735 2010-10-03  Bruno Haible  <bruno@clisp.org>
16736             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16737
16738         acl: Add support for ACLs on NonStop Kernel.
16739         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16740         Check whether the function aclsort() exists.
16741         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16742         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16743         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16744         (acl_nontrivial [HAVE_ACLSORT]: New function.
16745         (file_has_acl): Implement for NonStop Kernel.
16746         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16747         (qset_acl): Implement for NonStop Kernel.
16748         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16749         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16750         (main): Implement for NonStop Kernel.
16751         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16752         Kernel. Handle this flavor.
16753         * tests/test-set-mode-acl.sh: Likewise.
16754         * tests/test-copy-acl.sh: Likewise.
16755         * tests/test-copy-file.sh: Likewise.
16756
16757 2010-10-03  Bruno Haible  <bruno@clisp.org>
16758
16759         Info about ACLs on NonStop Kernel.
16760         * doc/acl-resources.txt: Add info about NonStop Kernel.
16761         References by Joachim Schmitz <schmitz@hp.com>.
16762
16763 2010-10-02  Bruno Haible  <bruno@clisp.org>
16764
16765         Define missing EDQUOT on NonStop Kernel.
16766         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16767         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16768         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16769         missing.
16770         * doc/posix-headers/errno.texi: Mention the NSK bug.
16771         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16772         Reported by Joachim Schmitz <schmitz@hp.com>.
16773
16774 2010-10-02  Bruno Haible  <bruno@clisp.org>
16775
16776         Update doc for POSIX:2008.
16777         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16778         Update URL of POSIX specification.
16779
16780 2010-10-02  Bruno Haible  <bruno@clisp.org>
16781
16782         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16783         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16784         from gnulib, not from Automake.
16785
16786 2010-10-02  Bruno Haible  <bruno@clisp.org>
16787
16788         New module 'system-posix'.
16789         * modules/system-posix: New file.
16790         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16791         module is present.
16792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16793         GNULIB_SYSTEM_POSIX.
16794         * modules/stdlib (Depends-on): Remove sys_wait.
16795         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16796         * doc/posix-functions/system.texi: Mention the new module.
16797         * doc/posix-headers/stdlib.texi: Likewise.
16798         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16799         define test_sys_wait_macros to a no-op.
16800         Reported by Sam Steingold <sds@gnu.org>.
16801
16802 2010-09-30  Bruno Haible  <bruno@clisp.org>
16803
16804         More renaming from 'getdate' to 'get_date'.
16805         * doc/get_date.texi: Renamed from doc/getdate.texi.
16806         * modules/get_date (Files): Update.
16807         * MODULES.html.sh (Date and time <time.h>): Update.
16808         * DEPENDENCIES: Update.
16809         * gnulib-tool: Update comment.
16810         * m4/bison.m4 (gl_BISON): Likewise.
16811         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16812
16813 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16814
16815         bootstrap: support ACLOCAL_FLAGS during aclocal
16816         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16817         can add additional -I dir for third-party .m4 files.
16818
16819 2010-09-30  Eric Blake  <eblake@redhat.com>
16820
16821         bootstrap: use glibtoolize on MacOS
16822         * build-aux/bootstrap (check_versions): Convert libtool into
16823         libtoolize.
16824         (tool search): Move libtool check earlier, and look for
16825         glibtoolize for MacOS.
16826         (gnulib_tool_options): Auto-add --libtool when appropriate.
16827         Reported by Justin Clift.
16828
16829         poll: fix typo that broke test on MacOS
16830         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16831         Reported by Justin Clift.
16832
16833         getdate: rename to get_date
16834         Note: getdate.h is not renamed, to minimize client impact.
16835         * modules/getdate: Mark obsolete.  Move old contents...
16836         * modules/get_date: ...to new module name.
16837         * modules/getdate-tests: Move...
16838         * modules/get_date-tests: ...here.
16839         * m4/getdate.m4: Move...
16840         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16841         * lib/getdate.y: Move...
16842         * lib/get_date.y: ...here.
16843         * tests/test-getdate.c: Move...
16844         * tests/test-get_date.c: ...here.
16845         * doc/posix-functions/getdate.texi (getdate): Update name.
16846         * NEWS: Mention the change.
16847
16848 2010-09-29  Bruno Haible  <bruno@clisp.org>
16849
16850         Separate the module 'waitpid' from the module 'sys_wait'.
16851         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16852         present.
16853         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16854         gl_MODULE_INDICATOR_FOR_TESTS.
16855         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16856         * modules/sys_wait (Depends-on): Remove waitpid.
16857         (Makefile.am): Substitute GNULIB_WAITPID.
16858         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16859         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16860         signature only if the 'waitpid' module is present.
16861         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16862         * NEWS: Mention the change.
16863         * modules/grantpt (Depends-on): Add waitpid.
16864         * modules/wait-process (Depends-on): Likewise.
16865
16866 2010-09-29  Bruno Haible  <bruno@clisp.org>
16867
16868         More tests for module 'sys_wait'.
16869         * modules/sys_wait-c++-tests: New file.
16870         * tests/test-sys_wait-c++.cc: New file.
16871         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16872         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16873
16874 2010-09-29  Bruno Haible  <bruno@clisp.org>
16875
16876         New module 'waitpid'.
16877         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16878         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16879         Don't include <process.h>.
16880         (waitpid): Declare only, using modern idiom.
16881         * m4/waitpid.m4: New file.
16882         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16883         * modules/waitpid: New file.
16884         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16885         (Makefile.am): Update.
16886         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16887
16888 2010-09-28  Bruno Haible  <bruno@clisp.org>
16889
16890         poll: Assume ANSI C.
16891         * lib/poll.c (poll): Use an ANSI C declaration.
16892
16893 2010-09-28  Bruno Haible  <bruno@clisp.org>
16894
16895         poll-h: Create poll.h on all platforms.
16896         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16897         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16898         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16899         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16900         (gl_REPLACE_POLL_H): Don't set POLL_H.
16901         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16902         * modules/poll-h (Depends-on): Add include_next.
16903         (Makefile.am): Create poll.h unconditionally. Substitute also
16904         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16905
16906 2010-09-28  Bruno Haible  <bruno@clisp.org>
16907
16908         Tests for module 'poll-h'.
16909         * modules/poll-h-c++-tests: New file.
16910         * tests/test-poll-h-c++.cc: New file.
16911
16912         Tests for module 'poll-h'.
16913         * modules/poll-h-tests: New file.
16914         * tests/test-poll-h.c: New file.
16915
16916 2010-09-28  Bruno Haible  <bruno@clisp.org>
16917
16918         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16919         * modules/poll-h (Depends-on): Add 'extensions'.
16920
16921 2010-09-28  Bruno Haible  <bruno@clisp.org>
16922
16923         New module 'poll-h'.
16924         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16925         (poll): Use modern idiom.
16926         * modules/poll-h: New file.
16927         * modules/poll (Files): Remove lib/poll.in.h.
16928         (Depends-on): Add poll-h.
16929         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16930         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16931         * m4/poll_h.m4: New file.
16932         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16933         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16934         and invoke gl_REPLACE_POLL_H.
16935         * lib/poll.c: Use common idiom.
16936         * tests/test-poll.c: Likewise.
16937         * doc/posix-headers/poll.texi: Mention the poll-h module.
16938         Suggested by Eric Blake.
16939
16940 2010-09-26  Bruno Haible  <bruno@clisp.org>
16941
16942         sys_wait: Implement WSTOPSIG.
16943         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16944         Reported by Simon Josefsson.
16945
16946 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16947
16948         stdlib, sys_wait: Avoid compilation error on mingw.
16949         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16950
16951 2010-09-26  Bruno Haible  <bruno@clisp.org>
16952
16953         stdlib tests: Avoid code duplication.
16954         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16955         * modules/sys_wait-tests (Files): Likewise.
16956         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16957         * tests/test-stdlib.c: Include test-sys_wait.h.
16958         (main): Invoke test_sys_wait_macros.
16959         * tests/test-sys_wait.c: Include test-sys_wait.h.
16960         (main): Invoke test_sys_wait_macros.
16961
16962 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16963
16964         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16965         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16966         sure Windows sockets are working before calling getaddrinfo.
16967         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16968         * doc/gnulib.texi (Windows sockets): Fix typo.
16969
16970 2010-09-25  Bruno Haible  <bruno@clisp.org>
16971
16972         Tests for module 'regex-quote'.
16973         * modules/regex-quote-tests: New file.
16974         * tests/test-regex-quote.c: New file.
16975
16976         New module 'regex-quote'.
16977         * lib/regex-quote.h: New file.
16978         * lib/regex-quote.c: New file.
16979         * modules/regex-quote: New file.
16980         Suggested by Reuben Thomas <rrt@sc3d.org>.
16981
16982 2010-09-24  Bruno Haible  <bruno@clisp.org>
16983
16984         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16985         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16986
16987 2010-09-23  Bruno Haible  <bruno@clisp.org>
16988
16989         setenv: Relax license.
16990         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16991         Blake.
16992         Requested by Eric Blake.
16993
16994 2010-09-22  Bruno Haible  <bruno@clisp.org>
16995
16996         termios: Relax license.
16997         * modules/termios (License): Change to LGPLv2+.
16998         Requested by Eric Blake.
16999
17000 2010-09-22  Bruno Haible  <bruno@clisp.org>
17001
17002         threadlib: Allow the package to change the default to 'no'.
17003         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17004         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17005         Reported by Paul Eggert.
17006
17007 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17008             Bruno Haible  <bruno@clisp.org>
17009
17010         Fix endless loop in mbmemcasecoll.
17011         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17012         byte.
17013         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17014
17015 2010-09-22  Bruno Haible  <bruno@clisp.org>
17016
17017         Tests for module 'memcoll'.
17018         * modules/memcoll-tests: New file.
17019         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17020
17021         memcoll, xmemcoll: Clarify size vs. length.
17022         * modules/memcoll.c (memcoll0): Clarify specification.
17023         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
17024         passed to collate_error.
17025
17026 2010-09-22  Bruno Haible  <bruno@clisp.org>
17027
17028         Tests for module 'memcasecmp'.
17029         * modules/memcasecmp-tests: New file.
17030         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
17031
17032 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17033
17034         * lib/pthread.in.h: Add split double-inclusion guard, and include
17035         system <pthread.h> if there is one.  Use @@-style as in other
17036         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
17037         pthread.h doesn't.
17038         (pthread_mutexattr_destroy, pthread_mutexattr_init):
17039         (pthread_mutexattr_settype, pthread_mutex_trylock):
17040         New static inline functions, if there's no system <pthread.h>.
17041         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
17042         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
17043         Approximate with mutexes if the system lacks spinlocks, as in
17044         MacOS.
17045         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
17046         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
17047         @@-style.  Check for spinlocks separately.
17048         (gl_PTHREAD_DEFAULTS): New macro.
17049         * modules/pthread: Redo to use a more typical style for in.h files.
17050
17051 2010-09-21  Eric Blake  <eblake@redhat.com>
17052
17053         net_if: enhance tests
17054         * tests/test-net_if.c (main): Move signature checks earlier.
17055         Print failures to stderr.
17056         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17057         Document the bug that we do not yet fix.
17058
17059 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17060
17061         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17062         about gnulib, not GSS.
17063
17064 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17065
17066         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17067         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17068         for Emacs.
17069         * build-aux/pmccabe2html: Make Makefile.am example code more
17070         cut-and-paste friendly.
17071
17072 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17073
17074         * tests/test-net_if.c: New file.
17075         * modules/net_if-tests: New file.
17076
17077 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17078
17079         pthread: add pthread_spin_destroy
17080         * lib/pthread.in.h (pthread_spin_destroy): New function.
17081
17082 2010-09-19  Bruno Haible  <bruno@clisp.org>
17083
17084         gnulib-tool: Fix --help output.
17085         * gnulib-tool (func_usage): Fix help message.
17086         Reported by Reuben Thomas <rrt@sc3d.org>.
17087
17088 2010-09-18  Jim Meyering  <meyering@redhat.com>
17089
17090         maint.mk: avoid unexpanded \n in two diagnostics
17091         * top/maint.mk (sc_prohibit_always_true_header_tests):
17092         Don't use a literal \n in a halt=... assignment.  It would not be
17093         expanded, and the two \n bytes would appear in the diagnostic output
17094         rather than the desired newline.  Use halt=$$(printf ... instead.
17095         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17096
17097 2010-09-18  Bruno Haible  <bruno@clisp.org>
17098
17099         netinet_in: Doc tweak.
17100         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17101         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17102
17103 2010-09-18  Jim Meyering  <meyering@redhat.com>
17104
17105         init.sh: correct an outdated comment
17106         * tests/init.sh (create_exe_shims_):  s/function/alias/
17107
17108         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17109         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17110         a file named "*.exe" is removed between the glob expansion and the
17111         processing of that oddly named file.
17112
17113 2010-09-17  Eric Blake  <eblake@redhat.com>
17114
17115         mirbsd: add some more support
17116         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17117         in BSD family.
17118         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17119         devices as OpenBSD.
17120         * m4/host-os.m4 (mirbsd): Add MirBSD.
17121
17122         tests: fix unportable assumption on sys/wait.h
17123         * tests/test-sys_wait.c (main): Relax test.
17124         * tests/test-stdlib.c (main): Likewise.
17125
17126         init.sh: accomodate directory with no .exes
17127         * tests/init.sh: Accomodate directory containing only scripts.
17128
17129         tests: avoid compiler warning
17130         * tests/test-stdlib.c (main): Use the variable.
17131
17132         fdutimens, fdutimensat: update signature, again
17133         * lib/utimens.h (gl_futimens): Delete, and move signature...
17134         (fdutimens): ...here.
17135         (fdutimensat): Rearrange signature.
17136         (lutimensat): Rename variable for clarity.
17137         * lib/fdutimensat.c (fdutimensat): Update signature.
17138         * lib/utimens.c (fdutimens): Likewise.
17139         (gl_futimens): Delete.
17140         (utimens, lutimens): Update callers.
17141         * lib/futimens.c (futimens): Likewise.
17142         * tests/test-fdutimensat.c: Likewise.
17143         * tests/test-utimens.c: Likewise.
17144         * tests/test-futimens.h: Update comment.
17145         * NEWS: Mention this.
17146         Suggested by Paul Eggert.
17147
17148 2010-09-17  Bruno Haible  <bruno@clisp.org>
17149
17150         Take over the maintenance of some older macros from Autoconf.
17151         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
17152         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
17153         GNU Autoconf.
17154         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
17155         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
17156
17157 2010-09-17  Eric Blake  <eblake@redhat.com>
17158
17159         fdutimensat: drop atflag validation
17160         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
17161         with valid fd, to close a race scenario where futimens is
17162         unsupported and FILE was replaced by a symlink.
17163         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
17164         accordingly.
17165         Suggested by Paul Eggert.
17166
17167 2010-09-16  Bruno Haible  <bruno@clisp.org>
17168
17169         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
17170         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
17171
17172 2010-09-16  Bruno Haible  <bruno@clisp.org>
17173
17174         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
17175         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
17176         login_tty exists.
17177         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17178
17179 2010-09-16  Bruno Haible  <bruno@clisp.org>
17180
17181         login_tty: Make the replacement code work on BSD systems.
17182         * lib/login_tty.c: Include <sys/ioctl.h>.
17183         (login_tty): Use ioctl TIOCSCTTY when available.
17184         * modules/login_tty (Depends-on): Add sys_ioctl.
17185         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17186
17187 2010-09-16  Bruno Haible  <bruno@clisp.org>
17188
17189         login_tty: Stricter unit test.
17190         * modules/login_tty-tests (Depends-on): Add tcgetsid.
17191         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
17192         and tcgetsid() after login_tty.
17193         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17194
17195 2010-09-16  Bruno Haible  <bruno@clisp.org>
17196
17197         New module 'tcgetsid'.
17198         * lib/tcgetsid.c: New file.
17199         * m4/tcgetsid.m4: New file.
17200         * modules/tcgetsid: New file.
17201         * modules/termios (Depends-on): Add c++defs, warn-on-use.
17202         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
17203         GNULIB_TCGETSID, HAVE_TCGETSID.
17204         * lib/termios.in.h: Include <sys/types.h>.
17205         (tcgetsid): New declaration.
17206         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
17207         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
17208         * doc/posix-functions/tcgetsid.texi: Mention the new module.
17209         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
17210
17211 2010-09-16  Bruno Haible  <bruno@clisp.org>
17212
17213         Tests for module 'termios'.
17214         * modules/termios-c++-tests: New file.
17215         * modules/termios-tests: New file.
17216         * tests/test-termios-c++.cc: New file.
17217         * tests/test-termios.c: New file.
17218
17219         New module 'termios'.
17220         * modules/termios: New file.
17221         * lib/termios.in.h: New file.
17222         * m4/termios_h.m4: New file.
17223         * doc/posix-headers/termios.texi: Mention the new module.
17224
17225 2010-09-16  Eric Blake  <eblake@redhat.com>
17226
17227         fdutimensat: add an atflag parameter
17228         * lib/fdutimensat.c (fdutimensat): Add new parameter.
17229         * lib/utimens.h (fdutimensat): Update prototype.
17230         * tests/test-fdutimensat.c: Adjust test to match.
17231         * NEWS: Document the change.
17232         Suggested by Paul Eggert.
17233
17234 2010-09-16  Bruno Haible  <bruno@clisp.org>
17235
17236         Fix typos in comments.
17237         * lib/striconveh.h: Fix typo in comment.
17238         * lib/login_tty.c (login_tty): Likewise.
17239
17240 2010-09-15  Bruno Haible  <bruno@clisp.org>
17241
17242         stdlib: clarify MirBSD WEXITSTATUS bug
17243         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
17244         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17245
17246 2010-09-15  Eric Blake  <eblake@redhat.com>
17247
17248         stdlib: work around MirBSD WEXITSTATUS bug
17249         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
17250         * modules/stdlib (Depends-on): Add sys_wait.
17251         * tests/test-sys_wait.c (main): Enhance test.
17252         * tests/test-stdlib.c (main): Likewise.
17253         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
17254
17255         docs: mention MacOS issue with WEXITSTATUS(constant)
17256         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
17257         issue.
17258         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17259
17260         strnlen: add tests
17261         * modules/strnlen-tests: New file.
17262         * tests/test-strnlen.c: Likewise.
17263
17264 2010-09-14  Bruno Haible  <bruno@clisp.org>
17265
17266         unistr/base: Avoid link errors when module 'libunistring' is also used.
17267         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
17268         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
17269         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
17270         Declare also when HAVE_LIBUNISTRING is set.
17271         Reported by Pádraig Brady <P@draigbrady.com>.
17272
17273 2010-09-14  Eric Blake  <eblake@redhat.com>
17274
17275         test-rawmemchr: make more robust
17276         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
17277         (Depends-on, configure.ac): Add needed prerequisites to use it.
17278         * modules/memchr-tests (Files, Depends-on, configure.ac):
17279         Likewise, to avoid implicit reliance on memchr module prereqs.
17280         * tests/test-memchr.c (main): Ensure proper masking.
17281         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
17282         reads.
17283
17284         memchr: detect glibc Alpha bug
17285         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
17286         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
17287         Alpha.
17288         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
17289         * tests/test-memchr.c (main): Enhance test.
17290         Reported by Nelson H. F. Beebe.
17291
17292 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17293
17294         fts, getcwd, glob: audit for dirfd returning -1
17295         * lib/fts.c (opendir): Remove #define; no longer used.
17296         (opendirat): New arg PDIR_FD.  All callers changed.
17297         (fts_build, _opendir2): Use new opendirat to avoid the need for
17298         dirfd, or for checking whether dirfd returns a negative value.
17299         Don't use opendir; always use openat followed by fdopendir.
17300         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
17301         it.
17302         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
17303         returns -1 here.
17304         * modules/fts (Depends-on): Remove dirfd.
17305         * modules/getcwd (Depends-on): Likewise.
17306
17307 2010-09-13  Eric Blake  <eblake@redhat.com>
17308
17309         float: fix broken MirBSD header
17310         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
17311         * doc/posix-headers/float.texi (float.h): Document it.
17312
17313 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17314
17315         fts: use O_NOFOLLOW to avoid race condition when opening a directory
17316         * lib/fts.c (opendirat): New arg extra_flags.
17317         (__opendir2): Use it to avoid following symlinks when opening
17318         a directory, if symlinks are not supposed to be followed.  See
17319         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
17320
17321         fdopendir: preserve argument fd before returning
17322         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
17323         (fdopendir_with_dup, fd_clone_opendir): New static functions.
17324         (fdopendir): Use them, arranging for FD to be open to the same
17325         directory that it was when it started.  (It might be temporarily
17326         closed while fdopendir is running, so this not thread- or
17327         signal-safe.)  Be careful to do the right thing even when file
17328         descriptors are scarce and dup fails with errno == EMFILE.  See
17329         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
17330
17331 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
17332
17333         regex: Pass the system regex if its only problem is 32-bit regoff_t.
17334         * NEWS: Document change.
17335         * m4/regex.m4: Disable test for regoff_t size.
17336
17337 2010-09-13  Jim Meyering  <meyering@redhat.com>
17338
17339         fts: don't operate on an invalid file descriptor after failed dup
17340         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
17341         negative file descriptor.
17342
17343 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17344
17345         savedir: add streamsavedir, deprecate fdsavedir
17346         * NEWS: Mention deprecation of fdsavedir.
17347         * lib/savedir.c (streamsavedir): New extern function, whose name
17348         ends in "savedir" to be consistent with the others.  This differs
17349         from savedirstream in that it doesn't close its argument.  The
17350         next version of GNU tar will use this instead of fdsavedir, to
17351         avoid some race conditions and conserve file descriptors.
17352         (savedirstream): Reimplement as a wrapper around streamsavedir.
17353         (fdsavedir): Add a comment deprecating this function.  As far as
17354         I know, only GNU tar used it, and GNU tar doesn't need it any more.
17355         * lib/savedir.h (streamsavedir): New decl.
17356         (fdsavedir): Add a comment deprecating this.
17357
17358 2010-09-10  Bruno Haible  <bruno@clisp.org>
17359
17360         langinfo: Fix last commit.
17361         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
17362         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
17363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17364
17365 2010-09-10  Bruno Haible  <bruno@clisp.org>
17366
17367         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
17368         * lib/progreloc.c (O_EXEC): Define fallback.
17369
17370 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17371
17372         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
17373         * NEWS: Document recent changes to fcntl-h.
17374         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
17375         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
17376         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
17377         Similarly for O_SEARCH; this last was already true, but not documented.
17378         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
17379         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
17380         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
17381         Likewise.
17382         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
17383         is zero, not whether it is defined.
17384         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
17385         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
17386         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
17387
17388 2010-09-10  Bruno Haible  <bruno@clisp.org>
17389
17390         langinfo, nl_langinfo: Fix for IRIX 5.3.
17391         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
17392         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
17393         HAVE_LANGINFO_YESEXPR.
17394         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
17395         HAVE_LANGINFO_YESEXPR.
17396         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
17397         HAVE_LANGINFO_T_FMT_AMPM is 0.
17398         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
17399         HAVE_LANGINFO_YESEXPR is 0.
17400         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
17401         NOEXPR.
17402         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
17403         * doc/posix-functions/nl_langinfo.texi: Likewise.
17404         Reported by Eric Blake.
17405
17406 2010-09-10  Bruno Haible  <bruno@clisp.org>
17407
17408         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
17409         * doc/glibc-functions/login_tty.texi: Mention the include file problem
17410         on FreeBSD 8.0 and OpenBSD 4.6.
17411         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
17412         * m4/pty_h.m4 (gl_PTY_H): Likewise.
17413         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
17414         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
17415         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
17416         ac_includes_default.
17417         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17418
17419 2010-09-09  Eric Blake  <eblake@redhat.com>
17420
17421         strsignal: work around NetBSD bug
17422         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
17423         * lib/string.in.h (includes): Likewise.
17424         * doc/posix-functions/strsignal.texi (strsignal): Document the
17425         bug.
17426         Reported by Nelson H. F. Beebe.
17427
17428         gnulib-tool: work with NetBSD /bin/sh
17429         * gnulib-tool (func_cache_var, func_cache_lookup_module)
17430         (func_get_description, func_get_comment, func_get_status)
17431         (func_get_notice, func_get_applicability, func_get_filelist)
17432         (func_get_dependencies, func_get_autoconf_early_snippet)
17433         (func_get_autoconf_snippet, func_get_automake_snippet)
17434         (func_get_include_directive, func_get_link_directive)
17435         (func_get_license, func_get_maintainer, func_import): Avoid
17436         shell syntax errors from parsing syntax extensions.
17437
17438 2010-09-09  Bruno Haible  <bruno@clisp.org>
17439
17440         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17441         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
17442         a reliable way to determine whether the 'alias' command works.
17443
17444 2010-09-08  Jim Meyering  <meyering@redhat.com>
17445
17446         init.sh: penalize a set-x-impaired shell; don't disqualify it
17447         * tests/init.sh: Too many shells corrupt application stderr when
17448         you set -x, so we can't afford to disqualify them, since at least
17449         on Irix-6.5, that would disqualify all bourne shells.
17450         Instead, use a two-pass approach.
17451         On the first pass, try to find a shell that meets the stricter
17452         condition that set -x does not corrupt stderr.
17453         If no shell meets the stricter condition, retest each candidate
17454         shell, but without that extra condition.  Finally, when
17455         VERBOSE=yes is requested and set -x might cause trouble, simply
17456         issue a warning and refrain from enabling debug output.
17457
17458 2010-09-08  Eric Blake  <eblake@redhat.com>
17459
17460         unsetenv: fix OpenBSD bug
17461         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
17462         * doc/posix-functions/unsetenv.texi (unsetenv): Update
17463         documentation.
17464         Reported by Jim Meyering.
17465
17466         strtod: work around IRIX 6.5 bug
17467         * lib/strtod.c (strtod): Reparse number on shorter string if
17468         exponent parse was invalid.
17469         * tests/test-strtod.c (main): Add check for "0x1p 2".
17470         Reported by Tom G. Christensen.
17471
17472         getopt: optimize previous patch
17473         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
17474         empty variable.  Speed up awk script.
17475         Reported by Paolo Bonzini.
17476
17477 2010-09-08  Jim Meyering  <meyering@redhat.com>
17478
17479         test.sh: disqualify shells for which set -x corrupts stderr
17480         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
17481         and OpenBSD 4.7.  They make it so with "set -x", environment settings
17482         appear in stderr output.  For example, this command:
17483             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
17484         prints "P=1" on those two systems:
17485
17486 2010-09-08  Bruno Haible  <bruno@clisp.org>
17487
17488         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
17489         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
17490         commands, because some shells ignore redirections when there is an
17491         error in the command lookup.
17492         Reported by Eric Blake.
17493
17494 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
17495
17496         * lib/regex.h: Fix a mention of `regex_compile' (should be
17497         `re_compile_pattern').
17498         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
17499         (re_set_registers): Correct name of parameter in comment.
17500
17501         * doc/regex.texi: Add documentation for missing syntax flags.
17502         Remove commented-out documentation of defunct syntax option
17503         RE_NO_EMPTY_ALTS.
17504         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
17505         Add documentation of re_set_registers.
17506         Document trick to re-use a pattern buffer by setting fastmap manually.
17507         Update documentation of struct re_pattern_buffer per public members.
17508         Uncomment documentation of equivalence class operators and
17509         collating symbol operators, since they are now implemented,
17510         Explain leftmost-longest matching in relation to alternatives.
17511         Tidy documentation of substring matching.
17512         Remove POSIX documentation, which is done better in
17513         glibc, and refer the reader there. Keep BSD API documentation, as
17514         that is not readily available elsewhere.
17515
17516 2010-09-07  Eric Blake  <eblake@redhat.com>
17517
17518         getopt: handle POSIXLY_CORRECT set but not exported
17519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
17520         export state of POSIXLY_CORRECT, due to bash set -o posix.
17521         Reported by Dustin J. Mitchell.
17522
17523 2010-09-05  Bruno Haible  <bruno@clisp.org>
17524
17525         gnulib-tool: Highlight the changed options.
17526         * gnulib-tool (func_usage): Display the --import, --add-import,
17527         --remove-import explanations in bold font.
17528
17529 2010-09-06  Karl Berry  <karl@gnu.org>
17530
17531         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
17532
17533 2010-09-05  Bruno Haible  <bruno@clisp.org>
17534
17535         uniwidth/width: Update comment.
17536         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
17537         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
17538
17539 2010-09-05  Bruno Haible  <bruno@clisp.org>
17540
17541         isinf, isnan: Relax license.
17542         * modules/isinf (License): Change from GPL to LGPL, with consent from
17543         Ben Pfaff.
17544         * modules/isnan (License): Likewise.
17545         Requested by Ludovic Courtès.
17546
17547 2010-09-04  Bruno Haible  <bruno@clisp.org>
17548
17549         gnulib-tool: Help migration from --import to --add-import or --update.
17550         * gnulib-tool: Emit a verbose error message when --import is used
17551         without any module name.
17552
17553 2010-09-04  Bruno Haible  <bruno@clisp.org>
17554
17555         Update doc about gnulib-tool.
17556         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17557         'gnulib-tool --update' in more detail.
17558         Reported by Eric Blake.
17559
17560 2010-09-04  Bruno Haible  <bruno@clisp.org>
17561
17562         gnulib-tool: Change --import. New options --add/remove-import.
17563         * gnulib-tool: New options --add-import, --remove-import.
17564         (func_usage): Document them.
17565         (have_associative): Define always.
17566         (func_import): In import mode, don't merge the specified settings with
17567         the cached settings. Implement remove-import mode.
17568         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17569         Explain when to use them versus --import.
17570         (Simple update): Use --add-import instead of --import.
17571         * NEWS: Mention the change.
17572
17573 2010-09-04  Bruno Haible  <bruno@clisp.org>
17574
17575         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17576         separate gnulib.mk.
17577
17578 2010-09-04  Bruno Haible  <bruno@clisp.org>
17579
17580         gnulib-tool: Don't talk about CVS any more.
17581         * gnulib-tool (func_usage, func_import): Write "version control"
17582         instead of CVS.
17583
17584 2010-09-04  Jim Meyering  <meyering@redhat.com>
17585
17586         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17587         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17588         false positives (whose names may be ill-chosen) when searching
17589         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17590         would cause a false-positive.
17591
17592         avoid coreutils "make distcheck" failure
17593         Coreutils tests with an absolute build directory name that contains
17594         a space.  Not quoting this directory name caused a failure.
17595         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17596         * tests/test-vc-list-files-cvs.sh: Likewise.
17597
17598 2010-09-04  Bruno Haible  <bruno@clisp.org>
17599
17600         gnulib-tool: Avoid error when run in a package without Makefile.am.
17601         * gnulib-tool: When collecting the m4dirs in a package that does not
17602         have a Makefile.am, eliminate those directories that contain no
17603         gnulib-cache.m4. Fix expression that counts these directories.
17604
17605 2010-09-04  Bruno Haible  <bruno@clisp.org>
17606
17607         update-copyright test: Improve output when perl is missing or too old.
17608         * tests/test-update-copyright.sh: Move test of Perl version down after
17609         the test whether Perl exists. Provide an explanation relating Perl's
17610         error message to Automake's SKIP: message.
17611
17612 2010-09-04  Bruno Haible  <bruno@clisp.org>
17613
17614         Don't augment PATH in TESTS_ENVIRONMENT.
17615         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17616         set abs_aux_dir instead of augmenting PATH.
17617         * modules/vc-list-files-tests (Makefile.am): Likewise.
17618         * tests/test-update-copyright.sh: Augment PATH here.
17619         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17620         path_prepend_.
17621         * tests/test-vc-list-files-git.sh: Likewise.
17622
17623 2010-09-04  Jim Meyering  <meyering@redhat.com>
17624
17625         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17626         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17627
17628 2010-09-04  Bruno Haible  <bruno@clisp.org>
17629
17630         strdup: Fix compilation error in C++ mode.
17631         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17632         the macro.
17633
17634 2010-09-04  Bruno Haible  <bruno@clisp.org>
17635
17636         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17637         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17638         macro into a function.
17639         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17640
17641 2010-09-04  Bruno Haible  <bruno@clisp.org>
17642
17643         Set PATH_SEPARATOR the same way autoconf does.
17644         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17645         the value of PATH_SEPARATOR the same way autoconf-generated configure
17646         scripts do.
17647         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17648         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17649
17650 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17651
17652         Set PATH_SEPARATOR the same way autoconf does.
17653         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17654         the same way autoconf-generated configure scripts do.
17655         * posix-modules: Likewise.
17656
17657 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17658
17659         hash: fix safe_hasher const typo
17660         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17661         const; otherwise, there is a type error later.
17662
17663 2010-09-02  Jim Meyering  <meyering@redhat.com>
17664
17665         test-update-copyright.sh: require perl 5.8.0
17666         * tests/test-update-copyright.sh: Require 5.8.0,
17667         which Tom G. Christensen has confirmed is adequate,
17668         while 5.6.1 is not.
17669
17670 2010-09-02  Eric Blake  <eblake@redhat.com>
17671
17672         tests: init.sh improvements for re-exec'ing with zsh
17673         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17674         -vx through shell re-exec.
17675         Reported by Tom G. Christensen.
17676
17677         wctype: fix typo in previous commit
17678         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17679         Reported by Ludovic Courtès.
17680
17681 2010-09-02  Jim Meyering  <meyering@redhat.com>
17682
17683         test-update-copyright.sh: skip test if Perl is too old
17684         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17685         Reported by Tom G. Christensen.
17686
17687 2010-09-02  Bruno Haible  <bruno@clisp.org>
17688
17689         wctype: Avoid compilation error on IRIX 6.5.30.
17690         * lib/wctype.in.h (iswblank): Declare with a replacement if
17691         REPLACE_ISWBLANK is set.
17692         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17693         declared. Set REPLACE_ISWBLANK.
17694         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17695         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17696         * doc/posix-headers/wctype.texi: Likewise.
17697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17698
17699 2010-09-01  Bruno Haible  <bruno@clisp.org>
17700
17701         New module 'socketlib'.
17702         * modules/socketlib: New file.
17703         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17704         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17705         * modules/sockets (Depends-on): Add socketlib.
17706         Suggested by Sam Steingold <sds@gnu.org>.
17707
17708 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17709
17710         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17711
17712         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17713         when one needs search access to a directory but not read access.
17714         On systems where it is available, it works in some cases where
17715         O_RDONLY does not, namely on directories that are searchable but
17716         not readable, and which need only to be searchable.  If O_SEARCH
17717         is not available, fall back to the traditional method of using
17718         O_RDONLY.
17719
17720         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17721         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17722         when opening a directory that needs only to be searchable.
17723         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17724         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17725         * lib/openat-proc.c (openat_proc_name): Likewise.
17726         * lib/openat.c (openat_needs_fchdir): Likewise.
17727         * lib/save-cwd.c (save_cwd): Likewise.
17728         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17729
17730 2010-08-28  Bruno Haible  <bruno@clisp.org>
17731
17732         New module 'host-cpu-c-abi'.
17733         * modules/host-cpu-c-abi: New file.
17734         * m4/host-cpu-c-abi.m4: New file, based on part of
17735         clisp/src/m4/general.m4.
17736         Requested by Sam Steingold <sds@gnu.org>.
17737
17738 2010-08-31  Eric Blake  <eblake@redhat.com>
17739         and Jim Meyering  <meyering@redhat.com>
17740
17741         hash: factor, and guard against misbehaving hasher function
17742         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17743         of table->hasher's return value.  Also protect against a hash value
17744         so large that adding it to table->bucket results in a NULL pointer.
17745         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17746         Use it in place of open-coded check-and-abort.
17747
17748 2010-08-30  Bruno Haible  <bruno@clisp.org>
17749
17750         hash: silence spurious clang warning
17751         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17752         Reported by Eric Blake.
17753
17754 2010-08-30  Eric Blake  <eblake@redhat.com>
17755
17756         strstr, memmem, strcasestr: avoid leaked shell message
17757         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17758         FreeBSD.
17759         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17760         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17761
17762         tests: silence clang warning
17763         * tests/test-malloca.c (do_allocation): Avoid dead store.
17764
17765 2010-08-29  Bruno Haible  <bruno@clisp.org>
17766
17767         gettext: Fix recent mistake.
17768         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17769
17770 2010-08-29  Bruno Haible  <bruno@clisp.org>
17771
17772         selinux-h: Offer a --without-selinux option.
17773         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17774         --without-selinux was specified, skip all tests and define
17775         HAVE_SELINUX_SELINUX_H to 0.
17776         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17777         set LIB_SELINUX to empty.
17778         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17779         gl_LIBSELINUX. If --without-selinux was specified, replace
17780         selinux/context.h.
17781         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17782
17783 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17784             Bruno Haible  <bruno@clisp.org>
17785
17786         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17787         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17788         of HAVE_REALLOC.
17789         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17790         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17791         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17792         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17793
17794 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17795             Bruno Haible  <bruno@clisp.org>
17796
17797         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17798         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17799         HAVE_CALLOC.
17800         * lib/xmalloc.c: Update accordingly.
17801         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17802         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17803         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17804
17805 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17806             Bruno Haible  <bruno@clisp.org>
17807
17808         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17809         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17810         HAVE_MALLOC.
17811         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17812         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17813         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17814
17815 2010-08-29  Bruno Haible  <bruno@clisp.org>
17816
17817         Update modules list.
17818         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17819         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17820         (String handling <string.h>): Add astrxfrm.
17821         (File system functions): Add readlinkat.
17822
17823 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17824
17825         Tests for module 'realloc-gnu'.
17826         * modules/realloc-gnu-tests: New file.
17827         * tests/test-realloc-gnu.c: New file.
17828
17829         Tests for module 'calloc-gnu'.
17830         * modules/calloc-gnu-tests: New file.
17831         * tests/test-calloc-gnu.c: New file.
17832
17833         Tests for module 'malloc-gnu'.
17834         * modules/malloc-gnu-tests: New file.
17835         * tests/test-malloc-gnu.c: New file.
17836
17837 2010-08-28  Bruno Haible  <bruno@clisp.org>
17838
17839         Rename module 'realloc' -> 'realloc-gnu'.
17840         * modules/realloc-gnu: New file, copied from modules/realloc.
17841         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17842         obsolete.
17843         * modules/mgetgroups (Depends-on): Update.
17844         * doc/posix-functions/realloc.texi: Update.
17845         * NEWS: Mention the change.
17846
17847         Rename module 'calloc' -> 'calloc-gnu'.
17848         * modules/calloc-gnu: New file, copied from modules/calloc.
17849         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17850         obsolete.
17851         * doc/posix-functions/calloc.texi: Update.
17852         * NEWS: Mention the change.
17853
17854         Rename module 'malloc' -> 'malloc-gnu'.
17855         * modules/malloc-gnu: New file, copied from modules/malloc.
17856         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17857         obsolete.
17858         * modules/argp (Depends-on): Update.
17859         * modules/regex (Depends-on): Update.
17860         * doc/posix-functions/malloc.texi: Update.
17861         * NEWS: Mention the change.
17862
17863 2010-08-28  Eric Blake  <eblake@redhat.com>
17864
17865         pread, pwrite: add missing dependency
17866         * modules/pread (Depends-on): Add extensions.
17867         * modules/pwrite (Depends-on): Likewise.
17868
17869 2010-08-28  Bruno Haible  <bruno@clisp.org>
17870
17871         unistr/u*-strchr: Fix tests dependencies.
17872         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17873         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17874         Reported by Ian Beckwith <ianb@erislabs.net>.
17875
17876 2010-08-28  Bruno Haible  <bruno@clisp.org>
17877
17878         read-file: Don't occupy too much unused memory.
17879         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17880
17881 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17882             Eric Blake  <eblake@redhat.com>
17883             Bruno Haible  <bruno@clisp.org>
17884
17885         read-file: Avoid memory reallocations with regular files.
17886         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17887         (fread_file): With regular files, use the remaining length as the
17888         initial buffer size.  Check against overflow.
17889         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17890         sys_stat.
17891
17892 2010-08-28  Bruno Haible  <bruno@clisp.org>
17893
17894         ftello: Relax license.
17895         * modules/ftello (License): Relax to LGPLv2+.
17896         Reported by Eric Blake.
17897
17898 2010-08-28  Bruno Haible  <bruno@clisp.org>
17899
17900         Avoid relocwrapper link errors due to gnulib replacement functions.
17901         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17902         function.
17903         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17904
17905 2010-08-28  Bruno Haible  <bruno@clisp.org>
17906
17907         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17908         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17909         defined.
17910         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17911         Suggested by Eric Blake.
17912
17913 2010-08-28  Bruno Haible  <bruno@clisp.org>
17914
17915         sys_socket, netdb: Ensure socklen_t gets defined.
17916         * modules/sys_socket (Depends-on): Add socklen.
17917         * modules/netdb (Depends-on): Likewise.
17918         * modules/getaddrinfo (Depends-on): Remove socklen.
17919         * modules/getsockopt (Depends-on): Likewise.
17920         * modules/setsockopt (Depends-on): Likewise.
17921         * tests/test-sys_socket.c: Check that socklen_t is defined.
17922         * tests/test-netdb.c: Likewise.
17923         * m4/socklen.m4: Update comments.
17924         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17925
17926 2010-08-27  Eric Blake  <eblake@redhat.com>
17927
17928         login_tty: add missing dependency
17929         * modules/login_tty (Depends-on): Add pty.
17930
17931 2010-08-26  Eric Blake  <eblake@redhat.com>
17932
17933         lib-symbol-versions: fix m4 quoting
17934         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17935         format for AC_LINK_IFELSE.
17936
17937         glob: fix compile test
17938         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17939
17940         btowc: fix missing file
17941         * modules/btowc (Files): Also ship locale-fr.m4.
17942
17943         lseek: fix link test
17944         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17945         AC_LINK_IFELSE.
17946
17947         include_next: silence autoconf 2.68 warning
17948         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17949         AC_COMPILE_IFELSE as special.
17950         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17951         autoconf < 2.68.
17952
17953         acl: fix compilation test
17954         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17955         AC_COMPILE_IFELSE.
17956
17957 2010-08-26  Bruno Haible  <bruno@clisp.org>
17958
17959         Modernize AC_TRY_RUN invocations.
17960         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17961         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17962         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17963         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17964         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17965         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17966         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17967         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17968         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17969         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17971         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17972         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17973         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17974         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17975         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17976         gl_MBRLEN_NUL_RETVAL): Likewise.
17977         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17978         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17979         Likewise.
17980         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17981         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17982         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17983         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17984         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17985         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17986         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17987         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17988         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17989         Likewise.
17990         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17991         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17992         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17993         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17994         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17995         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17996         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17997         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17998         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18000
18001 2010-08-26  Bruno Haible  <bruno@clisp.org>
18002
18003         Modernize AC_TRY_LINK invocations.
18004         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18005         AC_TRY_LINK.
18006         * m4/argp.m4 (gl_ARGP): Likewise.
18007         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18008         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18009         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18010         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18011         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18012         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18013         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18014         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18015         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18016         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18017         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18018         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18019         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18020         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18021         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18022         * m4/hostent.m4 (gl_HOSTENT): Likewise.
18023         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18024         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
18025         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18026         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
18027         Likewise.
18028         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
18029         Likewise.
18030         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
18031         Likewise.
18032         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18033         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
18034         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
18035         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18036         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
18037         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18038         * m4/servent.m4 (gl_SERVENT): Likewise.
18039         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18040         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
18041         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
18042         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
18043         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18044         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18045         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18046         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18047         * modules/tsearch-tests (configure.ac): Likewise.
18048
18049 2010-08-26  Bruno Haible  <bruno@clisp.org>
18050
18051         Modernize AC_TRY_COMPILE invocations.
18052         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18053         AC_TRY_COMPILE.
18054         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18055         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18056         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18057         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18058         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18059         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18060         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18061         * m4/lock.m4 (gl_LOCK): Likewise.
18062         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18063         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18064         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18065         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18066         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18067         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18068         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18069         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18070         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18071         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18072         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18073         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18074         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18075         extraneous semicolon.
18076
18077 2010-08-26  Jim Meyering  <meyering@redhat.com>
18078
18079         stat-time: relax license LGPL
18080         * modules/stat-time (License): Change from GPL to LGPL,
18081         with consent from all contributors, for use in libguile.
18082         Requested by Ludovic Courtès.
18083
18084 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18085
18086         poll: return immediately on POLLHUP.
18087         * lib/poll.c (poll): Always set timeout before wait_timeout is
18088         computed.
18089
18090 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18091
18092         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18093         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18094         rmdir ("dir/.//"), unlinkat.
18095
18096 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18097
18098         stdbool: avoid spurious failure with modern xlc
18099         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18100
18101 2010-08-24  Bruno Haible  <bruno@clisp.org>
18102
18103         getloadavg: simplify code
18104         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18105         gl_have_func. Update comments.
18106
18107 2010-08-24  Eric Blake  <eblake@redhat.com>
18108
18109         getloadavg: don't define SVR4 on cygwin
18110         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18111         only define SVR4 when -lkvm is required.
18112         Reported by Yaakov Selkowitz.
18113
18114 2010-08-24  Bruno Haible  <bruno@clisp.org>
18115
18116         priv-set: fix comment
18117         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18118
18119 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18120
18121         priv-set: fix comments
18122         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
18123         to match code, as suggested by David Bartley in:
18124         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
18125
18126 2010-08-23  Eric Blake  <eblake@redhat.com>
18127
18128         stdbool: avoid rejecting clang
18129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18130         * tests/test-stdbool.c: Enable more tests if using the system
18131         <stdbool.h> instead of the gnulib replacement.
18132         (main): Move xlc bug test to a runtime test for all compilers.
18133         Reported by Anders Kaseorg.
18134
18135         argz: fix shell quoting issue
18136         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
18137         Reported by Charles Wilson.
18138
18139 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
18140             Erik Faye-Lund <kusmabite@gmail.com>
18141
18142         poll, select: handle ERROR_BROKEN_PIPE.
18143         * lib/poll.c (win32_compute_revents): Return POLLHUP when
18144         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18145         * lib/select.c (win32_compute_revents): Do not mark a pipe
18146         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
18147
18148 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
18149
18150         fts: allow compilation with C++
18151         * lib/fts_.h: Specify extern "C" linkage with C++.
18152
18153 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18154
18155         Fix gnulib-tool sed script de-commentation for AIX sed.
18156         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
18157         sed.
18158
18159 2010-08-17  Eric Blake  <eblake@redhat.com>
18160
18161         test-stddef: test for (some) offsetof bugs
18162         * tests/test-stddef.c: Enhance test to ensure correct type of
18163         offsetof.
18164         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
18165         that we are not fixing at this time.
18166
18167 2010-08-15  Bruno Haible  <bruno@clisp.org>
18168
18169         stpncpy: Allow stpncpy to be defined as a macro.
18170         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
18171         if it's already correctly declared.
18172         * lib/string.in.h (stpncpy): Undefine before redefining.
18173         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
18174
18175 2010-08-14  Bruno Haible  <bruno@clisp.org>
18176
18177         Rename module 'memxfrm' to 'amemxfrm'.
18178         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
18179         (amemxfrm): Renamed from memxfrm.
18180         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
18181         (amemxfrm): Renamed from memxfrm.
18182         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
18183         * NEWS: Mention the change.
18184         * MODULES.html.sh (String handling <string.h>): Update.
18185         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
18186         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
18187         * lib/unicase/u16-casexfrm.c: Likewise.
18188         * lib/unicase/u32-casexfrm.c: Likewise.
18189         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
18190         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
18191         * lib/uninorm/u16-normxfrm.c: Likewise.
18192         * lib/uninorm/u32-normxfrm.c: Likewise.
18193         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
18194         memxfrm.
18195         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
18196         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
18197         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
18198         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
18199         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
18200         Suggested by Paul Eggert.
18201
18202 2010-08-14  Bruno Haible  <bruno@clisp.org>
18203
18204         Tests for module 'astrxfrm'.
18205         * modules/astrxfrm-tests: New file.
18206         * tests/test-astrxfrm.c: New file.
18207
18208         New module 'astrxfrm'.
18209         * lib/astrxfrm.h: New file.
18210         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
18211         * modules/astrxfrm: New file.
18212
18213 2010-08-14  Reuben Thomas <rrt@sc3d.org>
18214
18215         regex: Tweak doc.
18216         * doc/regex.texi (Overview): Don't mention regex.c.
18217         (GNU Regular Expression Compiling): Likewise.
18218         (Match-end-of-line Operator): Mention 'not_eol'.
18219
18220 2010-08-14  Brian Gough  <bjg@gnu.org>
18221             Bruno Haible  <bruno@clisp.org>
18222
18223         git-merge-changelog: add doc relating to use with bzr and hg.
18224         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
18225
18226 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
18227
18228         pthread: fix pthread.h creation for srcdir != builddir
18229         * modules/pthread (Makefile.am): Fix the rule to work also in a
18230         non-srcdir build.
18231
18232 2010-08-13  Karl Berry  <karl@gnu.org>
18233
18234         * doc/regex.texi (Predefined Syntaxes): @smallexample.
18235         * doc/posix-*/*: force line break before @url of POSIX
18236         specifications.
18237         Suggested by Werner Lemberg.
18238
18239 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18240
18241         strtod: fix const diagnostic
18242         * lib/strtod.c (strtod): Don't assign const char * to char *,
18243         as this elicits a warning from GCC when warnings are enabled.
18244
18245 2010-08-10  Pádraig Brady <P@draigbrady.com>
18246         and Eric Blake  <eblake@redhat.com>
18247
18248         copy-acl: ignore ENOTSUP on HP-UX
18249         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
18250         so that it is available for HP-UX.
18251         * lib/copy-acl.c (qcopy_acl): Use it.
18252         Reported by Patrick M. Callahan.
18253
18254 2010-08-10  Eric Blake  <eblake@redhat.com>
18255
18256         open, chown: relax license
18257         * modules/open (License): Change to LGPLv2+, with consent by all
18258         authors, for use in augeas.
18259         * modules/chown (License): Likewise.
18260         * modules/lchown (Likewise): Likewise.
18261         Requested by Adam Stokes.
18262
18263 2010-08-09  Karl Berry  <karl@gnu.org>
18264
18265         * build-aux/ar-lib: new file, import from Automake.
18266         * config/srclist.txt: autocheck for updates.
18267
18268 2010-08-09  Eric Blake  <eblake@redhat.com>
18269
18270         readlinkat: adjust client modules
18271         * modules/areadlinkat (Depends-on): Use readlinkat, not
18272         symlinkat.
18273         * modules/areadlinkat-with-size (Depends-on): Likewise.
18274
18275         mknod: be more vocal about danger of running tests as root
18276         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
18277         root, since that is just asking for problems.
18278         Suggested by Bruno Haible, based on a report by Rainer Tammer.
18279
18280         readlinkat: split into its own module
18281         * modules/symlinkat: Split readlinkat...
18282         * modules/readlinkat: ...into separate module.
18283         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
18284         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
18285         * lib/symlinkat.c (readlinkat): Move...
18286         * lib/readlinkat.c: ...into new file.
18287         * modules/symlinkat-tests: Split readlinkat test...
18288         * modules/readlinkat-tests: ...into separate module.
18289         * tests/test-symlinkat.c: Split...
18290         * tests/test-readlinkat.c: ...into new file.
18291         * NEWS: Document the split.
18292         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18293         * lib/unistd.in.h (readlinkat): Likewise.
18294         Suggested by Bruno Haible.
18295
18296 2010-08-08  Bruno Haible  <bruno@clisp.org>
18297
18298         memxfrm: Speed up.
18299         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
18300         that usually only one call to strxfrm is necessary for each string
18301         part.
18302         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18303
18304 2010-08-07  Karl Berry  <karl@gnu.org>
18305
18306         * doc/posix-headers/limits.texi,
18307         * doc/posix-functions/malloc.texi,
18308         * doc/posix-functions/strsignal.texi: missing @item.
18309         * doc/ld-version-script.texi: spurious leading i.
18310         * doc/regex.texi (Interval Operators): no commas inside @var.
18311
18312 2010-08-01  Bruno Haible  <bruno@clisp.org>
18313
18314         Integrate the regex documentation.
18315         * doc/gnulib.texi: Define 'cn' index.
18316         (Regular expressions): New a chapter that includes regex.texi and
18317         regexprops-generic.texi.
18318         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
18319         syntax.
18320
18321         Whitespace cleanup.
18322         * doc/regex.texi: Remove trailing spaces.
18323
18324         Add regex documentation.
18325         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
18326         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
18327         Written by Kathy A. Hargreaves and Karl Berry.
18328
18329 2010-08-01  Bruno Haible  <bruno@clisp.org>
18330
18331         link: Update documentation.
18332         * doc/posix-functions/link.texi: Update regarding Solaris.
18333
18334 2010-07-31  Bruno Haible  <bruno@clisp.org>
18335
18336         Update modules list.
18337         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
18338         (String handling <string.h>): Add memcmp2, memxfrm.
18339         (Container data structures): Add xlist, xsublist, xoset.
18340         (Core language properties): Add alignof, unused-parameter.
18341         (Process control, Numeric conversion functions <stdlib.h>): Renamed
18342         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
18343         (Unibyte characters <ctype.h>): New section.
18344         (String handling <string.h>): New section.
18345         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
18346         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
18347         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
18348         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
18349         tan, tanh, tanl, y0, y1, yn.
18350         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
18351         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
18352         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
18353         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
18354         unlockpt, vdprintf, vdprintf-posix.
18355         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
18356         (File system functions): Add concat-filename, sys_file, sys_ioctl,
18357         xconcat-filename.
18358         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
18359         getdtablesize, pipe2, pipe2-safer.
18360         (Security): New section.
18361         (Networking functions): Add accept4.
18362         (Signal handling): Add sigpipe.
18363         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
18364         mbmemcasecoll.
18365         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
18366         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
18367         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
18368         pipe-filter-ii.
18369         (Misc): Add argp-version-etc, login_tty, parse-duration.
18370
18371 2010-07-31  Bruno Haible  <bruno@clisp.org>
18372
18373         Improve doc in MODULES.html.
18374         * modules/linkat (Description): Add the word "function".
18375         * modules/mkfifo (Description): Likewise.
18376         * modules/mknod (Description): Likewise.
18377         * modules/remove (Description): Likewise.
18378         * modules/renameat (Description): Likewise.
18379         * modules/stat (Description): Likewise.
18380         * modules/symlink (Description): Likewise.
18381         * modules/unlink (Description): Likewise.
18382
18383 2010-07-31  Bruno Haible  <bruno@clisp.org>
18384
18385         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
18386         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
18387         option --enable/disable-c++ instead of --enable/disable-cxx.
18388         * NEWS: Mention the change.
18389
18390 2010-07-31  Bruno Haible  <bruno@clisp.org>
18391
18392         readlink, areadlink: Relax test a bit.
18393         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
18394         alternative to ENOTDIR.
18395         * tests/test-areadlink.h (test_areadlink): Likewise.
18396         Reported by Rainer Tammer.
18397
18398 2010-07-31  Bruno Haible  <bruno@clisp.org>
18399
18400         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
18401         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
18402         character, perform the search using U_STRCHR.
18403         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
18404         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
18405         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
18406         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
18407         Suggested by Paolo Bonzini.
18408
18409 2010-07-31  Bruno Haible  <bruno@clisp.org>
18410
18411         unistr/u*-strstr: Fix dependencies.
18412         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
18413         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
18414         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
18415
18416 2010-07-31  Bruno Haible  <bruno@clisp.org>
18417
18418         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
18419         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
18420         the beginning of the loop.
18421         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
18422         cases in 'switch' statement.
18423
18424         unistr/u8-strchr: Fix several bugs.
18425         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
18426         the string. When not found, return NULL, not a pointer near the end.
18427
18428         More tests for unistr/u8-strchr.
18429         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
18430         that the function does not read past the first occurrence of the byte
18431         being searched.
18432         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
18433         * tests/unistr/test-u16-strchr.c (main): New function.
18434         * tests/unistr/test-u32-strchr.c (main): New function.
18435
18436 2010-07-31  Bruno Haible  <bruno@clisp.org>
18437
18438         posix-modules: Ignore backup files of documentation files.
18439         * posix-modules: grep only through files named *.texi.
18440
18441 2010-07-31  Bruno Haible  <bruno@clisp.org>
18442
18443         symlinkat: Fix documentation.
18444         * doc/posix-functions/readlinkat.texi: Fix module name.
18445
18446 2010-07-31  Bruno Haible  <bruno@clisp.org>
18447
18448         fchownat: Replace also when chown has the trailing slash bug.
18449         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
18450         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
18451         introduced on 2010-04-10.
18452         Reported by Rainer Tammer.
18453
18454 2010-07-31  Bruno Haible  <bruno@clisp.org>
18455
18456         linkat: Work around AIX 7.1 bug.
18457         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
18458         whether linkat handles trailing slash correctly. If not, replace linkat
18459         and define LINKAT_TRAILING_SLASH_BUG.
18460         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
18461         check whether (fd1,file1) points to a directory if file1 or file2 ends
18462         in a slash. Code taken from lib/link.c.
18463         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
18464         Reported by Rainer Tammer.
18465
18466 2010-07-31  Bruno Haible  <bruno@clisp.org>
18467
18468         Correctly determine whether pow is available in libc on AIX 7 with xlc.
18469         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
18470         This disables an xlc optimization that was causing wrong test results.
18471         Reported by Rainer Tammer.
18472
18473 2010-07-31  Bruno Haible  <bruno@clisp.org>
18474
18475         iconv: Work around AIX 6.1..7.1 bug.
18476         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
18477         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
18478         cross-compiling, guess no on all versions of AIX.
18479         Reported by Rainer Tammer.
18480
18481 2010-07-31  Bruno Haible  <bruno@clisp.org>
18482
18483         readlink: Relax test a bit.
18484         * tests/test-readlink.h (test_readlink): Allow different errno value
18485         when readlink is called with a file name that ends in / and refers to
18486         a file.
18487         Suggested by Eric Blake.
18488         Reported by Rainer Tammer.
18489
18490 2010-07-31  Bruno Haible  <bruno@clisp.org>
18491
18492         copysign: Does not require -lm on glibc systems.
18493         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
18494         gl_COMMON_DOUBLE_MATHFUNC.
18495         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
18496
18497 2010-07-31  Bruno Haible  <bruno@clisp.org>
18498
18499         duplocale: Work around AIX 7.1 bug.
18500         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
18501         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
18502         * lib/duplocale.c (rpl_duplocale): Update comment.
18503         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
18504         Reported by Rainer Tammer.
18505
18506 2010-07-30  Bruno Haible  <bruno@clisp.org>
18507
18508         dirfd: Avoid link error on AIX 7.1.
18509         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
18510         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
18511         exist, set REPLACE_DIRFD.
18512         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
18513         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
18514         * doc/posix-functions/dirfd.texi: Update.
18515         Reported by Rainer Tammer.
18516
18517 2010-07-30  Eric Blake  <eblake@redhat.com>
18518
18519         strtod: next round of AIX fixes
18520         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
18521         exponent.
18522         * tests/test-strtod.c (main): Enhance tests.
18523         * doc/posix-functions/strtod.texi (strtod): Document next bug.
18524         Reported by Rainer Tammer.
18525
18526         futimens: fix configure check
18527         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
18528         Reported by Bruno Haible.
18529
18530 2010-07-30  Bruno Haible  <bruno@clisp.org>
18531
18532         getline: Update regarding AIX.
18533         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
18534         Reported by Rainer Tammer.
18535
18536 2010-07-30  Bruno Haible  <bruno@clisp.org>
18537
18538         wcwidth: Drop replacement on AIX 7.
18539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
18540         AIX 7.
18541         Reported by Rainer Tammer.
18542
18543 2010-07-30  Bruno Haible  <bruno@clisp.org>
18544
18545         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
18546         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
18547         a 'char *'.
18548         Reported by Rainer Tammer.
18549
18550 2010-07-30  Bruno Haible  <bruno@clisp.org>
18551
18552         unlink: Update regarding AIX.
18553         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
18554         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18555         Reported by Rainer Tammer.
18556
18557 2010-07-30  Bruno Haible  <bruno@clisp.org>
18558
18559         symlink: Update regarding AIX.
18560         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18561         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18562         Reported by Rainer Tammer.
18563
18564 2010-07-30  Bruno Haible  <bruno@clisp.org>
18565
18566         strndup: Update regarding AIX.
18567         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18568         AIX 7.
18569         Reported by Rainer Tammer.
18570
18571 2010-07-30  Bruno Haible  <bruno@clisp.org>
18572
18573         stat: Update regarding AIX.
18574         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18575         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18576         Reported by Rainer Tammer.
18577
18578 2010-07-30  Bruno Haible  <bruno@clisp.org>
18579
18580         truncl: Fix autoconf test.
18581         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18582         whether truncl works.
18583         Reported by Rainer Tammer.
18584
18585 2010-07-30  Bruno Haible  <bruno@clisp.org>
18586
18587         round: Update regarding AIX.
18588         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18589         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18590         Reported by Rainer Tammer.
18591
18592 2010-07-30  Bruno Haible  <bruno@clisp.org>
18593
18594         rename: Update regarding AIX.
18595         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18596         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18597         Reported by Rainer Tammer.
18598
18599 2010-07-30  Bruno Haible  <bruno@clisp.org>
18600
18601         printf.m4: Update regarding AIX.
18602         * m4/printf.m4: Update comments regarding AIX.
18603         Reported by Rainer Tammer.
18604
18605 2010-07-30  Bruno Haible  <bruno@clisp.org>
18606
18607         iconv: Update regarding AIX.
18608         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18609         AIX 7.
18610         Reported by Rainer Tammer.
18611
18612 2010-07-30  Bruno Haible  <bruno@clisp.org>
18613
18614         getopt: Update regarding AIX.
18615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18616         no on AIX.
18617         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18618         Reported by Rainer Tammer.
18619
18620 2010-07-30  Bruno Haible  <bruno@clisp.org>
18621
18622         ldexpl; Update regarding AIX.
18623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18624         on AIX 7.
18625         Reported by Rainer Tammer.
18626
18627 2010-07-30  Bruno Haible  <bruno@clisp.org>
18628
18629         frexpl: Update regarding AIX.
18630         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18631         on AIX 7.
18632         Reported by Rainer Tammer.
18633
18634 2010-07-30  Bruno Haible  <bruno@clisp.org>
18635
18636         open, fopen: Update regarding AIX.
18637         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18638         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18639         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18640         * doc/posix-functions/fopen.texi: Likewise.
18641         Reported by Rainer Tammer.
18642
18643 2010-07-30  Bruno Haible  <bruno@clisp.org>
18644
18645         chown: Update doc regarding AIX.
18646         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18647         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18648         Reported by Rainer Tammer.
18649
18650 2010-07-30  Eric Blake  <eblake@redhat.com>
18651
18652         strtod: fix bug in replacement function on AIX
18653         * lib/strtod.c (strtod): Special case broken "0x" parse in
18654         underlying strtod.
18655         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18656         * doc/posix-functions/strtod.texi (strtod): Likewise.
18657         Reported by Rainer Tammer.
18658
18659 2010-07-30  Bruno Haible  <bruno@clisp.org>
18660
18661         mbrlen: Fix cross-compilation guess for AIX.
18662         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18663         guess. Leftover from 2008-12-22.
18664
18665 2010-07-30  Bruno Haible  <bruno@clisp.org>
18666
18667         mbrtowc: Fix cross-compilation guess for AIX.
18668         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18669         guess. Leftover from 2008-12-21.
18670
18671 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18672
18673         init.sh: work around trap limitation of some shells
18674         * tests/init.sh (setup_): Move exit trap outside of shell function.
18675
18676 2010-07-29  Eric Blake  <eblake@redhat.com>
18677
18678         strtod: aid debugging
18679         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18680         understanding why strtod is rejected.
18681
18682 2010-07-28  Bruno Haible  <bruno@clisp.org>
18683
18684         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18685         * lib/unistr/u8-chr.c: Include <string.h>.
18686         * tests/unistr/test-u8-chr.c: Likewise.
18687         * tests/unistr/test-u16-chr.c: Likewise.
18688         * tests/unistr/test-u32-chr.c: Likewise.
18689         * tests/unistr/test-u8-strchr.c: Likewise.
18690         * tests/unistr/test-u16-strchr.c: Likewise.
18691         * tests/unistr/test-u32-strchr.c: Likewise.
18692         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18693         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18694         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18695         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18696
18697 2010-07-28  Bruno Haible  <bruno@clisp.org>
18698
18699         Use spaces for indentation, not tabs.
18700         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18701
18702 2010-07-27  Bruno Haible  <bruno@clisp.org>
18703
18704         mbspcasecmp: Fix function specification.
18705         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18706         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18707         Reported by Eric Blake <eblake@redhat.com>.
18708
18709 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18710
18711         timespec: use cast and not conditional, as truncation isn't possible
18712         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18713         instead of a conditional.  Comment about the situation in more detail.
18714         This undoes most of the 2009-10-29 patch.
18715
18716 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18717
18718         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18719         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18720         * lib/unistr/u8-strchr.c: Likewise.
18721         * modules/unistr/u8-chr: Depend on memchr.
18722
18723         unistr/u*-strchr: add tests
18724         * modules/unistr/u8-strchr-tests: New file.
18725         * modules/unistr/u16-strchr-tests: New file.
18726         * modules/unistr/u32-strchr-tests: New file.
18727         * tests/unistr/test-strchr.h: New file.
18728         * tests/unistr/test-u8-strchr.c: New file.
18729         * tests/unistr/test-u16-strchr.c: New file.
18730         * tests/unistr/test-u32-strchr.c: New file.
18731
18732         unistr/u*-chr: test multibyte sequences more
18733         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18734         test vector.
18735         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18736         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18737         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18738
18739         unistr/u*-chr: test multibyte sequences
18740         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18741
18742         unistr/u*-chr: prepare for multibyte tests
18743         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18744         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18745         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18746         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18747         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18748         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18749
18750 2010-07-18  Bruno Haible  <bruno@clisp.org>
18751
18752         unistr/u8-strchr: Optimize non-ASCII argument case.
18753         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18754         because the first byte often matches anyway.
18755         Reported by Pádraig Brady <P@draigbrady.com>.
18756
18757 2010-07-15  Karl Berry  <karl@gnu.org>
18758
18759         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18760
18761 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18762
18763         getcwd: on Solaris, work better if ancestors are inaccessible
18764         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18765         buffer and size, try again with a large buffer.  This works better
18766         on Solaris, since its getcwd succeeds even if the path to the root
18767         is inaccessible, and this is helpful in common cases such as .zfs
18768         hidden directories.  Problem reported by J Chapman Flack in
18769         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18770         Use system getcwd if it's declared, not merely if it's partly
18771         working; use the partly-working test only to avoid needless effort
18772         if the system getcwd fails.
18773         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18774         comment that was already obsolete and is now even more obsolete.
18775         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18776         now might call strdup.
18777
18778 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18779
18780         pthread: Add enough so that coreutils/src/sort.c compiles.
18781         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18782         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18783         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18784         Include <sys/types.h>, in case it defines pthread_t.
18785         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18786         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18787         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18788         (pthread_rwlockattr_t, pthread_spinlock_t):
18789         New typedefs, if HAVE_PTHREAD_T is not defined.
18790         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18791         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18792         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18793         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18794         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18795         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18796         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18797         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18798         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18799         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18800         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18801         New macros.
18802         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18803         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18804         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18805         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18806         (pthread_spin_unlock): New dummy functions.
18807         (pthread_create): Return EAGAIN; don't set errno.
18808         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18809         require AC_C_INLINE.
18810         * modules/pthread (Depends-on): Add sched, time.
18811         (pthread.h): Use AM_V_GEN.
18812
18813 2010-07-13  Bruno Haible  <bruno@clisp.org>
18814
18815         striconveh: Don't malloc memory if the result buffer is sufficient.
18816         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18817         buffer if its size is sufficient.
18818         Reported by Ludovic Courtès <ludo@gnu.org>.
18819
18820 2010-07-13  Bruno Haible  <bruno@clisp.org>
18821
18822         strtod: Add safety check.
18823         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18824
18825 2010-07-12  Bruno Haible  <bruno@clisp.org>
18826
18827         Unify tests that set gl_cv_func_ldexpl_no_libm.
18828         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18829         gl_FUNC_LDEXPL.
18830         (gl_FUNC_LDEXPL): Invoke it.
18831         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18832
18833 2010-07-12  Bruno Haible  <bruno@clisp.org>
18834
18835         Unify tests that set gl_cv_func_ldexp_no_libm.
18836         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18837         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18838         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18839         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18840         * modules/strtod (Files): Add m4/ldexp.m4.
18841
18842 2010-07-12  Bruno Haible  <bruno@clisp.org>
18843
18844         Unify tests that set gl_cv_func_frexpl_no_libm.
18845         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18846         gl_FUNC_FREXPL_NO_LIBM.
18847         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18848         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18849
18850 2010-07-12  Bruno Haible  <bruno@clisp.org>
18851
18852         Unify tests that set gl_cv_func_frexp_no_libm.
18853         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18854         gl_FUNC_FREXP_NO_LIBM.
18855         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18856         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18857
18858 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18859
18860         memcoll: clarify sizes versus lengths, document better, and tweak perf
18861         * lib/memcoll.c (strcoll_loop, memcoll0):
18862         Improve quality of descriptive comments.  Name variables
18863         consistently as to whether they are lengths (which do not include
18864         terminating null) versus sizes (which do).
18865         * lib/xmemcoll.c (xmemcoll0): Likewise.
18866         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18867         returned when s1size == 0; this is easier to compile and saves
18868         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18869
18870 2010-07-12  Bruno Haible  <bruno@clisp.org>
18871
18872         Tests for module '_Exit'.
18873         * modules/_Exit-tests: New file.
18874         * tests/test-_Exit.sh: New file.
18875         * tests/test-_Exit.c: New file.
18876
18877         New module '_Exit'.
18878         * lib/stdlib.in.h (__attribute__): New macro.
18879         (_Exit): New declaration.
18880         * lib/_Exit.c: New file.
18881         * m4/_Exit.m4: New file.
18882         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18883         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18884         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18885         * modules/_Exit: New file.
18886         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18887         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18888
18889 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18890
18891         strtod: make it more-accurate typically, and don't require libm
18892         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18893         Include limits.h.  Don't include string.h.
18894         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18895         (locale_isspace): New function, so that no casts are needed to
18896         check whether *s is a space.
18897         (ldexp): Provide an unused dummy if not available.
18898         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18899         (strtod): Use them.  This implementation prefers to use the
18900         underlying strtod if available, falling back on our own code
18901         only to fix known bugs.  This is more likely to produce an
18902         accurate result.  Also, it avoids the use of libm functions.
18903         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18904         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18905         was absent, but it caused a test failure with coreutils.
18906         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18907         with libm.
18908         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18909         * modules/strtod-tests (Makefile.am): Likewise.
18910
18911 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18912             Bruno Haible  <bruno@clisp.org>
18913
18914         unistr/u8-strchr: Optimize ASCII argument case.
18915         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18916
18917 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18918
18919         (x)memcoll: minor tweaks
18920         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18921         is after the type that it qualifies.
18922         (memcoll0): Likewise.
18923         * lib/memcoll.h (memcoll0): Likewise.
18924         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18925         * lib/xmemcoll.h (xmemcoll0): Likewise.
18926         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18927         differs from memcoll in that the NUL byte is part of the argument.
18928         Omit the abort-checks, as performance is a real issue here.  Plus,
18929         the checks were wrong anyway (an off-by-one error).  Omit local
18930         variable 'diff', as it's a bit clearer that way.
18931         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18932         no longer needed.
18933
18934 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18935
18936         (x)memcoll: speedup when input is known to be NUL delimited
18937         * lib/memcoll.c: Include stdlib.
18938         (memcoll0): New function.
18939         (strcoll_loop): New function, refactored for use in both memcoll
18940         and memcoll0.
18941         * lib/memcoll.h (memcoll0): Add prototype.
18942         * lib/xmemcoll.c (xmemcoll0): New function.
18943         (collate_error): New function, refactored for use in both xmemcoll
18944         and xmemcoll0.
18945         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18946         * m4/memcoll.m4: add inline invocation.
18947
18948 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18949
18950         * build-aux/bootstrap: Remove any local translations
18951         from the translation project synchronization directory,
18952         so that local only translations are not distributed.
18953
18954 2010-07-04  Bruno Haible  <bruno@clisp.org>
18955
18956         fsusage: Clarify which code applies to which platforms.
18957         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18958         platform.
18959         * lib/fsusage.c (get_fs_usage): Likewise.
18960
18961 2010-07-04  Bruno Haible  <bruno@clisp.org>
18962
18963         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18964         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18965         Reported by Martin Lambers <marlam@marlam.de>.
18966
18967 2010-07-04  Jim Meyering  <meyering@redhat.com>
18968
18969         hash: once again explicitly disallow insertion of NULL
18970         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18971         inserting a NULL pointer cannot work with these functions.
18972         Add a comment with details.
18973         This reverts part of the 2010-07-01 commit, 5bef1a35
18974         "hash: extend module to deal with non-pointer keys".
18975
18976 2010-07-01  Bruno Haible  <bruno@clisp.org>
18977
18978         stdbool: Update doc.
18979         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18980         Info from Christian Weisgerber <naddy@mips.inka.de>.
18981
18982 2010-07-01  Jim Meyering  <meyering@redhat.com>
18983
18984         hash: extend module to deal with non-pointer keys
18985         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18986         but that allows insertion of non-pointer entries.
18987         Do not disallow an ENTRY value of NULL.
18988         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18989         * lib/hash.h (hash_insert0): Declare.
18990
18991 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18992
18993         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18994         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18995         not present (i.e. with autoconf 2.59 and when using gettextize, not
18996         gnulib), require AC_GNU_SOURCE instead.
18997
18998 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18999
19000         idpriv-drop: Fix tests.
19001         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19002         not to the test-idpriv-droptemp program.
19003
19004 2010-06-29  Bruno Haible  <bruno@clisp.org>
19005
19006         string: Fix syntax error with g++ 2.96.
19007         * lib/string.in.h (__pure__): Remove definition.
19008         (_GL_ATTRIBUTE_PURE): New macro.
19009         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19010         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19011         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19012
19013 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19014
19015         unitypes: Fix bug introduced on 2010-05-18.
19016         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19017
19018 2010-06-22  Eric Blake  <eblake@redhat.com>
19019
19020         memmem: slight optimization
19021         * lib/str-two-way.h (critical_factorization): Update comments.
19022         Reduce work during factorization phase.
19023         Reported by Carlos Bueno <carlos@bueno.org>.
19024
19025 2010-06-21  Bruno Haible  <bruno@clisp.org>
19026
19027         Fix HAVE_CALLOC_POSIX misnomer.
19028         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
19029         !HAVE_CALLOC_POSIX.
19030         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
19031         HAVE_CALLOC_POSIX.
19032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
19033         instead of HAVE_CALLOC_POSIX.
19034         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
19035         HAVE_CALLOC_POSIX.
19036
19037         Use modern idiom for calloc() replacement.
19038         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
19039         AC_FUNC_CALLOC.
19040         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
19041         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
19042         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19043         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
19044         (gl_REPLACE_CALLOC): New macro.
19045
19046 2010-06-21  Bruno Haible  <bruno@clisp.org>
19047
19048         Fix HAVE_REALLOC_POSIX misnomer.
19049         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
19050         !HAVE_REALLOC_POSIX.
19051         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
19052         HAVE_REALLOC_POSIX.
19053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19054         instead of HAVE_REALLOC_POSIX.
19055         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19056         HAVE_REALLOC_POSIX.
19057
19058         Use modern idiom for realloc() replacement.
19059         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19060         AC_FUNC_REALLOC.
19061         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19062         Autoconf's AC_FUNC_REALLOC.
19063         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19064         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19065         (gl_REPLACE_REALLOC): New macro.
19066         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19067
19068 2010-06-21  Bruno Haible  <bruno@clisp.org>
19069
19070         Fix HAVE_MALLOC_POSIX misnomer.
19071         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19072         !HAVE_MALLOC_POSIX.
19073         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19074         HAVE_MALLOC_POSIX.
19075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19076         instead of HAVE_MALLOC_POSIX.
19077         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19078         HAVE_MALLOC_POSIX.
19079
19080         Use modern idiom for malloc() replacement.
19081         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19082         AC_FUNC_MALLOC.
19083         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19084         Autoconf's AC_FUNC_MALLOC.
19085         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19086         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19087         (gl_REPLACE_MALLOC): New macro.
19088         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19089
19090 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19091
19092         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19093         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19094         This macro takes 3 arguments, not 4.
19095
19096 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19097
19098         ipv6: fix detection under mingw
19099         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19100         in6_addr.
19101
19102 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19103
19104         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19105         that strtod() works when cross-compiling to a glibc version known
19106         to work.
19107
19108 2010-06-15  Bruno Haible  <bruno@clisp.org>
19109
19110         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19111
19112 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19113
19114         select: Correct timeout.
19115         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19116
19117 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19118
19119         git-version-gen: init shell var to avoid env var influence
19120         * build-aux/git-version-gen (v): Init shell var to empty.
19121
19122 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
19123
19124         priv-set: Don't assume that priv.h exists merely because getppriv does.
19125         See Jan Andersen's bug report about AIX 5L in
19126         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
19127         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
19128         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
19129         * lib/priv-set.h: Likewise.
19130         * tests/test-priv-set.c: Likewise.
19131
19132 2010-06-13  Bruno Haible  <bruno@clisp.org>
19133
19134         relocatable: Make it easier to test whether to install wrappers.
19135         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
19136         RELOCATABLE_VIA_WRAPPER.
19137
19138 2010-06-13  Bruno Haible  <bruno@clisp.org>
19139
19140         gnulib-tool: Display specified modules and dependencies differently.
19141         * gnulib-tool (func_show_module_list): New function.
19142         (func_import, func_create_testdir): Invoke it.
19143         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19144
19145 2010-06-13  Bruno Haible  <bruno@clisp.org>
19146
19147         gnulib-tool: Align code of func_import and func_create_testdir.
19148         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
19149         specified_modules.
19150
19151 2010-06-12  Jim Meyering  <meyering@redhat.com>
19152
19153         test-inttostr: avoid spurious failure on Solaris 9
19154         * tests/test-inttostr.c (main): Skip the test when snprintf fails
19155         to accept "%ju".  Reported by Bruno Haible.
19156
19157 2010-06-11  Jim Meyering  <meyering@redhat.com>
19158
19159         test-sys_socket: mark variables as used more readably
19160         * tests/test-sys_socket.c (main): Mark otherwise unused variables
19161         as "used" explicitly via (void) statement casts.  This is more
19162         readable than using them in an artificial return expression.
19163         Suggestion from Bruno Haible.
19164
19165 2010-06-11  Bruno Haible  <bruno@clisp.org>
19166
19167         Avoid some more warnings from "gcc -Wwrite-strings".
19168         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
19169         to 'const char *'.
19170         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
19171         * tests/test-c-strcasestr.c (main): Likewise.
19172         * tests/test-mbscasestr1.c (main): Likewise.
19173         * tests/test-mbscasestr2.c (main): Likewise.
19174         * tests/test-memmem.c (main): Likewise.
19175         * tests/test-strstr.c (main): Likewise.
19176         * tests/test-strcasestr.c (main): Likewise.
19177
19178 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19179
19180         init.sh: change framework_failure_ to fail with status 99, not 1
19181         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
19182         automake's parallel-tests rule that this is an unexpected failure,
19183         even if the test is listed in XFAIL_TESTS.
19184
19185 2010-06-11  Jim Meyering  <meyering@redhat.com>
19186
19187         test-inttostr: avoid warnings about 4-6KB literal strings
19188         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
19189         Include "macros.h", for its definition of ASSERT.
19190         (CK): s/assert/ASSERT/
19191         * modules/inttostr-tests (Files): Add macros.h.
19192
19193         init.sh: don't use $ME_ or skip_ before they are defined
19194         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
19195         their first uses.  Also hoist their companions: warn_, fail_,
19196         framework_failure_, $stderr_fileno.  Prompted by a patch from
19197         Stefano Lattarini.
19198
19199         test-sys_socket: avoid set-but-not-used warnings from gcc
19200         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
19201         avoid warning about set-but-not-used variables.
19202
19203         test-xvasprintf: avoid 'const' discard warnings
19204         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
19205         "const" when assigning from literal strings.
19206         (test_xasprintf): Add "void" in function argument list to placate
19207         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
19208
19209         tests: avoid compilation warnings in argmatch and exclude tests...
19210         in packages that define ARGMATCH_DIE_DECL, like coreutils.
19211         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
19212         Since it always exits, declare with the "noreturn" attribute.
19213         * tests/test-argmatch.c: Likewise.
19214
19215         tests: avoid 'const' discard warnings in mbsstr tests
19216         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
19217         * tests/test-mbsstr2.c (main): Likewise.
19218
19219         test-verify: avoid warning from gcc's -Wmissing-declarations
19220         * tests/test-verify.c (function): Declare to be static.
19221
19222         test-inttostr.c: include <string.h> for use of strcmp
19223         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
19224
19225         test-linkat: avoid failed assertion on "other" architectures
19226         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
19227         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
19228         sparc: https://bugs.launchpad.net/bugs/591968
19229
19230 2010-06-11  Jim Meyering  <meyering@redhat.com>
19231
19232         printf.m4: avoid autoconf's "Expanded Before Required" warning
19233         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
19234         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
19235         autoconf warning.
19236
19237 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
19238
19239         Replacement header templates are now named with ".in", not "_".
19240         * doc/gnulib-intro.texi: Correct.
19241
19242 2010-06-10  Jim Meyering  <meyering@redhat.com>
19243
19244         inttostr-tests: depend on snprintf, not snprintf-posix
19245         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
19246         snprintf-posix, to avoid this aclocal failure:
19247           missing file gnulib-tests/vasnprintf.c
19248           configure.ac:45: error: expected source file, required through \
19249           AC_LIBSOURCES, not found
19250
19251 2010-06-10  Jim Meyering  <meyering@redhat.com>
19252
19253         inttostr: add a new function, inttostr, and tests
19254         The namesake function was not available.  The existence of the
19255         template file, inttostr.c makes its addition nontrivial.
19256         * lib/anytostr.c: Rename from inttostr.c.
19257         (anytostr): Rename from inttostr.
19258         * lib/inttostr.c: New file.
19259         * modules/inttostr (Files): Add anytostr.c.
19260         (Makefile.am): Set lib_SOURCES instead of ...
19261         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
19262         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
19263         * lib/offtostr.c: Likewise.
19264         * lib/uinttostr.c: Likewise.
19265         * lib/umaxtostr.c: Likewise.
19266         * modules/inttostr-tests: New file.
19267         * tests/test-inttostr.c: New file.  Test these functions.
19268
19269 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
19270             Bruno Haible  <bruno@clisp.org>
19271
19272         Add "Extending Gnulib" chapter to manual.
19273         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
19274         chapter.
19275         (Extending Gnulib): New chapter.
19276         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
19277         chapter.
19278
19279 2010-06-09  Bruno Haible  <bruno@clisp.org>
19280
19281         Avoid relocwrapper link errors due to gnulib replacement functions.
19282         * lib/areadlink.c: Use the system's malloc, realloc functions.
19283         (areadlink): Set errno to ENOMEM explicitly.
19284         * modules/areadlink (Depends-on): Remove malloc-posix.
19285         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19286
19287 2010-06-09  Bruno Haible  <bruno@clisp.org>
19288
19289         Avoid relocwrapper link errors due to gnulib replacement functions.
19290         * lib/canonicalize-lgpl.c: Use the system's malloc function.
19291         * lib/malloca.c: Likewise.
19292         * lib/relocatable.c: Likewise.
19293         * lib/progreloc.c: Use the system's malloc, sprintf functions.
19294         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
19295         * lib/setenv.c: Use the system's malloc, realloc functions.
19296         * lib/strerror.c: Use the system's sprintf function.
19297         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19298
19299 2010-06-04  Bruno Haible  <bruno@clisp.org>
19300
19301         Prefer documented low-level autoconf macro names.
19302         * m4/lib-link.m4: Use m4_translit instead of translit.
19303         * m4/environ.m4: Likewise.
19304         * m4/mathfunc.m4: Likewise.
19305         * m4/onceonly.m4: Likewise.
19306         * m4/stdint.m4: Likewise.
19307         Suggested by Eric Blake.
19308
19309 2010-06-04  Martin Lambers  <marlam@marlam.de>
19310             Bruno Haible  <bruno@clisp.org>
19311
19312         havelib: Allow library names with '+' characters.
19313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
19314         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
19315
19316 2010-06-09  Bruno Haible  <bruno@clisp.org>
19317
19318         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
19319         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
19320         realloc failed.
19321
19322 2010-06-08  Peter Simons  <simons@cryp.to>
19323
19324         maint.mk: make the news-check rule more configurable
19325         * top/maint.mk (news-check-lines-spec): New variable.
19326         (news-check): Use "sed -n 1,10p" in place of "head".
19327
19328 2010-06-07  Jim Meyering  <meyering@redhat.com>
19329
19330         do-release-commit-and-tag: fix typo in --help
19331         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
19332
19333         regex: avoid new dead-code warning with gcc-4.6.0
19334         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
19335         if-block containing a while-loop.  It's been unused for at least
19336         5 years.
19337
19338 2010-06-05  Bruno Haible  <bruno@clisp.org>
19339
19340         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
19341         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
19342
19343 2010-06-04  Bruno Haible  <bruno@clisp.org>
19344
19345         Update to GNU gettext 0.18.1.
19346         * modules/gettext (configure.ac): Require gettext infrastructure from
19347         version 0.18.1.
19348
19349 2010-06-03  Bruno Haible  <bruno@clisp.org>
19350
19351         Don't use AC_LIBOBJ with file names in subdirectories.
19352         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
19353         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
19354         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
19355         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
19356         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
19357         gl_LIBUNISTRING_LIBSOURCE.
19358         (Makefile.am): Augment lib_SOURCES here, conditionally.
19359         * NEWS: Drop requirement for Automake option 'subdir-objects'.
19360
19361 2010-06-03  Bruno Haible  <bruno@clisp.org>
19362
19363         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
19364         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
19365         expansion does not end with a newline.
19366         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
19367         unnecessary newline.
19368
19369 2010-06-03  Bruno Haible  <bruno@clisp.org>
19370
19371         Reduce dependencies.
19372         * tests/test-quotearg.h: New file, extracted from
19373         tests/test-quotearg.c.
19374         * tests/test-quotearg-simple.c: New file, extracted from
19375         tests/test-quotearg.c.
19376         * tests/test-quotearg.c: Don't include <ctype.h>.
19377         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
19378         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
19379         use_quote_double_quotes, use_quotearg_colon): Moved to
19380         tests/test-quotearg.h.
19381         (results_g, flag_results, custom_quotes, custom_results): Moved
19382         to tests/test-quotearg-simple.c.
19383         (main): Moved the part that does not depend on gettext to
19384         tests/test-quotearg-simple.c. Return 77 if the test cannot be
19385         performed.
19386         * modules/quotearg-simple: New file.
19387         * modules/quotearg-simple-tests: New file.
19388         * modules/quotearg (Depends-on): Add quotearg-simple.
19389         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
19390         (Files): Add tests/test-quotearg.h.
19391         Reported by Paolo Bonzini.
19392
19393 2010-06-03  Bruno Haible  <bruno@clisp.org>
19394
19395         Reduce dependencies.
19396         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
19397
19398 2010-06-03  Bruno Haible  <bruno@clisp.org>
19399
19400         time: Undefine more broken macros.
19401         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
19402         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
19403         Reported by Eric Blake.
19404
19405 2010-06-03  Bruno Haible  <bruno@clisp.org>
19406
19407         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
19408         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
19409         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
19410         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
19411         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
19412         Reported by Ludovic Courtès <ludo@gnu.org>.
19413
19414 2010-06-02  Eric Blake  <eblake@redhat.com>
19415
19416         time: work with mingw + pthreads-win32 library
19417         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
19418         if timespec is defined only in pthread.h.
19419         * modules/time (Makefile.am): Substitute it.
19420         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
19421         <pthread.h>, when needed.
19422         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
19423         from the library.
19424
19425 2010-05-31  Bruno Haible  <bruno@clisp.org>
19426
19427         Avoid expanding two macros in the wrong order.
19428         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
19429         gl_LIBUNISTRING if it is defined.
19430         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
19431         autoconf >= 2.64.
19432         Reported by Ludovic Courtès <ludo@gnu.org>.
19433
19434 2010-05-27  Jim Meyering  <meyering@redhat.com>
19435
19436         maint.mk: also prohibit "#undef" of always-defined symbols
19437         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
19438         Allow more than one space before the symbol name.
19439         (sc_prohibit_always-defined_macros): Use grep's -E, now that
19440         the regexp uses alternation.
19441
19442 2010-05-26  Eric Blake  <eblake@redhat.com>
19443
19444         maint.mk: avoid echo -e
19445         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
19446         Convert all uses of echo -* to printf.
19447         Reported by Matthias Bolte.
19448
19449 2010-05-25  Bruno Haible  <bruno@clisp.org>
19450
19451         Update to GNU gettext 0.18, part 2.
19452         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
19453         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
19454
19455 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19456
19457         Add missing include in test-pwrite.c.
19458         * tests/test-pwrite.c: Include string.h, for strcmp.
19459
19460 2010-05-24  Bruno Haible  <bruno@clisp.org>
19461
19462         * NEWS: Mention requirement for Automake option 'subdir-objects'.
19463
19464 2010-05-24  Bruno Haible  <bruno@clisp.org>
19465
19466         Don't use conversion with transliteration in u{8,16,32}_strcoll.
19467         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
19468         iconveh_error argument.
19469         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
19470         U_STRCONV_TO_LOCALE.
19471         * lib/unistr/u16-strcoll.c: Likewise.
19472         * lib/unistr/u32-strcoll.c: Likewise.
19473         * modules/unistr/u8-strcoll (Depends-on): Add
19474         uniconv/u8-strconv-to-enc, localcharset. Remove
19475         uniconv/u8-strconv-to-locale.
19476         (configure.ac): Bump version number.
19477         * modules/unistr/u16-strcoll (Depends-on): Add
19478         uniconv/u16-strconv-to-enc, localcharset. Remove
19479         uniconv/u16-strconv-to-locale.
19480         (configure.ac): Bump version number.
19481         * modules/unistr/u32-strcoll (Depends-on): Add
19482         uniconv/u32-strconv-to-enc, localcharset. Remove
19483         uniconv/u32-strconv-to-locale.
19484         (configure.ac): Bump version number.
19485
19486 2010-05-24  Bruno Haible  <bruno@clisp.org>
19487
19488         Avoid a test failure on NetBSD 5.0.
19489         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
19490         an iconv() bug.
19491
19492 2010-05-24  Bruno Haible  <bruno@clisp.org>
19493
19494         Adjust #include directive style.
19495         * modules/regex (Includes): Recommend to write <regex.h>.
19496
19497 2010-05-24  Bruno Haible  <bruno@clisp.org>
19498
19499         regex: Don't require alloca.
19500         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
19501         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
19502         only inside if (0).
19503
19504 2010-05-23  Jim Meyering  <meyering@redhat.com>
19505
19506         test-renameat.c: include <sys/stat.h>
19507         * tests/test-renameat.c: Include <sys/stat.h>; required for
19508         definition of S_IS* macros.
19509
19510 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
19511
19512         Update maintainer documentation for 'relocatable-prog' module.
19513         * doc/relocatable-maint.texi: Update.
19514         Comments by Bruno Haible.
19515
19516 2010-05-23  Bruno Haible  <bruno@clisp.org>
19517
19518         git-merge-changelog: Enable --split-merged-entry by default.
19519         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
19520         (usage): Don't mention this option any more.
19521         Reported by Ralf Wildenhues.
19522
19523 2010-05-23  Jim Meyering  <meyering@redhat.com>
19524
19525         test-pwrite: do not leave behind a test file named "out"
19526         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
19527         The trivial-looking use of init.sh is really necessary.
19528         It ensures that the temporary file, "out", is created in
19529         a temporary directory, and removed upon termination.
19530         * tests/test-pwrite.sh: Re-add file.
19531         * modules/pwrite-tests: Reference it.
19532
19533 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19534
19535         Fix output redirection buglet in init.sh.
19536         * tests/init.sh: Fix redirection of stderr.
19537
19538 2010-05-20  Simon Josefsson  <simon@josefsson.org>
19539
19540         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
19541
19542 2010-05-17  Simon Josefsson  <simon@josefsson.org>
19543
19544         * modules/valgrind-tests: New file.
19545         * m4/valgrind-tests.m4: New file.
19546         * doc/valgrind-tests.texi: New file.
19547         * doc/gnulib.texi (Running self-tests under valgrind): New
19548         section.
19549
19550 2010-05-19  Bruno Haible  <bruno@clisp.org>
19551
19552         Clean up dead code in recent commit.
19553         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
19554         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19555         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19556         Suggested by Paolo Bonzini.
19557
19558 2010-05-19  Bruno Haible  <bruno@clisp.org>
19559
19560         Avoid valgrind error reports from libunistring.
19561         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19562         * modules/libunistring (Files): Add it.
19563         * modules/libunistring-optional (Files): Likewise.
19564
19565 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19566             Bruno Haible  <bruno@clisp.org>
19567
19568         New module 'libunistring-optional'.
19569         * modules/libunistring-optional: New file.
19570         * m4/libunistring-base.m4: New file.
19571         * m4/libunistring-optional.m4: New file.
19572         * lib/unicase.in.h: Renamed from lib/unicase.h.
19573         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19574         * lib/unictype.in.h: Renamed from lib/unictype.h.
19575         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19576         * lib/uniname.in.h: Renamed from lib/uniname.h.
19577         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19578         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19579         * lib/unistr.in.h: Renamed from lib/unistr.h.
19580         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19581         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19582         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19583         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19584         gl_LIBUNISTRING. If the library was found, determine the installed
19585         version and set LIBUNISTRING_VERSION.
19586         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19587         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19588         handle a configuration option --with-included-libunistring.
19589         * modules/libunistring (Files): Add m4/absolute-header.m4.
19590         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19591         Add m4/libunistring-base.m4.
19592         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19593         (Makefile.am): Build unicase.h from unicase.in.h.
19594         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19595         Add m4/libunistring-base.m4.
19596         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19597         (Makefile.am): Build uniconv.h from uniconv.in.h.
19598         * modules/unictype/base (Files): Use unictype.in.h instead of
19599         unictype.h. Add m4/libunistring-base.m4.
19600         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19601         (Makefile.am): Build unictype.h from unictype.in.h.
19602         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19603         Add m4/libunistring-base.m4.
19604         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19605         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19606         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19607         Add m4/libunistring-base.m4.
19608         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19609         (Makefile.am): Build uniname.h from uniname.in.h.
19610         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19611         Add m4/libunistring-base.m4.
19612         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19613         (Makefile.am): Build uninorm.h from uninorm.in.h.
19614         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19615         unistdio.h. Add m4/libunistring-base.m4.
19616         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19617         (Makefile.am): Build unistdio.h from unistdio.in.h.
19618         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19619         Add m4/libunistring-base.m4.
19620         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19621         (Makefile.am): Build unistr.h from unistr.in.h.
19622         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19623         Add m4/libunistring-base.m4.
19624         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19625         (Makefile.am): Build unitypes.h from unitypes.in.h.
19626         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19627         Add m4/libunistring-base.m4.
19628         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19629         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19630         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19631         uniwidth.h. Add m4/libunistring-base.m4.
19632         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19633         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19634         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19635         instead of augmenting lib_SOURCES.
19636         * modules/unicase/empty-suffix-context: Likewise.
19637         * modules/unicase/locale-language: Likewise.
19638         * modules/unicase/tolower: Likewise.
19639         * modules/unicase/totitle: Likewise.
19640         * modules/unicase/toupper: Likewise.
19641         * modules/unicase/u8-casecmp: Likewise.
19642         * modules/unicase/u8-casecoll: Likewise.
19643         * modules/unicase/u8-casefold: Likewise.
19644         * modules/unicase/u8-casexfrm: Likewise.
19645         * modules/unicase/u8-ct-casefold: Likewise.
19646         * modules/unicase/u8-ct-tolower: Likewise.
19647         * modules/unicase/u8-ct-totitle: Likewise.
19648         * modules/unicase/u8-ct-toupper: Likewise.
19649         * modules/unicase/u8-is-cased: Likewise.
19650         * modules/unicase/u8-is-casefolded: Likewise.
19651         * modules/unicase/u8-is-lowercase: Likewise.
19652         * modules/unicase/u8-is-titlecase: Likewise.
19653         * modules/unicase/u8-is-uppercase: Likewise.
19654         * modules/unicase/u8-prefix-context: Likewise.
19655         * modules/unicase/u8-suffix-context: Likewise.
19656         * modules/unicase/u8-tolower: Likewise.
19657         * modules/unicase/u8-totitle: Likewise.
19658         * modules/unicase/u8-toupper: Likewise.
19659         * modules/unicase/u16-casecmp: Likewise.
19660         * modules/unicase/u16-casecoll: Likewise.
19661         * modules/unicase/u16-casefold: Likewise.
19662         * modules/unicase/u16-casexfrm: Likewise.
19663         * modules/unicase/u16-ct-casefold: Likewise.
19664         * modules/unicase/u16-ct-tolower: Likewise.
19665         * modules/unicase/u16-ct-totitle: Likewise.
19666         * modules/unicase/u16-ct-toupper: Likewise.
19667         * modules/unicase/u16-is-cased: Likewise.
19668         * modules/unicase/u16-is-casefolded: Likewise.
19669         * modules/unicase/u16-is-lowercase: Likewise.
19670         * modules/unicase/u16-is-titlecase: Likewise.
19671         * modules/unicase/u16-is-uppercase: Likewise.
19672         * modules/unicase/u16-prefix-context: Likewise.
19673         * modules/unicase/u16-suffix-context: Likewise.
19674         * modules/unicase/u16-tolower: Likewise.
19675         * modules/unicase/u16-totitle: Likewise.
19676         * modules/unicase/u16-toupper: Likewise.
19677         * modules/unicase/u32-casecmp: Likewise.
19678         * modules/unicase/u32-casecoll: Likewise.
19679         * modules/unicase/u32-casefold: Likewise.
19680         * modules/unicase/u32-casexfrm: Likewise.
19681         * modules/unicase/u32-ct-casefold: Likewise.
19682         * modules/unicase/u32-ct-tolower: Likewise.
19683         * modules/unicase/u32-ct-totitle: Likewise.
19684         * modules/unicase/u32-ct-toupper: Likewise.
19685         * modules/unicase/u32-is-cased: Likewise.
19686         * modules/unicase/u32-is-casefolded: Likewise.
19687         * modules/unicase/u32-is-lowercase: Likewise.
19688         * modules/unicase/u32-is-titlecase: Likewise.
19689         * modules/unicase/u32-is-uppercase: Likewise.
19690         * modules/unicase/u32-prefix-context: Likewise.
19691         * modules/unicase/u32-suffix-context: Likewise.
19692         * modules/unicase/u32-tolower: Likewise.
19693         * modules/unicase/u32-totitle: Likewise.
19694         * modules/unicase/u32-toupper: Likewise.
19695         * modules/unicase/ulc-casecmp: Likewise.
19696         * modules/unicase/ulc-casecoll: Likewise.
19697         * modules/unicase/ulc-casexfrm: Likewise.
19698         * modules/uniconv/u8-conv-from-enc: Likewise.
19699         * modules/uniconv/u8-conv-to-enc: Likewise.
19700         * modules/uniconv/u8-strconv-from-enc: Likewise.
19701         * modules/uniconv/u8-strconv-from-locale: Likewise.
19702         * modules/uniconv/u8-strconv-to-enc: Likewise.
19703         * modules/uniconv/u8-strconv-to-locale: Likewise.
19704         * modules/uniconv/u16-conv-from-enc: Likewise.
19705         * modules/uniconv/u16-conv-to-enc: Likewise.
19706         * modules/uniconv/u16-strconv-from-enc: Likewise.
19707         * modules/uniconv/u16-strconv-from-locale: Likewise.
19708         * modules/uniconv/u16-strconv-to-enc: Likewise.
19709         * modules/uniconv/u16-strconv-to-locale: Likewise.
19710         * modules/uniconv/u32-conv-from-enc: Likewise.
19711         * modules/uniconv/u32-conv-to-enc: Likewise.
19712         * modules/uniconv/u32-strconv-from-enc: Likewise.
19713         * modules/uniconv/u32-strconv-from-locale: Likewise.
19714         * modules/uniconv/u32-strconv-to-enc: Likewise.
19715         * modules/uniconv/u32-strconv-to-locale: Likewise.
19716         * modules/unictype/bidicategory-byname: Likewise.
19717         * modules/unictype/bidicategory-name: Likewise.
19718         * modules/unictype/bidicategory-of: Likewise.
19719         * modules/unictype/bidicategory-test: Likewise.
19720         * modules/unictype/block-list: Likewise.
19721         * modules/unictype/block-test: Likewise.
19722         * modules/unictype/category-C: Likewise.
19723         * modules/unictype/category-Cc: Likewise.
19724         * modules/unictype/category-Cf: Likewise.
19725         * modules/unictype/category-Cn: Likewise.
19726         * modules/unictype/category-Co: Likewise.
19727         * modules/unictype/category-Cs: Likewise.
19728         * modules/unictype/category-L: Likewise.
19729         * modules/unictype/category-Ll: Likewise.
19730         * modules/unictype/category-Lm: Likewise.
19731         * modules/unictype/category-Lo: Likewise.
19732         * modules/unictype/category-Lt: Likewise.
19733         * modules/unictype/category-Lu: Likewise.
19734         * modules/unictype/category-M: Likewise.
19735         * modules/unictype/category-Mc: Likewise.
19736         * modules/unictype/category-Me: Likewise.
19737         * modules/unictype/category-Mn: Likewise.
19738         * modules/unictype/category-N: Likewise.
19739         * modules/unictype/category-Nd: Likewise.
19740         * modules/unictype/category-Nl: Likewise.
19741         * modules/unictype/category-No: Likewise.
19742         * modules/unictype/category-P: Likewise.
19743         * modules/unictype/category-Pc: Likewise.
19744         * modules/unictype/category-Pd: Likewise.
19745         * modules/unictype/category-Pe: Likewise.
19746         * modules/unictype/category-Pf: Likewise.
19747         * modules/unictype/category-Pi: Likewise.
19748         * modules/unictype/category-Po: Likewise.
19749         * modules/unictype/category-Ps: Likewise.
19750         * modules/unictype/category-S: Likewise.
19751         * modules/unictype/category-Sc: Likewise.
19752         * modules/unictype/category-Sk: Likewise.
19753         * modules/unictype/category-Sm: Likewise.
19754         * modules/unictype/category-So: Likewise.
19755         * modules/unictype/category-Z: Likewise.
19756         * modules/unictype/category-Zl: Likewise.
19757         * modules/unictype/category-Zp: Likewise.
19758         * modules/unictype/category-Zs: Likewise.
19759         * modules/unictype/category-and: Likewise.
19760         * modules/unictype/category-and-not: Likewise.
19761         * modules/unictype/category-byname: Likewise.
19762         * modules/unictype/category-name: Likewise.
19763         * modules/unictype/category-none: Likewise.
19764         * modules/unictype/category-of: Likewise.
19765         * modules/unictype/category-or: Likewise.
19766         * modules/unictype/category-test: Likewise.
19767         * modules/unictype/combining-class: Likewise.
19768         * modules/unictype/ctype-alnum: Likewise.
19769         * modules/unictype/ctype-alpha: Likewise.
19770         * modules/unictype/ctype-blank: Likewise.
19771         * modules/unictype/ctype-cntrl: Likewise.
19772         * modules/unictype/ctype-digit: Likewise.
19773         * modules/unictype/ctype-graph: Likewise.
19774         * modules/unictype/ctype-lower: Likewise.
19775         * modules/unictype/ctype-print: Likewise.
19776         * modules/unictype/ctype-punct: Likewise.
19777         * modules/unictype/ctype-space: Likewise.
19778         * modules/unictype/ctype-upper: Likewise.
19779         * modules/unictype/ctype-xdigit: Likewise.
19780         * modules/unictype/decimal-digit: Likewise.
19781         * modules/unictype/digit: Likewise.
19782         * modules/unictype/mirror: Likewise.
19783         * modules/unictype/numeric: Likewise.
19784         * modules/unictype/property-alphabetic: Likewise.
19785         * modules/unictype/property-ascii-hex-digit: Likewise.
19786         * modules/unictype/property-bidi-arabic-digit: Likewise.
19787         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19788         * modules/unictype/property-bidi-block-separator: Likewise.
19789         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19790         * modules/unictype/property-bidi-common-separator: Likewise.
19791         * modules/unictype/property-bidi-control: Likewise.
19792         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19793         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19794         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19795         * modules/unictype/property-bidi-european-digit: Likewise.
19796         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19797         * modules/unictype/property-bidi-left-to-right: Likewise.
19798         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19799         * modules/unictype/property-bidi-other-neutral: Likewise.
19800         * modules/unictype/property-bidi-pdf: Likewise.
19801         * modules/unictype/property-bidi-segment-separator: Likewise.
19802         * modules/unictype/property-bidi-whitespace: Likewise.
19803         * modules/unictype/property-byname: Likewise.
19804         * modules/unictype/property-combining: Likewise.
19805         * modules/unictype/property-composite: Likewise.
19806         * modules/unictype/property-currency-symbol: Likewise.
19807         * modules/unictype/property-dash: Likewise.
19808         * modules/unictype/property-decimal-digit: Likewise.
19809         * modules/unictype/property-default-ignorable-code-point: Likewise.
19810         * modules/unictype/property-deprecated: Likewise.
19811         * modules/unictype/property-diacritic: Likewise.
19812         * modules/unictype/property-extender: Likewise.
19813         * modules/unictype/property-format-control: Likewise.
19814         * modules/unictype/property-grapheme-base: Likewise.
19815         * modules/unictype/property-grapheme-extend: Likewise.
19816         * modules/unictype/property-grapheme-link: Likewise.
19817         * modules/unictype/property-hex-digit: Likewise.
19818         * modules/unictype/property-hyphen: Likewise.
19819         * modules/unictype/property-id-continue: Likewise.
19820         * modules/unictype/property-id-start: Likewise.
19821         * modules/unictype/property-ideographic: Likewise.
19822         * modules/unictype/property-ids-binary-operator: Likewise.
19823         * modules/unictype/property-ids-trinary-operator: Likewise.
19824         * modules/unictype/property-ignorable-control: Likewise.
19825         * modules/unictype/property-iso-control: Likewise.
19826         * modules/unictype/property-join-control: Likewise.
19827         * modules/unictype/property-left-of-pair: Likewise.
19828         * modules/unictype/property-line-separator: Likewise.
19829         * modules/unictype/property-logical-order-exception: Likewise.
19830         * modules/unictype/property-lowercase: Likewise.
19831         * modules/unictype/property-math: Likewise.
19832         * modules/unictype/property-non-break: Likewise.
19833         * modules/unictype/property-not-a-character: Likewise.
19834         * modules/unictype/property-numeric: Likewise.
19835         * modules/unictype/property-other-alphabetic: Likewise.
19836         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19837         * modules/unictype/property-other-grapheme-extend: Likewise.
19838         * modules/unictype/property-other-id-continue: Likewise.
19839         * modules/unictype/property-other-id-start: Likewise.
19840         * modules/unictype/property-other-lowercase: Likewise.
19841         * modules/unictype/property-other-math: Likewise.
19842         * modules/unictype/property-other-uppercase: Likewise.
19843         * modules/unictype/property-paired-punctuation: Likewise.
19844         * modules/unictype/property-paragraph-separator: Likewise.
19845         * modules/unictype/property-pattern-syntax: Likewise.
19846         * modules/unictype/property-pattern-white-space: Likewise.
19847         * modules/unictype/property-private-use: Likewise.
19848         * modules/unictype/property-punctuation: Likewise.
19849         * modules/unictype/property-quotation-mark: Likewise.
19850         * modules/unictype/property-radical: Likewise.
19851         * modules/unictype/property-sentence-terminal: Likewise.
19852         * modules/unictype/property-soft-dotted: Likewise.
19853         * modules/unictype/property-space: Likewise.
19854         * modules/unictype/property-terminal-punctuation: Likewise.
19855         * modules/unictype/property-test: Likewise.
19856         * modules/unictype/property-titlecase: Likewise.
19857         * modules/unictype/property-unassigned-code-value: Likewise.
19858         * modules/unictype/property-unified-ideograph: Likewise.
19859         * modules/unictype/property-uppercase: Likewise.
19860         * modules/unictype/property-variation-selector: Likewise.
19861         * modules/unictype/property-white-space: Likewise.
19862         * modules/unictype/property-xid-continue: Likewise.
19863         * modules/unictype/property-xid-start: Likewise.
19864         * modules/unictype/property-zero-width: Likewise.
19865         * modules/unictype/scripts: Likewise.
19866         * modules/unictype/syntax-c-ident: Likewise.
19867         * modules/unictype/syntax-c-whitespace: Likewise.
19868         * modules/unictype/syntax-java-ident: Likewise.
19869         * modules/unictype/syntax-java-whitespace: Likewise.
19870         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19871         * modules/unilbrk/u8-width-linebreaks: Likewise.
19872         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19873         * modules/unilbrk/u16-width-linebreaks: Likewise.
19874         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19875         * modules/unilbrk/u32-width-linebreaks: Likewise.
19876         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19877         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19878         * modules/uniname/uniname: Likewise.
19879         * modules/uninorm/canonical-decomposition: Likewise.
19880         * modules/uninorm/composition: Likewise.
19881         * modules/uninorm/decomposing-form: Likewise.
19882         * modules/uninorm/decomposition: Likewise.
19883         * modules/uninorm/filter: Likewise.
19884         * modules/uninorm/nfc: Likewise.
19885         * modules/uninorm/nfd: Likewise.
19886         * modules/uninorm/nfkc: Likewise.
19887         * modules/uninorm/nfkd: Likewise.
19888         * modules/uninorm/u8-normalize: Likewise.
19889         * modules/uninorm/u8-normcmp: Likewise.
19890         * modules/uninorm/u8-normcoll: Likewise.
19891         * modules/uninorm/u8-normxfrm: Likewise.
19892         * modules/uninorm/u16-normalize: Likewise.
19893         * modules/uninorm/u16-normcmp: Likewise.
19894         * modules/uninorm/u16-normcoll: Likewise.
19895         * modules/uninorm/u16-normxfrm: Likewise.
19896         * modules/uninorm/u32-normalize: Likewise.
19897         * modules/uninorm/u32-normcmp: Likewise.
19898         * modules/uninorm/u32-normcoll: Likewise.
19899         * modules/uninorm/u32-normxfrm: Likewise.
19900         * modules/unistdio/u8-asnprintf: Likewise.
19901         * modules/unistdio/u8-asprintf: Likewise.
19902         * modules/unistdio/u8-snprintf: Likewise.
19903         * modules/unistdio/u8-sprintf: Likewise.
19904         * modules/unistdio/u8-u8-asnprintf: Likewise.
19905         * modules/unistdio/u8-u8-asprintf: Likewise.
19906         * modules/unistdio/u8-u8-snprintf: Likewise.
19907         * modules/unistdio/u8-u8-sprintf: Likewise.
19908         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19909         * modules/unistdio/u8-u8-vasprintf: Likewise.
19910         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19911         * modules/unistdio/u8-u8-vsprintf: Likewise.
19912         * modules/unistdio/u8-vasnprintf: Likewise.
19913         * modules/unistdio/u8-vasprintf: Likewise.
19914         * modules/unistdio/u8-vsnprintf: Likewise.
19915         * modules/unistdio/u8-vsprintf: Likewise.
19916         * modules/unistdio/u16-asnprintf: Likewise.
19917         * modules/unistdio/u16-asprintf: Likewise.
19918         * modules/unistdio/u16-snprintf: Likewise.
19919         * modules/unistdio/u16-sprintf: Likewise.
19920         * modules/unistdio/u16-u16-asnprintf: Likewise.
19921         * modules/unistdio/u16-u16-asprintf: Likewise.
19922         * modules/unistdio/u16-u16-snprintf: Likewise.
19923         * modules/unistdio/u16-u16-sprintf: Likewise.
19924         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19925         * modules/unistdio/u16-u16-vasprintf: Likewise.
19926         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19927         * modules/unistdio/u16-u16-vsprintf: Likewise.
19928         * modules/unistdio/u16-vasnprintf: Likewise.
19929         * modules/unistdio/u16-vasprintf: Likewise.
19930         * modules/unistdio/u16-vsnprintf: Likewise.
19931         * modules/unistdio/u16-vsprintf: Likewise.
19932         * modules/unistdio/u32-asnprintf: Likewise.
19933         * modules/unistdio/u32-asprintf: Likewise.
19934         * modules/unistdio/u32-snprintf: Likewise.
19935         * modules/unistdio/u32-sprintf: Likewise.
19936         * modules/unistdio/u32-u32-asnprintf: Likewise.
19937         * modules/unistdio/u32-u32-asprintf: Likewise.
19938         * modules/unistdio/u32-u32-snprintf: Likewise.
19939         * modules/unistdio/u32-u32-sprintf: Likewise.
19940         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19941         * modules/unistdio/u32-u32-vasprintf: Likewise.
19942         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19943         * modules/unistdio/u32-u32-vsprintf: Likewise.
19944         * modules/unistdio/u32-vasnprintf: Likewise.
19945         * modules/unistdio/u32-vasprintf: Likewise.
19946         * modules/unistdio/u32-vsnprintf: Likewise.
19947         * modules/unistdio/u32-vsprintf: Likewise.
19948         * modules/unistdio/ulc-asnprintf: Likewise.
19949         * modules/unistdio/ulc-asprintf: Likewise.
19950         * modules/unistdio/ulc-fprintf: Likewise.
19951         * modules/unistdio/ulc-snprintf: Likewise.
19952         * modules/unistdio/ulc-sprintf: Likewise.
19953         * modules/unistdio/ulc-vasnprintf: Likewise.
19954         * modules/unistdio/ulc-vasprintf: Likewise.
19955         * modules/unistdio/ulc-vfprintf: Likewise.
19956         * modules/unistdio/ulc-vsnprintf: Likewise.
19957         * modules/unistdio/ulc-vsprintf: Likewise.
19958         * modules/unistr/u8-check: Likewise.
19959         * modules/unistr/u8-chr: Likewise.
19960         * modules/unistr/u8-cmp: Likewise.
19961         * modules/unistr/u8-cmp2: Likewise.
19962         * modules/unistr/u8-cpy: Likewise.
19963         * modules/unistr/u8-cpy-alloc: Likewise.
19964         * modules/unistr/u8-endswith: Likewise.
19965         * modules/unistr/u8-mblen: Likewise.
19966         * modules/unistr/u8-mbsnlen: Likewise.
19967         * modules/unistr/u8-mbtouc: Likewise.
19968         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19969         * modules/unistr/u8-mbtoucr: Likewise.
19970         * modules/unistr/u8-move: Likewise.
19971         * modules/unistr/u8-next: Likewise.
19972         * modules/unistr/u8-prev: Likewise.
19973         * modules/unistr/u8-set: Likewise.
19974         * modules/unistr/u8-startswith: Likewise.
19975         * modules/unistr/u8-stpcpy: Likewise.
19976         * modules/unistr/u8-stpncpy: Likewise.
19977         * modules/unistr/u8-strcat: Likewise.
19978         * modules/unistr/u8-strchr: Likewise.
19979         * modules/unistr/u8-strcmp: Likewise.
19980         * modules/unistr/u8-strcoll: Likewise.
19981         * modules/unistr/u8-strcpy: Likewise.
19982         * modules/unistr/u8-strcspn: Likewise.
19983         * modules/unistr/u8-strdup: Likewise.
19984         * modules/unistr/u8-strlen: Likewise.
19985         * modules/unistr/u8-strmblen: Likewise.
19986         * modules/unistr/u8-strmbtouc: Likewise.
19987         * modules/unistr/u8-strncat: Likewise.
19988         * modules/unistr/u8-strncmp: Likewise.
19989         * modules/unistr/u8-strncpy: Likewise.
19990         * modules/unistr/u8-strnlen: Likewise.
19991         * modules/unistr/u8-strpbrk: Likewise.
19992         * modules/unistr/u8-strrchr: Likewise.
19993         * modules/unistr/u8-strspn: Likewise.
19994         * modules/unistr/u8-strstr: Likewise.
19995         * modules/unistr/u8-strtok: Likewise.
19996         * modules/unistr/u8-to-u16: Likewise.
19997         * modules/unistr/u8-to-u32: Likewise.
19998         * modules/unistr/u8-uctomb: Likewise.
19999         * modules/unistr/u16-check: Likewise.
20000         * modules/unistr/u16-chr: Likewise.
20001         * modules/unistr/u16-cmp: Likewise.
20002         * modules/unistr/u16-cmp2: Likewise.
20003         * modules/unistr/u16-cpy: Likewise.
20004         * modules/unistr/u16-cpy-alloc: Likewise.
20005         * modules/unistr/u16-endswith: Likewise.
20006         * modules/unistr/u16-mblen: Likewise.
20007         * modules/unistr/u16-mbsnlen: Likewise.
20008         * modules/unistr/u16-mbtouc: Likewise.
20009         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20010         * modules/unistr/u16-mbtoucr: Likewise.
20011         * modules/unistr/u16-move: Likewise.
20012         * modules/unistr/u16-next: Likewise.
20013         * modules/unistr/u16-prev: Likewise.
20014         * modules/unistr/u16-set: Likewise.
20015         * modules/unistr/u16-startswith: Likewise.
20016         * modules/unistr/u16-stpcpy: Likewise.
20017         * modules/unistr/u16-stpncpy: Likewise.
20018         * modules/unistr/u16-strcat: Likewise.
20019         * modules/unistr/u16-strchr: Likewise.
20020         * modules/unistr/u16-strcmp: Likewise.
20021         * modules/unistr/u16-strcoll: Likewise.
20022         * modules/unistr/u16-strcpy: Likewise.
20023         * modules/unistr/u16-strcspn: Likewise.
20024         * modules/unistr/u16-strdup: Likewise.
20025         * modules/unistr/u16-strlen: Likewise.
20026         * modules/unistr/u16-strmblen: Likewise.
20027         * modules/unistr/u16-strmbtouc: Likewise.
20028         * modules/unistr/u16-strncat: Likewise.
20029         * modules/unistr/u16-strncmp: Likewise.
20030         * modules/unistr/u16-strncpy: Likewise.
20031         * modules/unistr/u16-strnlen: Likewise.
20032         * modules/unistr/u16-strpbrk: Likewise.
20033         * modules/unistr/u16-strrchr: Likewise.
20034         * modules/unistr/u16-strspn: Likewise.
20035         * modules/unistr/u16-strstr: Likewise.
20036         * modules/unistr/u16-strtok: Likewise.
20037         * modules/unistr/u16-to-u32: Likewise.
20038         * modules/unistr/u16-to-u8: Likewise.
20039         * modules/unistr/u16-uctomb: Likewise.
20040         * modules/unistr/u32-check: Likewise.
20041         * modules/unistr/u32-chr: Likewise.
20042         * modules/unistr/u32-cmp: Likewise.
20043         * modules/unistr/u32-cmp2: Likewise.
20044         * modules/unistr/u32-cpy: Likewise.
20045         * modules/unistr/u32-cpy-alloc: Likewise.
20046         * modules/unistr/u32-endswith: Likewise.
20047         * modules/unistr/u32-mblen: Likewise.
20048         * modules/unistr/u32-mbsnlen: Likewise.
20049         * modules/unistr/u32-mbtouc: Likewise.
20050         * modules/unistr/u32-mbtouc-unsafe: Likewise.
20051         * modules/unistr/u32-mbtoucr: Likewise.
20052         * modules/unistr/u32-move: Likewise.
20053         * modules/unistr/u32-next: Likewise.
20054         * modules/unistr/u32-prev: Likewise.
20055         * modules/unistr/u32-set: Likewise.
20056         * modules/unistr/u32-startswith: Likewise.
20057         * modules/unistr/u32-stpcpy: Likewise.
20058         * modules/unistr/u32-stpncpy: Likewise.
20059         * modules/unistr/u32-strcat: Likewise.
20060         * modules/unistr/u32-strchr: Likewise.
20061         * modules/unistr/u32-strcmp: Likewise.
20062         * modules/unistr/u32-strcoll: Likewise.
20063         * modules/unistr/u32-strcpy: Likewise.
20064         * modules/unistr/u32-strcspn: Likewise.
20065         * modules/unistr/u32-strdup: Likewise.
20066         * modules/unistr/u32-strlen: Likewise.
20067         * modules/unistr/u32-strmblen: Likewise.
20068         * modules/unistr/u32-strmbtouc: Likewise.
20069         * modules/unistr/u32-strncat: Likewise.
20070         * modules/unistr/u32-strncmp: Likewise.
20071         * modules/unistr/u32-strncpy: Likewise.
20072         * modules/unistr/u32-strnlen: Likewise.
20073         * modules/unistr/u32-strpbrk: Likewise.
20074         * modules/unistr/u32-strrchr: Likewise.
20075         * modules/unistr/u32-strspn: Likewise.
20076         * modules/unistr/u32-strstr: Likewise.
20077         * modules/unistr/u32-strtok: Likewise.
20078         * modules/unistr/u32-to-u16: Likewise.
20079         * modules/unistr/u32-to-u8: Likewise.
20080         * modules/unistr/u32-uctomb: Likewise.
20081         * modules/uniwbrk/u8-wordbreaks: Likewise.
20082         * modules/uniwbrk/u16-wordbreaks: Likewise.
20083         * modules/uniwbrk/u32-wordbreaks: Likewise.
20084         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20085         * modules/uniwbrk/wordbreak-property: Likewise.
20086         * modules/uniwidth/u8-strwidth: Likewise.
20087         * modules/uniwidth/u8-width: Likewise.
20088         * modules/uniwidth/u16-strwidth: Likewise.
20089         * modules/uniwidth/u16-width: Likewise.
20090         * modules/uniwidth/u32-strwidth: Likewise.
20091         * modules/uniwidth/u32-width: Likewise.
20092         * modules/uniwidth/width: Likewise.
20093         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20094         with $(LIBUNISTRING).
20095         * modules/unicase/ignorable-tests: Likewise.
20096         * modules/unicase/locale-language-tests: Likewise.
20097         * modules/unicase/tolower-tests: Likewise.
20098         * modules/unicase/totitle-tests: Likewise.
20099         * modules/unicase/toupper-tests: Likewise.
20100         * modules/unicase/u8-casecmp-tests: Likewise.
20101         * modules/unicase/u8-casecoll-tests: Likewise.
20102         * modules/unicase/u8-casefold-tests: Likewise.
20103         * modules/unicase/u8-is-cased-tests: Likewise.
20104         * modules/unicase/u8-is-casefolded-tests: Likewise.
20105         * modules/unicase/u8-is-lowercase-tests: Likewise.
20106         * modules/unicase/u8-is-titlecase-tests: Likewise.
20107         * modules/unicase/u8-is-uppercase-tests: Likewise.
20108         * modules/unicase/u8-tolower-tests: Likewise.
20109         * modules/unicase/u8-totitle-tests: Likewise.
20110         * modules/unicase/u8-toupper-tests: Likewise.
20111         * modules/unicase/u16-casecmp-tests: Likewise.
20112         * modules/unicase/u16-casecoll-tests: Likewise.
20113         * modules/unicase/u16-casefold-tests: Likewise.
20114         * modules/unicase/u16-is-cased-tests: Likewise.
20115         * modules/unicase/u16-is-casefolded-tests: Likewise.
20116         * modules/unicase/u16-is-lowercase-tests: Likewise.
20117         * modules/unicase/u16-is-titlecase-tests: Likewise.
20118         * modules/unicase/u16-is-uppercase-tests: Likewise.
20119         * modules/unicase/u16-tolower-tests: Likewise.
20120         * modules/unicase/u16-totitle-tests: Likewise.
20121         * modules/unicase/u16-toupper-tests: Likewise.
20122         * modules/unicase/u32-casecmp-tests: Likewise.
20123         * modules/unicase/u32-casecoll-tests: Likewise.
20124         * modules/unicase/u32-casefold-tests: Likewise.
20125         * modules/unicase/u32-is-cased-tests: Likewise.
20126         * modules/unicase/u32-is-casefolded-tests: Likewise.
20127         * modules/unicase/u32-is-lowercase-tests: Likewise.
20128         * modules/unicase/u32-is-titlecase-tests: Likewise.
20129         * modules/unicase/u32-is-uppercase-tests: Likewise.
20130         * modules/unicase/u32-tolower-tests: Likewise.
20131         * modules/unicase/u32-totitle-tests: Likewise.
20132         * modules/unicase/u32-toupper-tests: Likewise.
20133         * modules/unicase/ulc-casecmp-tests: Likewise.
20134         * modules/unicase/ulc-casecoll-tests: Likewise.
20135         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
20136         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
20137         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
20138         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
20139         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
20140         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
20141         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
20142         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
20143         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
20144         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
20145         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
20146         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
20147         * modules/unictype/bidicategory-byname-tests: Likewise.
20148         * modules/unictype/bidicategory-name-tests: Likewise.
20149         * modules/unictype/bidicategory-of-tests: Likewise.
20150         * modules/unictype/bidicategory-test-tests: Likewise.
20151         * modules/unictype/block-list-tests: Likewise.
20152         * modules/unictype/block-of-tests: Likewise.
20153         * modules/unictype/block-test-tests: Likewise.
20154         * modules/unictype/category-C-tests: Likewise.
20155         * modules/unictype/category-Cc-tests: Likewise.
20156         * modules/unictype/category-Cf-tests: Likewise.
20157         * modules/unictype/category-Cn-tests: Likewise.
20158         * modules/unictype/category-Co-tests: Likewise.
20159         * modules/unictype/category-Cs-tests: Likewise.
20160         * modules/unictype/category-L-tests: Likewise.
20161         * modules/unictype/category-Ll-tests: Likewise.
20162         * modules/unictype/category-Lm-tests: Likewise.
20163         * modules/unictype/category-Lo-tests: Likewise.
20164         * modules/unictype/category-Lt-tests: Likewise.
20165         * modules/unictype/category-Lu-tests: Likewise.
20166         * modules/unictype/category-M-tests: Likewise.
20167         * modules/unictype/category-Mc-tests: Likewise.
20168         * modules/unictype/category-Me-tests: Likewise.
20169         * modules/unictype/category-Mn-tests: Likewise.
20170         * modules/unictype/category-N-tests: Likewise.
20171         * modules/unictype/category-Nd-tests: Likewise.
20172         * modules/unictype/category-Nl-tests: Likewise.
20173         * modules/unictype/category-No-tests: Likewise.
20174         * modules/unictype/category-P-tests: Likewise.
20175         * modules/unictype/category-Pc-tests: Likewise.
20176         * modules/unictype/category-Pd-tests: Likewise.
20177         * modules/unictype/category-Pe-tests: Likewise.
20178         * modules/unictype/category-Pf-tests: Likewise.
20179         * modules/unictype/category-Pi-tests: Likewise.
20180         * modules/unictype/category-Po-tests: Likewise.
20181         * modules/unictype/category-Ps-tests: Likewise.
20182         * modules/unictype/category-S-tests: Likewise.
20183         * modules/unictype/category-Sc-tests: Likewise.
20184         * modules/unictype/category-Sk-tests: Likewise.
20185         * modules/unictype/category-Sm-tests: Likewise.
20186         * modules/unictype/category-So-tests: Likewise.
20187         * modules/unictype/category-Z-tests: Likewise.
20188         * modules/unictype/category-Zl-tests: Likewise.
20189         * modules/unictype/category-Zp-tests: Likewise.
20190         * modules/unictype/category-Zs-tests: Likewise.
20191         * modules/unictype/category-and-not-tests: Likewise.
20192         * modules/unictype/category-and-tests: Likewise.
20193         * modules/unictype/category-byname-tests: Likewise.
20194         * modules/unictype/category-name-tests: Likewise.
20195         * modules/unictype/category-none-tests: Likewise.
20196         * modules/unictype/category-of-tests: Likewise.
20197         * modules/unictype/category-or-tests: Likewise.
20198         * modules/unictype/category-test-withtable-tests: Likewise.
20199         * modules/unictype/combining-class-tests: Likewise.
20200         * modules/unictype/ctype-alnum-tests: Likewise.
20201         * modules/unictype/ctype-alpha-tests: Likewise.
20202         * modules/unictype/ctype-blank-tests: Likewise.
20203         * modules/unictype/ctype-cntrl-tests: Likewise.
20204         * modules/unictype/ctype-digit-tests: Likewise.
20205         * modules/unictype/ctype-graph-tests: Likewise.
20206         * modules/unictype/ctype-lower-tests: Likewise.
20207         * modules/unictype/ctype-print-tests: Likewise.
20208         * modules/unictype/ctype-punct-tests: Likewise.
20209         * modules/unictype/ctype-space-tests: Likewise.
20210         * modules/unictype/ctype-upper-tests: Likewise.
20211         * modules/unictype/ctype-xdigit-tests: Likewise.
20212         * modules/unictype/decimal-digit-tests: Likewise.
20213         * modules/unictype/digit-tests: Likewise.
20214         * modules/unictype/mirror-tests: Likewise.
20215         * modules/unictype/numeric-tests: Likewise.
20216         * modules/unictype/property-alphabetic-tests: Likewise.
20217         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
20218         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
20219         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
20220         * modules/unictype/property-bidi-block-separator-tests: Likewise.
20221         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
20222         * modules/unictype/property-bidi-common-separator-tests: Likewise.
20223         * modules/unictype/property-bidi-control-tests: Likewise.
20224         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
20225         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
20226         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
20227         * modules/unictype/property-bidi-european-digit-tests: Likewise.
20228         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
20229         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
20230         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
20231         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
20232         * modules/unictype/property-bidi-pdf-tests: Likewise.
20233         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
20234         * modules/unictype/property-bidi-whitespace-tests: Likewise.
20235         * modules/unictype/property-byname-tests: Likewise.
20236         * modules/unictype/property-combining-tests: Likewise.
20237         * modules/unictype/property-composite-tests: Likewise.
20238         * modules/unictype/property-currency-symbol-tests: Likewise.
20239         * modules/unictype/property-dash-tests: Likewise.
20240         * modules/unictype/property-decimal-digit-tests: Likewise.
20241         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
20242         * modules/unictype/property-deprecated-tests: Likewise.
20243         * modules/unictype/property-diacritic-tests: Likewise.
20244         * modules/unictype/property-extender-tests: Likewise.
20245         * modules/unictype/property-format-control-tests: Likewise.
20246         * modules/unictype/property-grapheme-base-tests: Likewise.
20247         * modules/unictype/property-grapheme-extend-tests: Likewise.
20248         * modules/unictype/property-grapheme-link-tests: Likewise.
20249         * modules/unictype/property-hex-digit-tests: Likewise.
20250         * modules/unictype/property-hyphen-tests: Likewise.
20251         * modules/unictype/property-id-continue-tests: Likewise.
20252         * modules/unictype/property-id-start-tests: Likewise.
20253         * modules/unictype/property-ideographic-tests: Likewise.
20254         * modules/unictype/property-ids-binary-operator-tests: Likewise.
20255         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
20256         * modules/unictype/property-ignorable-control-tests: Likewise.
20257         * modules/unictype/property-iso-control-tests: Likewise.
20258         * modules/unictype/property-join-control-tests: Likewise.
20259         * modules/unictype/property-left-of-pair-tests: Likewise.
20260         * modules/unictype/property-line-separator-tests: Likewise.
20261         * modules/unictype/property-logical-order-exception-tests: Likewise.
20262         * modules/unictype/property-lowercase-tests: Likewise.
20263         * modules/unictype/property-math-tests: Likewise.
20264         * modules/unictype/property-non-break-tests: Likewise.
20265         * modules/unictype/property-not-a-character-tests: Likewise.
20266         * modules/unictype/property-numeric-tests: Likewise.
20267         * modules/unictype/property-other-alphabetic-tests: Likewise.
20268         * modules/unictype/property-other-default-ignorable-code-point-tests:
20269         Likewise.
20270         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
20271         * modules/unictype/property-other-id-continue-tests: Likewise.
20272         * modules/unictype/property-other-id-start-tests: Likewise.
20273         * modules/unictype/property-other-lowercase-tests: Likewise.
20274         * modules/unictype/property-other-math-tests: Likewise.
20275         * modules/unictype/property-other-uppercase-tests: Likewise.
20276         * modules/unictype/property-paired-punctuation-tests: Likewise.
20277         * modules/unictype/property-paragraph-separator-tests: Likewise.
20278         * modules/unictype/property-pattern-syntax-tests: Likewise.
20279         * modules/unictype/property-pattern-white-space-tests: Likewise.
20280         * modules/unictype/property-private-use-tests: Likewise.
20281         * modules/unictype/property-punctuation-tests: Likewise.
20282         * modules/unictype/property-quotation-mark-tests: Likewise.
20283         * modules/unictype/property-radical-tests: Likewise.
20284         * modules/unictype/property-sentence-terminal-tests: Likewise.
20285         * modules/unictype/property-soft-dotted-tests: Likewise.
20286         * modules/unictype/property-space-tests: Likewise.
20287         * modules/unictype/property-terminal-punctuation-tests: Likewise.
20288         * modules/unictype/property-test-tests: Likewise.
20289         * modules/unictype/property-titlecase-tests: Likewise.
20290         * modules/unictype/property-unassigned-code-value-tests: Likewise.
20291         * modules/unictype/property-unified-ideograph-tests: Likewise.
20292         * modules/unictype/property-uppercase-tests: Likewise.
20293         * modules/unictype/property-variation-selector-tests: Likewise.
20294         * modules/unictype/property-white-space-tests: Likewise.
20295         * modules/unictype/property-xid-continue-tests: Likewise.
20296         * modules/unictype/property-xid-start-tests: Likewise.
20297         * modules/unictype/property-zero-width-tests: Likewise.
20298         * modules/unictype/scripts-tests: Likewise.
20299         * modules/unictype/syntax-c-ident-tests: Likewise.
20300         * modules/unictype/syntax-c-whitespace-tests: Likewise.
20301         * modules/unictype/syntax-java-ident-tests: Likewise.
20302         * modules/unictype/syntax-java-whitespace-tests: Likewise.
20303         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
20304         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
20305         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
20306         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
20307         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
20308         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
20309         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
20310         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
20311         * modules/uniname/uniname-tests: Likewise.
20312         * modules/uninorm/canonical-decomposition-tests: Likewise.
20313         * modules/uninorm/compat-decomposition-tests: Likewise.
20314         * modules/uninorm/composition-tests: Likewise.
20315         * modules/uninorm/decomposing-form-tests: Likewise.
20316         * modules/uninorm/decomposition-tests: Likewise.
20317         * modules/uninorm/filter-tests: Likewise.
20318         * modules/uninorm/nfc-tests: Likewise.
20319         * modules/uninorm/nfd-tests: Likewise.
20320         * modules/uninorm/nfkc-tests: Likewise.
20321         * modules/uninorm/nfkd-tests: Likewise.
20322         * modules/uninorm/u8-normcmp-tests: Likewise.
20323         * modules/uninorm/u8-normcoll-tests: Likewise.
20324         * modules/uninorm/u16-normcmp-tests: Likewise.
20325         * modules/uninorm/u16-normcoll-tests: Likewise.
20326         * modules/uninorm/u32-normcmp-tests: Likewise.
20327         * modules/uninorm/u32-normcoll-tests: Likewise.
20328         * modules/unistdio/u8-asnprintf-tests: Likewise.
20329         * modules/unistdio/u8-vasnprintf-tests: Likewise.
20330         * modules/unistdio/u8-vasprintf-tests: Likewise.
20331         * modules/unistdio/u8-vsnprintf-tests: Likewise.
20332         * modules/unistdio/u8-vsprintf-tests: Likewise.
20333         * modules/unistdio/u16-asnprintf-tests: Likewise.
20334         * modules/unistdio/u16-vasnprintf-tests: Likewise.
20335         * modules/unistdio/u16-vasprintf-tests: Likewise.
20336         * modules/unistdio/u16-vsnprintf-tests: Likewise.
20337         * modules/unistdio/u16-vsprintf-tests: Likewise.
20338         * modules/unistdio/u32-asnprintf-tests: Likewise.
20339         * modules/unistdio/u32-vasnprintf-tests: Likewise.
20340         * modules/unistdio/u32-vasprintf-tests: Likewise.
20341         * modules/unistdio/u32-vsnprintf-tests: Likewise.
20342         * modules/unistdio/u32-vsprintf-tests: Likewise.
20343         * modules/unistdio/ulc-asnprintf-tests: Likewise.
20344         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
20345         * modules/unistdio/ulc-vasprintf-tests: Likewise.
20346         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
20347         * modules/unistdio/ulc-vsprintf-tests: Likewise.
20348         * modules/unistr/u8-check-tests: Likewise.
20349         * modules/unistr/u8-chr-tests: Likewise.
20350         * modules/unistr/u8-cmp-tests: Likewise.
20351         * modules/unistr/u8-cmp2-tests: Likewise.
20352         * modules/unistr/u8-cpy-alloc-tests: Likewise.
20353         * modules/unistr/u8-cpy-tests: Likewise.
20354         * modules/unistr/u8-mblen-tests: Likewise.
20355         * modules/unistr/u8-mbsnlen-tests: Likewise.
20356         * modules/unistr/u8-mbtouc-tests: Likewise.
20357         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
20358         * modules/unistr/u8-mbtoucr-tests: Likewise.
20359         * modules/unistr/u8-move-tests: Likewise.
20360         * modules/unistr/u8-next-tests: Likewise.
20361         * modules/unistr/u8-prev-tests: Likewise.
20362         * modules/unistr/u8-set-tests: Likewise.
20363         * modules/unistr/u8-stpcpy-tests: Likewise.
20364         * modules/unistr/u8-stpncpy-tests: Likewise.
20365         * modules/unistr/u8-strcat-tests: Likewise.
20366         * modules/unistr/u8-strcmp-tests: Likewise.
20367         * modules/unistr/u8-strcoll-tests: Likewise.
20368         * modules/unistr/u8-strcpy-tests: Likewise.
20369         * modules/unistr/u8-strdup-tests: Likewise.
20370         * modules/unistr/u8-strlen-tests: Likewise.
20371         * modules/unistr/u8-strmblen-tests: Likewise.
20372         * modules/unistr/u8-strmbtouc-tests: Likewise.
20373         * modules/unistr/u8-strncat-tests: Likewise.
20374         * modules/unistr/u8-strncmp-tests: Likewise.
20375         * modules/unistr/u8-strncpy-tests: Likewise.
20376         * modules/unistr/u8-strnlen-tests: Likewise.
20377         * modules/unistr/u8-to-u16-tests: Likewise.
20378         * modules/unistr/u8-to-u32-tests: Likewise.
20379         * modules/unistr/u8-uctomb-tests: Likewise.
20380         * modules/unistr/u16-check-tests: Likewise.
20381         * modules/unistr/u16-chr-tests: Likewise.
20382         * modules/unistr/u16-cmp-tests: Likewise.
20383         * modules/unistr/u16-cmp2-tests: Likewise.
20384         * modules/unistr/u16-cpy-alloc-tests: Likewise.
20385         * modules/unistr/u16-cpy-tests: Likewise.
20386         * modules/unistr/u16-mblen-tests: Likewise.
20387         * modules/unistr/u16-mbsnlen-tests: Likewise.
20388         * modules/unistr/u16-mbtouc-tests: Likewise.
20389         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
20390         * modules/unistr/u16-mbtoucr-tests: Likewise.
20391         * modules/unistr/u16-move-tests: Likewise.
20392         * modules/unistr/u16-next-tests: Likewise.
20393         * modules/unistr/u16-prev-tests: Likewise.
20394         * modules/unistr/u16-set-tests: Likewise.
20395         * modules/unistr/u16-stpcpy-tests: Likewise.
20396         * modules/unistr/u16-stpncpy-tests: Likewise.
20397         * modules/unistr/u16-strcat-tests: Likewise.
20398         * modules/unistr/u16-strcmp-tests: Likewise.
20399         * modules/unistr/u16-strcoll-tests: Likewise.
20400         * modules/unistr/u16-strcpy-tests: Likewise.
20401         * modules/unistr/u16-strdup-tests: Likewise.
20402         * modules/unistr/u16-strlen-tests: Likewise.
20403         * modules/unistr/u16-strmblen-tests: Likewise.
20404         * modules/unistr/u16-strmbtouc-tests: Likewise.
20405         * modules/unistr/u16-strncat-tests: Likewise.
20406         * modules/unistr/u16-strncmp-tests: Likewise.
20407         * modules/unistr/u16-strncpy-tests: Likewise.
20408         * modules/unistr/u16-strnlen-tests: Likewise.
20409         * modules/unistr/u16-to-u32-tests: Likewise.
20410         * modules/unistr/u16-to-u8-tests: Likewise.
20411         * modules/unistr/u16-uctomb-tests: Likewise.
20412         * modules/unistr/u32-check-tests: Likewise.
20413         * modules/unistr/u32-chr-tests: Likewise.
20414         * modules/unistr/u32-cmp-tests: Likewise.
20415         * modules/unistr/u32-cmp2-tests: Likewise.
20416         * modules/unistr/u32-cpy-alloc-tests: Likewise.
20417         * modules/unistr/u32-cpy-tests: Likewise.
20418         * modules/unistr/u32-mblen-tests: Likewise.
20419         * modules/unistr/u32-mbsnlen-tests: Likewise.
20420         * modules/unistr/u32-mbtouc-tests: Likewise.
20421         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
20422         * modules/unistr/u32-mbtoucr-tests: Likewise.
20423         * modules/unistr/u32-move-tests: Likewise.
20424         * modules/unistr/u32-next-tests: Likewise.
20425         * modules/unistr/u32-prev-tests: Likewise.
20426         * modules/unistr/u32-set-tests: Likewise.
20427         * modules/unistr/u32-stpcpy-tests: Likewise.
20428         * modules/unistr/u32-stpncpy-tests: Likewise.
20429         * modules/unistr/u32-strcat-tests: Likewise.
20430         * modules/unistr/u32-strcmp-tests: Likewise.
20431         * modules/unistr/u32-strcoll-tests: Likewise.
20432         * modules/unistr/u32-strcpy-tests: Likewise.
20433         * modules/unistr/u32-strdup-tests: Likewise.
20434         * modules/unistr/u32-strlen-tests: Likewise.
20435         * modules/unistr/u32-strmblen-tests: Likewise.
20436         * modules/unistr/u32-strmbtouc-tests: Likewise.
20437         * modules/unistr/u32-strncat-tests: Likewise.
20438         * modules/unistr/u32-strncmp-tests: Likewise.
20439         * modules/unistr/u32-strncpy-tests: Likewise.
20440         * modules/unistr/u32-strnlen-tests: Likewise.
20441         * modules/unistr/u32-to-u16-tests: Likewise.
20442         * modules/unistr/u32-to-u8-tests: Likewise.
20443         * modules/unistr/u32-uctomb-tests: Likewise.
20444         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
20445         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
20446         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
20447         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
20448         * modules/uniwidth/u8-strwidth-tests: Likewise.
20449         * modules/uniwidth/u8-width-tests: Likewise.
20450         * modules/uniwidth/u16-strwidth-tests: Likewise.
20451         * modules/uniwidth/u16-width-tests: Likewise.
20452         * modules/uniwidth/u32-strwidth-tests: Likewise.
20453         * modules/uniwidth/u32-width-tests: Likewise.
20454         * modules/uniwidth/width-tests: Likewise.
20455
20456 2010-05-18  Richard Jones  <rjones@redhat.com>
20457
20458         doc: users.txt: list hivex
20459         * users.txt: Add hivex.
20460
20461 2010-05-18  Richard Jones  <rjones@redhat.com>
20462
20463         doc: users.txt: list febootstrap
20464         * users.txt: Add febootstrap.
20465
20466 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
20467
20468         bootstrap: fix an error when gnulib is not used as a git submodule
20469         * build-aux/bootstrap (gnulib_path): If its length is zero then
20470         assign "gnulib" to it.
20471         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
20472
20473 2010-05-16  Bruno Haible  <bruno@clisp.org>
20474
20475         Avoid autoconf warnings about AM_ICONV.
20476         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
20477         2.64.
20478
20479 2010-05-16  Bruno Haible  <bruno@clisp.org>
20480
20481         absolute-header: Make the macro usable in more situations.
20482         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
20483         from gl_ABSOLUTE_HEADER.
20484         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
20485
20486 2010-05-16  James Youngman  <jay@gnu.org>
20487
20488         doc: update users.txt
20489         * users.txt: Add CSSC.
20490
20491 2010-05-16  Jim Meyering  <meyering@redhat.com>
20492
20493         init.sh: fix an error in the previous change; add more comments
20494         * tests/init.sh: Compare exit code in loop against 9, not 2.
20495         Patch by Bruno Haible.
20496         Make the two tests more similar by adding an empty "then" clause.
20497         Add comments.
20498
20499         init.sh: avoid unnecessary shell re-exec
20500         * tests/init.sh: Improve the re-exec-required check to first test the
20501         current shell.  If it passes the test, do not search for a shell that
20502         does pass, and do not re-exec.  This test is particularly contorted to
20503         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
20504         of $(...) evokes a syntax error and causes immediate shell exit with
20505         status 2.  Bruno Haible reported that the re-exec made it impossible
20506         to single-step through any init.sh-using script.
20507
20508 2010-05-16  Bruno Haible  <bruno@clisp.org>
20509
20510         Fix collision between gnulib's and libintl's printf replacements.
20511         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
20512         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
20513         (printf): When using GNU C, map the __printf__ function to rpl_printf
20514         via __asm__. When not using GNU C, define rpl_printf instead of
20515         __printf__.
20516         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
20517         commit.
20518         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
20519         commit.
20520         * m4/asm-underscore.m4: New file.
20521         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
20522         * modules/stdio (Files): Add m4/asm-underscore.m4.
20523         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
20524         Reported by Ben Pfaff.
20525
20526 2010-05-16  Bruno Haible  <bruno@clisp.org>
20527
20528         verify: Avoid skipping the test on openSUSE 11.0.
20529         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
20530
20531 2010-05-13  Bruno Haible  <bruno@clisp.org>
20532
20533         Avoid useless warnings from G++.
20534         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
20535         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
20536         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20537
20538 2010-05-11  Jim Meyering  <meyering@redhat.com>
20539
20540         maint.mk: tweak preceding change
20541         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
20542         regexps tighter by anchoring at EOL, and make the new group "shy"
20543         for slightly decreased overhead.
20544
20545 2010-05-11  Eric Blake  <eblake@redhat.com>
20546
20547         maint.mk: gnulib doesn't guarantee NSIG
20548         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
20549
20550 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20551
20552         test-pwrite.c: Remove unused variable declaration.
20553         * tests/test-pwrite.c (main): Remove read_buf declaration.
20554
20555         Remove useless test-pwrite.sh file.
20556         * tests/test-pwrite.sh: Delete file.
20557         * modules/pwrite-tests: Remove references.
20558         Reported by Bruno Haible.
20559
20560 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20561
20562         init.sh: fix a typo
20563         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20564
20565 2010-05-10  Jim Meyering  <meyering@redhat.com>
20566
20567         maint.mk: avoid using a temporary file in the always-defined-macros check
20568         * top/maint.mk (.re-defmac): Remove rule.
20569         (gl_trap_): Remove definition.
20570         (sc_prohibit_always-defined_macros): Rewrite not to create and
20571         depend on a temporary file.  Instead, depend on GNU grep's ability
20572         to read a list of regular expressions from stdin when given "-f -".
20573
20574 2010-05-09  Bruno Haible  <bruno@clisp.org>
20575
20576         Update to GNU gettext 0.18, part 1.
20577         * m4/gettext.m4: Update to GNU gettext 0.18.
20578         * m4/intl.m4: Likewise.
20579         * m4/po.m4: Likewise.
20580         * modules/gettext (Files): Add m4/fcntl-o.m4.
20581         (configure.ac): Require gettext infrastructure from version 0.18.
20582
20583 2010-05-09  Jim Meyering  <meyering@redhat.com>
20584
20585         init.sh: enable MALLOC_PERTURB_
20586         * tests/init.sh: Enable glibc's malloc-perturbing option.
20587
20588         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20589         With my recent change in init.sh from the two-line form:
20590             -#   : ${srcdir=.}
20591             -#   . "$srcdir/init.sh"; path_prepend_ .
20592             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20593         I noticed that using the one-line form would cause this test
20594         to fail with a false-positive, or to stop working altogether,
20595         depending on whether help-version changed or all the tests did.
20596         * top/maint.mk (_hv_regex): Remove this definition.
20597         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20598         (_hv_regex_strong): Use a stronger regex to check for conformance.
20599         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20600         Give a separate diagnostic for lack of conforming use.
20601
20602         maint.mk: prohibit definition of symbols defined by gnulib
20603         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20604         definition of symbols defined by gnulib.
20605
20606 2010-05-09  Bruno Haible  <bruno@clisp.org>
20607
20608         acl: Avoid test failure on Cygwin-hosted mingw.
20609         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20610
20611 2010-05-09  Bruno Haible  <bruno@clisp.org>
20612
20613         error: Use system's fcntl function.
20614         * lib/error.c (fcntl): Undefine.
20615
20616 2010-05-09  Jim Meyering  <meyering@redhat.com>
20617
20618         verify: adjust formatting to be more consistent
20619         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20620         argument-list '('s, and after one comma.
20621
20622 2010-05-09  Bruno Haible  <bruno@clisp.org>
20623
20624         error: More reliable output on mingw.
20625         * lib/error.c: Include <windows.h>.
20626         (is_open): New function.
20627         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20628         defined.
20629
20630 2010-05-09  Bruno Haible  <bruno@clisp.org>
20631
20632         vasnprintf: Fix syntax errors in libintl build on mingw.
20633         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20634         pad_ourselves and prec_ourselves after use.
20635
20636 2010-05-08  Bruno Haible  <bruno@clisp.org>
20637
20638         * lib/config.charset: Update comments for Cygwin 1.7.
20639         * lib/localcharset.c: Likewise.
20640
20641 2010-05-07  Jim Meyering  <meyering@redhat.com>
20642
20643         init.sh: improve comments
20644         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20645         . "${srcdir=.}/init.sh"; path_prepend_ .
20646         Add a note about path_prepend_ and the alternative of using
20647         TESTS_ENVIRONMENT.
20648
20649 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20650
20651         exclude: Unescape hashed patterns in wildcard mode.
20652         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20653         to the hash list.
20654         * tests/test-exclude8.sh: New test case.
20655         * modules/exclude-tests: Add new test.
20656
20657 2010-05-05  Eric Blake  <eblake@redhat.com>
20658
20659         verify: automate tests
20660         * modules/verify-tests: New module.
20661         * tests/test-verify.sh: New file.
20662         * tests/test-verify.c: Guard each negative test with a unique id.
20663         Also avoid warning about unused left hand of comma expressions.
20664
20665 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20666
20667         Further improvements to verify.h, suggested by Eric Blake.
20668         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20669         the GL_* versions, to avoid collision with OpenGL.
20670         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20671         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20672         than testing merely whether it's defined.
20673
20674         Modify verify.h to pacify gcc -Wredundant_decls.
20675         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20676         These use the prefix "GL_" since they're likely to be useful elsewhere.
20677         We may need to break them out into a different .h file.
20678         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20679         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20680         of verify_function__.
20681
20682 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20683
20684         Tests for module pwrite.
20685         * modules/pwrite-tests: New file.
20686         * tests/test-pwrite.sh: New file.
20687         * tests/test-pwrite.c: New file.
20688
20689         New module pwrite.
20690         * lib/unistd.in.h (pwrite): New declaration.
20691         * lib/pwrite.c: New file, from glibc with modifications.
20692         * m4/pwrite.m4: New file.
20693         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20694         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20695         REPLACE_PWRITE.
20696         * modules/pwrite: New file.
20697         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20698         REPLACE_PWRITE.
20699         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20700         * doc/posix-functions/pwrite.texi: Mention the new module.
20701
20702 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20703
20704         pread: Update documentation.
20705         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20706
20707 2010-05-04  Eric Blake  <eblake@redhat.com>
20708
20709         docs: update cygwin progress
20710         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20711         this bug.
20712         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20713         Added in cygwin 1.7.2.
20714         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20715         Likewise.
20716         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20717         Likewise.
20718         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20719         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20720         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20721         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20722         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20723         Mention nproc module.
20724         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20725         bug in cygwin 1.7.5 addition.
20726         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20727         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20728         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20729         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20730         1.7.5.
20731         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20732         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20733         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20734         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20735         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20736         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20737         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20738         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20739         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20740         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20741         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20742         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20743         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20744         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20745         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20746         Likewise.
20747         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20748         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20749         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20750         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20751         Likewise.
20752         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20753         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20754         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20755         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20756         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20757         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20758         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20759         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20760         Likewise.
20761         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20762         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20763         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20764         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20765         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20766         Likewise.
20767         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20768         Likewise.
20769         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20770         Likewise.
20771         * doc/glibc-functions/xdrrec_endofrecord.texi
20772         (xdrrec_endofrecord): Likewise.
20773         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20774         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20775         Likewise.
20776         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20777         Likewise.
20778
20779 2010-05-04  Jim Meyering  <meyering@redhat.com>
20780
20781         gendocs.sh: make its "-s FILE" option more useful
20782         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20783         $PACKAGE to reflect the probably-different basename of "FILE".
20784
20785 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20786
20787         bootstrap: don't ignore download_po_files failure
20788         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20789         failure.
20790
20791 2010-05-03  Jim Meyering  <meyering@redhat.com>
20792
20793         maint.mk: allow to pass options to gendocs.sh
20794         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20795         (gendocs_options_): New overridable variable.
20796
20797         gnu-web-doc-update: don't ignore configure or build failure
20798         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20799
20800         announce-gen: backslash-escape '@'s in --help output
20801         * build-aux/announce-gen: Fix syntax errors.
20802
20803         maint.mk, announce-gen: allow project-specific announcement mail headers
20804         * top/maint.mk (translation_project_): Define default.
20805         (announcement_Cc_, announcement_mail_headers_): Likewise.
20806         (announcement): Invoke announce-gen with new --mail-headers option.
20807         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20808
20809         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20810         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20811         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20812         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20813         line in the "err2" output file when running "make check" in verbose
20814         mode (i.e., with set -x enabled).
20815
20816 2010-05-03  Bruno Haible  <bruno@clisp.org>
20817
20818         wctob: Fix for weird platforms.
20819         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20820         argument value.
20821
20822 2010-05-03  Jim Meyering  <meyering@redhat.com>
20823
20824         maint.mk: prohibit unwarranted use of <strings.h>
20825         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20826         strings.h in a file that does not also use strcasecmp, strncasecmp,
20827         ffs or ffsll.
20828
20829         maint.mk: remove obsolete comments
20830         * top/maint.mk: Remove stale, commented-out rules.
20831
20832 2010-05-02  Bruno Haible  <bruno@clisp.org>
20833
20834         wcwidth: Declare also when it's aliased.
20835         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20836         macro.
20837
20838 2010-05-02  Bruno Haible  <bruno@clisp.org>
20839
20840         Fix regression from 2010-04-25.
20841         * gnulib-tool (func_modules_transitive_closure): Check the status of
20842         all modules, not only of the tests that are of the form foo-tests where
20843         foo is a module.
20844
20845 2010-05-02  Bruno Haible  <bruno@clisp.org>
20846
20847         wctob: Work around nasty Cygwin 1.7.2 bug.
20848         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20849         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20850
20851 2010-05-01  Bruno Haible  <bruno@clisp.org>
20852
20853         fpurge: Sharper test.
20854         * tests/test-fpurge.c (main): Add one more ftell check.
20855         * modules/fpurge-tests (Depends-on): Add ftell.
20856         Suggested by Eric Blake.
20857
20858 2010-05-01  Bruno Haible  <bruno@clisp.org>
20859
20860         ftello: Another test.
20861         * tests/test-ftello3.c: New file.
20862         * modules/ftello-tests (Files): Add it.
20863         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20864         MOSTLYCLEANFILES.
20865
20866         ftell: Another test.
20867         * tests/test-ftell3.c: New file.
20868         * modules/ftell-tests (Files): Add it.
20869         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20870         MOSTLYCLEANFILES.
20871
20872 2010-05-01  Bruno Haible  <bruno@clisp.org>
20873
20874         ftell, ftello: Work around Solaris bug.
20875         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20876         * lib/ftello.c: Include stdio-impl.h.
20877         (ftello): On Solaris, when _IOWRT is set, compute the result without
20878         looking at _IOREAD.
20879         * modules/ftello (Files): Add lib/stdio-impl.h.
20880         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20881         * doc/posix-functions/ftello.texi: Likewise.
20882         Reported by Eric Blake.
20883
20884 2010-05-01  Bruno Haible  <bruno@clisp.org>
20885
20886         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20887         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20888         the _IOWRT flag is also set.
20889
20890 2010-05-01  Bruno Haible  <bruno@clisp.org>
20891
20892         Fix doc about a HP-UX stdio bug.
20893         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20894         * doc/posix-functions/ftello.texi: Likewise.
20895
20896 2010-05-01  Bruno Haible  <bruno@clisp.org>
20897
20898         lseek test: Fix failure on Solaris.
20899         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20900         output.
20901
20902 2010-04-30  Jim Meyering  <meyering@redhat.com>
20903
20904         bootstrap: don't ignore failure to generate po*/Makevars
20905         * build-aux/bootstrap (with_gettext): Don't ignore failure
20906         to create po/Makevars or runtime-po/Makevars.
20907
20908 2010-04-29  Eric Blake  <eblake@redhat.com>
20909
20910         headers: relax license to LGPLv2+
20911         * modules/fcntl-h (License): Relax license.
20912         * modules/getopt-posix (License): Likewise.
20913         * modules/locale (License): Likewise.
20914         * modules/math (License): Likewise.
20915         * modules/pty (License): Likewise.
20916         * modules/sched (License): Likewise.
20917         * modules/search (License): Likewise.
20918         * modules/spawn (License): Likewise.
20919         * modules/stdarg (License): Likewise.
20920         * modules/sysexits (License): Likewise.
20921
20922 2010-04-29  Jim Meyering  <meyering@redhat.com>
20923
20924         inttypes: relax license to LGPLv2+
20925         * modules/inttypes (License): Relax license.
20926
20927 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20928
20929         * top/maint.mk (indent): Run twice to produce idempotent results.
20930
20931 2010-04-28  Bruno Haible  <bruno@clisp.org>
20932
20933         getdate: Generate getdate.c in the source directory.
20934         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20935         MOSTLYCLEANFILES.
20936         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20937
20938 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20939
20940         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20941         is not declared as a const *; avoid warnings in that case.
20942
20943 2010-04-28  Eric Blake  <eblake@redhat.com>
20944
20945         canonicalize-lgpl: avoid compiler warning
20946         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20947         declaration' / 'extraneous semicolon' warning with some compilers.
20948         Reported by Andreas Gruenbacher.
20949
20950 2010-04-28  Jim Meyering  <meyering@redhat.com>
20951
20952         init.sh: ensure a more reliable exit status when exiting via trap
20953         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20954         Inspired by patches from Dmitry V. Levin.
20955         Also trap on signal 3 (SIGQUIT).
20956
20957 2010-04-27  Bruno Haible  <bruno@clisp.org>
20958
20959         Update doc about utimes().
20960         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20961         'utimens' module.
20962         Reported by Andreas Gruenbacher <agruen@suse.de>.
20963
20964 2010-04-27  Eric Blake  <eblake@redhat.com>
20965
20966         full-read, full-write: relax license
20967         * modules/full-read (License): Drop to LGPLv2+.
20968         * modules/full-write (License): Likewise.
20969         * modules/safe-read (License): Likewise.
20970         * modules/safe-write (License): Likewise.
20971
20972         pthread: mention library for linking
20973         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20974
20975 2010-04-27  Jim Meyering  <meyering@redhat.com>
20976
20977         maint.mk: fix a bug introduced in last change
20978         * top/maint.mk (gl_assured_headers_): Now that all names are on
20979         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20980         is not anchored to end of word, it should be adequate.
20981
20982         maint.mk: avoid side-effect in latest syntax-check
20983         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20984         to run commands via $(shell...), and hence to incur cost only when
20985         the new rule is actually run.
20986
20987         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20988         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20989         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20990         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20991         (gl_assured_headers_, az_, AZ_): Define.
20992         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20993
20994 2010-04-26  Jim Meyering  <jim@meyering.net>
20995             Bruno Haible  <bruno@clisp.org>
20996
20997         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20998         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20999         Prompted by an exchange with Gilles Espinasse.
21000
21001 2010-04-26  Jim Meyering  <meyering@redhat.com>
21002
21003         git-version-gen: aesthetic tweak
21004         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21005         so that the command remains on a single line.
21006
21007 2010-04-26  Eric Blake  <eblake@redhat.com>
21008
21009         git-version-gen: allow use on EBCDIC hosts
21010         * build-aux/git-version-gen (dirty): Use literal rather than tying
21011         ourselves to ascii.
21012         Reported by Steve Goetze.
21013
21014 2010-04-25  Bruno Haible  <bruno@clisp.org>
21015
21016         netdb: Add support for GNULIB_POSIXCHECK.
21017         * lib/netdb.in.h: Include warn-on-use.h.
21018         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21019         functions are used when GNULIB_POSIXCHECK is defined and the
21020         getaddrinfo module is not in use.
21021         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
21022         freeaddrinfo, gai_strerror, getnameinfo are declared.
21023         * modules/netdb (Depends-on): Add warn-on-use.
21024         (Makefile.am): Include warn-on-use.h in netdb.h.
21025
21026 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21027
21028         build: avoid "make check" failure without .git/ directory
21029         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
21030         there is no .git/ directory.
21031
21032 2010-04-25  Bruno Haible  <bruno@clisp.org>
21033
21034         ptsname: Fix misuse of ttyname_r.
21035         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
21036         of errno.
21037
21038 2010-04-25  Bruno Haible  <bruno@clisp.org>
21039
21040         ttyname_r: Make it work on Solaris 10.
21041         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
21042         if the system function has the POSIX declaration. Test whether the
21043         function fails if the buffer is less than 128 bytes large.
21044         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
21045         system's ttyname_r function. Provide a reasonably large buffer.
21046         * modules/ttyname_r (Depends-on): Add extensions.
21047         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
21048
21049 2010-04-25  Bruno Haible  <bruno@clisp.org>
21050
21051         Use the 'extensions' module for some more functions on Solaris.
21052         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21053         module.
21054         * doc/posix-functions/ctime_r.texi: Likewise.
21055         * doc/posix-functions/getgrgid_r.texi: Likewise.
21056         * doc/posix-functions/getgrnam_r.texi: Likewise.
21057         * doc/posix-functions/getpwnam_r.texi: Likewise.
21058         * doc/posix-functions/getpwuid_r.texi: Likewise.
21059         * doc/posix-functions/readdir_r.texi: Likewise.
21060         * doc/posix-functions/sigwait.texi: Likewise.
21061         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21062         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21063
21064 2010-04-25  Bruno Haible  <bruno@clisp.org>
21065
21066         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21067         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21068         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21069         * lib/ttyname_r.c: Include <limits.h>.
21070         (ttyname_r): Define using the system's ttyname_r function, if it exists
21071         and not on Solaris.
21072         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21073         set.
21074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21075         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21076         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21077         Reported by Simon Josefsson.
21078
21079 2010-04-25  Bruno Haible  <bruno@clisp.org>
21080
21081         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21082         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21083         * doc/posix-functions/ctime_r.texi: Likewise.
21084         * doc/posix-functions/getgrgid_r.texi: Likewise.
21085         * doc/posix-functions/getgrnam_r.texi: Likewise.
21086         * doc/posix-functions/getlogin_r.texi: Likewise.
21087         * doc/posix-functions/getpwnam_r.texi: Likewise.
21088         * doc/posix-functions/getpwuid_r.texi: Likewise.
21089         * doc/posix-functions/readdir_r.texi: Likewise.
21090         * doc/posix-functions/sigwait.texi: Likewise.
21091         * doc/posix-functions/ttyname_r.texi: Likewise.
21092         Reported by Simon Josefsson.
21093
21094 2010-04-25  Bruno Haible  <bruno@clisp.org>
21095
21096         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21097         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21098         also to --create-testdir.
21099         (func_acceptable): Don't consider the status of *-tests modules here.
21100         (func_modules_transitive_closure): Consider it here, before including a
21101         test module.
21102         (func_import, func_create_testdir): Set inc_all_direct_tests,
21103         inc_all_indirect_tests.
21104         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21105         --create-testdir and --create-megatestdir.
21106
21107 2010-04-25  Bruno Haible  <bruno@clisp.org>
21108
21109         gnulib-tool: Add --without-*-tests options.
21110         * gnulib-tool (func_usage): Document the --without-*-tests options.
21111         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21112         excl_unportable_tests): New variables.
21113         Fail if they are specified with --import or --update.
21114         (func_acceptable): Respect the excl_*_tests variables.
21115         (func_import): Set the excl_*_tests variables to empty.
21116
21117 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21118             Bruno Haible  <bruno@clisp.org>
21119
21120         Work around a MacOS X 10.4 bug with openpty.
21121         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21122         * tests/test-openpty.c (main): Close the master side explicitly.
21123
21124 2010-04-25  Bruno Haible  <bruno@clisp.org>
21125
21126         strnlen: Fix a C++ test error on MacOS X and Solaris.
21127         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
21128         the function is not declared.
21129         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
21130         Simon Josefsson.
21131
21132 2010-04-24  Bruno Haible  <bruno@clisp.org>
21133
21134         Avoid a gcc warning.
21135         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
21136         of correct type for %08lx directive.
21137         Reported by Eric Blake.
21138
21139 2010-04-24  Bruno Haible  <bruno@clisp.org>
21140
21141         vasnprintf: Correct errno value in case of out-of-memory.
21142         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
21143         or sprintf. Use the errno value from SNPRINTF or sprintf.
21144         Reported by Ian Beckwith <ianb@erislabs.net>.
21145
21146 2010-04-24  Bruno Haible  <bruno@clisp.org>
21147
21148         ansi-c++-opt: Find correct compiler when cross-compiling.
21149         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
21150         AC_CHECK_PROGS.
21151         Reported by Simon Josefsson.
21152
21153 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
21154
21155         vc-list-files: Add support for subversion
21156         * build-aux/vc-list-files: Use "svn list" to generate the list of
21157         files controlled by subversion.
21158
21159 2010-04-23  Jim Meyering  <meyering@redhat.com>
21160
21161         vc-list-files tests: convert to use init.sh
21162         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
21163         path_prepend_.
21164         Use Exit, not exit.
21165         Use skip_ rather than open coding it.
21166         Remove trap set-up and compare definitions.
21167         * tests/test-vc-list-files-git.sh: Likewise.
21168         * modules/vc-list-files-tests (Files): Add tests/init.sh.
21169
21170 2010-04-22  Simon Josefsson  <simon@josefsson.org>
21171
21172         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
21173         backup files.
21174
21175 2010-04-21  Simon Josefsson  <simon@josefsson.org>
21176
21177         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
21178
21179 2010-04-20  Eric Blake  <eblake@redhat.com>
21180
21181         tests: be robust to ignored SIGPIPE
21182         * tests/test-select-in.sh: Consume all output.
21183         * tests/test-lseek.sh: Check correct exit status, while avoiding
21184         EPIPE.
21185
21186 2010-04-20  Simon Josefsson  <simon@josefsson.org>
21187             Bruno Haible  <bruno@clisp.org>
21188
21189         visibility: Don't use -fvisibility if it leads to a warning.
21190         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
21191         yes, don't pretend that visibility works if it leads to a warning.
21192         Reported by Mike Gran <spk121@yahoo.com>.
21193
21194 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
21195
21196         * build-aux/bootstrap: Use "git -h" for testing for supported options
21197         instead of "git --help".  The short-form option only shows a summary,
21198         and doesn't layout the full man page.  Grep for the full option name
21199         in the summary, too.
21200
21201 2010-04-19  Bruno Haible  <bruno@clisp.org>
21202
21203         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
21204         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
21205         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
21206         mention of RELOCATABLE_STRIP.
21207         Reported by Sylvain Beucler <beuc@beuc.net>.
21208
21209 2010-04-19  Bruno Haible  <bruno@clisp.org>
21210
21211         * lib/diffseq.h: Fix typo in comment.
21212         Reported by Eric Blake.
21213
21214 2010-04-19  Bruno Haible  <bruno@clisp.org>
21215
21216         ioctl: Move autoconf macro to a .m4 file.
21217         * m4/ioctl.m4: New file, extracted from modules/ioctl.
21218         * modules/ioctl (Files): Add it.
21219         (configure.ac): Simply invoke gl_FUNC_IOCTL.
21220         Reported by Ian Beckwith <ianb@erislabs.net>.
21221
21222 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
21223             Bruno Haible  <bruno@clisp.org>
21224
21225         diffseq: Accommodate use-case with abstract arrays.
21226         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
21227         is not defined.
21228         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
21229         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
21230
21231 2010-04-18  Bruno Haible  <bruno@clisp.org>
21232
21233         * doc/posix-headers/stdbool.texi: More precise wording.
21234
21235 2010-04-17  Jim Meyering  <meyering@redhat.com>
21236
21237         maint.mk: use gnu-style indentation in an embedded perl script
21238         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
21239         Rename variable: s/two/last_two_bytes/
21240
21241 2010-04-16  Eric Blake  <eblake@redhat.com>
21242
21243         test-stdbool: skip test that fails with Solaris CC
21244         * tests/test-stdbool.c (f): Skip test that causes compilation
21245         error under buggy C++ compiler.
21246         * lib/stdbool.in.h: Document the limitation.
21247         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
21248
21249         setenv: allow compilation with C++
21250         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
21251         register keyword.
21252
21253         stdint: allow test to pass with C++
21254         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
21255
21256         getopt: allow compilation with C++
21257         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
21258         struct.
21259         * lib/getopt.c (_getopt_internal_r): Use correct type.
21260         Reported by Dagobert Michelson, via Joel E. Denny.
21261
21262 2010-04-16  Bruno Haible  <bruno@clisp.org>
21263
21264         Override netdb.h always.
21265         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
21266         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
21267         Reported by Ludovic Courtès <ludo@gnu.org>.
21268
21269 2010-04-15  Bruno Haible  <bruno@clisp.org>
21270
21271         openpty: Fix mistake from 2010-03-21.
21272         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
21273         Reported by Simon Josefsson.
21274
21275 2010-04-15  Eric Blake  <eblake@redhat.com>
21276
21277         test-forkpty: fix expected signature
21278         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
21279         Reported by Simon Josefsson.
21280
21281 2010-04-15  Jim Meyering  <meyering@redhat.com>
21282
21283         maint.mk: texinfo_suffix_re_: correct the default regexp
21284         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
21285
21286         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
21287         make it configurable via texinfo_suffix_re_.
21288
21289 2010-04-14  Eric Blake  <eblake@redhat.com>
21290
21291         strtok_r: relax license to LGPLv2+
21292         * modules/strtok_r (License): Relax license.
21293         Reported by Matthias Bolte.
21294
21295 2010-04-14  Simon Josefsson  <simon@josefsson.org>
21296
21297         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
21298         version 1.4.4 by default instead of requiring the libgcrypt
21299         version used during build.  This makes it possible to use the
21300         application with older but still binary compatible libgcrypt
21301         versions.
21302
21303 2010-04-13  Eric Blake  <eblake@redhat.com>
21304
21305         getopt-gnu: match recent glibc fixes and posix ruling
21306         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
21307         '+' handling, when requesting extensions.
21308         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
21309         'W;' handling.
21310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
21311         * doc/posix-functions/getopt.texi (getopt): Document this.
21312         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21313         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21314         Likewise.
21315
21316         getopt: merge bug fixes from glibc
21317         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
21318         diagnostics.  Honor '+:' correctly.  Reject ';'.
21319
21320         getopt-posix: detect MacOS bug
21321         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
21322         optind when missing a required argument.
21323         * doc/posix-functions/getopt.texi (getopt): Document the bug.
21324         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
21325         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21326         Likewise.
21327
21328         getopt-posix: avoid spurious failure on Solaris
21329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
21330         an indicator that setting optind=1 is sufficient for reset.
21331
21332         getopt-posix: avoid spurious failure on FreeBSD
21333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
21334         in POSIX mode, since the m4 test uses it.
21335
21336         gnulib-tool: silence warning on BSD sh
21337         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
21338
21339 2010-04-13  Jim Meyering  <meyering@redhat.com>
21340
21341         doc: users.txt: GNU patch now uses gnulib
21342         * users.txt: Add patch.
21343
21344 2010-04-12  Jim Meyering  <meyering@redhat.com>
21345
21346         maint.mk: generate more concise timing data for syntax-check rules
21347         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
21348         " done" from each line that reports a syntax-check test duration.
21349
21350 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
21351
21352         git-version-gen: use "git update-index..." rather than "git status"
21353         * build-aux/git-version-gen: Use git update-index --refresh, not
21354         "git status".  With some versions of git, "git status" would fail
21355         to update the index and result in an unwarranted "-dirty" suffix.
21356
21357 2010-04-11  Jim Meyering  <meyering@redhat.com>
21358
21359         openat: correct formatting (no semantic change)
21360         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
21361         Suggested by Bruno Haible.
21362
21363 2010-04-11  Bruno Haible  <bruno@clisp.org>
21364
21365         Stricter declaration checking in testdirs.
21366         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21367         If for_tests is true, augment AM_CPPFLAGS to define
21368         GNULIB_STRICT_CHECKING.
21369         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
21370         GNULIB_STRICT_CHECKING is defined, verify that the function is
21371         declared.
21372
21373 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
21374             Bruno Haible  <bruno@clisp.org>
21375
21376         libunistring: Improve configure output.
21377         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
21378         Don't say "consider installing GNU libunistring" when checking again
21379         with libiconv.
21380
21381 2010-04-11  Bruno Haible  <bruno@clisp.org>
21382
21383         libunistring: Correct value of $LTLIBUNISTRING.
21384         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
21385         correct the value of $LTLIBUNISTRING.
21386
21387 2010-04-11  Bruno Haible  <bruno@clisp.org>
21388
21389         havelib: Add static libraries to LIBS in the right order.
21390         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
21391         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
21392
21393 2010-04-11  Bruno Haible  <bruno@clisp.org>
21394
21395         libunistring: Detect libunistring also when it depends on libiconv.
21396         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
21397         the second AC_LIB_HAVE_LINKFLAGS invocation.
21398
21399 2010-04-11  James Youngman  <jay@gnu.org>
21400
21401         close-stream: declare local scalars to be "const"
21402         * lib/close-stream.c (close_stream): Make boolean variables const
21403         to document the fact that we set but do not change them.
21404
21405 2010-04-11  Bruno Haible  <bruno@clisp.org>
21406
21407         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
21408
21409 2010-04-11  Jim Meyering  <meyering@redhat.com>
21410
21411         maint.mk: don't include dist-check.mk
21412         * top/maint.mk: Remove bogus include directive.
21413
21414         maint.mk: improve empty-line-at-EOF check
21415         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
21416         solution, rather than tail+Perl-based one.  The latter would read
21417         a few kilobytes from the end of each file, and did not handle empty
21418         files properly.
21419
21420         maint.mk: print the elapsed time for each syntax-check rule
21421         * top/maint.mk (sc_m_rules_): Save start time in a file.
21422         (sc_z_rules_): New rules: remove temp file and print elapsed time.
21423         (local-check): Interpose the .z rules
21424
21425 2010-04-11  Jim Meyering  <meyering@redhat.com>
21426
21427         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
21428         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
21429         empty file with one that ends in an empty line.
21430
21431 2010-04-10  Bruno Haible  <bruno@clisp.org>
21432
21433         mkdir: Make it work on mingw64.
21434         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
21435         * lib/mkdir.c: Update comment.
21436         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
21437
21438 2010-04-10  Bruno Haible  <bruno@clisp.org>
21439
21440         Don't override improved macro from newer autoconf.
21441         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
21442         autoconf >= 2.62.
21443         Reported by Joel E. Denny <jdenny@clemson.edu>.
21444
21445 2010-04-10  Jim Meyering  <meyering@redhat.com>
21446
21447         maint.mk: new syntax-check rule: prohibit empty lines at end of file
21448         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
21449
21450         maint.mk: correct a diagnostic
21451         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
21452         in diagnostic; now use $prohibit.
21453
21454 2010-04-10  Bruno Haible  <address@hidden>
21455
21456         fchownat: Fix a C++ test error on Solaris 8.
21457         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
21458         the function does not exist.
21459
21460 2010-04-10  Bruno Haible  <bruno@clisp.org>
21461
21462         vasnprintf: Add more tests.
21463         * tests/test-vasnprintf-posix.c: Include <errno.h>.
21464         (test_function): Test converting an invalid wide string.
21465
21466         vasnprintf: Correct handling of unconvertible wide string arguments.
21467         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
21468         VASNPRINTF.
21469         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
21470         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
21471         smaller than the expected maximum need for the directive. Set errno to
21472         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
21473         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
21474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
21475         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
21476         * modules/vasnprintf (Files): Add m4/printf.m4.
21477         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21478
21479 2010-04-10  Bruno Haible  <bruno@clisp.org>
21480
21481         vasnprintf: Fix crash in %ls directive.
21482         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
21483         string is passed as argument to %ls, with no precision and no width.
21484         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21485
21486 2010-04-10  Bruno Haible  <bruno@clisp.org>
21487
21488         vasnprintf: Fix multiple test failures on mingw.
21489         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
21490         _snprintf, or snwprintf, not _snwprintf.
21491
21492 2010-04-10  Bruno Haible  <bruno@clisp.org>
21493
21494         write: Fix a C++ test error on mingw.
21495         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
21496
21497 2010-04-10  Bruno Haible  <bruno@clisp.org>
21498
21499         vasnprintf test: Reduce code duplication.
21500         * tests/test-vasnprintf.c (test_function): New function, extracted from
21501         test_vasnprintf.
21502         (test_vasnprintf, test_asnprintf): Invoke it.
21503
21504 2010-04-10  Bruno Haible  <bruno@clisp.org>
21505
21506         strnlen: Fix warning in C++ mode on MacOS X.
21507         * lib/string.in.h (strnlen): Use the modern idiom.
21508         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
21509         defining strnlen as a macro already in <config.h>.
21510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21511         REPLACE_STRNLEN.
21512         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
21513         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21514
21515 2010-04-08  James Youngman  <jay@gnu.org>
21516
21517         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
21518         the example.
21519
21520 2010-04-09  Jim Meyering  <meyering@redhat.com>
21521
21522         maint.mk: print better diagnostic when there is no $(_hv_file)
21523         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
21524         announce that when $(_hv_file) (aka help-version) does not exist.
21525
21526         init.sh: run tr in the "C" locale to avoid multibyte interpretation
21527         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
21528         not try to interpret its random input bytes.  Jarno Rajahalme reported
21529         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
21530         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
21531         (mktempd_): Likewise, just in case.
21532
21533         ftruncate: add two years to projected module removal date: 2012
21534         * m4/ftruncate.m4: Adjust comments.
21535
21536         ftruncate: mark module as obsolete; even MinGW provides it, now
21537         * modules/ftruncate (Status): Obsolete.
21538         (Notice): Say that.
21539         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
21540         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
21541
21542 2010-04-08  Bruno Haible  <bruno@clisp.org>
21543
21544         Fix side effects from tests-related modules.
21545         * modules/dprintf-posix (Comment): New section.
21546         * modules/fprintf-posix (Comment): Likewise.
21547         * modules/obstack-printf-posix (Comment): Likewise.
21548         * modules/printf-posix (Comment): Likewise.
21549         * modules/snprintf-posix (Comment): Likewise.
21550         * modules/sprintf-posix (Comment): Likewise.
21551         * modules/vasnprintf-posix (Comment): Likewise.
21552         * modules/vasprintf-posix (Comment): Likewise.
21553         * modules/vdprintf-posix (Comment): Likewise.
21554         * modules/vfprintf-posix (Comment): Likewise.
21555         * modules/vprintf-posix (Comment): Likewise.
21556         * modules/vsnprintf-posix (Comment): Likewise.
21557         * modules/vsprintf-posix (Comment): Likewise.
21558         * modules/xprintf-posix (Comment): Likewise.
21559         * modules/xvasprintf-posix (Comment): Likewise.
21560         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21561         * modules/floorf-tests (Depends-on): Likewise.
21562         * modules/round-tests (Depends-on): Likewise.
21563         * modules/roundf-tests (Depends-on): Likewise.
21564         * modules/trunc-tests (Depends-on): Likewise.
21565         * modules/truncf-tests (Depends-on): Likewise.
21566         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21567         'fprintf-posix' module is not present.
21568         * tests/test-floorf2.c (check): Likewise.
21569         * tests/test-trunc2.c (check): Likewise.
21570         * tests/test-truncf2.c (check): Likewise.
21571         * tests/test-round2.c (equal): Likewise.
21572         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21573
21574 2010-04-07  Karl Berry  <karl@gnu.org>
21575
21576         * config/srclist.txt,
21577         * config/srclistvars.sh,
21578         * config/srclist-update: doc fixes.
21579
21580 2010-04-07  Jim Meyering  <meyering@redhat.com>
21581
21582         maint.mk: add a PATH crosschecking syntax-check rule
21583         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21584         Useful if you use a test like the one in help-version (coreutils,
21585         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21586         printed by prog --version.
21587
21588 2010-04-06  Bruno Haible  <bruno@clisp.org>
21589
21590         Fix link error on mingw.
21591         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21592         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21593
21594 2010-04-06  Bruno Haible  <bruno@clisp.org>
21595
21596         Assume rmdir exists.
21597         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21598
21599 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21600
21601         doc: update users.txt
21602         * users.txt: Add gcal.
21603
21604 2010-04-06  Jim Meyering  <meyering@redhat.com>
21605
21606         init.sh: simply unset TMPDIR rather than risking env -i
21607         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21608         although it probably works fine on all Unix-based systems, some
21609         systems (Cygwin?) cannot tolerate a totally cleared environment.
21610         Suggestion from Eric Blake.
21611
21612 2010-04-06  Jim Meyering  <meyering@redhat.com>
21613
21614         init.sh: portability fix: use env's POSIX-specified -i option not -u
21615         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21616         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21617
21618 2010-04-05  Bruno Haible  <bruno@clisp.org>
21619
21620         btowc: Work around Cygwin 1.7.2 bug.
21621         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21622         does not map NUL to 0.
21623         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21624
21625 2010-04-05  Bruno Haible  <bruno@clisp.org>
21626
21627         Make the multithread modules work on Cygwin 1.7.2.
21628         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21629         imported symbols can be declared weak, so that it returns "no" on
21630         Cygwin 1.7.2.
21631
21632 2010-04-05  Bruno Haible  <bruno@clisp.org>
21633
21634         Use the module 'strncat'.
21635         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21636
21637         Tests for module 'strncat'.
21638         * modules/strncat-tests: New file.
21639         * tests/test-strncat.c: New file.
21640
21641         New module 'strncat'.
21642         * lib/string.in.h (strncat): New declaration.
21643         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21644         * m4/strncat.m4: New file, based on m4/memchr.m4.
21645         * modules/strncat: New file.
21646         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21647         is declared.
21648         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21649         REPLACE_STRNCAT.
21650         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21651         REPLACE_STRNCAT.
21652         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21653         module.
21654         * tests/test-string-c++.cc: Check signature of strncat.
21655
21656 2010-04-05  Jim Meyering  <meyering@redhat.com>
21657
21658         xstrtoumax-tests: convert to use init.sh
21659         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21660         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21661         Use Exit, not exit.
21662         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21663
21664         xstrtoimax-tests: convert to use init.sh
21665         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21666         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21667         Use Exit, not exit.
21668         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21669
21670 2010-04-05  Bruno Haible  <bruno@clisp.org>
21671
21672         sys_socket: Avoid #define replacements in C++ mode.
21673         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21674         warning to the function if possible, rather than #defining the symbol
21675         to a dysfunctional alias.
21676
21677 2010-04-05  Bruno Haible  <bruno@clisp.org>
21678
21679         fseeko: Fix C++ test error on mingw.
21680         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21681         gl_FUNC_FSEEKO.
21682         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21683         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21684         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21685         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21686
21687 2010-04-05  Bruno Haible  <bruno@clisp.org>
21688
21689         duplocale: Improve test output.
21690         * tests/test-duplocale.c (main): Print reason for skipped test.
21691
21692 2010-04-05  Bruno Haible  <bruno@clisp.org>
21693
21694         Assume rmdir exists.
21695         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21696         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21697
21698 2010-04-05  Bruno Haible  <bruno@clisp.org>
21699
21700         Fix link error on Solaris 8 with cc.
21701         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21702
21703 2010-04-05  Bruno Haible  <bruno@clisp.org>
21704
21705         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21706         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21707
21708 2010-04-05  Bruno Haible  <bruno@clisp.org>
21709
21710         vasprintf: Update documentation.
21711         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21712
21713 2010-04-05  Bruno Haible  <bruno@clisp.org>
21714
21715         ptsname: Improve test.
21716         * tests/test-ptsname.c (main): Also try the various master names of BSD
21717         systems.
21718
21719 2010-04-05  Bruno Haible  <bruno@clisp.org>
21720
21721         memchr: Avoid a possible C++ test error.
21722         * lib/string.in.h (memchr): Provide declaration if function is missing.
21723         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21724         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21726         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21727
21728 2010-04-05  Bruno Haible  <bruno@clisp.org>
21729
21730         strtok_r: Improve idiom.
21731         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21732         AC_LIBOBJ is used.
21733
21734 2010-04-05  Bruno Haible  <bruno@clisp.org>
21735
21736         strdup: Improve idiom.
21737         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21738         AC_LIBOBJ is used.
21739         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21740         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21741         when AC_LIBOBJ is used.
21742
21743 2010-04-05  Bruno Haible  <bruno@clisp.org>
21744
21745         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21746         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21747         don't set REPLACE_MBSINIT to 1.
21748         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21749         don't set REPLACE_MBRTOWC to 1.
21750         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21751         exist, don't set REPLACE_MBSRTOWCS to 1.
21752         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21753         exist, don't set REPLACE_MBSNRTOWCS to 1.
21754         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21755         don't set REPLACE_WCRTOMB to 1.
21756         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21757         exist, don't set REPLACE_WCSRTOMBS to 1.
21758         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21759         exist, don't set REPLACE_WCSNRTOMBS to 1.
21760
21761 2010-04-05  Bruno Haible  <bruno@clisp.org>
21762
21763         ldexpl: Improve idiom.
21764         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21765         make sure to set HAVE_DECL_LDEXPL to 0.
21766
21767 2010-04-05  Jim Meyering  <meyering@redhat.com>
21768
21769         xstrtol-tests: convert to use init.sh
21770         * modules/xstrtol-tests (Files): Add tests/init.sh.
21771         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21772         Use Exit, not exit.
21773         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21774
21775         atexit-tests: convert to use init.sh
21776         * modules/atexit-tests (Files): Add tests/init.sh.
21777         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21778         Use Exit, not exit.
21779         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21780
21781         init.sh: fix typo
21782         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21783
21784         init.sh: make it easier for a test script to write to the tty, ...
21785         when using automake's parallel-tests mode.
21786         * tests/init.sh (stderr_fileno_): Define overridable variable.
21787         (warn_): New function, to use it.
21788         (fail_, skip_, framework_failure_): Use warn_.
21789
21790 2010-04-04  Bruno Haible  <bruno@clisp.org>
21791
21792         btowc: Avoid warning.
21793         * lib/btowc.c: Include <stdlib.h>.
21794         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21795
21796 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21797             Bruno Haible  <bruno@clisp.org>
21798
21799         wchar: Port to NetBSD 1.5.
21800         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21801         * lib/wctype.in.h (WEOF): Likewise.
21802
21803 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21804             Bruno Haible  <bruno@clisp.org>
21805
21806         Port extended stdio to NetBSD 1.5.
21807         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21808         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21809         older.
21810
21811 2010-04-04  Bruno Haible  <bruno@clisp.org>
21812
21813         string: Remove unused substitution.
21814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21815         HAVE_DECL_STRERROR.
21816         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21817
21818 2010-04-04  Bruno Haible  <bruno@clisp.org>
21819
21820         strtod: Avoid a possible C++ test error.
21821         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21822         set REPLACE_STRTOD.
21823
21824 2010-04-04  Bruno Haible  <bruno@clisp.org>
21825
21826         strerror: Update documentation.
21827         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21828
21829 2010-04-04  Bruno Haible  <bruno@clisp.org>
21830
21831         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21832         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21833         _GL_CXXALIAS_SYS_CAST.
21834
21835 2010-04-04  Bruno Haible  <bruno@clisp.org>
21836
21837         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21838         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21839         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21840         REPLACE_FREXPL to 1.
21841         * doc/posix-functions/frexpl.texi: Update documentation.
21842
21843 2010-04-04  Bruno Haible  <bruno@clisp.org>
21844
21845         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21846         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21847
21848 2010-04-04  Bruno Haible  <bruno@clisp.org>
21849
21850         Implement nanosleep for native Windows.
21851         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21852
21853 2010-04-04  Bruno Haible  <bruno@clisp.org>
21854
21855         math: Fix some C++ test errors on Solaris 8.
21856         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21857
21858 2010-04-04  Bruno Haible  <bruno@clisp.org>
21859
21860         math: Fix some C++ test errors on Cygwin.
21861         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21862         truncl): Provide declaration if the system does not have it.
21863         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21864         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21865         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21866         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21867         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21868         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21869         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21870         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21871         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21872         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21873         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21874         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21875         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21876         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21877         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21878         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21880         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21881         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21882         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21883         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21884         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21885
21886 2010-04-04  Bruno Haible  <bruno@clisp.org>
21887
21888         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21889         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21890         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21891         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21892         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21893         * m4/isinf.m4 (gl_ISINF): Likewise.
21894         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21895
21896 2010-04-04  Bruno Haible  <bruno@clisp.org>
21897
21898         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21899         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21900
21901 2010-04-04  Bruno Haible  <bruno@clisp.org>
21902
21903         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21904         * modules/tmpfile (configure.ac): Update.
21905
21906         tmpfile: Fix C++ test error on mingw.
21907         * lib/stdio.in.h (tmpfile): New declaration.
21908         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21909         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21910         * modules/tmpfile (Depends-on): Add stdio.
21911         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21912         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21913         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21914         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21915         REPLACE_TMPFILE.
21916         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21917
21918 2010-04-04  Bruno Haible  <bruno@clisp.org>
21919
21920         ioctl: Fix C++ test error on mingw.
21921         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21922         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21923         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21924
21925 2010-04-03  Bruno Haible  <bruno@clisp.org>
21926
21927         wcwidth: Fix C++ test error on mingw.
21928         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21930         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21931
21932 2010-04-03  Bruno Haible  <bruno@clisp.org>
21933
21934         nanosleep: Fix C++ test error on mingw.
21935         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21936         * lib/time.in.h (nanosleep): Use modern idiom.
21937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21938         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21939         REPLACE_NANOSLEEP to 1.
21940         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21941         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21942
21943 2010-04-03  Bruno Haible  <bruno@clisp.org>
21944
21945         strptime: Fix C++ test error on mingw.
21946         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21947         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21948         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21949         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21950         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21951         not REPLACE_STRPTIME.
21952         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21953         REPLACE_STRPTIME.
21954
21955 2010-04-03  Bruno Haible  <bruno@clisp.org>
21956
21957         timegm: Fix C++ test error on mingw.
21958         * lib/time.in.h (timegm): Use modern idiom.
21959         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21960         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21961         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21962         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21963
21964 2010-04-03  Bruno Haible  <bruno@clisp.org>
21965
21966         timegm: Assume declaration if function exists.
21967         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21968         if it exists. Don't clobber ac_cv_func_timegm.
21969
21970 2010-04-03  Bruno Haible  <bruno@clisp.org>
21971
21972         time_r: Fix C++ test error on mingw.
21973         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21974         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21975         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21976         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21977         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21978
21979 2010-04-03  Bruno Haible  <bruno@clisp.org>
21980
21981         time_r: Minor updates.
21982         * modules/time_r (Description): Mention the provided functions.
21983         * lib/time_r.c: Don't include <string.h>.
21984         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21985         * doc/posix-functions/localtime_r.texi: Likewise.
21986
21987 2010-04-03  Bruno Haible  <bruno@clisp.org>
21988
21989         time: Fix regression introduced on 2010-03-08.
21990         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21991         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21992
21993 2010-04-03  Jim Meyering  <meyering@redhat.com>
21994
21995         maint.mk: don't silently disable project-specific syntax-check rules
21996         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21997         that they need to convert their project-specific syntax-check rules
21998         to use the new _sc_search_regexp.
21999
22000 2010-04-03  Bruno Haible  <bruno@clisp.org>
22001
22002         fchdir: Fix regression introduced on 2010-03-08.
22003         * lib/unistd.in.h (fchdir): Fix declaration.
22004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22006         REPLACE_FCHDIR.
22007         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22008         REPLACE_FCHDIR.
22009
22010 2010-04-03  Bruno Haible  <bruno@clisp.org>
22011
22012         getpagesize: Fix C++ test error on mingw.
22013         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22014         system does not declare the function.
22015         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22016         declared.
22017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22018         HAVE_DECL_GETPAGESIZE.
22019         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22020
22021 2010-04-03  Bruno Haible  <bruno@clisp.org>
22022
22023         stdio: Make C++ tests work on mingw.
22024         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
22025         does not declare the function.
22026
22027 2010-04-03  Bruno Haible  <bruno@clisp.org>
22028
22029         ftello: Fix C++ test error on mingw.
22030         * lib/stdio.in.h (ftello): Use modern idiom.
22031         * lib/ftello.c (ftello): Renamed from rpl_ftello.
22032         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
22033         is missing and that it needs to be replaced.
22034         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
22035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
22036         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
22037
22038 2010-04-03  Bruno Haible  <bruno@clisp.org>
22039
22040         fseeko: Fix C++ test error on mingw.
22041         * lib/stdio.in.h (fseeko): Use modern idiom.
22042         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
22043         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
22044         is missing and that it needs to be replaced.
22045         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
22046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
22047         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
22048
22049 2010-04-03  Bruno Haible  <bruno@clisp.org>
22050
22051         mkstemp: Fix C++ test error on mingw.
22052         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22054         function is missing and that it needs to be replaced.
22055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22056         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22057
22058 2010-04-03  Bruno Haible  <bruno@clisp.org>
22059
22060         stpncpy: Fix C++ test error on mingw.
22061         * lib/string.in.h (stpncpy): Use modern idiom.
22062         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22063         function is missing and that it needs to be replaced.
22064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22065         REPLACE_STPNCPY.
22066         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22067
22068 2010-04-03  Bruno Haible  <bruno@clisp.org>
22069
22070         sys_stat: Fix C++ test error on mingw.
22071         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22072         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22073
22074 2010-04-03  Bruno Haible  <bruno@clisp.org>
22075
22076         pty: Update doc.
22077         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22078
22079 2010-04-03  Bruno Haible  <bruno@clisp.org>
22080
22081         unistd: Fix C++ test error on mingw.
22082         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22083
22084 2010-04-03  Bruno Haible  <bruno@clisp.org>
22085
22086         Update doc regarding mingw.
22087         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22088         * doc/glibc-functions/login_tty.texi: Likewise.
22089         * doc/glibc-functions/forkpty.texi: Likewise.
22090
22091 2010-04-03  Bruno Haible  <bruno@clisp.org>
22092
22093         stdlib: Avoid compilation failure of c-strtold on mingw.
22094         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22095
22096 2010-04-03  Bruno Haible  <bruno@clisp.org>
22097
22098         locale: Make C++ tests work on Cygwin and mingw.
22099         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22100         cannot provide the function.
22101         Reported by Simon Josefsson.
22102
22103 2010-04-03  Bruno Haible  <bruno@clisp.org>
22104
22105         localename: Port to MacOS X 10.6.
22106         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22107         memory layout of the locales in MacOS X 10.6 as well.
22108         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22109
22110 2010-04-02  Bruno Haible  <bruno@clisp.org>
22111
22112         gnulib-tool: Ensure that long-running tests are executed last.
22113         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22114         running tests after the one for the other tests.
22115
22116 2010-04-02  Bruno Haible  <bruno@clisp.org>
22117
22118         gnulib-tool: Ensure the tests in the main directory are executed first.
22119         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22120         start with the current directory.
22121
22122 2010-04-02  Bruno Haible  <bruno@clisp.org>
22123
22124         Tests for module 'havelib', moved here from GNU gettext.
22125         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
22126         modifications.
22127         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
22128         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
22129         with modifications.
22130         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
22131         modifications.
22132         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
22133         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
22134         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
22135         with modifications.
22136         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
22137         with modifications.
22138         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
22139         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
22140         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
22141         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
22142         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
22143         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
22144         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
22145         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
22146         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
22147         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
22148         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
22149         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
22150         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
22151         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
22152         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
22153         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
22154         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
22155         with modifications.
22156         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
22157         with modifications.
22158         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
22159         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
22160         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
22161         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
22162         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
22163         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
22164         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
22165         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
22166         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
22167         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
22168         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
22169         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
22170         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
22171         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
22172         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
22173         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
22174         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
22175         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
22176         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
22177         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
22178         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
22179         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
22180         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
22181         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
22182         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
22183         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
22184         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
22185         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
22186         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
22187         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
22188         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
22189         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
22190         * tests/havelib/rpathx/rpathx.c: New file, from
22191         gettext/autoconf-lib-link.
22192         * tests/havelib/rpathx/Makefile.am: New file, from
22193         gettext/autoconf-lib-link.
22194         * tests/havelib/rpathx/configure.ac: New file, from
22195         gettext/autoconf-lib-link with modifications.
22196         * tests/havelib/rpathy/rpathy.c: New file, from
22197         gettext/autoconf-lib-link.
22198         * tests/havelib/rpathy/Makefile.am: New file, from
22199         gettext/autoconf-lib-link.
22200         * tests/havelib/rpathy/configure.ac: New file, from
22201         gettext/autoconf-lib-link with modifications.
22202         * tests/havelib/rpathz/rpathz.c: New file, from
22203         gettext/autoconf-lib-link.
22204         * tests/havelib/rpathz/Makefile.am: New file, from
22205         gettext/autoconf-lib-link.
22206         * tests/havelib/rpathz/configure.ac: New file, from
22207         gettext/autoconf-lib-link with modifications.
22208         * tests/havelib/rpathlx/usex.c: New file, from
22209         gettext/autoconf-lib-link.
22210         * tests/havelib/rpathlx/Makefile.am: New file, from
22211         gettext/autoconf-lib-link.
22212         * tests/havelib/rpathlx/configure.ac: New file, from
22213         gettext/autoconf-lib-link with modifications.
22214         * tests/havelib/rpathly/usey.c: New file, from
22215         gettext/autoconf-lib-link.
22216         * tests/havelib/rpathly/Makefile.am: New file, from
22217         gettext/autoconf-lib-link.
22218         * tests/havelib/rpathly/configure.ac: New file, from
22219         gettext/autoconf-lib-link with modifications.
22220         * tests/havelib/rpathlz/usez.c: New file, from
22221         gettext/autoconf-lib-link.
22222         * tests/havelib/rpathlz/Makefile.am: New file, from
22223         gettext/autoconf-lib-link.
22224         * tests/havelib/rpathlz/configure.ac: New file, from
22225         gettext/autoconf-lib-link with modifications.
22226         * tests/havelib/rpathlyx/usey.c: New file, from
22227         gettext/autoconf-lib-link.
22228         * tests/havelib/rpathlyx/Makefile.am: New file, from
22229         gettext/autoconf-lib-link.
22230         * tests/havelib/rpathlyx/configure.ac: New file, from
22231         gettext/autoconf-lib-link with modifications.
22232         * tests/havelib/rpathlzyx/usez.c: New file, from
22233         gettext/autoconf-lib-link.
22234         * tests/havelib/rpathlzyx/Makefile.am: New file, from
22235         gettext/autoconf-lib-link.
22236         * tests/havelib/rpathlzyx/configure.ac: New file, from
22237         gettext/autoconf-lib-link with modifications.
22238         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
22239         with modifications.
22240
22241 2010-04-02  Bruno Haible  <bruno@clisp.org>
22242
22243         gnulib-tool: Create distributed built sources also for the tests.
22244         * gnulib-tool (func_create_testdir): Also generate distributed built
22245         sources in the tests directory.
22246
22247 2010-04-02  Bruno Haible  <bruno@clisp.org>
22248
22249         gnulib-tool: Obey user's environment variables.
22250         * gnulib-tool (func_create_testdir): When creating built sources,
22251         respect the environment variables for autoconf, automake, etc. given by
22252         the user.
22253
22254 2010-04-02  Bruno Haible  <bruno@clisp.org>
22255
22256         gnulib-tool: Provide the value of --m4-base to modules.
22257         * gnulib-tool (func_import, func_create_testdir): Emit a definition
22258         of gl_m4_base.
22259
22260 2010-04-02  Eric Blake  <eblake@redhat.com>
22261
22262         maint.mk: fix some fallout
22263         * NEWS: Document the incompatible change, and its effect on cfg.mk.
22264         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
22265
22266 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22267
22268         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
22269         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
22270         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
22271         (sc_cast_of_x_alloc_return_value): Likewise.
22272         (sc_cast_of_alloca_return_value): Likewise.
22273         (sc_space_tab): Likewise.
22274         (sc_prohibit_atoi_atof): Likewise.
22275         (sc_prohibit_magic_number_exit): Likewise.
22276         (sc_error_exit_success): Likewise.
22277         (sc_file_system): Likewise.
22278         (sc_prohibit_have_config_h): Likewise.
22279         (sc_require_config_h): Likewise.
22280         (sc_prohibit_HAVE_MBRTOWC): Likewise.
22281         (sc_obsolete_symbols): Likewise.
22282         (sc_changelog): Likewise.
22283         (sc_program_name): Likewise.
22284         (sc_the_the): Likewise.
22285         (sc_trailing_blank): Likewise.
22286         (sc_two_space_separator_in_usage): Likewise.
22287         (sc_useless_cpp_parens): Likewise.
22288         (sc_GPL_version): Likewise.
22289         (sc_GFDL_version): Likewise.
22290         (sc_texinfo_acronym): Likewise.
22291         (sc_prohibit_cvs_keyword): Likewise.
22292         (sc_prohibit_stat_st_blocks): Likewise.
22293         (sc_prohibit_S_IS_definition): Likewise.
22294         (sc_redundant_const): Likewise.
22295         (sc_makefile_TAB_only_indentation): Likewise.
22296         (sc_m4_quote_check): Likewise.
22297         (sc_makefile_path_separator_check): Likewise.
22298         (sc_copyright_check): Likewise.
22299         (sc_Wundef_boolean): Likewise.
22300         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22301
22302         maint.mk: match 0 or more whitespace-before-function-call '('
22303         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
22304         that have zero or two-and-more spaces between the function name
22305         and the open parenthesis.
22306         (sc_error_message_warn_fatal): Likewise.
22307         (sc_error_message_uppercase): Likewise.
22308         (sc_error_message_period): Likewise.
22309
22310 2010-03-31  Eric Blake  <eblake@redhat.com>
22311
22312         maint.mk: check for [ as well as test
22313         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
22314         Based on a libvirt report by Matthias Bolte.
22315
22316         gnumakefile: don't squelch _version output
22317         * top/GNUmakefile (_version): Create one-shot dependency rather
22318         than using $(shell) when version must be regenerated.
22319         (_autoreconf): Run verbosely, by default.
22320
22321         sys_time: avoid compiler warnings
22322         * lib/sys_time.in.h (includes): Ensure gcc pragma is
22323         unconditional, fixing regression from 2010-03-29.
22324         Reported by Simon Josefsson.
22325
22326 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
22327
22328         maint.mk: s/_header_without_use/_sc_header_without_use/
22329         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
22330         (sc_prohibit_assert_without_use): Use the new name.
22331         (sc_prohibit_close_stream_without_use): Likewise.
22332         (sc_prohibit_getopt_without_use): Likewise.
22333         (sc_prohibit_quotearg_without_use): Likewise.
22334         (sc_prohibit_quote_without_use): Likewise.
22335         (sc_prohibit_long_options_without_use): Likewise.
22336         (sc_prohibit_inttostr_without_use): Likewise.
22337         (sc_prohibit_ignore_value_without_use): Likewise.
22338         (sc_prohibit_error_without_use): Likewise.
22339         (sc_prohibit_xalloc_without_use): Likewise.
22340         (sc_prohibit_hash_without_use): Likewise.
22341         (sc_prohibit_hash_pjw_without_use): Likewise.
22342         (sc_prohibit_safe_read_without_use): Likewise.
22343         (sc_prohibit_argmatch_without_use): Likewise.
22344         (sc_prohibit_canonicalize_without_use): Likewise.
22345         (sc_prohibit_root_dev_ino_without_use): Likewise.
22346         (sc_prohibit_openat_without_use): Likewise.
22347         (sc_prohibit_c_ctype_without_use): Likewise.
22348         (sc_prohibit_signal_without_use): Likewise.
22349         (sc_prohibit_intprops_without_use): Likewise.
22350
22351 2010-03-30  Eric Blake  <eblake@redhat.com>
22352
22353         maint: improve module indicators
22354         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
22355         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
22356         columns, and avoid extra macro expansion.
22357
22358         fdopendir: work around FreeBSD bug
22359         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
22360         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
22361         * modules/dirent (Makefile.am): Substitute it.
22362         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
22363         declaration.
22364         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
22365         fix.
22366         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22367
22368 2010-03-29  Bruno Haible  <bruno@clisp.org>
22369
22370         Emit #pragma system_header after the inclusion guard, not before.
22371         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
22372         guard that spans the entire file, not before. This enables an
22373         optimization in GCC's preprocessor.
22374         * lib/ctype.in.h: Likewise.
22375         * lib/dirent.in.h: Likewise.
22376         * lib/errno.in.h: Likewise.
22377         * lib/float.in.h: Likewise.
22378         * lib/getopt.in.h: Likewise.
22379         * lib/iconv.in.h: Likewise.
22380         * lib/langinfo.in.h: Likewise.
22381         * lib/locale.in.h: Likewise.
22382         * lib/math.in.h: Likewise.
22383         * lib/netdb.in.h: Likewise.
22384         * lib/netinet_in.in.h: Likewise.
22385         * lib/pty.in.h: Likewise.
22386         * lib/sched.in.h: Likewise.
22387         * lib/se-selinux.in.h: Likewise.
22388         * lib/search.in.h: Likewise.
22389         * lib/spawn.in.h: Likewise.
22390         * lib/stdarg.in.h: Likewise.
22391         * lib/stdint.in.h: Likewise.
22392         * lib/string.in.h: Likewise.
22393         * lib/strings.in.h: Likewise.
22394         * lib/sys_file.in.h: Likewise.
22395         * lib/sys_ioctl.in.h: Likewise.
22396         * lib/sys_time.in.h: Likewise.
22397         * lib/sys_times.in.h: Likewise.
22398         * lib/sys_utsname.in.h: Likewise.
22399         * lib/sys_wait.in.h: Likewise.
22400         * lib/sysexits.in.h: Likewise.
22401         * lib/wctype.in.h: Likewise.
22402
22403 2010-03-28  James Youngman  <jay@gnu.org>
22404
22405         save-cwd: don't leak a file descriptor when the caller execs.
22406         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
22407         saved file descriptor.
22408         * modules/save-cwd (Depends-on): Depend on cloexec.
22409
22410 2010-03-29  Bruno Haible  <bruno@clisp.org>
22411
22412         Remove vestiges of fts-lgpl module.
22413         * lib/fts_.h: Assume GNULIB_FTS is 1.
22414         * lib/fts.c: Likewise.
22415         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22416
22417 2010-03-28  Bruno Haible  <bruno@clisp.org>
22418
22419         Fix definition of tests witness macro.
22420         * gnulib-tool (func_import): Fix definition of witness macro.
22421
22422 2010-03-28  Bruno Haible  <bruno@clisp.org>
22423
22424         Fix ioctl's protoype on glibc systems.
22425         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
22426         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
22427         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
22428         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
22429         signature. If not, arrange to replace the ioctl function.
22430         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
22431         REPLACE_IOCTL.
22432         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
22433         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
22434         Reported by Ludovic Courtès <ludo@gnu.org>.
22435
22436 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
22437
22438         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
22439         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
22440         made it so grep -r --include=GLOB* ... did not work.
22441
22442 2010-03-26  Jim Meyering  <meyering@redhat.com>
22443             Eric Blake  <eblake@redhat.com>
22444
22445         maint.mk: prohibit use of test's -o and -a operators
22446         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
22447
22448 2010-03-28  Bruno Haible  <bruno@clisp.org>
22449
22450         Remove unused GNULIB_XYZ macro definitions.
22451         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
22452         invocation.
22453
22454 2010-03-28  Bruno Haible  <bruno@clisp.org>
22455
22456         Mark privileged tests modules.
22457         * modules/idpriv-drop-tests (Status): New section.
22458         * modules/idpriv-droptemp-tests (Status): New section.
22459
22460 2010-03-28  Bruno Haible  <bruno@clisp.org>
22461
22462         Split C++ tests into separate tests modules.
22463         * modules/dirent-c++-tests: New file, extracted from
22464         modules/dirent-tests.
22465         * modules/dirent-tests: Depend on it.
22466         * modules/fcntl-h-c++-tests: New file, extracted from
22467         modules/fcntl-h-tests.
22468         * modules/fcntl-h-tests: Depend on it.
22469         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
22470         * modules/glob-tests: Depend on it.
22471         * modules/iconv-h-c++-tests: New file, extracted from
22472         modules/iconv-h-tests.
22473         * modules/iconv-h-tests: Depend on it.
22474         * modules/langinfo-c++-tests: New file, extracted from
22475         modules/langinfo-tests.
22476         * modules/langinfo-tests: Depend on it.
22477         * modules/locale-c++-tests: New file, extracted from
22478         modules/locale-tests.
22479         * modules/locale-tests: Depend on it.
22480         * modules/math-c++-tests: New file, extracted from modules/math-tests.
22481         * modules/math-tests: Depend on it.
22482         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
22483         * modules/pty-tests: Depend on it.
22484         * modules/search-c++-tests: New file, extracted from
22485         modules/search-tests.
22486         * modules/search-tests: Depend on it.
22487         * modules/signal-c++-tests: New file, extracted from
22488         modules/signal-tests.
22489         * modules/signal-tests: Depend on it.
22490         * modules/spawn-c++-tests: New file, extracted from
22491         modules/spawn-tests.
22492         * modules/spawn-tests: Depend on it.
22493         * modules/stdio-c++-tests: New file, extracted from
22494         modules/stdio-tests.
22495         * modules/stdio-tests: Depend on it.
22496         * modules/stdlib-c++-tests: New file, extracted from
22497         modules/stdlib-tests.
22498         * modules/stdlib-tests: Depend on it.
22499         * modules/string-c++-tests: New file, extracted from
22500         modules/string-tests.
22501         * modules/string-tests: Depend on it.
22502         * modules/sys_ioctl-c++-tests: New file, extracted from
22503         modules/sys_ioctl-tests.
22504         * modules/sys_ioctl-tests: Depend on it.
22505         * modules/sys_select-c++-tests: New file, extracted from
22506         modules/sys_select-tests.
22507         * modules/sys_select-tests: Depend on it.
22508         * modules/sys_socket-c++-tests: New file, extracted from
22509         modules/sys_socket-tests.
22510         * modules/sys_socket-tests: Depend on it.
22511         * modules/sys_stat-c++-tests: New file, extracted from
22512         modules/sys_stat-tests.
22513         * modules/sys_stat-tests: Depend on it.
22514         * modules/sys_time-c++-tests: New file, extracted from
22515         modules/sys_time-tests.
22516         * modules/sys_time-tests: Depend on it.
22517         * modules/time-c++-tests: New file, extracted from modules/time-tests.
22518         * modules/time-tests: Depend on it.
22519         * modules/unistd-c++-tests: New file, extracted from
22520         modules/unistd-tests.
22521         * modules/unistd-tests: Depend on it.
22522         * modules/wchar-c++-tests: New file, extracted from
22523         modules/wchar-tests.
22524         * modules/wchar-tests: Depend on it.
22525         * modules/wctype-c++-tests: New file, extracted from
22526         modules/wctype-tests.
22527         * modules/wctype-tests: Depend on it.
22528         Reported by Simon Josefsson.
22529
22530 2010-03-28  Bruno Haible  <bruno@clisp.org>
22531
22532         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
22533         * gnulib-tool (func_exists_module): New function, extracted from
22534         func_verify_module.
22535         (func_verify_module): Use it.
22536         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
22537         'foo' only if 'foo' exists.
22538         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
22539         module.
22540
22541 2010-03-28  Bruno Haible  <bruno@clisp.org>
22542
22543         gnulib-tool: Add support for special categories of tests.
22544         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
22545         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
22546         (func_usage): Document them.
22547         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
22548         inc_unportable_tests, inc_all_tests): New variables.
22549         (func_acceptable): Consider these variables.
22550         (func_modules_transitive_closure): Make it work when the 'Status' field
22551         consists of multiple words.
22552         (func_import): Store and restore the values of inc_cxx_tests,
22553         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
22554         inc_all_tests in gnulib-comp.m4.
22555         (func_create_testdir): Set inc_all_tests to true.
22556         * doc/gnulib.texi (Extra tests modules): New section.
22557         Suggested by Jim Meyering.
22558
22559 2010-03-28  Bruno Haible  <bruno@clisp.org>
22560
22561         ansi-c++-opt: Allow turning off the C++ build by default.
22562         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22563         gl_CXX_CHOICE_DEFAULT_NO is defined.
22564         Requested by Eric Blake.
22565
22566 2010-03-28  Bruno Haible  <bruno@clisp.org>
22567
22568         unistd: Avoid #define replacements in C++ mode.
22569         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22570         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22571         setsockopt, shutdown, select): In C++, attach a warning to the function
22572         if possible, rather than #defining the symbol to a dysfunctional alias.
22573         Reported by John W. Eaton <jwe@gnu.org>.
22574
22575 2010-03-28  Bruno Haible  <bruno@clisp.org>
22576
22577         Fix link errors on mingw.
22578         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22579         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22580         $(LIBSOCKET).
22581         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22582         $(LIBSOCKET).
22583
22584 2010-03-28  Bruno Haible  <bruno@clisp.org>
22585             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22586
22587         lib-ignore: Determine different options for different compilers.
22588         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22589         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22590         Add comments.
22591         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22592         * NEWS: Mention the change.
22593
22594 2010-03-27  Bruno Haible  <bruno@clisp.org>
22595
22596         Remove unused GNULIB_XYZ macro definitions.
22597         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22598         * modules/fseek (configure.ac): Likewise.
22599         * modules/ioctl (configure.ac): Likewise.
22600         * modules/open (configure.ac): Likewise.
22601         * modules/stdlib-safer (configure.ac): Likewise.
22602
22603 2010-03-27  Bruno Haible  <bruno@clisp.org>
22604
22605         Add a remark about certain modules.
22606         * modules/malloc (Comment): New section.
22607         * modules/realloc (Comment): Likewise.
22608         * modules/sigpipe (Comment): Likewise.
22609
22610 2010-03-27  Bruno Haible  <bruno@clisp.org>
22611
22612         Resolve conflict between the two kinds of module indicators.
22613         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22614         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22615         * modules/canonicalize (configure.ac): Invoke
22616         gl_MODULE_INDICATOR_FOR_TESTS.
22617         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22618         GNULIB_XYZ.
22619         * tests/test-dirent-c++.cc: Likewise.
22620         * tests/test-dirent-safer.c: Likewise.
22621         * tests/test-dup2.c: Likewise.
22622         * tests/test-fchdir.c: Likewise.
22623         * tests/test-fcntl-h-c++.cc: Likewise.
22624         * tests/test-getopt.c: Likewise.
22625         * tests/test-getopt.h: Likewise.
22626         * tests/test-langinfo-c++.cc: Likewise.
22627         * tests/test-locale-c++.cc: Likewise.
22628         * tests/test-math-c++.cc: Likewise.
22629         * tests/test-pty-c++.cc: Likewise.
22630         * tests/test-search-c++.cc: Likewise.
22631         * tests/test-signal-c++.cc: Likewise.
22632         * tests/test-spawn-c++.cc: Likewise.
22633         * tests/test-stdio-c++.cc: Likewise.
22634         * tests/test-stdlib-c++.cc: Likewise.
22635         * tests/test-string-c++.cc: Likewise.
22636         * tests/test-sys_ioctl-c++.cc: Likewise.
22637         * tests/test-sys_select-c++.cc: Likewise.
22638         * tests/test-sys_socket-c++.cc: Likewise.
22639         * tests/test-sys_stat-c++.cc: Likewise.
22640         * tests/test-sys_time-c++.cc: Likewise.
22641         * tests/test-time-c++.cc: Likewise.
22642         * tests/test-unistd-c++.cc: Likewise.
22643         * tests/test-wchar-c++.cc: Likewise.
22644         * tests/uninorm/test-u8-nfc.c: Likewise.
22645         * tests/uninorm/test-u8-nfd.c: Likewise.
22646         * tests/uninorm/test-u8-nfkc.c: Likewise.
22647         * tests/uninorm/test-u8-nfkd.c: Likewise.
22648         * tests/uninorm/test-u16-nfc.c: Likewise.
22649         * tests/uninorm/test-u16-nfd.c: Likewise.
22650         * tests/uninorm/test-u16-nfkc.c: Likewise.
22651         * tests/uninorm/test-u16-nfkd.c: Likewise.
22652         * tests/uninorm/test-u32-nfc.c: Likewise.
22653         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22654         * tests/uninorm/test-u32-nfd.c: Likewise.
22655         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22656         * tests/uninorm/test-u32-nfkc.c: Likewise.
22657         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22658         * tests/uninorm/test-u32-nfkd.c: Likewise.
22659         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22660         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22661
22662 2010-03-27  Bruno Haible  <bruno@clisp.org>
22663
22664         Distinguish two kinds of module indicators.
22665         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22666         gl_MODULE_INDICATOR.
22667         (gl_MODULE_INDICATOR): New macro.
22668         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22669         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22670         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22671         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22672         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22673         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22674         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22675         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22676         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22677         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22678         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22679         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22681         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22682         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22683         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22684         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22685         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22686         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22687         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22688         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22689         * modules/cloexec (configure.ac): Likewise.
22690         * modules/getopt-gnu (configure.ac): Likewise.
22691         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22692         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22693         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22694         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22695
22696 2010-03-27  Bruno Haible  <bruno@clisp.org>
22697
22698         New module description field 'Comment'.
22699         * gnulib-tool: New option --extract-comment.
22700         (func_usage): Document it.
22701         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22702         (func_get_comment): New function.
22703         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22704
22705 2010-03-27  Bruno Haible  <bruno@clisp.org>
22706
22707         Addendum to 2010-02-07 commit.
22708         * gnulib-tool (func_usage): Document --extract-applicability option.
22709
22710 2010-03-27  Bruno Haible  <bruno@clisp.org>
22711
22712         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22713         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22714         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22715         rather than link errors.
22716
22717 2010-03-27  Bruno Haible  <bruno@clisp.org>
22718
22719         Avoid side effects from tests-related modules on the compilation of lib.
22720         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22721         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22722         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22723         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22724         macro.
22725         (func_import): Define a witness macro. Assign it a value that depends
22726         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22727         tests-related modules.
22728         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22729         Reported by Jim Meyering.
22730
22731 2010-03-27  Bruno Haible  <bruno@clisp.org>
22732
22733         Factorize common .m4 code.
22734         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22735         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22736         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22737         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22738         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22739         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22740         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22741         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22742         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22743         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22744         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22745         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22746         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22747         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22748         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22749         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22750         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22751         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22752         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22753         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22754         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22755         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22756         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22757         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22758         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22759         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22760         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22761         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22762         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22763         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22764         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22765         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22766
22767 2010-03-27  Bruno Haible  <bruno@clisp.org>
22768
22769         Fix a compilation error on Cygwin with g++ >= 4.3.
22770         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22771         if it is undefined or if we alias it to chmod.
22772         (lstat): Don't warn about the use of this function if it is undefined
22773         or if we alias it to stat.
22774         Reported by Simon Josefsson.
22775
22776 2010-03-27  Bruno Haible  <bruno@clisp.org>
22777
22778         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22779         * modules/getlogin (configure.ac): Update.
22780
22781         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22782         * modules/getlogin_r (configure.ac): Update.
22783
22784         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22785         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22786         * modules/inet_ntop (configure.ac): Update.
22787
22788         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22789         * modules/inet_pton (configure.ac): Update.
22790
22791         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22792         * modules/mbslen (configure.ac): Update.
22793
22794         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22795         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22796         * modules/forkpty (configure.ac): Update.
22797         * modules/openpty (configure.ac): Update.
22798
22799 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22800
22801         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22802         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22803
22804 2010-03-25  Eric Blake  <eblake@redhat.com>
22805
22806         maint: use pragma consistently across replacement headers
22807         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22808         * lib/dirent.in.h (system_header): Likewise.
22809         * lib/errno.in.h (system_header): Likewise.
22810         * lib/float.in.h (system_header): Likewise.
22811         * lib/getopt.in.h (system_header): Likewise.
22812         * lib/iconv.in.h (system_header): Likewise.
22813         * lib/inttypes.in.h (system_header): Likewise.
22814         * lib/langinfo.in.h (system_header): Likewise.
22815         * lib/locale.in.h (system_header): Likewise.
22816         * lib/math.in.h (system_header): Likewise.
22817         * lib/netdb.in.h (system_header): Likewise.
22818         * lib/netinet_in.in.h (system_header): Likewise.
22819         * lib/pty.in.h (system_header): Likewise.
22820         * lib/sched.in.h (system_header): Likewise.
22821         * lib/se-selinux.in.h (system_header): Likewise.
22822         * lib/search.in.h (system_header): Likewise.
22823         * lib/spawn.in.h (system_header): Likewise.
22824         * lib/stdarg.in.h (system_header): Likewise.
22825         * lib/stdint.in.h (system_header): Likewise.
22826         * lib/string.in.h (system_header): Likewise.
22827         * lib/strings.in.h (system_header): Likewise.
22828         * lib/sys_file.in.h (system_header): Likewise.
22829         * lib/sys_ioctl.in.h (system_header): Likewise.
22830         * lib/sys_socket.in.h (system_header): Likewise.
22831         * lib/sys_times.in.h (system_header): Likewise.
22832         * lib/sys_utsname.in.h (system_header): Likewise.
22833         * lib/sys_wait.in.h (system_header): Likewise.
22834         * lib/sysexits.in.h (system_header): Likewise.
22835         * lib/unistd.in.h (system_header): Likewise.
22836         * lib/wctype.in.h (system_header): Likewise.
22837
22838         arpa/inet: fix mingw compilation warning
22839         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22840         Reported by Matthew Bolte.
22841
22842 2010-03-25  Bruno Haible  <bruno@clisp.org>
22843
22844         Avoid collision between gnulib wrapper and libintl wrapper.
22845         * lib/printf.c (printf): Don't define if a printf wrapper is already
22846         defined in intl/printf.c.
22847         Reported by Michel Boaventura <michel@michelboaventura.com>.
22848
22849 2010-03-25  Bruno Haible  <bruno@clisp.org>
22850
22851         Use ANSI C.
22852         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22853
22854 2010-03-25  Bruno Haible  <bruno@clisp.org>
22855
22856         Minor formatting changes.
22857         * lib/acosl.c: Insert space before function argument list.
22858         * lib/argz.c: Likewise.
22859         * lib/asinl.c: Likewise.
22860         * lib/expl.c: Likewise.
22861         * lib/gen-uni-tables.c: Likewise.
22862         * lib/gettext.h: Likewise.
22863         * lib/glthread/lock.h: Likewise.
22864         * lib/tanl.c: Likewise.
22865         * lib/uniname/uniname.c: Likewise.
22866         * tests/test-idpriv-drop.c: Likewise.
22867         * tests/test-idpriv-droptemp.c: Likewise.
22868         * tests/test-lock.c: Likewise.
22869         * tests/test-tls.c: Likewise.
22870         * lib/argp-help.c: Insert space before function-like macro argument
22871         list.
22872         * lib/memcmp.c: Likewise.
22873         * tests/test-base64.c: Likewise.
22874         * lib/localename.c: Insert space before sizeof's argument list.
22875         * lib/safe-alloc.h: Likewise.
22876         * lib/file-set.h: Insert space before macro argument list.
22877         * tests/test-argp.c: Likewise.
22878         * lib/argp-namefrob.h: Insert space before function parameter list.
22879         * lib/getaddrinfo.c: Likewise.
22880         * lib/netdb.in.h: Likewise.
22881         * lib/parse-duration.h: Likewise.
22882         * lib/parse-duration.c: Likewise.
22883         * lib/poll.c: Likewise.
22884         * lib/select.c: Likewise.
22885         * lib/trim.h: Likewise.
22886         * tests/test-usleep.c: Likewise.
22887         * lib/ldexpl.c: Insert space before function parameter list and before
22888         function argument list.
22889         * lib/logl.c: Likewise.
22890         * lib/sqrtl.c: Likewise.
22891         * lib/trim.c: Likewise.
22892         * lib/cosl.c: Use GNU style indentation. Insert space before function
22893         argument list.
22894         * lib/sinl.c: Likewise.
22895         * lib/tsearch.c: Insert space after 'for'.
22896         Reported by Jim Meyering.
22897
22898 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22899
22900         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22901         config header before grepping, as it's not present before
22902         autoreconf/configure are run.  Reported by Simon Josefsson.
22903
22904 2010-03-23  Bruno Haible  <bruno@clisp.org>
22905
22906         pt_chown: Make it work with automake < 1.11.
22907         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22908         Reported by Simon Josefsson.
22909
22910 2010-03-23  Bruno Haible  <bruno@clisp.org>
22911
22912         pt_chown: Don't depend on GPLed modules.
22913         * lib/pt_chown.c: Don't include idpriv.h.
22914         (main): Don't drop privileges.
22915         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22916         Reported by Simon Josefsson.
22917
22918 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22919
22920         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22921         suggestions from karl@freefriends.org (Karl Berry).
22922
22923 2010-03-22  Eric Blake  <eblake@redhat.com>
22924
22925         gethostname: further tweaks
22926         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22927         are overriding gethostname.
22928         Suggested by Bruno Haible.
22929
22930 2010-03-21  Bruno Haible  <bruno@clisp.org>
22931
22932         Fix comments.
22933         * lib/forkpty.c (rpl_forkpty): Fix comment.
22934         * lib/openpty.c (rpl_openpty): Likewise.
22935         Reported by Eric Blake.
22936
22937 2010-03-22  Eric Blake  <eblake@redhat.com>
22938
22939         gethostname: fix build on mingw
22940         * lib/unistd.in.h (includes): Work around fact that mingw
22941         <winsock2.h> re-includes <unistd.h>, by avoiding any
22942         redeclarations if we are being included by <winsock2.h>.
22943         Reported by Matthias Bolte.
22944
22945 2010-03-21  Bruno Haible  <bruno@clisp.org>
22946
22947         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22948         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22949         modifications.
22950         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22951         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22952         provide the replacement.
22953         * modules/forkpty (Depends-on): Add openpty, login_tty.
22954         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22955         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22956         * doc/glibc-functions/forkpty.texi: More supported platforms.
22957         * config/srclist.txt: Add forkpty.c (commented).
22958
22959 2010-03-21  Bruno Haible  <bruno@clisp.org>
22960
22961         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22962         (Makefile.am): Verify that PTY_LIB is defined.
22963
22964         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22965
22966 2010-03-21  Bruno Haible  <bruno@clisp.org>
22967
22968         Tests for module 'login_tty'.
22969         * modules/login_tty-tests: New file.
22970         * tests/test-login_tty.c: New file.
22971
22972         New module 'login_tty'.
22973         * lib/login_tty.c: New file.
22974         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22975         * modules/login_tty: New file.
22976         * doc/glibc-functions/login_tty.texi: Mention the new module.
22977
22978 2010-03-21  Bruno Haible  <bruno@clisp.org>
22979
22980         login_tty: Documentation.
22981         * doc/glibc-functions/login_tty.texi: New file.
22982         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22983
22984 2010-03-21  Bruno Haible  <bruno@clisp.org>
22985
22986         pty: Consistent macro naming.
22987         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22988         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22989         * modules/pty (configure.ac): Update.
22990
22991 2010-03-21  Bruno Haible  <bruno@clisp.org>
22992
22993         Tests for openpty: Make stricter.
22994         * tests/test-openpty.c (main): Add test of canonical processing and
22995         erase.
22996         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22997
22998         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22999         * lib/openpty.c (openpty): New replacement function.
23000         * lib/pty.in.h: Include <termios.h>.
23001         (openpty): Update declaration. Add comments.
23002         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23003         is not declared, arrange to provide the replacement. Check for _getpty
23004         and posix_openpt.
23005         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23006         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23007         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23008         * modules/pty-tests (test_pty_c___LDADD): New variable.
23009         * doc/glibc-functions/openpty.texi: More supported platforms.
23010
23011 2010-03-21  Bruno Haible  <bruno@clisp.org>
23012
23013         setenv: Tweaks.
23014         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23015         the test program.
23016         * doc/posix-functions/setenv.texi: Update platforms list.
23017
23018 2010-03-21  Bruno Haible  <bruno@clisp.org>
23019
23020         New module 'unlockpt'.
23021         * lib/unlockpt.c: New file, from glibc with modifications.
23022         * m4/unlockpt.m4: New file.
23023         * modules/unlockpt: New file.
23024         * lib/stdlib.in.h (unlockpt): New declaration.
23025         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
23026         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
23027         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
23028         HAVE_UNLOCKPT.
23029         * doc/posix-functions/unlockpt.texi: Mention the new module.
23030         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
23031         * config/srclist.txt: Add unlockpt.c (commented).
23032
23033 2010-03-21  Jim Meyering  <meyering@redhat.com>
23034
23035         maint.mk: prohibit inclusion of "intprops.h" without use
23036         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
23037
23038 2010-03-21  Bruno Haible  <bruno@clisp.org>
23039
23040         New module 'grantpt'.
23041         * lib/grantpt.c: New file, from glibc with modifications.
23042         * m4/grantpt.m4: New file.
23043         * modules/grantpt: New file.
23044         * lib/stdlib.in.h (grantpt): New declaration.
23045         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
23046         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
23047         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
23048         HAVE_GRANTPT.
23049         * doc/posix-functions/grantpt.texi: Mention the new module.
23050         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
23051         * config/srclist.txt: Add grantpt.c (commented).
23052
23053 2010-03-21  Bruno Haible  <bruno@clisp.org>
23054
23055         New module 'pt_chown'.
23056         * lib/pt_chown.c: New file, from glibc with modifications.
23057         * lib/pty-private.h: New file, from glibc with modifications.
23058         * modules/pt_chown: New file.
23059         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23060
23061 2010-03-21  Bruno Haible  <bruno@clisp.org>
23062
23063         Tests for module 'ptsname'.
23064         * modules/ptsname-tests: New file.
23065         * tests/test-ptsname.c: New file.
23066
23067         New module 'ptsname'.
23068         * lib/ptsname.c: New file, from glibc with modifications.
23069         * m4/ptsname.m4: New file.
23070         * modules/ptsname: New file.
23071         * lib/stdlib.in.h (ptsname): New declaration.
23072         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23073         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23074         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23075         HAVE_PTSNAME.
23076         * doc/posix-functions/ptsname.texi: Mention the new module.
23077         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23078         * config/srclist.txt: Add ptsname.c (commented).
23079
23080 2010-03-21  Bruno Haible  <bruno@clisp.org>
23081
23082         Tests for module 'ttyname_r'.
23083         * modules/ttyname_r-tests: New file.
23084         * tests/test-ttyname_r.c: New file.
23085
23086         New module 'ttyname_r'.
23087         * lib/ttyname_r.c: New file.
23088         * m4/ttyname_r.m4: New file.
23089         * modules/ttyname_r: New file.
23090         * lib/unistd.in.h (ttyname_r): New declaration.
23091         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23092         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23093         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23094         HAVE_TTYNAME_R.
23095         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23096         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23097
23098 2010-03-20  Bruno Haible  <bruno@clisp.org>
23099
23100         signal: Undefine macro definitions in C++ mode.
23101         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23102         sigfillset): Undefine macro definitions from the system header in C++
23103         mode.
23104         Reported by John W. Eaton <jwe@gnu.org>.
23105
23106 2010-03-20  Bruno Haible  <bruno@clisp.org>
23107
23108         Ensure no #include statements inside extern "C" { ... }.
23109         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23110         contain #include statements.
23111         * lib/time.in.h: Likewise.
23112
23113 2010-03-20  Bruno Haible  <bruno@clisp.org>
23114
23115         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23116         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23117         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23118         Reported by John W. Eaton <jwe@gnu.org>.
23119
23120 2010-03-20  Bruno Haible  <bruno@clisp.org>
23121
23122         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
23123         Reported by Jim Meyering.
23124
23125 2010-03-20  Bruno Haible  <bruno@clisp.org>
23126
23127         pipe: Set errno upon failure.
23128         * lib/pipe.h: Specify that when -1 is returned, errno is set.
23129         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
23130         errno value in error message.
23131
23132 2010-03-20  Bruno Haible  <bruno@clisp.org>
23133             Jim Meyering  <meyering@redhat.com>
23134
23135         lchown: Avoid "unused variable" warning.
23136         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
23137
23138 2010-03-20  Bruno Haible  <bruno@clisp.org>
23139
23140         Work around unlink() bug on MacOS X 10.5.6.
23141         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
23142         attempting to unlink a parent directory.
23143         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
23144         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
23145         activate for the replacement function.
23146         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
23147
23148 2010-03-20  Bruno Haible  <bruno@clisp.org>
23149
23150         Fix link errors on Solaris 8.
23151         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
23152         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
23153
23154 2010-03-19  Jim Meyering  <meyering@redhat.com>
23155
23156         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
23157         The _LIBC implementation of build_range_exp correctly honors the
23158         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
23159         However, the non-_LIBC implementation would ignore that syntax-bit
23160         flag and return REG_ERANGE unconditionally.
23161         This change makes it honor that flag.
23162         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
23163         Make two pointer parameters "const".
23164         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
23165         (parse_bracket_exp): Update caller.
23166
23167         regex.m4: correct the reversed range endpoint ([b-a]) test
23168         * m4/regex.m4: When requiring that [b-a] evoke failure,
23169         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
23170         test pass once again for x86-based systems.
23171
23172 2010-03-19  Bruno Haible  <bruno@clisp.org>
23173
23174         scandir: Fix link error on Solaris 8.
23175         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
23176         macros.
23177
23178 2010-03-19  Bruno Haible  <bruno@clisp.org>
23179
23180         getusershell: Fix documentation.
23181         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
23182         module.
23183         * doc/glibc-functions/setusershell.texi: Likewise.
23184
23185         getusershell: Provide declaration, missing on Solaris 9.
23186         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
23187         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
23188         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
23189         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
23190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23191         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
23192         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
23193         HAVE_GETUSERSHELL.
23194         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
23195
23196 2010-03-19  Bruno Haible  <bruno@clisp.org>
23197
23198         wctype: Provide iswblank function.
23199         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
23200         exists and is fine.
23201         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
23202         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
23203         * tests/test-wctype.c (main): Re-enable the iswblank tests.
23204         * doc/posix-functions/iswblank.texi: Update.
23205
23206 2010-03-19  Bruno Haible  <bruno@clisp.org>
23207
23208         Tests of module 'pty' in C++ mode.
23209         * modules/pty-tests: New file.
23210         * tests/test-pty-c++.cc: New file.
23211         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23212
23213 2010-03-19  Eric Blake  <eblake@redhat.com>
23214
23215         logb: fix documentation
23216         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
23217         1.5 declaration bug.
23218
23219         forkpty, openpty: prefer glibc's const-safe prototype
23220         * lib/forkpty.c (rpl_forkpty): New file.
23221         * lib/openpty.c (rpl_openpty): Likewise.
23222         * modules/forkpty (Files): Distribute it.
23223         * modules/openpty (Files): Likewise.
23224         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
23225         check...
23226         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
23227         replacement for for non-const BSD signature.
23228         * modules/pty (Makefile.am): Substitute witnesses.
23229         * lib/pty.in.h (forkpty, openpty): Declare replacements.
23230         * tests/test-forkpty.c: Update signature check.
23231         * tests/test-openpty.c: Likewise.
23232         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
23233         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23234
23235         forkpty, openpty: split functions into new modules
23236         * modules/pty (Makefile.am): Substitute new witnesses.
23237         (Libraries): Move library detection...
23238         * modules/forkpty: ...into new module.
23239         * modules/openpty: Another new module.
23240         * modules/pty-tests: Rename and split...
23241         * modules/forkpty-tests: ...to this...
23242         * modules/openpty-tests: ...and this.
23243         * tests/test-pty.c: Rename and split...
23244         * tests/test-forkpty.c: ...to this...
23245         * tests/test-openpty.c: ...and this.
23246         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
23247         (gl_PTY): Split library searching...
23248         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
23249         (gl_FORKPTY, gl_OPENPTY): New macros.
23250         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
23251         * NEWS: Mention the split.
23252         * MODULES.html.sh (Misc): Document the modules.
23253         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
23254         * doc/glibc-functions/openpty.texi (openpty): Likewise.
23255
23256         pty: improve replacement header
23257         * lib/pty.in.h: New file.
23258         * modules/pty (Files): Ship it.
23259         (Makefile.am): Always build replacement.
23260         * m4/pty.m4: Rename...
23261         * m4/pty_h.m4: ...to this.
23262         (gl_PTY): Modernize setting of witness macros; update check of
23263         forkpty to take proper advantage of cache.
23264         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
23265
23266         getopt: avoid compiler warning
23267         * lib/getopt.c (attribute_hidden): Remove unused macro.
23268
23269 2010-03-18  Bruno Haible  <bruno@clisp.org>
23270
23271         Fix link errors on Solaris 8.
23272         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
23273         * modules/search-tests (test_search_c___LDADD): Likewise.
23274         * modules/signal-tests (test_signal_c___LDADD): Likewise.
23275         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
23276         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
23277         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
23278         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
23279         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
23280         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
23281
23282 2010-03-18  Bruno Haible  <bruno@clisp.org>
23283
23284         Fix bug introduced on 2010-03-14.
23285         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
23286         (gl_SPAWN_H): Require it.
23287         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
23288         Reported by Simon Josefsson.
23289
23290 2010-03-18  Bruno Haible  <bruno@clisp.org>
23291
23292         Fix typo introduced on 2009-12-31.
23293         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
23294         posix_spawn_file_actions_adddup2.
23295
23296 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
23297         and Eric Blake  <eblake@redhat.com>
23298
23299         test-vc-list-files-git: make more robust
23300         * tests/test-vc-list-files-git.sh: Unset problematic environment
23301         variables.  Chain commands together.
23302
23303 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
23304
23305         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
23306         `AC_CHECK_DECL' invocation.
23307
23308 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
23309
23310         * lib/inttostr.c (inttostr): Make sure the invocation of verify
23311         appears before executable statements. Suggested by Petr Sumbera
23312         <Petr.Sumbera@Sun.COM>.
23313
23314 2010-03-14  Bruno Haible  <bruno@clisp.org>
23315
23316         * tests/test-flock.c (test_exclusive): Comment out a test that causes
23317         portability problems. Instead use a simpler test.
23318         (main): Check that invalid arguments are rejected only on Linux.
23319
23320 2010-03-14  Bruno Haible  <bruno@clisp.org>
23321
23322         Fix bug introduced on 2009-12-31.
23323         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
23324         gl_PREREQ_SYS_H_WINSOCK2 always.
23325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
23326         SYS_SOCKET_H variable.
23327         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
23328         Update comments.
23329         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
23330         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23331         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23332         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23333         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
23334
23335 2010-03-14  Bruno Haible  <bruno@clisp.org>
23336
23337         Fix values returned by sinl, cosl.
23338         * lib/trigl.h: Add specification comments.
23339         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
23340         that combines the values from the precomputed table with the values of
23341         the Chebyshev polynomials.
23342
23343 2010-03-14  Bruno Haible  <bruno@clisp.org>
23344
23345         Fix compilation error when modules 'posix_spawn[p]' are not used.
23346         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
23347         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
23348
23349 2010-03-14  Bruno Haible  <bruno@clisp.org>
23350
23351         Fix compilation error on mingw when module 'time_r' is not used.
23352         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
23353         is 1.
23354         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
23355         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23356         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
23357         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
23358
23359 2010-03-14  Bruno Haible  <bruno@clisp.org>
23360
23361         Fix compilation error with Sun C.
23362         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
23363         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
23364         instead of GCC specific ULONG_LONG_MAX.
23365         * lib/xstrtoll.c: Likewise.
23366         * lib/xstrtoull.c: Likewise.
23367
23368 2010-03-13  Bruno Haible  <bruno@clisp.org>
23369
23370         Allow the user to disable C++ code and tests.
23371         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
23372         (gl_PROG_ANSI_CXX): Require it.
23373
23374 2010-03-13  Bruno Haible  <bruno@clisp.org>
23375
23376         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
23377         cases.
23378
23379 2010-03-13  Bruno Haible  <bruno@clisp.org>
23380
23381         Test that gnulib does not break the standard C++ headers.
23382         * tests/test-locale-c++2.cc: New file.
23383         * modules/locale-tests (Files): Add it.
23384         (Makefile.am): Compile it for test-locale-c++.
23385         * tests/test-math-c++2.cc: New file.
23386         * modules/math-tests (Files): Add it.
23387         (Makefile.am): Compile it for test-math-c++.
23388         * tests/test-signal-c++2.cc: New file.
23389         * modules/signal-tests (Files): Add it.
23390         (Makefile.am): Compile it for test-signal-c++.
23391         * tests/test-stdio-c++2.cc: New file.
23392         * modules/stdio-tests (Files): Add it.
23393         (Makefile.am): Compile it for test-stdio-c++.
23394         * tests/test-stdlib-c++2.cc: New file.
23395         * modules/stdlib-tests (Files): Add it.
23396         (Makefile.am): Compile it for test-stdlib-c++.
23397         * tests/test-string-c++2.cc: New file.
23398         * modules/string-tests (Files): Add it.
23399         (Makefile.am): Compile it for test-string-c++.
23400         * tests/test-time-c++2.cc: New file.
23401         * modules/time-tests (Files): Add it.
23402         (Makefile.am): Compile it for test-time-c++.
23403         Reported by John W. Eaton <jwe@gnu.org>.
23404
23405 2010-03-13  Bruno Haible  <bruno@clisp.org>
23406
23407         * gnulib-tool (func_usage): Clarify which options are available for
23408         --create-testdir and --create-megatestdir.
23409
23410 2010-03-13  Bruno Haible  <bruno@clisp.org>
23411
23412         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
23413         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
23414         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
23415         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23416         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
23417         when appropriate.
23418         Reported by Jim Meyering.
23419
23420 2010-03-12  Simon Josefsson  <simon@josefsson.org>
23421
23422         * gnulib-tool (func_import): Explain origin of code.
23423
23424 2010-03-12  Bruno Haible  <bruno@clisp.org>
23425
23426         Fix problem with automake's definition of CXXLINK.
23427         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
23428         Reported by Simon Josefsson and Ludovic Courtès.
23429
23430 2010-03-12  Bruno Haible  <bruno@clisp.org>
23431
23432         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
23433         stable releases.
23434
23435 2010-03-11  Bruno Haible  <bruno@clisp.org>
23436
23437         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
23438         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
23439         whether the system provides one variant or multiple variants of the
23440         function.
23441         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
23442         C++ compilers.
23443         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
23444         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
23445         Reported by Jim Meyering.
23446
23447 2010-03-09  Simon Josefsson  <simon@josefsson.org>
23448
23449         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
23450
23451 2010-03-08  Bruno Haible  <bruno@clisp.org>
23452
23453         gnulib-tool: Add support for --libtool in --create-testdir.
23454         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
23455         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
23456
23457 2010-03-08  Eric Blake  <eblake@redhat.com>
23458
23459         gnulib-tool.texi: mention possibility of git submodule
23460         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
23461         submodules.
23462         * doc/.gitignore: Ignore another generated file.
23463
23464 2010-03-08  Karl Berry  <karl@gnu.org>
23465
23466         * doc/gnulib-tool.texi (VCS Issues): Mention third option
23467         of committing gnulib files while skipping others.
23468
23469 2010-03-07  Bruno Haible  <bruno@clisp.org>
23470
23471         Tests of module 'wctype' in C++ mode.
23472         * tests/test-wctype-c++.cc: New file.
23473         * modules/wctype-tests (Files): Add it and tests/signature.h.
23474         (Depends-on): Add ansi-c++-opt.
23475         (Makefile.am): Arrange to compile and run test-wctype-c++.
23476
23477         Tests of module 'wchar' in C++ mode.
23478         * tests/test-wchar-c++.cc: New file.
23479         * modules/wchar-tests (Files): Add it and tests/signature.h.
23480         (Depends-on): Add ansi-c++-opt.
23481         (Makefile.am): Arrange to compile and run test-wchar-c++.
23482         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
23483         gl_MODULE_INDICATOR.
23484
23485         Tests of module 'unistd' in C++ mode.
23486         * tests/test-unistd-c++.cc: New file.
23487         * modules/unistd-tests (Files): Add it and tests/signature.h.
23488         (Depends-on): Add ansi-c++-opt.
23489         (Makefile.am): Arrange to compile and run test-unistd-c++.
23490         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
23491         gl_MODULE_INDICATOR.
23492
23493         Tests of module 'time' in C++ mode.
23494         * tests/test-time-c++.cc: New file.
23495         * modules/time-tests (Files): Add it and tests/signature.h.
23496         (Depends-on): Add ansi-c++-opt.
23497         (Makefile.am): Arrange to compile and run test-time-c++.
23498         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23499
23500         Tests of module 'sys_time' in C++ mode.
23501         * tests/test-sys_time-c++.cc: New file.
23502         * modules/sys_time-tests (Files): Add it and tests/signature.h.
23503         (Depends-on): Add ansi-c++-opt.
23504         (Makefile.am): Arrange to compile and run test-sys_time-c++.
23505         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
23506         gl_MODULE_INDICATOR.
23507
23508         Tests of module 'sys_stat' in C++ mode.
23509         * tests/test-sys_stat-c++.cc: New file.
23510         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
23511         (Depends-on): Add ansi-c++-opt.
23512         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
23513         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
23514         gl_MODULE_INDICATOR.
23515
23516         Tests of module 'sys_socket' in C++ mode.
23517         * tests/test-sys_socket-c++.cc: New file.
23518         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
23519         (Depends-on): Add ansi-c++-opt.
23520         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
23521         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
23522         gl_MODULE_INDICATOR.
23523
23524         Tests of module 'sys_select' in C++ mode.
23525         * tests/test-sys_select-c++.cc: New file.
23526         * modules/sys_select-tests (Files): Add it and tests/signature.h.
23527         (Depends-on): Add ansi-c++-opt.
23528         (Makefile.am): Arrange to compile and run test-sys_select-c++.
23529         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
23530         gl_MODULE_INDICATOR.
23531
23532         Tests of module 'sys_ioctl' in C++ mode.
23533         * tests/test-sys_ioctl-c++.cc: New file.
23534         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
23535         (Depends-on): Add ansi-c++-opt.
23536         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
23537         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
23538         gl_MODULE_INDICATOR.
23539
23540         Tests of module 'string' in C++ mode.
23541         * tests/test-string-c++.cc: New file.
23542         * modules/string-tests (Files): Add it and tests/signature.h.
23543         (Depends-on): Add ansi-c++-opt.
23544         (Makefile.am): Arrange to compile and run test-string-c++.
23545         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
23546         gl_MODULE_INDICATOR.
23547
23548         Tests of module 'stdlib' in C++ mode.
23549         * tests/test-stdlib-c++.cc: New file.
23550         * modules/stdlib-tests (Files): Add it and tests/signature.h.
23551         (Depends-on): Add ansi-c++-opt.
23552         (Makefile.am): Arrange to compile and run test-stdlib-c++.
23553         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
23554         gl_MODULE_INDICATOR.
23555
23556         Tests of module 'stdio' in C++ mode.
23557         * tests/test-stdio-c++.cc: New file.
23558         * modules/stdio-tests (Files): Add it and tests/signature.h.
23559         (Depends-on): Add ansi-c++-opt.
23560         (Makefile.am): Arrange to compile and run test-stdio-c++.
23561         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23562         gl_MODULE_INDICATOR.
23563
23564         Tests of module 'spawn' in C++ mode.
23565         * tests/test-spawn-c++.cc: New file.
23566         * modules/spawn-tests (Files): Add it and tests/signature.h.
23567         (Depends-on): Add ansi-c++-opt.
23568         (Makefile.am): Arrange to compile and run test-spawn-c++.
23569         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23570         gl_MODULE_INDICATOR.
23571
23572         Tests of module 'signal' in C++ mode.
23573         * tests/test-signal-c++.cc: New file.
23574         * modules/signal-tests (Files): Add it and tests/signature.h.
23575         (Depends-on): Add ansi-c++-opt.
23576         (Makefile.am): Arrange to compile and run test-signal-c++.
23577         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23578         gl_MODULE_INDICATOR.
23579
23580         Tests of module 'search' in C++ mode.
23581         * tests/test-search-c++.cc: New file.
23582         * modules/search-tests (Files): Add it and tests/signature.h.
23583         (Depends-on): Add ansi-c++-opt.
23584         (Makefile.am): Arrange to compile and run test-search-c++.
23585         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23586         gl_MODULE_INDICATOR.
23587
23588         Tests of module 'math' in C++ mode.
23589         * tests/test-math-c++.cc: New file.
23590         * modules/math-tests (Files): Add it and tests/signature.h.
23591         (Depends-on): Add ansi-c++-opt.
23592         (Makefile.am): Arrange to compile and run test-math-c++.
23593         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23594
23595         Tests of module 'locale' in C++ mode.
23596         * tests/test-locale-c++.cc: New file.
23597         * modules/locale-tests (Files): Add it and tests/signature.h.
23598         (Depends-on): Add ansi-c++-opt.
23599         (Makefile.am): Arrange to compile and run test-locale-c++.
23600         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23601         gl_MODULE_INDICATOR.
23602
23603         Tests of module 'langinfo' in C++ mode.
23604         * tests/test-langinfo-c++.cc: New file.
23605         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23606         (Depends-on): Add ansi-c++-opt.
23607         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23608         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23609         gl_MODULE_INDICATOR.
23610
23611         Tests of module 'iconv-h' in C++ mode.
23612         * tests/test-iconv-h-c++.cc: New file.
23613         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23614         (Depends-on): Add ansi-c++-opt.
23615         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23616
23617         Tests of module 'glob' in C++ mode.
23618         * tests/test-glob-c++.cc: New file.
23619         * modules/glob-tests (Files): Add it.
23620         (Depends-on): Add ansi-c++-opt.
23621         (Makefile.am): Arrange to compile and run test-glob-c++.
23622
23623         Tests of module 'fcntl-h' in C++ mode.
23624         * tests/test-fcntl-h-c++.cc: New file.
23625         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23626         (Depends-on): Add ansi-c++-opt.
23627         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23628         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23629         gl_MODULE_INDICATOR.
23630
23631         Tests of module 'dirent' in C++ mode.
23632         * tests/test-dirent-c++.cc: New file.
23633         * modules/dirent-tests (Files): Add it and tests/signature.h.
23634         (Depends-on): Add ansi-c++-opt.
23635         (Makefile.am): Arrange to compile and run test-dirent-c++.
23636         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23637         gl_MODULE_INDICATOR.
23638
23639         New module 'ansi-c++-opt'.
23640         * modules/ansi-c++-opt: New file.
23641         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23642
23643         Document C++ namespace mode.
23644         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23645
23646         wctype: Avoid #define replacements in C++ mode.
23647         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23648         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23649         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23650         In C++, define a namespaced alias symbol.
23651         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23652         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23653         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23654         rule.
23655
23656         wchar: Avoid #define replacements in C++ mode.
23657         * lib/wchar.in.h: Include c++defs.h.
23658         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23659         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23660         symbol.
23661         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23662         * modules/wchar (Depends-on): Add c++defs.
23663         (Makefile.am): Update wchar.h rule.
23664
23665         unistd: Avoid #define replacements in C++ mode.
23666         * lib/unistd.in.h: Include c++defs.h.
23667         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23668         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23669         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23670         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23671         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23672         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23673         symbol.
23674         (environ): Update.
23675         * modules/unistd (Depends-on): Add c++defs.
23676         (Makefile.am): Update unistd.h rule.
23677
23678         time: Avoid #define replacements in C++ mode.
23679         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23680         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23681         define a namespaced alias symbol.
23682         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23683         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23684         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23685         * modules/time (Depends-on): Add c++defs, warn-on-use.
23686         (Makefile.am): Update time.h rule.
23687         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23688         * modules/nanosleep (configure.ac): Likewise.
23689         * modules/strptime (configure.ac): Likewise.
23690         * modules/timegm (configure.ac): Likewise.
23691
23692         sys_time: Avoid #define replacements in C++ mode.
23693         * lib/sys_time.in.h: Include c++defs.h.
23694         (gettimeofday): In C++, define a namespaced alias symbol.
23695         * modules/sys_time (Depends-on): Add c++defs.
23696         (Makefile.am): Update sys/time.h rule.
23697
23698         sys_stat: Avoid #define replacements in C++ mode.
23699         * lib/sys_stat.in.h: Include c++defs.h.
23700         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23701         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23702         namespaced alias symbol.
23703         In C++, define a namespaced alias symbol.
23704         * modules/sys_stat (Depends-on): Add c++defs.
23705         (Makefile.am): Update sys/stat.h rule.
23706
23707         sys_socket: Avoid #define replacements in C++ mode.
23708         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23709         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23710         definitions also when the system has a <sys/socket.h>.
23711         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23712         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23713         In C++, define a namespaced alias symbol.
23714         * modules/sys_socket (Depends-on): Add c++defs.
23715         (Makefile.am): Update sys/socket.h rule.
23716
23717         sys_select: Avoid #define replacements in C++ mode.
23718         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23719         definitions also when the system has a <sys/select.h>.
23720         (select): In C++, define a namespaced alias symbol.
23721         * modules/sys_select (Depends-on): Add c++defs.
23722         (Makefile.am): Update sys/select.h rule.
23723
23724         sys_ioctl: Avoid #define replacements in C++ mode.
23725         * lib/sys_ioctl.in.h: Include c++defs.h.
23726         (ioctl): In C++, define a namespaced alias symbol.
23727         * modules/sys_ioctl (Depends-on): Add c++defs.
23728         (Makefile.am): Update sys/ioctl.h rule.
23729
23730         string: Avoid #define replacements in C++ mode.
23731         * lib/string.in.h: Include c++defs.h.
23732         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23733         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23734         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23735         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23736         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23737         * modules/string (Depends-on): Add c++defs.
23738         (Makefile.am): Update string.h rule.
23739
23740         stdlib: Avoid #define replacements in C++ mode.
23741         * lib/stdlib.in.h: Include c++defs.h.
23742         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23743         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23744         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23745         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23746         symbol.
23747         * modules/stdlib (Depends-on): Add c++defs.
23748         (Makefile.am): Update stdlib.h rule.
23749
23750         stdio: Avoid #define replacements in C++ mode.
23751         * lib/stdio.in.h: Include c++defs.h.
23752         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23753         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23754         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23755         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23756         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23757         namespaced alias symbol.
23758         * modules/stdio (Depends-on): Add c++defs.
23759         (Makefile.am): Update stdio.h rule.
23760
23761         spawn: Avoid #define replacements in C++ mode.
23762         * lib/spawn.in.h: Include c++defs.h.
23763         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23764         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23765         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23766         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23767         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23768         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23769         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23770         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23771         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23772         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23773         In C++, define a namespaced alias symbol.
23774         * modules/spawn (Depends-on): Add c++defs.
23775         (Makefile.am): Update spawn.h rule.
23776
23777         signal: Avoid #define replacements in C++ mode.
23778         * lib/signal.in.h: Include c++defs.h.
23779         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23780         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23781         namespaced alias symbol.
23782         * modules/signal (Depends-on): Add c++defs.
23783         (Makefile.am): Update signal.h rule.
23784
23785         search: Avoid #define replacements in C++ mode.
23786         * lib/search.in.h: Include c++defs.h.
23787         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23788         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23789         symbol.
23790         * modules/search (Depends-on): Add c++defs.
23791         (Makefile.am): Update search.h rule.
23792
23793         math: Avoid #define replacements in C++ mode.
23794         * lib/math.in.h: Include c++defs.h.
23795         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23796         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23797         trunc, truncl): In C++, define a namespaced alias symbol.
23798         * modules/math (Depends-on): Add c++defs.
23799         (Makefile.am): Update math.h rule.
23800
23801         locale: Avoid #define replacements in C++ mode.
23802         * lib/locale.in.h: Include c++defs.h.
23803         (duplocale): In C++, define a namespaced alias symbol.
23804         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23805         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23806         * modules/locale (Depends-on): Add c++defs.
23807         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23808
23809         langinfo: Avoid #define replacements in C++ mode.
23810         * lib/langinfo.in.h: Include c++defs.h.
23811         (nl_langinfo): In C++, define a namespaced alias symbol.
23812         * modules/langinfo (Depends-on): Add c++defs.
23813         (Makefile.am): Update langinfo.h rule.
23814
23815         iconv-h: Avoid #define replacements in C++ mode.
23816         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23817         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23818         symbol.
23819         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23820         whenever iconv is present.
23821         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23822         (Makefile.am): Update iconv.h rule.
23823
23824         glob: Avoid #define replacements in C++ mode.
23825         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23826         (_gl_glob_errfunc_fn): New type.
23827         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23828         symbol.
23829         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23830         (Makefile.am): Update glob.h rule.
23831
23832         fcntl-h: Avoid #define replacements in C++ mode.
23833         * lib/fcntl.in.h: Include c++defs.h.
23834         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23835         * modules/fcntl-h (Depends-on): Add c++defs.
23836         (Makefile.am): Update fcntl.h rule.
23837
23838         dirent: Avoid #define replacements in C++ mode.
23839         * lib/dirent.in.h: Include c++defs.h.
23840         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23841         namespaced alias symbol.
23842         (dirfd): Update declaration.
23843         * modules/dirent (Depends-on): Add c++defs.
23844         (Makefile.am): Update dirent.h rule.
23845
23846         ctype: Make it usable in C++ code.
23847         * lib/ctype.in.h: Include c++defs.h.
23848         (isblank): Declare as extern "C".
23849         * modules/ctype (Depends-on): Add c++defs.
23850         (Makefile.am): Update ctype.h rule.
23851
23852         New module 'c++defs'.
23853         * modules/c++defs: New file.
23854         * build-aux/c++defs.h: New file.
23855         Reported by John W. Eaton <jwe@gnu.org>.
23856
23857 2010-03-07  Bruno Haible  <bruno@clisp.org>
23858
23859         logb: Provide missing declaration for Cygwin.
23860         * lib/math.in.h (logb): New declaration.
23861         * m4/logb.m4: New file.
23862         * modules/logb (Files): Add m4/logb.m4.
23863         (Depends-on): Add math.
23864         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23865         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23867         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23868         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23869
23870 2010-03-07  Bruno Haible  <bruno@clisp.org>
23871
23872         Fix test-cond link error.
23873         * tests/test-cond.c: Include <stdio.h>.
23874
23875 2010-03-07  Bruno Haible  <bruno@clisp.org>
23876
23877         Fix test-dirent-safer link error.
23878         * modules/dirent-safer-tests (Makefile.am): Define
23879         test_dirent_safer_LDADD.
23880
23881 2010-03-07  Bruno Haible  <bruno@clisp.org>
23882
23883         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23884         among default module list.
23885
23886 2010-03-07  Bruno Haible  <bruno@clisp.org>
23887
23888         Fix link error on platforms with GNU libiconv.
23889         * modules/unistr/u8-strcoll-tests (Makefile): Define
23890         test_u8_strcoll_LDADD.
23891         * modules/unistr/u16-strcoll-tests (Makefile): Define
23892         test_u16_strcoll_LDADD.
23893         * modules/unistr/u32-strcoll-tests (Makefile): Define
23894         test_u32_strcoll_LDADD.
23895
23896 2010-03-07  Bruno Haible  <bruno@clisp.org>
23897
23898         Use POSIX declarations for socket functions.
23899         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23900         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23901         rpl_sendto): Change declaration to match POSIX.
23902         * lib/connect.c (rpl_connect): Likewise.
23903         * lib/accept.c (rpl_accept): Likewise.
23904         * lib/bind.c (rpl_bind): Likewise.
23905         * lib/getpeername.c (rpl_getpeername): Likewise.
23906         * lib/getsockname.c (rpl_getsockname): Likewise.
23907         * lib/recv.c (rpl_recv): Likewise.
23908         * lib/send.c (rpl_send): Likewise.
23909         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23910         * lib/sendto.c (rpl_sendto): Likewise.
23911
23912 2010-03-06  Bruno Haible  <bruno@clisp.org>
23913
23914         Clarify access, euidaccess, faccessat.
23915         * doc/posix-functions/faccessat.texi: Mention security problem under
23916         "Other problems", not "Portability problems".
23917         * doc/posix-functions/access.texi: Likewise. Mention a related security
23918         problem.
23919         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23920         * lib/euidaccess.c: Add comments about platforms.
23921         * lib/unistd.in.h (access, euidaccess): Add warnings.
23922
23923 2010-03-07  Bruno Haible  <bruno@clisp.org>
23924
23925         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23926         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23927         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23928         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23929         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23930         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23931         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23932         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23933         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23934         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23935         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23936         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23937         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23938         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23939         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23940         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23941         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23942         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23943         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23944         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23945         Likewise.
23946         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23947         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23948         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23949         Likewise.
23950         * tests/test-spawn.c (main): Make it work when
23951         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23952
23953 2010-03-07  Bruno Haible  <bruno@clisp.org>
23954
23955         Fix incorrect Makefile.am generation in German locale.
23956         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23957         Execute sed command with character range in C locale.
23958
23959 2010-03-06  Bruno Haible  <bruno@clisp.org>
23960
23961         Tests for module 'iconv-h'.
23962         * modules/iconv-h-tests: New file.
23963         * tests/test-iconv-h.c: New file.
23964
23965         New module 'iconv-h'.
23966         * modules/iconv-h: New file.
23967         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23968         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23969         (configure.ac): Remove gl_ICONV_H.
23970         (Makefile.am): Remove rule for iconv.h.
23971
23972 2010-03-06  Bruno Haible  <bruno@clisp.org>
23973
23974         More consistent naming of *.m4 files.
23975         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23976         * modules/wctype (Files): Update.
23977
23978         More consistent naming of *.m4 files.
23979         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23980         * modules/wchar (Files): Update.
23981
23982 2010-03-06  Jim Meyering  <meyering@redhat.com>
23983
23984         euidaccess: relax license to LGPLv2+
23985         * modules/euidaccess (License): Relax to LGPLv2+.
23986
23987 2010-03-06  Bruno Haible  <bruno@clisp.org>
23988
23989         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23990         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23991         (Makefile.am): Augment lib_SOURCES instead.
23992
23993 2010-03-04  Jim Meyering  <meyering@redhat.com>
23994
23995         utime: remove obsolete module
23996         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23997         unnecessary for years, and has been marked as obsolete for 10 months.
23998         * modules/utime: Remove file.
23999         * lib/utime.c: Remove file.
24000         * m4/utime.m4: Remove file.
24001         * m4/utimes-null.m4: Remove file.
24002         * doc/posix-functions/utime.texi (utime): Remove reference to
24003         the module.  Move the sole "fixed by gnulib" item into the
24004         "problems not fixed by Gnulib" list.
24005         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24006
24007 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24008
24009         * modules/exit (License): Relax license to LGPLv2+.
24010         (Status): Mark as obsolete.
24011         * NEWS: Mention deprecated 'exit' module.
24012         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24013         of now obsolete 'exit'.
24014
24015 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24016
24017         fts-lgpl: remove unused module
24018         * modules/fts-lgpl: Remove.
24019         * MODULES.html.sh (func_all_modules): Adjust.
24020         * check-module (find_included_lib_files): Adjust.
24021         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
24022
24023 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24024
24025         copy-acl: enhance Solaris ACL error handling
24026         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
24027         * lib/set-mode-acl.c (qset_acl): Likewise.
24028
24029 2010-03-02  Bruno Haible  <bruno@clisp.org>
24030
24031         spawn: Don't override the system defined values on FreeBSD 8.
24032         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
24033         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
24034         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
24035         if HAVE_POSIX_SPAWN is 1.
24036         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
24037
24038 2010-03-01  Bruno Haible  <bruno@clisp.org>
24039
24040         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
24041         regarding Automake.
24042
24043 2010-02-25  Bruno Haible  <bruno@clisp.org>
24044
24045         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
24046         * gnulib-tool: Define 'echo' as a function only before the ksh alias
24047         setting, not afterwards.
24048         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24049
24050 2010-02-24  Eric Blake  <eblake@redhat.com>
24051
24052         bootstrap, git-version-gen: use timestamp
24053         * build-aux/git-version-gen (scriptversion): Force UTC.
24054         * build-aux/bootstrap (scriptversion): New variable.
24055
24056         bootstrap: allow older git
24057         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24058         older than 1.6.4.  Requested by the libvirt project.
24059
24060 2010-02-23  Eric Blake  <eblake@redhat.com>
24061
24062         warn-on-use: work with old autoconf
24063         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24064         AS_VAR semantics of autoconf 2.60.
24065         Reported by Bruno Haible.
24066
24067         bootstrap: improve some comments
24068         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24069         clarification comments.
24070
24071         gettimeofday: provide correct function
24072         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24073         when replacement is declared, otherwise provide gettimeofday.
24074         Reported by Michael Goffioul.
24075
24076 2010-02-23  Jim Meyering  <meyering@redhat.com>
24077
24078         lib-ignore: relax license to "unlimited", not LGPLv2+
24079         * modules/lib-ignore (License): Relax to "unlimited".
24080
24081 2010-02-23  Jim Meyering  <meyering@redhat.com>
24082
24083         lib-ignore: relax license to LGPLv2+
24084         * modules/lib-ignore (License): Relax to LGPLv2+.
24085
24086 2010-02-22  Eric Blake  <eblake@redhat.com>
24087
24088         lseek: avoid bash 3.2 broken pipe bug
24089         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24090         warning from bash 3.2.
24091         Reported by Ben Pfaff, with analysis from Bruno Haible.
24092
24093         bootstrap: support non-FSF copyright holder
24094         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24095         bootstrap.conf override of COPYRIGHT_HOLDER.
24096         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24097
24098         bootstrap: interoperate with gettext 0.14.1
24099         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24100
24101         bootstrap: allow for alternate submodule location
24102         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24103         hardcoding submodule location.
24104         (gnulib_mk): Allow direct use of Makefile.am.
24105
24106         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24107         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24108         rather than reconfiguring where the submodule points.
24109
24110         gettimeofday: restore support for platforms that lack function
24111         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24112         replacement if function is missing.
24113         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24114         * modules/sys_time (Makefile.am): Substitute it.
24115         * lib/sys_time.in.h (gettimeofday): Check it.
24116         Reported by Michael Goffioul.
24117
24118 2010-02-21  Bruno Haible  <bruno@clisp.org>
24119
24120         * lib/stdio.in.h (obstack_printf): Fix typo.
24121
24122 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
24123
24124         vc-list-files: use bzr ls's -R option
24125         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
24126         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
24127
24128 2010-02-21  Jim Meyering  <meyering@redhat.com>
24129
24130         init.sh: fix EXEEXT shims to work also for names like test-prog
24131         * tests/init.sh: Re-exec a better shell, when needed.
24132         If the current shell lacks support for posix $(...), an init.sh-using
24133         test will now try to find a shell that supports that.  If EXEEXT is
24134         nonempty, we also require support for hyphen-in-alias-name and shell
24135         substitutions like ${var#glob}.  Failure to find such a shell results
24136         in a skipped test.
24137
24138 2010-02-21  Bruno Haible  <bruno@clisp.org>
24139
24140         Really work around around "broken pipe" error message from bash 3.2.
24141         * gnulib-tool (func_reset_sigpipe): Remove function.
24142         (echo): In bash 3.2, define to a function that uses printf.
24143         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
24144
24145 2010-02-20  Bruno Haible  <bruno@clisp.org>
24146
24147         Restore support for automake 1.9.6 with autoconf 2.61.
24148         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
24149         Reported by James Youngman <jay@gnu.org>.
24150
24151 2010-02-20  Bruno Haible  <bruno@clisp.org>
24152
24153         Improve *printf warning condition.
24154         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
24155         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
24156         and the function is overridden due to SIGPIPE emulation.
24157
24158 2010-02-20  Bruno Haible  <bruno@clisp.org>
24159
24160         * lib/stdio.in.h: Tweak comments.
24161
24162 2010-02-19  Bruno Haible  <bruno@clisp.org>
24163
24164         Make it easier to find modules. New gnulib-tool option '--find'.
24165         * gnulib-tool: New option --find.
24166         (func_usage): Document it.
24167         (func_sanitize_modulelist): New function, extracted from
24168         func_all_modules.
24169         (func_all_modules): Invoke it.
24170         * doc/gnulib-tool.texi (Which modules?): New node.
24171
24172 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
24173
24174         * lib/sys_select.in.h: Provide select replacement even if
24175         sys/select.h exists on a system, for Interix.
24176
24177 2010-02-18  Jim Meyering  <meyering@redhat.com>
24178
24179         init.sh: don't use $(...) just yet
24180         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
24181         to accommodate e.g., Solaris' /bin/sh.
24182
24183 2010-02-17  Bruno Haible  <bruno@clisp.org>
24184
24185         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
24186         Reported by Ludovic Courtès <ludo@gnu.org>.
24187
24188 2010-02-16  Simon Josefsson  <simon@josefsson.org>
24189
24190         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
24191         linking with -lintl.
24192
24193 2010-02-17  Simon Josefsson  <simon@josefsson.org>
24194
24195         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
24196         if not provided by the system's netdb.h.  Reported by
24197         ludo@gnu.org (Ludovic Courtès).
24198
24199 2010-02-15  Jim Meyering  <meyering@redhat.com>
24200
24201         init.sh: improve portability and efficiency
24202         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
24203         "dummy" in a for loop.
24204         Use '!', not '^' to select the complement of a character set used
24205         in a "case" statement.
24206         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
24207         Suggestions from Eric Blake.
24208
24209         init.sh: automatically accommodate programs with the .exe suffix
24210         Automatically arrange for an invocation of "prog" to execute the
24211         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
24212         may use the simpler "prog", yet still work when built on a system
24213         that requires specifying the added suffix.
24214         Do this by constructing a function named "prog" that invokes
24215         "prog.exe" for each .exe file in selected directories.
24216         * tests/init.sh (find_exe_basenames_): New function.
24217         (create_exe_shim_functions_): New function.
24218         (path_prepend_): Use it.
24219
24220         maint.mk: mark syntax-check sc_*.m rules as .PHONY
24221         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
24222         "make -t syntax-check" doesn't create a ton of sc_*.m files.
24223
24224 2010-02-14  Jim Meyering  <meyering@redhat.com>
24225
24226         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
24227         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
24228         (sc_prohibit_hash_pjw_without_use): New rule.
24229
24230         maint.mk: allow the default upload destination dir to be overridden
24231         * top/maint.mk (upload_dest_dir_): Define with a default that
24232         preserves the status quo.
24233         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
24234         Reported by Peter Simons.
24235
24236         maint.mk: prohibit inclusion of "hash.h" without_use
24237         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
24238
24239 2010-02-10  Jim Meyering  <meyering@redhat.com>
24240
24241         maint.mk: prohibit inclusion of "ignore-value.h" without_use
24242         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
24243
24244 2010-02-09  Eric Blake  <ebb9@byu.net>
24245         and Bruno Haible  <bruno@clisp.org>
24246
24247         obstack-printf-posix: ensure declaration
24248         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
24249         extracted from gl_FUNC_OBSTACK_PRINTF.
24250         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
24251         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
24252         Likewise.
24253         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
24254         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
24255         0.
24256
24257 2010-02-08  Bruno Haible  <bruno@clisp.org>
24258
24259         gnulib-tool: Fix typo in 2010-02-07 commit.
24260         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
24261         Reported by Eric Blake.
24262
24263 2010-02-07  Bruno Haible  <bruno@clisp.org>
24264
24265         gnulib-tool: Fix up caching patches.
24266         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
24267         option --no-cache. Use associative arrays when supported by the shell.
24268         (sed_comments): New variable.
24269         (modcache): Renamed from do_cache.
24270         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
24271         abbreviate unnecessarily.
24272         (have_associative): New variable.
24273         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
24274         way also for ksh and zsh.
24275         (func_init_sed_convert_to_cache_statements): New function, extracted
24276         from func_cache_lookup_module. Add support for associative arrays.
24277         Don't set the c_MODULE_cached variable here. Ignore all lines before
24278         the first field header. Remove only the final newline, not all trailing
24279         newlines. Support empty fields correctly. Limit the use of 'eval' to
24280         assignments.
24281         (func_get_description, func_get_status, func_get_notice,
24282         func_get_applicability, func_get_filelist, func_get_dependencies,
24283         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
24284         func_get_automake_snippet, func_get_include_directive,
24285         func_get_link_directive, func_get_license, func_get_maintainer):
24286         Update documentation. List the unoptimized code first. Add support for
24287         associative arrays. Limit the use of 'eval' to assignments.
24288         (func_get_applicability): Undo stylistic pessimisations.
24289         (func_get_automake_snippet, func_get_include_directive): Reduce code
24290         duplication.
24291         (func_modules_transitive_closure, func_modules_add_dummy,
24292         func_modules_notice, func_modules_to_filelist, func_add_file,
24293         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
24294         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
24295         func_create_testdir, func_create_megatestdir): Update documentation.
24296
24297 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24298
24299         * gnulib-tool (func_cache_lookup_module): Store the module name
24300         belonging to the cache variable; error out if two different
24301         module names map to the same cache variable name.
24302
24303 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24304
24305         gnulib-tool: Make caching optional.
24306         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
24307         Update matching short versions of --no-changelog.
24308         (func_usage): Update.
24309         (sed_extract_cache_prog): Renamed from ...
24310         (sed_extract_prog): ... this; revert to old extraction script.
24311         (func_get_description, func_get_status)
24312         (func_get_notice, func_get_applicability, func_get_filelist)
24313         (func_get_dependencies, func_get_autoconf_early_snippet)
24314         (func_get_autoconf_snippet, func_get_automake_snippet)
24315         (func_get_include_directive, func_get_link_directive)
24316         (func_get_license, func_get_maintainer): If $do_cache is false,
24317         use old, non-caching extraction scripts.
24318         Suggestion by Bruno Haible.
24319
24320 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24321
24322         gnulib-tool: cache module metainformation.
24323         * gnulib-tool (sed_extract_prog): Match newline before each
24324         header, and rewrite header to a shell variable suffix.
24325         (func_cache_var, func_cache_lookup_module): New functions,
24326         to turn a module name into a cache variable prefix, and to
24327         look up and cache module metainformation.
24328         (func_get_description, func_get_status)
24329         (func_get_notice, func_get_applicability, func_get_filelist)
24330         (func_get_dependencies, func_get_autoconf_early_snippet)
24331         (func_get_autoconf_snippet, func_get_automake_snippet)
24332         (func_get_include_directive, func_get_link_directive)
24333         (func_get_license, func_get_maintainer): Use
24334         func_cache_lookup_module.
24335
24336 2010-02-07  Bruno Haible  <bruno@clisp.org>
24337
24338         fnctl: Fix missing dependency.
24339         * modules/fcntl (Depends-on): Add getdtablesize.
24340         Reported by John W. Eaton <jwe@gnu.org>.
24341
24342 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24343
24344         Argp: fix recognition of short alias options.
24345
24346         * lib/argp-parse.c (convert_options): Fix improper use of
24347         `|' between character values.
24348         * tests/test-argp.c (group1_option): New alias option
24349         --read (-r).
24350         (group1_parser): Special handling for 'r'.
24351         (test15): New test case.
24352         (test_fun): Add test15.
24353         * tests/test-argp-2.sh: Update expected --help and --usage
24354         outputs.
24355
24356 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24357
24358         * tests/test-argp.c: Fix indentation.
24359
24360 2010-02-04  Eric Blake  <ebb9@byu.net>
24361
24362         gettimeofday: expose type of second argument
24363         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
24364         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
24365         * tests/test-gettimeofday.c: Use it to silence warning.
24366         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
24367         the issue.
24368
24369 2010-02-03  Jim Meyering  <meyering@redhat.com>
24370
24371         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
24372         * lib/regcomp.c (TYPE_SIGNED): Define.
24373         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
24374
24375         regcomp.c: avoid a new -Wshadow warning
24376         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
24377
24378 2010-02-01  Jim Meyering  <meyering@redhat.com>
24379
24380         removing useless parentheses in cpp #define directives
24381         For motivation, see commit c0221df4, "define STREQ(a,b)
24382         consistently, removing useless parentheses"
24383         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
24384         * lib/mountlist.c (MNT_IGNORE): Likewise.
24385         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
24386
24387 2010-02-01  Eric Blake  <ebb9@byu.net>
24388
24389         sys_time: use link-warning
24390         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
24391         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
24392         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
24393         * modules/sys_time (Depends-on): Add warn-on-use.
24394         (Makefile.am): Always build replacement.
24395         (configure.ac): Update substitutions.
24396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
24397         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
24398         bother with SYS_TIME_H.
24399         * modules/gettimeofday (configure.ac): Declare indicator.
24400         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
24401         in use.
24402
24403         closein-tests: silence compiler warning
24404         * tests/test-closein.c (main): Ignore fread result.
24405         * modules/closein-tests (Depends-on): Add ignore-value.
24406
24407         tests: silence warning about system return
24408         * tests/test-areadlink-with-size.c (main): Ignore system result.
24409         * tests/test-areadlink.c (main): Likewise.
24410         * tests/test-areadlinkat-with-size.c (main): Likewise.
24411         * tests/test-areadlinkat.c (main): Likewise.
24412         * tests/test-canonicalize-lgpl.c (main): Likewise.
24413         * tests/test-canonicalize.c (main): Likewise.
24414         * tests/test-chown.c (main): Likewise.
24415         * tests/test-fchownat.c (main): Likewise.
24416         * tests/test-fdutimensat.c (main): Likewise.
24417         * tests/test-fstatat.c (main): Likewise.
24418         * tests/test-futimens.c (main): Likewise.
24419         * tests/test-lchown.c (main): Likewise.
24420         * tests/test-link.c (main): Likewise.
24421         * tests/test-linkat.c (main): Likewise.
24422         * tests/test-lstat.c (main): Likewise.
24423         * tests/test-mkdir.c (main): Likewise.
24424         * tests/test-mkdirat.c (main): Likewise.
24425         * tests/test-mkfifo.c (main): Likewise.
24426         * tests/test-mkfifoat.c (main): Likewise.
24427         * tests/test-mknod.c (main): Likewise.
24428         * tests/test-readlink.c (main): Likewise.
24429         * tests/test-remove.c (main): Likewise.
24430         * tests/test-rename.c (main): Likewise.
24431         * tests/test-renameat.c (main): Likewise.
24432         * tests/test-rmdir.c (main): Likewise.
24433         * tests/test-symlink.c (main): Likewise.
24434         * tests/test-symlinkat.c (main): Likewise.
24435         * tests/test-unlink.c (main): Likewise.
24436         * tests/test-unlinkat.c (main): Likewise.
24437         * tests/test-utimens.c (main): Likewise.
24438         * tests/test-utimensat.c (main): Likewise.
24439         * modules/areadlink-tests (Depends-on): Add ignore-value.
24440         * modules/areadlink-with-size-tests (Depends-on): Likewise.
24441         * modules/areadlinkat-tests (Depends-on): Likewise.
24442         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
24443         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24444         * modules/canonicalize-tests (Depends-on): Likewise.
24445         * modules/chown-tests (Depends-on): Likewise.
24446         * modules/fdutimensat-tests (Depends-on): Likewise.
24447         * modules/futimens-tests (Depends-on): Likewise.
24448         * modules/lchown-tests (Depends-on): Likewise.
24449         * modules/link-tests (Depends-on): Likewise.
24450         * modules/linkat-tests (Depends-on): Likewise.
24451         * modules/lstat-tests (Depends-on): Likewise.
24452         * modules/mkdir-tests (Depends-on): Likewise.
24453         * modules/mkfifo-tests (Depends-on): Likewise.
24454         * modules/mkfifoat-tests (Depends-on): Likewise.
24455         * modules/mknod-tests (Depends-on): Likewise.
24456         * modules/openat-tests (Depends-on): Likewise.
24457         * modules/readlink-tests (Depends-on): Likewise.
24458         * modules/remove-tests (Depends-on): Likewise.
24459         * modules/rename-tests (Depends-on): Likewise.
24460         * modules/renameat-tests (Depends-on): Likewise.
24461         * modules/rmdir-tests (Depends-on): Likewise.
24462         * modules/symlink-tests (Depends-on): Likewise.
24463         * modules/symlinkat-tests (Depends-on): Likewise.
24464         * modules/unlink-tests (Depends-on): Likewise.
24465         * modules/utimens-tests (Depends-on): Likewise.
24466         * modules/utimensat-tests (Depends-on): Likewise.
24467
24468 2010-01-31  Bruno Haible  <bruno@clisp.org>
24469
24470         Perform the same test for many <math.h> functions.
24471         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
24472         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
24473         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
24474         of gl_MATHFUNC.
24475         * modules/acos (configure.ac): Likewise.
24476         * modules/asin (configure.ac): Likewise.
24477         * modules/atan (configure.ac): Likewise.
24478         * modules/atan2 (configure.ac): Likewise.
24479         * modules/cbrt (configure.ac): Likewise.
24480         * modules/copysign (configure.ac): Likewise.
24481         * modules/cos (configure.ac): Likewise.
24482         * modules/cosh (configure.ac): Likewise.
24483         * modules/erf (configure.ac): Likewise.
24484         * modules/erfc (configure.ac): Likewise.
24485         * modules/exp (configure.ac): Likewise.
24486         * modules/fmod (configure.ac): Likewise.
24487         * modules/hypot (configure.ac): Likewise.
24488         * modules/j0 (configure.ac): Likewise.
24489         * modules/j1 (configure.ac): Likewise.
24490         * modules/jn (configure.ac): Likewise.
24491         * modules/lgamma (configure.ac): Likewise.
24492         * modules/log (configure.ac): Likewise.
24493         * modules/log10 (configure.ac): Likewise.
24494         * modules/log1p (configure.ac): Likewise.
24495         * modules/pow (configure.ac): Likewise.
24496         * modules/remainder (configure.ac): Likewise.
24497         * modules/sin (configure.ac): Likewise.
24498         * modules/sinh (configure.ac): Likewise.
24499         * modules/tan (configure.ac): Likewise.
24500         * modules/tanh (configure.ac): Likewise.
24501         * modules/y0 (configure.ac): Likewise.
24502         * modules/y1 (configure.ac): Likewise.
24503         * modules/yn (configure.ac): Likewise.
24504         Suggested by Paolo Bonzini.
24505
24506 2010-01-31  Bruno Haible  <bruno@clisp.org>
24507
24508         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
24509
24510 2010-01-31  Bruno Haible  <bruno@clisp.org>
24511
24512         Work around getdelim() bug on FreeBSD 8.0.
24513         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
24514         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
24515         not work.
24516         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
24517         is 1.
24518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
24519         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
24520         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
24521         a non-zero size.
24522         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
24523
24524 2010-01-31  Bruno Haible  <bruno@clisp.org>
24525
24526         Work around getline() bug on FreeBSD 8.0.
24527         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
24528         and a non-zero size.
24529         * tests/test-getline.c (main): Likewise.
24530         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
24531         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
24532
24533 2010-01-28  Eric Blake  <ebb9@byu.net>
24534
24535         regex: fix build failure
24536         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
24537         platforms.
24538
24539 2010-01-28  Jim Meyering  <meyering@redhat.com>
24540
24541         regex: do not ignore memory allocation failure
24542         * lib/regex_internal.c (create_cd_newstate): Detect
24543         re_node_set_init_copy failure.   Extracted from glibc commit
24544         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24545
24546         regex: sync more white-space changes from libc
24547         * lib/regex_internal.c: White-space only changes.
24548         * lib/regexec.c: Likewise.
24549
24550         regex: add many uses of __attribute_warn_unused_result__
24551         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
24552         * lib/regexec.c: Likewise.
24553         Extracted from a messy glibc commit.
24554
24555         regcomp.c: spelling and merge-artifact from glibc
24556         * lib/regcomp.c: Merge remainder of glibc's
24557         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24558
24559         regcomp.c: sync white-space changes from glibc
24560         * lib/regcomp.c: Merge to accommodate white space
24561         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24562
24563         regcomp.c: do not ignore internal return values
24564         * lib/regcomp.c: Do not ignore internal return values.
24565         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24566         but without its white-space changes and spelling fixes.
24567
24568         regex_internal.h: define __attribute_warn_unused_result__
24569         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24570
24571         maint: add a syntax-check rule to check for vulnerable Makefile.in
24572         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24573
24574 2010-01-27  Jim Meyering  <meyering@redhat.com>
24575
24576         ncftpput-ftp: clean up spaces
24577         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24578         Remove trailing blanks.
24579
24580 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24581
24582         * build-aux/git-version-gen: Fix copyright statement.
24583         * build-aux/gnupload: Likewise.
24584         * tests/test-arcfour.c: Likewise.
24585         * tests/test-arctwo.c: Likewise.
24586         * tests/test-count-one-bits.c: Likewise.
24587         * tests/test-crc.c: Likewise.
24588         * tests/test-des.c: Likewise.
24589         * tests/test-gc-arcfour.c: Likewise.
24590         * tests/test-gc-arctwo.c: Likewise.
24591         * tests/test-gc-des.c: Likewise.
24592         * tests/test-gc-hmac-md5.c: Likewise.
24593         * tests/test-gc-hmac-sha1.c: Likewise.
24594         * tests/test-gc-md2.c: Likewise.
24595         * tests/test-gc-md4.c: Likewise.
24596         * tests/test-gc-md5.c: Likewise.
24597         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24598         * tests/test-gc-rijndael.c: Likewise.
24599         * tests/test-gc-sha1.c: Likewise.
24600         * tests/test-gc.c: Likewise.
24601         * tests/test-gethostname.c: Likewise.
24602         * tests/test-gettimeofday.c: Likewise.
24603         * tests/test-hash.c: Likewise.
24604         * tests/test-hmac-md5.c: Likewise.
24605         * tests/test-hmac-sha1.c: Likewise.
24606         * tests/test-md2.c: Likewise.
24607         * tests/test-md4.c: Likewise.
24608         * tests/test-md5.c: Likewise.
24609         * tests/test-memchr.c: Likewise.
24610         * tests/test-memchr2.c: Likewise.
24611         * tests/test-memcmp.c: Likewise.
24612         * tests/test-memmem.c: Likewise.
24613         * tests/test-memrchr.c: Likewise.
24614         * tests/test-rawmemchr.c: Likewise.
24615         * tests/test-read-file.c: Likewise.
24616         * tests/test-rijndael.c: Likewise.
24617         * tests/test-sockets.c: Likewise.
24618         * tests/test-strchrnul.c: Likewise.
24619         * tests/test-strstr.c: Likewise.
24620         * tests/test-strtod.c: Likewise.
24621         * build-aux/ncftpput-ftp: Likewise.
24622
24623 2010-01-26  Eric Blake  <ebb9@byu.net>
24624
24625         ignore-value: update recommended header name
24626         * modules/ignore-value (Include): Only use <> for headers that
24627         exist in glibc.
24628
24629 2010-01-26  Jim Meyering  <meyering@redhat.com>
24630
24631         test-userspec.c: avoid compiler warnings
24632         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24633         and "initialization discards qualifiers..." warnings.
24634         Put the first "uid" in its own scope, and make char* members "const".
24635
24636 2010-01-25  Bruno Haible  <bruno@clisp.org>
24637
24638         gnulib-tool: Make warning diagnostics consistent.
24639         * gnulib-tool (func_warning): New function.
24640         Use it everywhere where gnulib-tool produces output to stderr and it is
24641         not a fatal error.
24642
24643 2010-01-25  Bruno Haible  <bruno@clisp.org>
24644
24645         Fix test dependencies.
24646         * modules/xstrtol-tests (Depends-on): Add inttypes.
24647         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24648
24649 2010-01-25 Pádraig Brady <P@draigBrady.com>
24650
24651         syntax-check: detect incorrect boolean macro values in config.h
24652         * modules/maintainer-makefile (configure.ac): Parameterize the location
24653         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24654         The logic is from Eric Blake and the location indicated by Jim Meyering.
24655         Note the more natural CONFIG_HEADER name is prohibited by automake
24656         for backwards compatibility reasons.
24657         * top/maint.mk (sc_Wundef_boolean): New rule.
24658
24659 2010-01-25  Jim Meyering  <meyering@redhat.com>
24660
24661         bootstrap: detect MacOS 10.6's shasum, too
24662         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24663         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24664
24665 2010-01-23  Jim Meyering  <meyering@redhat.com>
24666
24667         xstrtoll: new module
24668         * modules/xstrtoll: New file.
24669         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24670         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24671         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24672         ./configure fails if you use this module and lack "long long".
24673         * modules/xstrtoll-tests: New module.
24674         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24675         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24676         new init.sh-based test framework.
24677
24678 2010-01-24  Bruno Haible  <bruno@clisp.org>
24679
24680         Tests for module 'yn'.
24681         * modules/yn-tests: New file.
24682         * tests/test-yn.c: New file.
24683
24684         Tests for module 'y1'.
24685         * modules/y1-tests: New file.
24686         * tests/test-y1.c: New file.
24687
24688         Tests for module 'y0'.
24689         * modules/y0-tests: New file.
24690         * tests/test-y0.c: New file.
24691
24692         Tests for module 'tanh'.
24693         * modules/tanh-tests: New file.
24694         * tests/test-tanh.c: New file.
24695
24696         Tests for module 'tan'.
24697         * modules/tan-tests: New file.
24698         * tests/test-tan.c: New file.
24699
24700         Tests for module 'sqrt'.
24701         * modules/sqrt-tests: New file.
24702         * tests/test-sqrt.c: New file.
24703
24704         Tests for module 'sinh'.
24705         * modules/sinh-tests: New file.
24706         * tests/test-sinh.c: New file.
24707
24708         Tests for module 'sin'.
24709         * modules/sin-tests: New file.
24710         * tests/test-sin.c: New file.
24711
24712         Tests for module 'rint'.
24713         * modules/rint-tests: New file.
24714         * tests/test-rint.c: New file.
24715
24716         Tests for module 'remainder'.
24717         * modules/remainder-tests: New file.
24718         * tests/test-remainder.c: New file.
24719
24720         Tests for module 'pow'.
24721         * modules/pow-tests: New file.
24722         * tests/test-pow.c: New file.
24723
24724         Tests for module 'nextafter'.
24725         * modules/nextafter-tests: New file.
24726         * tests/test-nextafter.c: New file.
24727
24728         Tests for module 'modf'.
24729         * modules/modf-tests: New file.
24730         * tests/test-modf.c: New file.
24731
24732         Tests for module 'logb'.
24733         * modules/logb-tests: New file.
24734         * tests/test-logb.c: New file.
24735
24736         Tests for module 'log1p'.
24737         * modules/log1p-tests: New file.
24738         * tests/test-log1p.c: New file.
24739
24740         Tests for module 'log10'.
24741         * modules/log10-tests: New file.
24742         * tests/test-log10.c: New file.
24743
24744         Tests for module 'log'.
24745         * modules/log-tests: New file.
24746         * tests/test-log.c: New file.
24747
24748         Tests for module 'lgamma'.
24749         * modules/lgamma-tests: New file.
24750         * tests/test-lgamma.c: New file.
24751
24752         Tests for module 'ldexp'.
24753         * modules/ldexp-tests: New file.
24754         * tests/test-ldexp.c: New file.
24755
24756         Tests for module 'jn'.
24757         * modules/jn-tests: New file.
24758         * tests/test-jn.c: New file.
24759
24760         Tests for module 'j1'.
24761         * modules/j1-tests: New file.
24762         * tests/test-j1.c: New file.
24763
24764         Tests for module 'j0'.
24765         * modules/j0-tests: New file.
24766         * tests/test-j0.c: New file.
24767
24768         Tests for module 'hypot'.
24769         * modules/hypot-tests: New file.
24770         * tests/test-hypot.c: New file.
24771
24772         Tests for module 'fmod'.
24773         * modules/fmod-tests: New file.
24774         * tests/test-fmod.c: New file.
24775
24776         Tests for module 'fabs'.
24777         * modules/fabs-tests: New file.
24778         * tests/test-fabs.c: New file.
24779
24780         Tests for module 'exp'.
24781         * modules/exp-tests: New file.
24782         * tests/test-exp.c: New file.
24783
24784         Tests for module 'erfc'.
24785         * modules/erfc-tests: New file.
24786         * tests/test-erfc.c: New file.
24787
24788         Tests for module 'erf'.
24789         * modules/erf-tests: New file.
24790         * tests/test-erf.c: New file.
24791
24792         Tests for module 'cosh'.
24793         * modules/cosh-tests: New file.
24794         * tests/test-cosh.c: New file.
24795
24796         Tests for module 'cos'.
24797         * modules/cos-tests: New file.
24798         * tests/test-cos.c: New file.
24799
24800         Tests for module 'copysign'.
24801         * modules/copysign-tests: New file.
24802         * tests/test-copysign.c: New file.
24803
24804         Tests for module 'cbrt'.
24805         * modules/cbrt-tests: New file.
24806         * tests/test-cbrt.c: New file.
24807
24808         Tests for module 'atan2'.
24809         * modules/atan2-tests: New file.
24810         * tests/test-atan2.c: New file.
24811
24812         Tests for module 'atan'.
24813         * modules/atan-tests: New file.
24814         * tests/test-atan.c: New file.
24815
24816         Tests for module 'asin'.
24817         * modules/asin-tests: New file.
24818         * tests/test-asin.c: New file.
24819
24820         Tests for module 'acos'.
24821         * modules/acos-tests: New file.
24822         * tests/test-acos.c: New file.
24823
24824 2010-01-24  Bruno Haible  <bruno@clisp.org>
24825
24826         Fix tests for common <math.h> functions.
24827         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24828         code snippet that references the function pointer, rather than merely
24829         calling the function. Substitute the FUNC_LIBM variable.
24830         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24831         * modules/acos (configure.ac): Likewise.
24832         * modules/asin (configure.ac): Likewise.
24833         * modules/atan (configure.ac): Likewise.
24834         * modules/atan2 (configure.ac): Likewise.
24835         * modules/cbrt (configure.ac): Likewise.
24836         * modules/copysign (configure.ac): Likewise.
24837         * modules/cos (configure.ac): Likewise.
24838         * modules/cosh (configure.ac): Likewise.
24839         * modules/erf (configure.ac): Likewise.
24840         * modules/erfc (configure.ac): Likewise.
24841         * modules/exp (configure.ac): Likewise.
24842         * modules/fabs (configure.ac): Likewise.
24843         * modules/fmod (configure.ac): Likewise.
24844         * modules/hypot (configure.ac): Likewise.
24845         * modules/j0 (configure.ac): Likewise.
24846         * modules/j1 (configure.ac): Likewise.
24847         * modules/jn (configure.ac): Likewise.
24848         * modules/ldexp (configure.ac): Likewise.
24849         * modules/lgamma (configure.ac): Likewise.
24850         * modules/log (configure.ac): Likewise.
24851         * modules/log10 (configure.ac): Likewise.
24852         * modules/log1p (configure.ac): Likewise.
24853         * modules/logb (configure.ac): Likewise.
24854         * modules/modf (configure.ac): Likewise.
24855         * modules/nextafter (configure.ac): Likewise.
24856         * modules/pow (configure.ac): Likewise.
24857         * modules/remainder (configure.ac): Likewise.
24858         * modules/rint (configure.ac): Likewise.
24859         * modules/sin (configure.ac): Likewise.
24860         * modules/sinh (configure.ac): Likewise.
24861         * modules/tan (configure.ac): Likewise.
24862         * modules/tanh (configure.ac): Likewise.
24863         * modules/y0 (configure.ac): Likewise.
24864         * modules/y1 (configure.ac): Likewise.
24865         * modules/yn (configure.ac): Likewise.
24866
24867 2010-01-24  Bruno Haible  <bruno@clisp.org>
24868
24869         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24870         * tests/test-acosl.c (x): New variable.
24871         (main): Store argument in x and fetch it from x.
24872         * tests/test-asinl.c (x): New variable.
24873         (main): Store argument in x and fetch it from x.
24874         * tests/test-atanl.c (x): New variable.
24875         (main): Store argument in x and fetch it from x.
24876         * tests/test-cosl.c (x): New variable.
24877         (main): Store argument in x and fetch it from x.
24878         * tests/test-expl.c (x): New variable.
24879         (main): Store argument in x and fetch it from x.
24880         * tests/test-logl.c (x): New variable.
24881         (main): Store argument in x and fetch it from x.
24882         * tests/test-sinl.c (x): New variable.
24883         (main): Store argument in x and fetch it from x.
24884         * tests/test-sqrtl.c (x): New variable.
24885         (main): Store argument in x and fetch it from x.
24886         * tests/test-tanl.c (x): New variable.
24887         (main): Store argument in x and fetch it from x.
24888
24889 2010-01-24  Bruno Haible  <bruno@clisp.org>
24890
24891         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24892         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24893         assignments to the initial TESTS_ENVIRONMENT.
24894         * doc/gnulib.texi (Unit test modules): Document it.
24895         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24896         TESTS_ENVIRONMENT.
24897         * modules/btowc-tests (Makefile.am): Likewise.
24898         * modules/c-stack-tests (Makefile.am): Likewise.
24899         * modules/c-strcase-tests (Makefile.am): Likewise.
24900         * modules/copy-file-tests (Makefile.am): Likewise.
24901         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24902         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24903         * modules/mbrtowc-tests (Makefile.am): Likewise.
24904         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24905         * modules/mbscasestr-tests (Makefile.am): Likewise.
24906         * modules/mbschr-tests (Makefile.am): Likewise.
24907         * modules/mbscspn-tests (Makefile.am): Likewise.
24908         * modules/mbsinit-tests (Makefile.am): Likewise.
24909         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24910         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24911         * modules/mbspbrk-tests (Makefile.am): Likewise.
24912         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24913         * modules/mbsrchr-tests (Makefile.am): Likewise.
24914         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24915         * modules/mbsspn-tests (Makefile.am): Likewise.
24916         * modules/mbsstr-tests (Makefile.am): Likewise.
24917         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24918         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24919         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24920         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24921         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24922         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24923         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24924         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24925         * modules/wcrtomb-tests (Makefile.am): Likewise.
24926         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24927         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24928         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24929         assignments from TESTS_ENVIRONMENT.
24930         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24931         augmentation.
24932         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24933         * modules/atexit-tests (Makefile.am): Likewise.
24934         * modules/binary-io-tests (Makefile.am): Likewise.
24935         * modules/closein-tests (Makefile.am): Likewise.
24936         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24937         * modules/exclude-tests (Makefile.am): Likewise.
24938         * modules/fflush-tests (Makefile.am): Likewise.
24939         * modules/fpending-tests (Makefile.am): Likewise.
24940         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24941         * modules/freadahead-tests (Makefile.am): Likewise.
24942         * modules/freadptr-tests (Makefile.am): Likewise.
24943         * modules/freadseek-tests (Makefile.am): Likewise.
24944         * modules/fseek-tests (Makefile.am): Likewise.
24945         * modules/fseeko-tests (Makefile.am): Likewise.
24946         * modules/ftell-tests (Makefile.am): Likewise.
24947         * modules/ftello-tests (Makefile.am): Likewise.
24948         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24949         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24950         * modules/lseek-tests (Makefile.am): Likewise.
24951         * modules/parse-duration-tests (Makefile.am): Likewise.
24952         * modules/perror-tests (Makefile.am): Likewise.
24953         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24954         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24955         * modules/pipe-tests (Makefile.am): Likewise.
24956         * modules/pread-tests (Makefile.am): Likewise.
24957         * modules/printf-posix-tests (Makefile.am): Likewise.
24958         * modules/select-tests (Makefile.am): Likewise.
24959         * modules/sigpipe-tests (Makefile.am): Likewise.
24960         * modules/tsearch-tests (Makefile.am): Likewise.
24961         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24962         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24963         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24964         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24965         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24966         * modules/version-etc-tests (Makefile.am): Likewise.
24967         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24968         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24969         * modules/xalloc-die-tests (Makefile.am): Likewise.
24970         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24971         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24972         * modules/xstrtol-tests (Makefile.am): Likewise.
24973         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24974         * modules/yesno-tests (Makefile.am): Likewise.
24975         Suggested by Jim Meyering.
24976
24977 2010-01-24  Bruno Haible  <bruno@clisp.org>
24978
24979         More documentation.
24980         * doc/gnulib.texi (Writing modules): New chapter.
24981         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24982         the new chapter.
24983
24984 2010-01-24  Jim Meyering  <meyering@redhat.com>
24985
24986         maint.mk: do not prepend "./" after filtering
24987         * top/maint.mk (_prepend_srcdir_prefix): New variable
24988         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24989         "./" when $(srcdir) is ".".
24990
24991         define STREQ(a,b) consistently, removing useless parentheses
24992         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24993         since the only risk is that "a" or "b" contains an unparenthesized
24994         comma, but if either did that, STREQ would have 3 or more arguments.
24995         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24996         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24997         * lib/hash-triple.c (STREQ): Likewise.
24998         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24999         * lib/getugroups.c (STREQ): Likewise.
25000
25001 2010-01-23  Jim Meyering  <meyering@redhat.com>
25002
25003         maint.mk: fix syntax-check in a non-srcdir build directory
25004         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25005         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25006
25007 2010-01-22  Jim Meyering  <meyering@redhat.com>
25008
25009         userspec: add unit tests
25010         * tests/test-userspec.c: New file.
25011         * modules/userspec-tests: Likewise.
25012
25013 2010-01-21  Jim Meyering  <meyering@redhat.com>
25014
25015         maint.mk: handle source file names containing "." robustly
25016         * top/maint.mk (_dot_escaped_srcdir): Define.
25017         (VC_LIST): Use it in LHS of sed substitution.
25018
25019 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25020
25021         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
25022         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
25023         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
25024         from a non-srcdir build.
25025
25026 2010-01-20  Eric Blake  <ebb9@byu.net>
25027
25028         warn-on-use: use instead of link-warning
25029         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
25030         * modules/unistd (Depends-on, Makefile.am): Likewise.
25031         * modules/arpa_inet (Depends-on): Replace link-warning with
25032         warn-on-use.
25033         (Makefile.am): Update rules accordingly.
25034         * modules/ctype (Depends-on, Makefile.am): Likewise.
25035         * modules/dirent (Depends-on, Makefile.am): Likewise.
25036         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
25037         * modules/inttypes (Depends-on, Makefile.am): Likewise.
25038         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25039         * modules/locale (Depends-on, Makefile.am): Likewise.
25040         * modules/math (Depends-on, Makefile.am): Likewise.
25041         * modules/search (Depends-on, Makefile.am): Likewise.
25042         * modules/signal (Depends-on, Makefile.am): Likewise.
25043         * modules/spawn (Depends-on, Makefile.am): Likewise.
25044         * modules/stdlib (Depends-on, Makefile.am): Likewise.
25045         * modules/string (Depends-on, Makefile.am): Likewise.
25046         * modules/strings (Depends-on, Makefile.am): Likewise.
25047         * modules/sys_file (Depends-on, Makefile.am): Likewise.
25048         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
25049         * modules/sys_select (Depends-on, Makefile.am): Likewise.
25050         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
25051         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
25052         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25053         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25054         * modules/wchar (Depends-on, Makefile.am): Likewise.
25055         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25056         should be poisoned.
25057         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25058         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25059         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25060         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25061         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25062         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25063         * m4/math_h.m4 (gl_MATH_H): Likewise.
25064         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25065         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25066         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25067         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25068         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25069         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25070         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25071         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25072         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25073         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25075         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25076         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25077         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25078         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25079         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25080         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25081         GL_LINK_WARNING.
25082         * lib/ctype.in.h: Likewise.
25083         * lib/dirent.in.h: Likewise.
25084         * lib/fcntl.in.h: Likewise.
25085         * lib/inttypes.in.h: Likewise.
25086         * lib/langinfo.in.h: Likewise.
25087         * lib/locale.in.h: Likewise.
25088         * lib/math.in.h: Likewise.
25089         * lib/search.in.h: Likewise.
25090         * lib/signal.in.h: Likewise.
25091         * lib/spawn.in.h: Likewise.
25092         * lib/stdio.in.h: Likewise.
25093         * lib/stdlib.in.h: Likewise.
25094         * lib/string.in.h: Likewise.
25095         * lib/strings.in.h: Likewise.
25096         * lib/sys_file.in.h: Likewise.
25097         * lib/sys_ioctl.in.h: Likewise.
25098         * lib/sys_select.in.h: Likewise.
25099         * lib/sys_socket.in.h: Likewise.
25100         * lib/sys_stat.in.h: Likewise.
25101         * lib/sys_times.in.h: Likewise.
25102         * lib/sys_utsname.in.h: Likewise.
25103         * lib/unistd.in.h: Likewise.
25104         * lib/wchar.in.h: Likewise.
25105
25106 2010-01-20  Bruno Haible  <bruno@clisp.org>
25107
25108         Avoid duplicate -lm.
25109         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25110         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25111         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25112         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25113         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25114         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25115         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25116         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25117         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25118         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25119         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25120         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25121         Reported by Paolo Bonzini.
25122
25123 2010-01-19  Bruno Haible  <bruno@clisp.org>
25124
25125         langinfo, nl_langinfo: Relicense under LGPLv2+.
25126         * modules/langinfo (License): Change to LGPLv2+.
25127         * modules/nl_langinfo (License): Likewise.
25128         Patch by David Lutterkort <lutter@redhat.com>.
25129
25130 2010-01-19  Bruno Haible  <bruno@clisp.org>
25131
25132         Avoid compilation error with cc on OSF/1 5.1.
25133         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
25134         statement, not before.
25135         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25136
25137 2010-01-18  Bruno Haible  <bruno@clisp.org>
25138
25139         Avoid a link error due to the __printf__ symbol.
25140         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
25141         and 2.6.x.
25142         (__format__, __printf__): Remove definitions.
25143         * lib/argp-fmtstream.h: Likewise.
25144         * lib/argp.h: Likewise.
25145         * lib/error.h: Likewise.
25146         * lib/vasnprintf.h: Likewise.
25147         * lib/xprintf.h: Likewise.
25148         * lib/xvasprintf.h: Likewise.
25149         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25150
25151 2010-01-18  Bruno Haible  <bruno@clisp.org>
25152
25153         Tests for module 'tanl'.
25154         * modules/tanl-tests: New file.
25155         * tests/test-tanl.c: New file.
25156
25157         Tests for module 'sqrtl'.
25158         * modules/sqrtl-tests: New file.
25159         * tests/test-sqrtl.c: New file.
25160
25161         Tests for module 'sinl'.
25162         * modules/sinl-tests: New file.
25163         * tests/test-sinl.c: New file.
25164
25165         Tests for module 'logl'.
25166         * modules/logl-tests: New file.
25167         * tests/test-logl.c: New file.
25168
25169         Tests for module 'expl'.
25170         * modules/expl-tests: New file.
25171         * tests/test-expl.c: New file.
25172
25173         Tests for module 'cosl'.
25174         * modules/cosl-tests: New file.
25175         * tests/test-cosl.c: New file.
25176
25177         Tests for module 'atanl'.
25178         * modules/atanl-tests: New file.
25179         * tests/test-atanl.c: New file.
25180
25181         Tests for module 'asinl'.
25182         * modules/asinl-tests: New file.
25183         * tests/test-asinl.c: New file.
25184
25185         Tests for module 'acosl'.
25186         * modules/acosl-tests: New file.
25187         * tests/test-acosl.c: New file.
25188
25189         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25190         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25191         tanl): Use the standard gnulib idiom.
25192         * lib/cosl.c: Don't include trigl.c and sincosl.c.
25193         * lib/sinl.c: Likewise.
25194         * lib/tanl.c: Don't include trigl.c.
25195         (kernel_tanl): Make static.
25196         * lib/sincosl.c: Include trigl.h first.
25197         * lib/trigl.c: Likewise.
25198         * m4/acosl.m4: New file.
25199         * m4/asinl.m4: New file.
25200         * m4/atanl.m4: New file.
25201         * m4/cosl.m4: New file.
25202         * m4/expl.m4: New file.
25203         * m4/logl.m4: New file.
25204         * m4/sinl.m4: New file.
25205         * m4/sqrtl.m4: New file.
25206         * m4/tanl.m4: New file.
25207         * m4/mathl.m4: Remove file.
25208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
25209         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
25210         Don't initialize GNULIB_MATHL.
25211         * modules/acosl: New file.
25212         * modules/asinl: New file.
25213         * modules/atanl: New file.
25214         * modules/cosl: New file.
25215         * modules/expl: New file.
25216         * modules/logl: New file.
25217         * modules/sinl: New file.
25218         * modules/sqrtl: New file.
25219         * modules/tanl: New file.
25220         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
25221         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
25222         substitute GNULIB_MATHL.
25223         * modules/mathl: Rewritten.
25224         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
25225         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
25226         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
25227         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
25228         * doc/posix-functions/expl.texi: Mention the 'expl' module.
25229         * doc/posix-functions/logl.texi: Mention the 'logl' module.
25230         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
25231         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
25232         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
25233
25234 2010-01-18  Bruno Haible  <bruno@clisp.org>
25235
25236         sqrt: Make gl_FUNC_SQRT requirable.
25237         * m4/sqrt.m4: New file.
25238         * modules/sqrt (Files): Add it.
25239         (configure.ac): Invoke gl_FUNC_SQRT.
25240
25241 2010-01-18  Bruno Haible  <bruno@clisp.org>
25242
25243         New modules for common <math.h> functions.
25244         * m4/mathfunc.m4: New file.
25245         * modules/acos: New file.
25246         * modules/asin: New file.
25247         * modules/atan: New file.
25248         * modules/atan2: New file.
25249         * modules/cbrt: New file.
25250         * modules/copysign: New file.
25251         * modules/cos: New file.
25252         * modules/cosh: New file.
25253         * modules/erf: New file.
25254         * modules/erfc: New file.
25255         * modules/exp: New file.
25256         * modules/fabs: New file.
25257         * modules/fmod: New file.
25258         * modules/hypot: New file.
25259         * modules/j0: New file.
25260         * modules/j1: New file.
25261         * modules/jn: New file.
25262         * modules/ldexp: New file.
25263         * modules/lgamma: New file.
25264         * modules/log: New file.
25265         * modules/log10: New file.
25266         * modules/log1p: New file.
25267         * modules/logb: New file.
25268         * modules/modf: New file.
25269         * modules/nextafter: New file.
25270         * modules/pow: New file.
25271         * modules/remainder: New file.
25272         * modules/rint: New file.
25273         * modules/sin: New file.
25274         * modules/sinh: New file.
25275         * modules/sqrt: New file.
25276         * modules/tan: New file.
25277         * modules/tanh: New file.
25278         * modules/y0: New file.
25279         * modules/y1: New file.
25280         * modules/yn: New file.
25281         * doc/posix-functions/acos.texi: Mention the 'acos' module.
25282         * doc/posix-functions/asin.texi: Mention the 'asin' module.
25283         * doc/posix-functions/atan.texi: Mention the 'atan' module.
25284         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
25285         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
25286         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
25287         * doc/posix-functions/cos.texi: Mention the 'cos' module.
25288         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
25289         * doc/posix-functions/erf.texi: Mention the 'erf' module.
25290         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
25291         * doc/posix-functions/exp.texi: Mention the 'exp' module.
25292         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
25293         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
25294         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
25295         * doc/posix-functions/j0.texi: Mention the 'j0' module.
25296         * doc/posix-functions/j1.texi: Mention the 'j1' module.
25297         * doc/posix-functions/jn.texi: Mention the 'jn' module.
25298         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
25299         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
25300         * doc/posix-functions/log.texi: Mention the 'log' module.
25301         * doc/posix-functions/log10.texi: Mention the 'log10' module.
25302         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
25303         * doc/posix-functions/logb.texi: Mention the 'logb' module.
25304         * doc/posix-functions/modf.texi: Mention the 'modf' module.
25305         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
25306         * doc/posix-functions/pow.texi: Mention the 'pow' module.
25307         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
25308         * doc/posix-functions/rint.texi: Mention the 'rint' module.
25309         * doc/posix-functions/sin.texi: Mention the 'sin' module.
25310         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
25311         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
25312         * doc/posix-functions/tan.texi: Mention the 'tan' module.
25313         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
25314         * doc/posix-functions/y0.texi: Mention the 'y0' module.
25315         * doc/posix-functions/y1.texi: Mention the 'y1' module.
25316         * doc/posix-functions/yn.texi: Mention the 'yn' module.
25317
25318 2010-01-18  Jim Meyering  <meyering@redhat.com>
25319
25320         ignore-value: relax license to LGPLv2+
25321         * modules/ignore-value (License): Relax to LGPLv2+.
25322
25323         getdate: don't leak when TZ contains two or more '"'s
25324         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
25325         double quote in TZ after the first one.
25326
25327         readtokens: do not leak internal token_lengths buffer
25328         * lib/readtokens.c (readtokens): Free the local, lengths,
25329         when the supplied "token_lengths" parameter is NULL.
25330
25331 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25332
25333         Fix a couple of missing LIBTHREAD link failures on AIX.
25334         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
25335         $(LIBTHREAD).
25336         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
25337
25338         Link test-poll against INET_PTON_LIB.
25339         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
25340         for inet_pton on Solaris 10.
25341
25342 2010-01-17  Bruno Haible  <bruno@clisp.org>
25343
25344         unistdio/*-sprintf: Fix typo in module description.
25345         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
25346         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
25347         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
25348         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
25349         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
25350         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
25351         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
25352         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25353
25354 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25355
25356         gnulib-tool: fix filelist for AIX, HP-UX ksh.
25357         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
25358         variables in shell case patterns, for AIX and HP-UX ksh.
25359
25360         Split large sed scripts, for HP-UX sed.
25361         * modules/stdio: Split sed scripts around 50 sed commands,
25362         to avoid HP-UX limit of 99 commands, in the near future.
25363         * modules/string: Likewise.
25364         * modules/unistd: Likewise.
25365
25366         gnulib-tool: avoid writing in the current directory.
25367         * gnulib-tool (func_emit_lib_Makefile_am)
25368         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
25369         not in the current directory, so concurrent gnulib-tool
25370         instances do not interfere.
25371
25372 2010-01-16  Jim Meyering  <meyering@redhat.com>
25373
25374         doc: update users.txt
25375         * users.txt: Add grep.
25376         (diffutils, gzip): Update URLs.
25377
25378 2010-01-12  Bruno Haible  <bruno@clisp.org>
25379
25380         posix_spawn: Avoid test failure on Cygwin.
25381         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
25382         characters.
25383         Reported by Simon Josefsson.
25384
25385 2010-01-12  Bruno Haible  <bruno@clisp.org>
25386
25387         * tests/test-cond.c (main): When skipping the test, show the reason.
25388
25389 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25390
25391         * lib/striconv.c (str_cd_iconv): Avoid if before free.
25392
25393 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25394
25395         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
25396         VC_LIST_ALWAYS_EXCLUDE_REGEX.
25397
25398 2010-01-12  Eric Blake  <ebb9@byu.net>
25399
25400         build: guarantee AS_VAR_IF
25401         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
25402         (gl_AS_VAR_IF): Move...
25403         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
25404         Reported by Simon Josefsson.
25405
25406 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25407
25408         * lib/stdio.in.h: Fix typo.
25409
25410 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25411
25412         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
25413         libgpg-error.
25414
25415 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25416
25417         * tests/test-xalloc-die.sh: Use $EXEEXT.
25418
25419 2010-01-12  Simon Josefsson  <simon@josefsson.org>
25420             Bruno Haible  <bruno@clisp.org>
25421
25422         getlogin, getlogin_r: Avoid test failure.
25423         * tests/test-getlogin.c: Include <stdio.h>.
25424         (main): Skip the test when the function fails because stdin is not a
25425         tty.
25426         * tests/test-getlogin_r.c: Include <stdio.h>.
25427         (main): Skip the test when the function fails because stdin is not a
25428         tty.
25429
25430 2010-01-11  Eric Blake  <ebb9@byu.net>
25431
25432         tests: avoid more large file warnings
25433         * tests/test-fflush.c: Avoid warning about ftell use.
25434         * tests/test-fseek.c: Avoid warning about fseek use.
25435
25436 2010-01-10  Bruno Haible  <bruno@clisp.org>
25437
25438         nproc: Work better on Linux when /proc and /sys are not mounted.
25439         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
25440         as lower bound when, on glibc/Linux systems,
25441         sysconf (_SC_NPROCESSORS_CONF) returns 1.
25442         Suggested by Pádraig Brady <P@draigbrady.com>.
25443         Reported by Dmitry V. Levin <ldv@altlinux.org>.
25444
25445         nproc: Refactor.
25446         * lib/nproc.c (num_processors_via_affinity_mask): New function,
25447         extracted from num_processors.
25448         (num_processors): Call it.
25449
25450 2010-01-11  Jim Meyering  <meyering@redhat.com>
25451
25452         utimecmp: avoid new warning from upcoming gcc-4.5.0
25453         * lib/utimecmp.c (BILLION): Define using #define rather than an
25454         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
25455
25456 2010-01-11  Eric Blake  <ebb9@byu.net>
25457
25458         math: add portability warnings for classification macros
25459         * modules/math (Depends-on): Add warn-on-use.
25460         (Makefile.am): Provide new substitutions.
25461         * m4/math_h.m4 (gl_MATH_H): Require inline.
25462         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
25463         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
25464         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
25465         implement warnings.
25466
25467         unistd: warn on use of environ without module
25468         * modules/unistd (Depends-on): Add warn-on-use.
25469         (Makefile.am): Provide new substitutions.
25470         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
25471         * lib/unistd.in.h (environ): Wrap with a warning helper function.
25472
25473         stdio: warn on suspicious uses
25474         * modules/stdio (Depends-on): Add warn-on-use.
25475         (Makefile.am): Provide new substitutions.
25476         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
25477         fseeko.
25478         * lib/stdio.in.h (gets): Always warn on use.
25479         (fseek, ftell): Adjust when warnings are issued, and honor
25480         _GL_NO_LARGE_FILES as a way to silence the warning.
25481         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
25482         any warning about large file offsets.
25483         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
25484         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
25485         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
25486         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
25487         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
25488         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
25489         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
25490         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
25491
25492         warn-on-use: new module
25493         * modules/warn-on-use: New file.
25494         * build-aux/warn-on-use.h: Likewise.
25495         * m4/warn-on-use.m4: Likewise.
25496         * MODULES.html.sh (Support for building): Mention it.
25497
25498 2010-01-10  Bruno Haible  <bruno@clisp.org>
25499
25500         Tests for module 'unistr/u32-strdup'.
25501         * modules/unistr/u32-strdup-tests: New file.
25502         * tests/unistr/test-u32-strdup.c: New file.
25503
25504         Tests for module 'unistr/u16-strdup'.
25505         * modules/unistr/u16-strdup-tests: New file.
25506         * tests/unistr/test-u16-strdup.c: New file.
25507
25508         Tests for module 'unistr/u8-strdup'.
25509         * modules/unistr/u8-strdup-tests: New file.
25510         * tests/unistr/test-u8-strdup.c: New file.
25511         * tests/unistr/test-strdup.h: New file.
25512
25513         Tests for module 'unistr/u32-strncmp'.
25514         * modules/unistr/u32-strncmp-tests: New file.
25515         * tests/unistr/test-u32-strncmp.c: New file.
25516
25517         Tests for module 'unistr/u16-strncmp'.
25518         * modules/unistr/u16-strncmp-tests: New file.
25519         * tests/unistr/test-u16-strncmp.c: New file.
25520
25521         Tests for module 'unistr/u8-strncmp'.
25522         * modules/unistr/u8-strncmp-tests: New file.
25523         * tests/unistr/test-u8-strncmp.c: New file.
25524         * tests/unistr/test-strncmp.h: New file.
25525
25526         Tests for module 'unistr/u32-strcoll'.
25527         * modules/unistr/u32-strcoll-tests: New file.
25528         * tests/unistr/test-u32-strcoll.c: New file.
25529
25530         Tests for module 'unistr/u16-strcoll'.
25531         * modules/unistr/u16-strcoll-tests: New file.
25532         * tests/unistr/test-u16-strcoll.c: New file.
25533
25534         Tests for module 'unistr/u8-strcoll'.
25535         * modules/unistr/u8-strcoll-tests: New file.
25536         * tests/unistr/test-u8-strcoll.c: New file.
25537
25538         Tests for module 'unistr/u32-strcmp'.
25539         * modules/unistr/u32-strcmp-tests: New file.
25540         * tests/unistr/test-u32-strcmp.c: New file.
25541         * tests/unistr/test-u32-strcmp.h: New file.
25542
25543         Tests for module 'unistr/u16-strcmp'.
25544         * modules/unistr/u16-strcmp-tests: New file.
25545         * tests/unistr/test-u16-strcmp.c: New file.
25546         * tests/unistr/test-u16-strcmp.h: New file.
25547
25548         Tests for module 'unistr/u8-strcmp'.
25549         * modules/unistr/u8-strcmp-tests: New file.
25550         * tests/unistr/test-u8-strcmp.c: New file.
25551         * tests/unistr/test-u8-strcmp.h: New file.
25552         * tests/unistr/test-strcmp.h: New file.
25553
25554         Tests for module 'unistr/u32-strncat'.
25555         * modules/unistr/u32-strncat-tests: New file.
25556         * tests/unistr/test-u32-strncat.c: New file.
25557
25558         Tests for module 'unistr/u16-strncat'.
25559         * modules/unistr/u16-strncat-tests: New file.
25560         * tests/unistr/test-u16-strncat.c: New file.
25561
25562         Tests for module 'unistr/u8-strncat'.
25563         * modules/unistr/u8-strncat-tests: New file.
25564         * tests/unistr/test-u8-strncat.c: New file.
25565         * tests/unistr/test-strncat.h: New file.
25566
25567         Tests for module 'unistr/u32-strcat'.
25568         * modules/unistr/u32-strcat-tests: New file.
25569         * tests/unistr/test-u32-strcat.c: New file.
25570
25571         Tests for module 'unistr/u16-strcat'.
25572         * modules/unistr/u16-strcat-tests: New file.
25573         * tests/unistr/test-u16-strcat.c: New file.
25574
25575         Tests for module 'unistr/u8-strcat'.
25576         * modules/unistr/u8-strcat-tests: New file.
25577         * tests/unistr/test-u8-strcat.c: New file.
25578         * tests/unistr/test-strcat.h: New file.
25579
25580         Tests for module 'unistr/u32-stpncpy'.
25581         * modules/unistr/u32-stpncpy-tests: New file.
25582         * tests/unistr/test-u32-stpncpy.c: New file.
25583
25584         Tests for module 'unistr/u16-stpncpy'.
25585         * modules/unistr/u16-stpncpy-tests: New file.
25586         * tests/unistr/test-u16-stpncpy.c: New file.
25587
25588         Tests for module 'unistr/u8-stpncpy'.
25589         * modules/unistr/u8-stpncpy-tests: New file.
25590         * tests/unistr/test-u8-stpncpy.c: New file.
25591         * tests/unistr/test-stpncpy.h: New file.
25592
25593         Tests for module 'unistr/u32-strncpy'.
25594         * modules/unistr/u32-strncpy-tests: New file.
25595         * tests/unistr/test-u32-strncpy.c: New file.
25596
25597         Tests for module 'unistr/u16-strncpy'.
25598         * modules/unistr/u16-strncpy-tests: New file.
25599         * tests/unistr/test-u16-strncpy.c: New file.
25600
25601         Tests for module 'unistr/u8-strncpy'.
25602         * modules/unistr/u8-strncpy-tests: New file.
25603         * tests/unistr/test-u8-strncpy.c: New file.
25604         * tests/unistr/test-strncpy.h: New file.
25605
25606         Tests for module 'unistr/u32-stpcpy'.
25607         * modules/unistr/u32-stpcpy-tests: New file.
25608         * tests/unistr/test-u32-stpcpy.c: New file.
25609
25610         Tests for module 'unistr/u16-stpcpy'.
25611         * modules/unistr/u16-stpcpy-tests: New file.
25612         * tests/unistr/test-u16-stpcpy.c: New file.
25613
25614         Tests for module 'unistr/u8-stpcpy'.
25615         * modules/unistr/u8-stpcpy-tests: New file.
25616         * tests/unistr/test-u8-stpcpy.c: New file.
25617         * tests/unistr/test-stpcpy.h: New file.
25618
25619         Tests for module 'unistr/u32-strcpy'.
25620         * modules/unistr/u32-strcpy-tests: New file.
25621         * tests/unistr/test-u32-strcpy.c: New file.
25622
25623         Tests for module 'unistr/u16-strcpy'.
25624         * modules/unistr/u16-strcpy-tests: New file.
25625         * tests/unistr/test-u16-strcpy.c: New file.
25626
25627         Tests for module 'unistr/u8-strcpy'.
25628         * modules/unistr/u8-strcpy-tests: New file.
25629         * tests/unistr/test-u8-strcpy.c: New file.
25630         * tests/unistr/test-strcpy.h: New file.
25631
25632         Tests for module 'unistr/u32-strnlen'.
25633         * modules/unistr/u32-strnlen-tests: New file.
25634         * tests/unistr/test-u32-strnlen.c: New file.
25635
25636         Tests for module 'unistr/u16-strnlen'.
25637         * modules/unistr/u16-strnlen-tests: New file.
25638         * tests/unistr/test-u16-strnlen.c: New file.
25639
25640         Tests for module 'unistr/u8-strnlen'.
25641         * modules/unistr/u8-strnlen-tests: New file.
25642         * tests/unistr/test-u8-strnlen.c: New file.
25643         * tests/unistr/test-strnlen.h: New file.
25644
25645         Tests for module 'unistr/u32-strlen'.
25646         * modules/unistr/u32-strlen-tests: New file.
25647         * tests/unistr/test-u32-strlen.c: New file.
25648
25649         Tests for module 'unistr/u16-strlen'.
25650         * modules/unistr/u16-strlen-tests: New file.
25651         * tests/unistr/test-u16-strlen.c: New file.
25652
25653         Tests for module 'unistr/u8-strlen'.
25654         * modules/unistr/u8-strlen-tests: New file.
25655         * tests/unistr/test-u8-strlen.c: New file.
25656
25657         Tests for module 'unistr/u32-prev'.
25658         * modules/unistr/u32-prev-tests: New file.
25659         * tests/unistr/test-u32-prev.c: New file.
25660
25661         Tests for module 'unistr/u16-prev'.
25662         * modules/unistr/u16-prev-tests: New file.
25663         * tests/unistr/test-u16-prev.c: New file.
25664
25665         Tests for module 'unistr/u8-prev'.
25666         * modules/unistr/u8-prev-tests: New file.
25667         * tests/unistr/test-u8-prev.c: New file.
25668
25669         Tests for module 'unistr/u32-next'.
25670         * modules/unistr/u32-next-tests: New file.
25671         * tests/unistr/test-u32-next.c: New file.
25672
25673         Tests for module 'unistr/u16-next'.
25674         * modules/unistr/u16-next-tests: New file.
25675         * tests/unistr/test-u16-next.c: New file.
25676
25677         Tests for module 'unistr/u8-next'.
25678         * modules/unistr/u8-next-tests: New file.
25679         * tests/unistr/test-u8-next.c: New file.
25680
25681         Tests for module 'unistr/u32-strmbtouc'.
25682         * modules/unistr/u32-strmbtouc-tests: New file.
25683         * tests/unistr/test-u32-strmbtouc.c: New file.
25684
25685         Tests for module 'unistr/u16-strmbtouc'.
25686         * modules/unistr/u16-strmbtouc-tests: New file.
25687         * tests/unistr/test-u16-strmbtouc.c: New file.
25688
25689         Tests for module 'unistr/u8-strmbtouc'.
25690         * modules/unistr/u8-strmbtouc-tests: New file.
25691         * tests/unistr/test-u8-strmbtouc.c: New file.
25692
25693         Tests for module 'unistr/u32-strmblen'.
25694         * modules/unistr/u32-strmblen-tests: New file.
25695         * tests/unistr/test-u32-strmblen.c: New file.
25696
25697         Tests for module 'unistr/u16-strmblen'.
25698         * modules/unistr/u16-strmblen-tests: New file.
25699         * tests/unistr/test-u16-strmblen.c: New file.
25700
25701         Tests for module 'unistr/u8-strmblen'.
25702         * modules/unistr/u8-strmblen-tests: New file.
25703         * tests/unistr/test-u8-strmblen.c: New file.
25704
25705         Tests for module 'unistr/u32-cpy-alloc'.
25706         * modules/unistr/u32-cpy-alloc-tests: New file.
25707         * tests/unistr/test-u32-cpy-alloc.c: New file.
25708
25709         Tests for module 'unistr/u16-cpy-alloc'.
25710         * modules/unistr/u16-cpy-alloc-tests: New file.
25711         * tests/unistr/test-u16-cpy-alloc.c: New file.
25712
25713         Tests for module 'unistr/u8-cpy-alloc'.
25714         * modules/unistr/u8-cpy-alloc-tests: New file.
25715         * tests/unistr/test-u8-cpy-alloc.c: New file.
25716         * tests/unistr/test-cpy-alloc.h: New file.
25717
25718         Tests for module 'unistr/u32-mbsnlen'.
25719         * modules/unistr/u32-mbsnlen-tests: New file.
25720         * tests/unistr/test-u32-mbsnlen.c: New file.
25721
25722         Tests for module 'unistr/u16-mbsnlen'.
25723         * modules/unistr/u16-mbsnlen-tests: New file.
25724         * tests/unistr/test-u16-mbsnlen.c: New file.
25725
25726         Tests for module 'unistr/u8-mbsnlen'.
25727         * modules/unistr/u8-mbsnlen-tests: New file.
25728         * tests/unistr/test-u8-mbsnlen.c: New file.
25729
25730         Tests for module 'unistr/u32-chr'.
25731         * modules/unistr/u32-chr-tests: New file.
25732         * tests/unistr/test-u32-chr.c: New file.
25733
25734         Tests for module 'unistr/u16-chr'.
25735         * modules/unistr/u16-chr-tests: New file.
25736         * tests/unistr/test-u16-chr.c: New file.
25737
25738         Tests for module 'unistr/u8-chr'.
25739         * modules/unistr/u8-chr-tests: New file.
25740         * tests/unistr/test-u8-chr.c: New file.
25741         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25742
25743         Tests for module 'unistr/u32-cmp2'.
25744         * modules/unistr/u32-cmp2-tests: New file.
25745         * tests/unistr/test-u32-cmp2.c: New file.
25746
25747         Tests for module 'unistr/u16-cmp2'.
25748         * modules/unistr/u16-cmp2-tests: New file.
25749         * tests/unistr/test-u16-cmp2.c: New file.
25750
25751         Tests for module 'unistr/u8-cmp2'.
25752         * modules/unistr/u8-cmp2-tests: New file.
25753         * tests/unistr/test-u8-cmp2.c: New file.
25754         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25755
25756         Tests for module 'unistr/u32-cmp'.
25757         * modules/unistr/u32-cmp-tests: New file.
25758         * tests/unistr/test-u32-cmp.c: New file.
25759
25760         Tests for module 'unistr/u16-cmp'.
25761         * modules/unistr/u16-cmp-tests: New file.
25762         * tests/unistr/test-u16-cmp.c: New file.
25763
25764         Tests for module 'unistr/u8-cmp'.
25765         * modules/unistr/u8-cmp-tests: New file.
25766         * tests/unistr/test-u8-cmp.c: New file.
25767         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25768
25769         Tests for module 'unistr/u32-set'.
25770         * modules/unistr/u32-set-tests: New file.
25771         * tests/unistr/test-u32-set.c: New file.
25772
25773         Tests for module 'unistr/u16-set'.
25774         * modules/unistr/u16-set-tests: New file.
25775         * tests/unistr/test-u16-set.c: New file.
25776
25777         Tests for module 'unistr/u8-set'.
25778         * modules/unistr/u8-set-tests: New file.
25779         * tests/unistr/test-u8-set.c: New file.
25780         * tests/unistr/test-set.h: New file.
25781
25782         Tests for module 'unistr/u32-move'.
25783         * modules/unistr/u32-move-tests: New file.
25784         * tests/unistr/test-u32-move.c: New file.
25785
25786         Tests for module 'unistr/u16-move'.
25787         * modules/unistr/u16-move-tests: New file.
25788         * tests/unistr/test-u16-move.c: New file.
25789
25790         Tests for module 'unistr/u8-move'.
25791         * modules/unistr/u8-move-tests: New file.
25792         * tests/unistr/test-u8-move.c: New file.
25793         * tests/unistr/test-move.h: New file.
25794
25795         Tests for module 'unistr/u32-cpy'.
25796         * modules/unistr/u32-cpy-tests: New file.
25797         * tests/unistr/test-u32-cpy.c: New file.
25798
25799         Tests for module 'unistr/u16-cpy'.
25800         * modules/unistr/u16-cpy-tests: New file.
25801         * tests/unistr/test-u16-cpy.c: New file.
25802
25803         Tests for module 'unistr/u8-cpy'.
25804         * modules/unistr/u8-cpy-tests: New file.
25805         * tests/unistr/test-u8-cpy.c: New file.
25806         * tests/unistr/test-cpy.h: New file.
25807
25808 2010-01-09  Bruno Haible  <bruno@clisp.org>
25809
25810         Tests for module 'unistr/u32-uctomb'.
25811         * modules/unistr/u32-uctomb-tests: New file.
25812         * tests/unistr/test-u32-uctomb.c: New file.
25813
25814         Tests for module 'unistr/u16-uctomb'.
25815         * modules/unistr/u16-uctomb-tests: New file.
25816         * tests/unistr/test-u16-uctomb.c: New file.
25817
25818         Tests for module 'unistr/u8-uctomb'.
25819         * modules/unistr/u8-uctomb-tests: New file.
25820         * tests/unistr/test-u8-uctomb.c: New file.
25821
25822         Tests for module 'unistr/u32-mbtoucr'.
25823         * modules/unistr/u32-mbtoucr-tests: New file.
25824         * tests/unistr/test-u32-mbtoucr.c: New file.
25825
25826         Tests for module 'unistr/u16-mbtoucr'.
25827         * modules/unistr/u16-mbtoucr-tests: New file.
25828         * tests/unistr/test-u16-mbtoucr.c: New file.
25829
25830         Tests for module 'unistr/u8-mbtoucr'.
25831         * modules/unistr/u8-mbtoucr-tests: New file.
25832         * tests/unistr/test-u8-mbtoucr.c: New file.
25833
25834         Tests for module 'unistr/u32-mbtouc'.
25835         * modules/unistr/u32-mbtouc-tests: New file.
25836         * tests/unistr/test-u32-mbtouc.c: New file.
25837
25838         Tests for module 'unistr/u16-mbtouc'.
25839         * modules/unistr/u16-mbtouc-tests: New file.
25840         * tests/unistr/test-u16-mbtouc.c: New file.
25841
25842         Tests for module 'unistr/u8-mbtouc'.
25843         * modules/unistr/u8-mbtouc-tests: New file.
25844         * tests/unistr/test-u8-mbtouc.c: New file.
25845
25846         Tests for module 'unistr/u32-mbtouc-unsafe'.
25847         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25848         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25849         * tests/unistr/test-u32-mbtouc.h: New file.
25850
25851         Tests for module 'unistr/u16-mbtouc-unsafe'.
25852         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25853         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25854         * tests/unistr/test-u16-mbtouc.h: New file.
25855
25856         Tests for module 'unistr/u8-mbtouc-unsafe'.
25857         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25858         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25859         * tests/unistr/test-u8-mbtouc.h: New file.
25860
25861         Tests for module 'unistr/u32-mblen'.
25862         * modules/unistr/u32-mblen-tests: New file.
25863         * tests/unistr/test-u32-mblen.c: New file.
25864
25865         Tests for module 'unistr/u16-mblen'.
25866         * modules/unistr/u16-mblen-tests: New file.
25867         * tests/unistr/test-u16-mblen.c: New file.
25868
25869         Tests for module 'unistr/u8-mblen'.
25870         * modules/unistr/u8-mblen-tests: New file.
25871         * tests/unistr/test-u8-mblen.c: New file.
25872
25873         Tests for module 'unistr/u32-to-u16'.
25874         * modules/unistr/u32-to-u16-tests: New file.
25875         * tests/unistr/test-u32-to-u16.c: New file.
25876
25877         Tests for module 'unistr/u32-to-u8'.
25878         * modules/unistr/u32-to-u8-tests: New file.
25879         * tests/unistr/test-u32-to-u8.c: New file.
25880
25881         Tests for module 'unistr/u16-to-u32'.
25882         * modules/unistr/u16-to-u32-tests: New file.
25883         * tests/unistr/test-u16-to-u32.c: New file.
25884
25885         Tests for module 'unistr/u16-to-u8'.
25886         * modules/unistr/u16-to-u8-tests: New file.
25887         * tests/unistr/test-u16-to-u8.c: New file.
25888
25889         Tests for module 'unistr/u8-to-u32'.
25890         * modules/unistr/u8-to-u32-tests: New file.
25891         * tests/unistr/test-u8-to-u32.c: New file.
25892
25893         Tests for module 'unistr/u8-to-u16'.
25894         * modules/unistr/u8-to-u16-tests: New file.
25895         * tests/unistr/test-u8-to-u16.c: New file.
25896
25897         Tests for module 'unistr/u32-check'.
25898         * modules/unistr/u32-check-tests: New file.
25899         * tests/unistr/test-u32-check.c: New file.
25900
25901         Tests for module 'unistr/u16-check'.
25902         * modules/unistr/u16-check-tests: New file.
25903         * tests/unistr/test-u16-check.c: New file.
25904
25905         Tests for module 'unistr/u8-check'.
25906         * modules/unistr/u8-check-tests: New file.
25907         * tests/unistr/test-u8-check.c: New file.
25908
25909         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25910         (category_equals): New function.
25911         (main): Add more tests.
25912         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25913
25914         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25915
25916 2010-01-10  Bruno Haible  <bruno@clisp.org>
25917
25918         unistr/u*-strcoll: Try harder to distinguish different strings.
25919         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25920         compare s1 and s2 to see if they are different.
25921
25922 2010-01-10  Bruno Haible  <bruno@clisp.org>
25923
25924         unistr/u*-stpncpy: Fix the return value.
25925         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25926         description of the return value consistent with stpncpy in glibc.
25927         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25928         written non-NUL unit.
25929
25930 2010-01-10  Bruno Haible  <bruno@clisp.org>
25931
25932         unistr/u*-next: Add missing dependencies.
25933         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25934         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25935         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25936
25937 2010-01-10  Bruno Haible  <bruno@clisp.org>
25938
25939         unistr/u8-mbsnlen: Fix return value for incomplete character.
25940         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25941         u8_mblen.
25942         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25943         Remove unistr/u8-mblen.
25944         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25945         u16_mblen.
25946         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25947         Remove unistr/u16-mblen.
25948
25949 2010-01-10  Bruno Haible  <bruno@clisp.org>
25950
25951         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25952         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25953         Reported by Brian Gough <bjg@gnu.org> and
25954         Chris Clayton <chris2553@googlemail.com> via
25955         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25956
25957 2010-01-09  Bruno Haible  <bruno@clisp.org>
25958
25959         unistr/u16-to-u32: Reject invalid input.
25960         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25961         u16_mbtouc.
25962         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25963         Remove unistr/u16-mbtouc.
25964
25965         unistr/u16-to-u8: Reject invalid input.
25966         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25967         u16_mbtouc.
25968         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25969         Remove unistr/u16-mbtouc.
25970
25971         unistr/u8-to-u32: Reject invalid input.
25972         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25973         u8_mbtouc.
25974         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25975         Remove unistr/u8-mbtouc.
25976
25977         unistr/u8-to-u16: Reject invalid input.
25978         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25979         u8_mbtouc.
25980         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25981         Remove unistr/u8-mbtouc.
25982
25983 2010-01-09  Bruno Haible  <bruno@clisp.org>
25984
25985         Tests for module 'getlogin'.
25986         * modules/getlogin-tests: New file.
25987         * tests/test-getlogin.c: New file.
25988
25989         New module 'getlogin'.
25990         * lib/unistd.in.h (getlogin): New declaration.
25991         * lib/getlogin.c: New file.
25992         * m4/getlogin.m4: New file.
25993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25994         HAVE_GETLOGIN.
25995         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25996         HAVE_GETLOGIN.
25997         * modules/getlogin: New file.
25998         * doc/posix-functions/getlogin.texi: Mention the new module.
25999         Reported by John W. Eaton <jwe@gnu.org>.
26000
26001 2010-01-09  Bruno Haible  <bruno@clisp.org>
26002
26003         getlogin_r: Support for native Windows.
26004         * lib/getlogin_r.c: Include <windows.h>
26005         (getlogin_r): Implement for native Windows.
26006         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26007         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26008         via John W. Eaton <jwe@gnu.org>.
26009
26010 2010-01-09  Bruno Haible  <bruno@clisp.org>
26011
26012         getlogin_r: Small fixes.
26013         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26014         succeeds.
26015         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26016         before testing whether getlogin_r is declared. No need to set
26017         HAVE_DECL_GETLOGIN_R to 1.
26018         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26019
26020 2010-01-09  Bruno Haible  <bruno@clisp.org>
26021
26022         * lib/unistd.in.h (getlogin_r): Add comment.
26023
26024 2010-01-09  Bruno Haible  <bruno@clisp.org>
26025
26026         Tests for module 'getlogin_r'.
26027         * modules/getlogin_r-tests: New file.
26028         * tests/test-getlogin_r.c: New file.
26029
26030 2010-01-09  Jim Meyering  <meyering@redhat.com>
26031
26032         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
26033         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
26034         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
26035
26036 2010-01-08  Simon Josefsson  <simon@josefsson.org>
26037
26038         * lib/dup2.c (rpl_dup2): Improve comment.
26039
26040 2010-01-08  Eric Blake  <ebb9@byu.net>
26041
26042         maint.mk: allow packages to add makefile @@ exceptions
26043         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
26044         (sc_makefile_check): Rename...
26045         (sc_makefile_at_at_check): ...to this, and use hook.
26046
26047         dup2: work around mingw bug
26048         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
26049         Reported by Simon Josefsson.
26050
26051 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
26052
26053         glob: Fix C++ compilation.
26054         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26055         C++.
26056
26057 2010-01-07  Bruno Haible  <bruno@clisp.org>
26058
26059         Fix indentation of wctype.in.h, broken since 2007-01-06.
26060         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26061
26062 2010-01-07  Bruno Haible  <bruno@clisp.org>
26063
26064         mbslen: Avoid collision with system function.
26065         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26066         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26067         * m4/mbslen.m4: New file.
26068         * modules/mbslen (Files): Add it.
26069         (configure.ac): Invoke gl_MBSLEN.
26070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26071         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26072         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26073         via Ian Beckwith <ianb@erislabs.net>.
26074
26075 2010-01-07  Bruno Haible  <bruno@clisp.org>
26076
26077         dirent: Document the last fix.
26078         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26079
26080 2010-01-07  Bruno Haible  <bruno@clisp.org>
26081
26082         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26083         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26084         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26085         va_list are defined.
26086         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26087         Reported by Eric Blake.
26088
26089 2010-01-07  Bruno Haible  <bruno@clisp.org>
26090
26091         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26092         * modules/xlist (Depends-on): Add 'list',
26093         * modules/xoset (Depends-on): Add 'oset'.
26094         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26095
26096 2010-01-07  Bruno Haible  <bruno@clisp.org>
26097
26098         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26099         * doc/posix-functions/strncasecmp.texi: Likewise.
26100
26101 2010-01-07  Bruno Haible  <bruno@clisp.org>
26102
26103         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26104
26105 2010-01-07  John W. Eaton  <jwe@octave.org>
26106
26107         wctype: allow C++ use
26108         * lib/wctype.in.h: Add extern "C" block for C++.
26109
26110 2010-01-06  Eric Blake  <ebb9@byu.net>
26111
26112         maint.mk: detect incorrect GFDL usage
26113         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26114
26115 2010-01-06  Jim Meyering  <meyering@redhat.com>
26116         and Eric Blake  <ebb9@byu.net>
26117
26118         maint.mk: ignore multi-line copyright in NEWS
26119         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26120
26121 2010-01-06  Eric Blake  <ebb9@byu.net>
26122
26123         select: add missing dependency
26124         * modules/select-tests (Depends-on): Move sockets dependency...
26125         * modules/select (Depends-on): ...here.
26126         Reported by Ian Beckwith.
26127
26128         doc: regenerate INSTALL
26129         * doc/INSTALL: Reflect recent autoconf update.
26130         * doc/INSTALL.ISO: Likewise.
26131         * doc/INSTALL.UTF-8: Likewise.
26132
26133         pread: fix compilation on glibc
26134         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
26135         Reported by Ralf Wildenhues.
26136
26137         dirent: fix test failure
26138         * lib/dirent.in.h (includes): Guarantee ino_t.
26139         Reported by Ralf Wildenhues.
26140
26141 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
26142
26143         linkat, renameat: avoid bad free
26144         * lib/at-func2.c (at_func2): Fix typo.
26145         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
26146
26147 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26148
26149         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
26150         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
26151         to avoid failure of symlink test later.
26152
26153 2010-01-06  Eric Blake  <ebb9@byu.net>
26154
26155         stdio, unistd: guarantee ssize_t
26156         * lib/unistd.in.h (includes): Ensure that types required by POSIX
26157         2008 are exposed when needed.
26158         * lib/stdio.in.h (includes): Likewise.
26159         Reported by Ralf Wildenhues.
26160
26161 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
26162
26163         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
26164         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
26165         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
26166
26167 2010-01-06  Jim Meyering  <meyering@redhat.com>
26168
26169         readtokens: this module *does* require xalloc.h
26170         It uses only functions that were omitted by the old syntax-check rule.
26171         * lib/readtokens.c: Include "xalloc.h" once again.
26172         * modules/readtokens (Depends-on): Add xalloc.
26173         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
26174
26175 2010-01-05  Eric Blake  <ebb9@byu.net>
26176
26177         maint: support 'make announcement' from a VPATH build
26178         * top/maint.mk (announcement): Look for correct NEWS file.
26179
26180 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
26181
26182         utimens (fdutimens): ignore a negative FD, per contract
26183         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
26184         when we have a valid file descriptor.  Otherwise, using a brand
26185         new glibc (with just-patched futimens that now fails with EBADF)
26186         would cause this function to fail with ENOSYS.
26187         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
26188         See also http://bugzilla.redhat.com/552320.
26189
26190 2010-01-05  Eric Blake  <ebb9@byu.net>
26191
26192         strcase: document what it provides
26193         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
26194         gnulib module.
26195         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
26196         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
26197
26198 2010-01-05  Jim Meyering  <meyering@redhat.com>
26199
26200         maint: remove useless inclusions of "xalloc.h"
26201         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
26202         * lib/readtokens.c: Likewise.
26203         * lib/same.c: Likewise.
26204         * modules/getloadavg (Depends-on): Remove xalloc.
26205         * modules/readtokens: Likewise.
26206         * modules/same: Likewise.
26207
26208         maint.mk: include 4 more function names in alloca.h-checking regexp
26209         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
26210         regexp.  Before, we would give a false-positive (saying alloca.h
26211         is included unnecessarily) when the only uses involved omitted symbols.
26212
26213         xalloc.h: use consistent formatting
26214         * lib/xalloc.h: Move declarations to start in the first column.
26215
26216 2010-01-05  Eric Blake  <ebb9@byu.net>
26217
26218         mkdir: avoid xalloc
26219         * lib/mkdir.c (includes): Drop unused header.
26220         Reported by John W. Eaton.
26221
26222 2010-01-04  Jim Meyering  <meyering@redhat.com>
26223
26224         nl_langinfo: avoid configure-time syntax error
26225         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
26226         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
26227         the empty string.  Don't let that provoke a shell syntax error.
26228
26229         regcomp, regexec, fnmatch: avoid array bounds read error
26230         * lib/regcomp.c (build_equiv_class): From glibc:
26231         Use only the low 24 bits of a findidx return value as an index
26232         into the weights array.  Patch by Ulrich Drepper:
26233         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
26234         * lib/regexec.c (check_node_accept_bytes): Likewise.
26235         * lib/fnmatch_loop.c (FCT): Likewise.
26236
26237         regcomp: skip collseq lookup when there are no rules
26238         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
26239         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
26240
26241         regcomp: recognize ill-formed { } expressions
26242         * lib/regcomp.c (parse_dup_op): From glibc:
26243         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
26244
26245         regcomp: fix typo in comment
26246         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
26247         s/satisfy/satisfies/.
26248
26249         regcomp: sync from glibc: remove dead store
26250         * lib/regcomp.c (duplicate_node_closure): Remove useless
26251         search_duplicated_node call and dead store.
26252
26253         regcomp: sync from glibc; always use nl_langinfo
26254         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
26255         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
26256         * modules/regex (Depends-on): Add nl_langinfo.
26257
26258 2010-01-04  Eric Blake  <ebb9@byu.net>
26259
26260         fdopendir: fix configure test
26261         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
26262
26263 2010-01-01  Bruno Haible  <bruno@clisp.org>
26264
26265         wchar: Remove unused configure check.
26266         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
26267
26268 2010-01-01  Eric Blake  <ebb9@byu.net>
26269
26270         headers: make check of system header explicit
26271         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
26272         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
26273         ourselves.
26274         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26276         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
26277         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
26278         internals.
26279         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
26280         missing.
26281         Suggested by Bruno Haible.
26282
26283 2010-01-01  Jim Meyering  <meyering@redhat.com>
26284
26285         ChangeLog: tweak to eliminate unnecessary copyright line
26286         * ChangeLog: Remove a copyright line that was mistakenly updated
26287         by today's update-copyright run.  Reported by Eric Blake.
26288
26289         test-update-copyright: don't let envvar setting cause test failure
26290         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26291
26292 2010-01-01  Bruno Haible  <bruno@clisp.org>
26293
26294         localename: Avoid gcc warning.
26295         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
26296         function if it is not used.
26297
26298 2010-01-01  Jim Meyering  <meyering@redhat.com>
26299
26300         update nearly all FSF copyright year lists to include 2010
26301         Use the same procedure as for 2009, outlined in
26302         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
26303
26304         version-etc: set COPYRIGHT_YEAR to 2010
26305         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
26306
26307 2009-12-31  Eric Blake  <ebb9@byu.net>
26308
26309         doc: correct availability of cygwin 1.5.x getopt
26310         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
26311         variables.
26312         * doc/posix-functions/opterr.texi (opterr): Likewise.
26313         * doc/posix-functions/optind.texi (optind): Likewise.
26314         * doc/posix-functions/optopt.texi (optopt): Likewise.
26315         * doc/posix-functions/tzname.texi (tzname): Likewise.
26316
26317         openat: update maintainer
26318         * modules/openat (Maintainer): Add myself.
26319
26320         utimens: avoid shadowing warning
26321         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
26322         buffers into one, to avoid shadowing, as well as avoiding a
26323         redundant stat.
26324         Reported by Jim Meyering.
26325
26326         test-dup2: avoid compiler warning
26327         * tests/test-dup2.c (is_inheritable): Only define if used.
26328
26329 2010-01-01  Bruno Haible  <bruno@clisp.org>
26330
26331         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
26332         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
26333         defined, use wctomb instead of wcrtomb.
26334
26335 2010-01-01  Bruno Haible  <bruno@clisp.org>
26336
26337         iconv: Reject native Solaris iconv.
26338         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
26339         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
26340
26341 2009-12-31  Bruno Haible  <bruno@clisp.org>
26342
26343         * tests/test-signal.c (main): Remove test of 'SIG'.
26344
26345 2009-12-31  Bruno Haible  <bruno@clisp.org>
26346
26347         spawn: Fix incomplete fix.
26348         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26349         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26350         warnings for GNULIB_POSIXCHECK again.
26351         Reported by Eric Blake.
26352
26353 2009-12-31  Bruno Haible  <bruno@clisp.org>
26354
26355         Avoid namespace pollution on glibc systems.
26356         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
26357         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
26358         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
26359         glibc systems.
26360
26361 2009-12-31  Bruno Haible  <bruno@clisp.org>
26362
26363         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
26364         (gl_REPLACE_WCHAR_H): Turn into a no-op.
26365         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
26366         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
26367         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
26368         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
26369         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
26370
26371 2009-12-31  Bruno Haible  <bruno@clisp.org>
26372
26373         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26374         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
26375         afterwards.
26376
26377 2009-12-31  Bruno Haible  <bruno@clisp.org>
26378
26379         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
26380         SYS_UTSNAME_H.
26381
26382 2009-12-31  Bruno Haible  <bruno@clisp.org>
26383
26384         spawn: Fix misapplied patch.
26385         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
26386         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
26387         warnings for GNULIB_POSIXCHECK.
26388
26389 2009-12-31  Bruno Haible  <bruno@clisp.org>
26390
26391         times: Update after sys_times changed.
26392         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
26393         * modules/times (Files): Add it.
26394         (configure.ac): Invoke gl_FUNC_TIMES.
26395
26396 2009-12-31  Bruno Haible  <bruno@clisp.org>
26397
26398         Use AC_C_INLINE where necessary.
26399         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
26400         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
26401         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26402         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26403         * m4/mbfile.m4 (gl_MBFILE): Likewise.
26404         * m4/mbiter.m4 (gl_MBITER): Likewise.
26405         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26406         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26407         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
26408         * modules/u64 (configure.ac): Likewise.
26409
26410 2009-12-31  Bruno Haible  <bruno@clisp.org>
26411
26412         Use AC_C_INLINE instead of module 'inline' where possible.
26413         * modules/inline (Description): Clarify purpose.
26414         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
26415         * modules/count-one-bits (Depends-on): Remove inline.
26416         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
26417         * modules/openat (Depends-on): Remove inline.
26418         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
26419         instead of depending on module 'inline'.
26420         * modules/filevercmp (Depends-on, configure.ac): Likewise.
26421         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
26422         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
26423         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
26424         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
26425         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
26426         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
26427         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
26428         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
26429         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
26430         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
26431         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
26432         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
26433         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
26434         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
26435         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
26436         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
26437         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
26438         Likewise.
26439         * modules/unictype/property-ascii-hex-digit (Depends-on,
26440         configure.ac): Likewise.
26441         * modules/unictype/property-bidi-arabic-digit (Depends-on,
26442         configure.ac): Likewise.
26443         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
26444         configure.ac): Likewise.
26445         * modules/unictype/property-bidi-block-separator (Depends-on,
26446         configure.ac): Likewise.
26447         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
26448         configure.ac): Likewise.
26449         * modules/unictype/property-bidi-common-separator (Depends-on,
26450         configure.ac): Likewise.
26451         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
26452         Likewise.
26453         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
26454         configure.ac): Likewise.
26455         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
26456         configure.ac): Likewise.
26457         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
26458         configure.ac): Likewise.
26459         * modules/unictype/property-bidi-european-digit (Depends-on,
26460         configure.ac): Likewise.
26461         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
26462         configure.ac): Likewise.
26463         * modules/unictype/property-bidi-left-to-right (Depends-on,
26464         configure.ac): Likewise.
26465         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
26466         configure.ac): Likewise.
26467         * modules/unictype/property-bidi-other-neutral (Depends-on,
26468         configure.ac): Likewise.
26469         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
26470         Likewise.
26471         * modules/unictype/property-bidi-segment-separator (Depends-on,
26472         configure.ac): Likewise.
26473         * modules/unictype/property-bidi-whitespace (Depends-on,
26474         configure.ac): Likewise.
26475         * modules/unictype/property-combining (Depends-on, configure.ac):
26476         Likewise.
26477         * modules/unictype/property-composite (Depends-on, configure.ac):
26478         Likewise.
26479         * modules/unictype/property-currency-symbol (Depends-on,
26480         configure.ac): Likewise.
26481         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
26482         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
26483         Likewise.
26484         * modules/unictype/property-default-ignorable-code-point (Depends-on,
26485         configure.ac): Likewise.
26486         * modules/unictype/property-deprecated (Depends-on, configure.ac):
26487         Likewise.
26488         * modules/unictype/property-diacritic (Depends-on, configure.ac):
26489         Likewise.
26490         * modules/unictype/property-extender (Depends-on, configure.ac):
26491         Likewise.
26492         * modules/unictype/property-format-control (Depends-on, configure.ac):
26493         Likewise.
26494         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
26495         Likewise.
26496         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
26497         Likewise.
26498         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
26499         Likewise.
26500         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
26501         Likewise.
26502         * modules/unictype/property-hyphen (Depends-on, configure.ac):
26503         Likewise.
26504         * modules/unictype/property-id-continue (Depends-on, configure.ac):
26505         Likewise.
26506         * modules/unictype/property-id-start (Depends-on, configure.ac):
26507         Likewise.
26508         * modules/unictype/property-ideographic (Depends-on, configure.ac):
26509         Likewise.
26510         * modules/unictype/property-ids-binary-operator (Depends-on,
26511         configure.ac): Likewise.
26512         * modules/unictype/property-ids-trinary-operator (Depends-on,
26513         configure.ac): Likewise.
26514         * modules/unictype/property-ignorable-control (Depends-on,
26515         configure.ac): Likewise.
26516         * modules/unictype/property-iso-control (Depends-on, configure.ac):
26517         Likewise.
26518         * modules/unictype/property-join-control (Depends-on, configure.ac):
26519         Likewise.
26520         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
26521         Likewise.
26522         * modules/unictype/property-line-separator (Depends-on, configure.ac):
26523         Likewise.
26524         * modules/unictype/property-logical-order-exception (Depends-on,
26525         configure.ac): Likewise.
26526         * modules/unictype/property-lowercase (Depends-on, configure.ac):
26527         Likewise.
26528         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
26529         * modules/unictype/property-non-break (Depends-on, configure.ac):
26530         Likewise.
26531         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
26532         Likewise.
26533         * modules/unictype/property-numeric (Depends-on, configure.ac):
26534         Likewise.
26535         * modules/unictype/property-other-alphabetic (Depends-on,
26536         configure.ac): Likewise.
26537         * modules/unictype/property-other-default-ignorable-code-point
26538         (Depends-on, configure.ac): Likewise.
26539         * modules/unictype/property-other-grapheme-extend (Depends-on,
26540         configure.ac): Likewise.
26541         * modules/unictype/property-other-id-continue (Depends-on,
26542         configure.ac): Likewise.
26543         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
26544         Likewise.
26545         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
26546         Likewise.
26547         * modules/unictype/property-other-math (Depends-on, configure.ac):
26548         Likewise.
26549         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
26550         Likewise.
26551         * modules/unictype/property-paired-punctuation (Depends-on,
26552         configure.ac): Likewise.
26553         * modules/unictype/property-paragraph-separator (Depends-on,
26554         configure.ac): Likewise.
26555         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26556         Likewise.
26557         * modules/unictype/property-pattern-white-space (Depends-on,
26558         configure.ac): Likewise.
26559         * modules/unictype/property-private-use (Depends-on, configure.ac):
26560         Likewise.
26561         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26562         Likewise.
26563         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26564         Likewise.
26565         * modules/unictype/property-radical (Depends-on, configure.ac):
26566         Likewise.
26567         * modules/unictype/property-sentence-terminal (Depends-on,
26568         configure.ac): Likewise.
26569         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26570         Likewise.
26571         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26572         * modules/unictype/property-terminal-punctuation (Depends-on,
26573         configure.ac): Likewise.
26574         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26575         Likewise.
26576         * modules/unictype/property-unassigned-code-value (Depends-on,
26577         configure.ac): Likewise.
26578         * modules/unictype/property-unified-ideograph (Depends-on,
26579         configure.ac): Likewise.
26580         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26581         Likewise.
26582         * modules/unictype/property-variation-selector (Depends-on,
26583         configure.ac): Likewise.
26584         * modules/unictype/property-white-space (Depends-on, configure.ac):
26585         Likewise.
26586         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26587         Likewise.
26588         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26589         Likewise.
26590         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26591         Likewise.
26592         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26593         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26594         Likewise.
26595
26596 2009-12-31  Bruno Haible  <bruno@clisp.org>
26597
26598         Remove unnecessary AC_C_INLINE invocation.
26599         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26600         since 2009-08-21.
26601
26602 2009-12-31  Jim Meyering  <meyering@redhat.com>
26603
26604         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26605         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26606         With this change, we can all remove the gpg_key_ID = ... definition
26607         from our respective cfg.mk files.
26608
26609         maint.mk: create announcement template in ~/, not in /tmp
26610         * top/maint.mk (emit_upload_commands): Adjust.
26611         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26612         Remove temporary file, .ci-msg.
26613
26614 2009-12-31  Eric Blake  <ebb9@byu.net>
26615
26616         link-warning: always build headers with link warnings
26617         * modules/arpa_inet (Makefile.am): Always build replacement
26618         header.
26619         * modules/ctype (Makefile.am): Likewise.
26620         * modules/dirent (Makefile.am): Likewise.
26621         * modules/inttypes (Makefile.am): Likewise.
26622         * modules/langinfo (Makefile.am): Likewise.
26623         * modules/locale (Makefile.am): Likewise.
26624         * modules/spawn (Makefile.am): Likewise.
26625         * modules/sys_file (Makefile.am): Likewise.
26626         * modules/sys_ioctl (Makefile.am): Likewise.
26627         * modules/sys_select (Makefile.am): Likewise.
26628         * modules/sys_socket (Makefile.am): Likewise.
26629         * modules/sys_times (Makefile.am): Likewise.
26630         * modules/sys_utsname (Makefile.am): Likewise.
26631         * modules/sys_wait (Makefile.am): Likewise.
26632         * modules/wchar (Makefile.am): Likewise.
26633         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26634         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26635         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26636         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26637         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26638         Likewise.
26639         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26640         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26641         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26642         Likewise.
26643         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26644         Likewise.
26645         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26646         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26647         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26649         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26650         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26651         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26652         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26653         (gl_WCHAR_H_DEFAULTS): Likewise.
26654
26655 2009-12-31  Eric Blake  <ebb9@byu.net>
26656
26657         signal, spawn: use link warnings
26658         * lib/signal.in.h (sigset_t): Make unconditional.
26659         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26660         (sigpending, sigprocmask, sigaction): Add link warnings.
26661         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26662         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26663         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26664         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26665         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26666         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26667         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26668         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26669         (posix_spawn_file_actions_destroy)
26670         (posix_spawn_file_actions_addopen)
26671         (posix_spawn_file_actions_addclose)
26672         (posix_spawn_file_actions_adddup2): Likewise.
26673         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26674         * tests/test-signal.c (main): Enhance test.
26675
26676         spawn: improve wrapper support
26677         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26678         (gl_SPAWN_H_DEFAULTS): New defaults.
26679         * modules/spawn (Makefile.am): Substitute them.
26680         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26681         Only declare if missing or broken.
26682
26683         sys_times, sys_utsname: use include_next
26684         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26685         header.
26686         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26687         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26688         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26689         * modules/sys_times (Depends-on): Add include_next.
26690         (Makefile.am): Substitute additional values.
26691         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26692         * lib/sys_times.in.h (includes): Include native header, if
26693         available.
26694         * lib/sys_utsname.in.h (includes): Likewise.
26695         * tests/test-sys_times.c (main): Enhance test.
26696
26697         fdutimensat: revert prior patch
26698         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26699         utimens.h.
26700         Reported by Bruno Haible.
26701
26702 2009-12-30  Eric Blake  <ebb9@byu.net>
26703
26704         sys_wait: drop link-warning dependency
26705         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26706         link-warning efforts.
26707         * lib/sys_wait.in.h: Likewise.
26708
26709         fdutimensat: remove bogus dependency
26710         * modules/fdutimensat (Depends-on): Drop inline.
26711
26712         unistd: fix typo
26713         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26714
26715 2009-12-30  Bruno Haible  <bruno@clisp.org>
26716
26717         Fix compilation error with Solaris cc.
26718         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26719         * lib/unicase/u16-is-invariant.c: Likewise.
26720         * lib/unicase/u32-is-invariant.c: Likewise.
26721         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26722
26723 2009-12-30  Bruno Haible  <bruno@clisp.org>
26724
26725         Fix test crash.
26726         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26727         locales.
26728         Reported by Simon Josefsson <simon@josefsson.org>.
26729
26730 2009-12-30  Bruno Haible  <bruno@clisp.org>
26731
26732         Fix compilation error on most platforms.
26733         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26734         Reported by Simon Josefsson <simon@josefsson.org>
26735         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26736
26737 2009-12-30  Eric Blake  <ebb9@byu.net>
26738
26739         futimens, utimensat: work around ntfs-3g bug
26740         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26741         a ctime bug is present, and expand workaround to cover ntfs-3g.
26742         * lib/utimens.c (fdutimens, lutimens): Likewise.
26743         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26744         (validate_timespec): Adjust return value.
26745         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26746         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26747         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26748
26749 2009-12-29  Eric Blake  <ebb9@byu.net>
26750
26751         link-warning: make usage consistent
26752         * modules/ctype (Depends-on): Add link-warning.
26753         (Makefile.am): Update rules accordingly.
26754         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26755         * modules/locale (Depends-on, Makefile.am): Likewise.
26756         * modules/sys_file (Makefile.am): Likewise.
26757         * modules/getopt-posix (Makefile.am): Delete unused link warning
26758         efforts.
26759         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26760         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26761         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26762         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26763
26764         stdio: remove unused variables
26765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26766         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26767         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26768
26769         tests: test more substitute headers
26770         * modules/ctype-tests: New file.
26771         * modules/dirent-tests: Likewise.
26772         * modules/spawn-tests: Likewise.
26773         * modules/sys_file-tests: Likewise.
26774         * modules/sys_ioctl-tests: Likewise.
26775         * modules/sys_wait-tests: Likewise.
26776         * tests/test-ctype.c: Likewise.
26777         * tests/test-dirent.c: Likewise.
26778         * tests/test-spawn.c: Likewise.
26779         * tests/test-sys_file.c: Likewise.
26780         * tests/test-sys_ioctl.c: Likewise.
26781         * tests/test-sys_wait.c: Likewise.
26782         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26783         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26784         whether or not flock is in use.
26785
26786         tests: remove License section from module
26787         * modules/arpa_inet-tests: Remove unneeded section.
26788         * modules/byteswap-tests: Likewise.
26789         * modules/ceilf-tests: Likewise.
26790         * modules/ceill-tests: Likewise.
26791         * modules/crypto/des-tests: Likewise.
26792         * modules/crypto/gc-arcfour-tests: Likewise.
26793         * modules/crypto/gc-arctwo-tests: Likewise.
26794         * modules/crypto/gc-des-tests: Likewise.
26795         * modules/crypto/gc-hmac-md5-tests: Likewise.
26796         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26797         * modules/crypto/gc-md2-tests: Likewise.
26798         * modules/crypto/gc-md4-tests: Likewise.
26799         * modules/crypto/gc-md5-tests: Likewise.
26800         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26801         * modules/crypto/gc-rijndael-tests: Likewise.
26802         * modules/crypto/gc-sha1-tests: Likewise.
26803         * modules/crypto/gc-tests: Likewise.
26804         * modules/crypto/md2-tests: Likewise.
26805         * modules/crypto/md4-tests: Likewise.
26806         * modules/fcntl-h-tests: Likewise.
26807         * modules/floorf-tests: Likewise.
26808         * modules/floorl-tests: Likewise.
26809         * modules/frexp-nolibm-tests: Likewise.
26810         * modules/frexp-tests: Likewise.
26811         * modules/frexpl-nolibm-tests: Likewise.
26812         * modules/frexpl-tests: Likewise.
26813         * modules/getaddrinfo-tests: Likewise.
26814         * modules/inttypes-tests: Likewise.
26815         * modules/isfinite-tests: Likewise.
26816         * modules/isinf-tests: Likewise.
26817         * modules/ldexpl-tests: Likewise.
26818         * modules/locale-tests: Likewise.
26819         * modules/math-tests: Likewise.
26820         * modules/netdb-tests: Likewise.
26821         * modules/netinet_in-tests: Likewise.
26822         * modules/printf-frexp-tests: Likewise.
26823         * modules/printf-frexpl-tests: Likewise.
26824         * modules/priv-set-tests: Likewise.
26825         * modules/random_r-tests: Likewise.
26826         * modules/round-tests: Likewise.
26827         * modules/roundf-tests: Likewise.
26828         * modules/roundl-tests: Likewise.
26829         * modules/search-tests: Likewise.
26830         * modules/select-tests: Likewise.
26831         * modules/signal-tests: Likewise.
26832         * modules/stdbool-tests: Likewise.
26833         * modules/stddef-tests: Likewise.
26834         * modules/stdint-tests: Likewise.
26835         * modules/stdio-tests: Likewise.
26836         * modules/stdlib-tests: Likewise.
26837         * modules/string-tests: Likewise.
26838         * modules/strings-tests: Likewise.
26839         * modules/sys_select-tests: Likewise.
26840         * modules/sys_socket-tests: Likewise.
26841         * modules/sys_stat-tests: Likewise.
26842         * modules/sys_time-tests: Likewise.
26843         * modules/sys_utsname-tests: Likewise.
26844         * modules/sysexits-tests: Likewise.
26845         * modules/time-tests: Likewise.
26846         * modules/trunc-tests: Likewise.
26847         * modules/truncf-tests: Likewise.
26848         * modules/truncl-tests: Likewise.
26849         * modules/tsearch-tests: Likewise.
26850         * modules/unistd-tests: Likewise.
26851         * modules/wchar-tests: Likewise.
26852         * modules/wctype-tests: Likewise.
26853
26854         tests: fix license on several tests
26855         * tests/test-des.c: Update to GPLv3+.
26856         * tests/test-flock.c: Likewise.
26857         * tests/test-fsync.c: Likewise.
26858         * tests/test-futimens.h: Likewise.
26859         * tests/test-gc-arcfour.c: Likewise.
26860         * tests/test-gc-arctwo.c: Likewise.
26861         * tests/test-gc-des.c: Likewise.
26862         * tests/test-gc-hmac-md5.c: Likewise.
26863         * tests/test-gc-hmac-sha1.c: Likewise.
26864         * tests/test-gc-md2.c: Likewise.
26865         * tests/test-gc-md4.c: Likewise.
26866         * tests/test-gc-md5.c: Likewise.
26867         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26868         * tests/test-gc-rijndael.c: Likewise.
26869         * tests/test-gc-sha1.c: Likewise.
26870         * tests/test-gc.c: Likewise.
26871         * tests/test-getcwd.c: Likewise.
26872         * tests/test-link.c: Likewise.
26873         * tests/test-link.h: Likewise.
26874         * tests/test-lutimens.h: Likewise.
26875         * tests/test-md2.c: Likewise.
26876         * tests/test-md4.c: Likewise.
26877         * tests/test-mkdir.h: Likewise.
26878         * tests/test-rename.c: Likewise.
26879         * tests/test-rename.h: Likewise.
26880         * tests/test-safe-alloc.c: Likewise.
26881         * tests/test-utimens-common.h: Likewise.
26882         * tests/test-utimens.h: Likewise.
26883
26884         maint: sync license texts
26885         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26886         * doc/gpl-3.0.texi: Revert copyright year update.
26887         * doc/lgpl-3.0.texi: Likewise.
26888
26889 2009-12-29  Jim Meyering  <meyering@redhat.com>
26890
26891         update nearly all FSF copyright year lists to include 2009
26892         The files named by the following are exempted:
26893             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26894               test -f "$dst" && { echo "$dst"; continue; }
26895               test -d "$dst" || continue
26896               echo "$dst"/$(basename "$src")
26897             done > exempt
26898             git ls-files tests/unictype >> exempt
26899         In the remaining files, convert to all-interval notation if
26900         - there is already at least one year interval like 2000-2003
26901         - the file is maintained by me
26902         - the file is in lib/uni*/, where that style already prevails
26903         Otherwise, use update-copyright's default.
26904
26905 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26906         and Eric Blake  <ebb9@byu.net>
26907
26908         tests: don't require debug system() to pass
26909         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26910         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26911         * tests/test-unlink.h (test_unlink_func): Likewise.
26912         * tests/test-fstatat.c (main): ...into callers.
26913         * tests/test-lstat.c (main): Likewise.
26914         * tests/test-rmdir.c (main): Likewise.
26915         * tests/test-unlink.c (main): Likewise.
26916         * tests/test-unlinkat.c (main): Likewise.
26917         * tests/test-areadlink-with-size.c (main): Don't require a
26918         debug-only system call to pass, aiding cross-testing to mingw.
26919         * tests/test-areadlink.c (main): Likewise.
26920         * tests/test-areadlinkat-with-size.c (main): Likewise.
26921         * tests/test-areadlinkat.c (main): Likewise.
26922         * tests/test-canonicalize-lgpl.c (main): Likewise.
26923         * tests/test-canonicalize.c (main): Likewise.
26924         * tests/test-chown.c (main): Likewise.
26925         * tests/test-fchownat.c (main): Likewise.
26926         * tests/test-lchown.c (main): Likewise.
26927         * tests/test-fdutimensat.c (main): Likewise.
26928         * tests/test-futimens.c (main): Likewise.
26929         * tests/test-link.c (main): Likewise.
26930         * tests/test-linkat.c (main): Likewise.
26931         * tests/test-mkdir.c (main): Likewise.
26932         * tests/test-mkdirat.c (main): Likewise.
26933         * tests/test-mkfifo.c (main): Likewise.
26934         * tests/test-mkfifoat.c (main): Likewise.
26935         * tests/test-mknod.c (main): Likewise.
26936         * tests/test-readlink.c (main): Likewise.
26937         * tests/test-remove.c (main): Likewise.
26938         * tests/test-rename.c (main): Likewise.
26939         * tests/test-renameat.c (main): Likewise.
26940         * tests/test-symlink.c (main): Likewise.
26941         * tests/test-symlinkat.c (main): Likewise.
26942         * tests/test-utimens.c (main): Likewise.
26943         * tests/test-utimensat.c (main): Likewise.
26944
26945 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26946
26947         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26948         on $(UNUSED_PARAMETER_H) to avoid build failure.
26949
26950 2009-12-28  Jim Meyering  <meyering@redhat.com>
26951
26952         update-copyright: you may specify a max. line length other than 72
26953         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26954
26955         maint: use consistent FSF copyright line syntax
26956         * lib/posixtm.c: Add missing comma in FSF copyright line.
26957         * lib/posixtm.h: Likewise.
26958         * lib/getugroups.c: Add missing ", Inc.".
26959
26960         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26961         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26962         FSF copyright line.  Remove trailing blanks.
26963
26964 2009-12-28  Eric Blake  <ebb9@byu.net>
26965
26966         test-dup2: reduce dependencies
26967         * modules/cloexec (Configure.ac): Set witness.
26968         * modules/dup2-tests (Depends-on): Drop cloexec.
26969         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26970         not present.
26971         Suggested by Bruno Haible.
26972
26973 2009-12-26  Bruno Haible  <bruno@clisp.org>
26974
26975         Remove an unneeded dependency.
26976         * modules/fseterr (Depends-on): Remove dup2.
26977
26978 2009-12-26  Eric Blake  <ebb9@byu.net>
26979
26980         tests: use macros.h in more places
26981         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26982         (ASSERT_STREAM): Provide default of stderr.
26983         * tests/test-dirent-safer.c: Include macros.h, using alternate
26984         stream for assertions.
26985         * tests/test-dup-safer.c: Likewise.
26986         * tests/test-freopen-safer.c: Likewise.
26987         * tests/test-getopt.c: Likewise.
26988         * tests/test-openat-safer.c: Likewise.
26989         * tests/test-pipe.c: Likewise.
26990         * tests/test-popen-safer.c: Likewise.
26991         * modules/dirent-safer-tests (Files): Include macros.h.
26992         * modules/unistd-safer-tests (Files): Likewise.
26993         * modules/freopen-safer-tests (Files): Likewise.
26994         * modules/getopt-posix-tests (Files): Likewise.
26995         * modules/openat-safer-tests (Files): Likewise.
26996         * modules/pipe-tests (Files): Likewise.
26997
26998 2009-12-26  Bruno Haible  <bruno@clisp.org>
26999
27000         javacomp: Portability fix.
27001         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27002         that it also works on Solaris.
27003
27004 2009-12-26  Bruno Haible  <bruno@clisp.org>
27005
27006         localename: Fix storage allocation of gl_locale_name_thread's result.
27007         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27008         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27009         all platforms that have 'uselocale'.
27010         (gl_locale_name_thread_unsafe): New function, extracted from
27011         gl_locale_name_thread.
27012         (gl_locale_name_thread): Call struniq on all platforms that have
27013         'uselocale'.
27014         * tests/test-localename.c (test_locale_name_thread): Check that the
27015         resulting strings are permanently allocated.
27016         * modules/localename-tests (Depends-on): Add strdup.
27017
27018 2009-12-26  Bruno Haible  <bruno@clisp.org>
27019
27020         * tests/test-localename.c (categories): Fill in the strings.
27021
27022 2009-12-26  Jim Meyering  <meyering@redhat.com>
27023
27024         isdir: complete the removal of m4/isdir.m4
27025         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
27026
27027         isdir: clean up, since at least grep still uses it
27028         * lib/isdir.c: Include "isdir.h".
27029         (S_ISDIR): Remove now-unneeded definition.
27030         * modules/isdir (Files): Add lib/isdir.h.
27031         * lib/isdir.h: New file, with declaration.
27032         * m4/isdir.m4: Remove file -- unneeded.
27033
27034 2009-12-25  Bruno Haible  <bruno@clisp.org>
27035
27036         selinux-h: Make generated .h files standalone.
27037         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
27038         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
27039         * lib/se-selinux.in.h: Likewise.
27040         * modules/selinux-h (Depends-on): Add unused-parameter.
27041         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
27042         selinux/selinux.h and selinux/context.h.
27043         Suggested by Eric Blake.
27044
27045 2009-12-25  Bruno Haible  <bruno@clisp.org>
27046
27047         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
27048         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
27049         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
27050         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
27051         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
27052
27053 2009-12-24  Bruno Haible  <bruno@clisp.org>
27054
27055         openat: Fix warning.
27056         * lib/openat-proc.c: Include <unistd.h>.
27057
27058 2009-12-24  Bruno Haible  <bruno@clisp.org>
27059
27060         New module 'unused-parameter'.
27061         * build-aux/unused-parameter.h: New file, extracted from earlier
27062         gnulib-common.m4.
27063         * modules/unused-parameter: New file.
27064         * lib/unistr.h: Include unused-parameter.h.
27065         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27066         _GL_UNUSED.
27067         * modules/unistr/base (Depends-on): Add unused-parameter.
27068
27069 2009-12-24  Bruno Haible  <bruno@clisp.org>
27070
27071         Add missing dependencies to 'extensions' module.
27072         * m4/extensions.m4: Add comment.
27073         * modules/accept4 (Depends-on): Add extensions.
27074         * modules/dup3 (Depends-on): Likewise.
27075         * modules/fcntl (Depends-on): Likewise.
27076         * modules/futimens (Depends-on): Likewise.
27077         * modules/mknod (Depends-on): Likewise.
27078         * modules/pipe2 (Depends-on): Likewise.
27079         * modules/stat-time (Depends-on): Likewise.
27080         * modules/strcasestr-simple (Depends-on): Likewise.
27081         * modules/strsignal (Depends-on): Likewise.
27082         * modules/utimensat (Depends-on): Likewise.
27083         * modules/localcharset (Depends-on): Likewise. Needed because of
27084         gl_FCNTL_O_FLAGS.
27085         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27086         AC_TYPE_MBSTATE_T.
27087         * modules/wcsnrtombs (Depends-on): Likewise.
27088         * modules/wcsrtombs (Depends-on): Likewise.
27089
27090 2009-12-24  Bruno Haible  <bruno@clisp.org>
27091
27092         binary-io: Avoid gcc warning due to SET_BINARY.
27093         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27094         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27095
27096 2009-12-24  Bruno Haible  <bruno@clisp.org>
27097
27098         Avoid future namespace pollution on glibc systems.
27099         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27100         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27101         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27102         glibc systems.
27103
27104 2009-12-24  Bruno Haible  <bruno@clisp.org>
27105
27106         Refactor common macros used in tests.
27107         * tests/macros.h: New file.
27108         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27109         and/or <stdlib.h>, if appropriate.
27110         (ASSERT, SIZEOF): Remove macros.
27111         * tests/test-areadlink-with-size.c: Likewise.
27112         * tests/test-areadlinkat.c: Likewise.
27113         * tests/test-areadlinkat-with-size.c: Likewise.
27114         * tests/test-argmatch.c: Likewise.
27115         * tests/test-argv-iter.c: Likewise.
27116         * tests/test-array-mergesort.c: Likewise.
27117         * tests/test-array_list.c: Likewise.
27118         * tests/test-array_oset.c: Likewise.
27119         * tests/test-avltree_list.c: Likewise.
27120         * tests/test-avltree_oset.c: Likewise.
27121         * tests/test-avltreehash_list.c: Likewise.
27122         * tests/test-base64.c: Likewise.
27123         * tests/test-binary-io.c: Likewise.
27124         * tests/test-bitrotate.c: Likewise.
27125         * tests/test-btowc.c: Likewise.
27126         * tests/test-byteswap.c: Likewise.
27127         * tests/test-c-ctype.c: Likewise.
27128         * tests/test-c-stack.c: Likewise.
27129         * tests/test-c-strcasecmp.c: Likewise.
27130         * tests/test-c-strcasestr.c: Likewise.
27131         * tests/test-c-strncasecmp.c: Likewise.
27132         * tests/test-c-strstr.c: Likewise.
27133         * tests/test-canonicalize-lgpl.c: Likewise.
27134         * tests/test-canonicalize.c: Likewise.
27135         * tests/test-carray_list.c: Likewise.
27136         * tests/test-ceilf1.c: Likewise.
27137         * tests/test-ceilf2.c: Likewise.
27138         * tests/test-ceill.c: Likewise.
27139         * tests/test-chown.c: Likewise.
27140         * tests/test-cloexec.c: Likewise.
27141         * tests/test-copy-acl.c: Likewise.
27142         * tests/test-copy-file.c: Likewise.
27143         * tests/test-count-one-bits.c: Likewise.
27144         * tests/test-dprintf-posix.c: Likewise.
27145         * tests/test-dup2.c: Likewise.
27146         * tests/test-dup3.c: Likewise.
27147         * tests/test-duplocale.c: Likewise.
27148         * tests/test-fbufmode.c: Likewise.
27149         * tests/test-fchdir.c: Likewise.
27150         * tests/test-fchownat.c: Likewise.
27151         * tests/test-fcntl-safer.c: Likewise.
27152         * tests/test-fcntl.c: Likewise.
27153         * tests/test-fdopendir.c: Likewise.
27154         * tests/test-fdutimensat.c: Likewise.
27155         * tests/test-fflush2.c: Likewise.
27156         * tests/test-file-has-acl.c: Likewise.
27157         * tests/test-filevercmp.c: Likewise.
27158         * tests/test-flock.c: Likewise.
27159         * tests/test-floorf1.c: Likewise.
27160         * tests/test-floorf2.c: Likewise.
27161         * tests/test-floorl.c: Likewise.
27162         * tests/test-fnmatch.c: Likewise.
27163         * tests/test-fopen.h: Likewise.
27164         * tests/test-fpending.c: Likewise.
27165         * tests/test-fprintf-posix.c: Likewise.
27166         * tests/test-fpurge.c: Likewise.
27167         * tests/test-freadable.c: Likewise.
27168         * tests/test-freadahead.c: Likewise.
27169         * tests/test-freading.c: Likewise.
27170         * tests/test-freadptr.c: Likewise.
27171         * tests/test-freadptr2.c: Likewise.
27172         * tests/test-freadseek.c: Likewise.
27173         * tests/test-freopen.c: Likewise.
27174         * tests/test-frexp.c: Likewise.
27175         * tests/test-frexpl.c: Likewise.
27176         * tests/test-fseek.c: Likewise.
27177         * tests/test-fseeko.c: Likewise.
27178         * tests/test-fstatat.c: Likewise.
27179         * tests/test-fstrcmp.c: Likewise.
27180         * tests/test-fsync.c: Likewise.
27181         * tests/test-ftell.c: Likewise.
27182         * tests/test-ftello.c: Likewise.
27183         * tests/test-func.c: Likewise.
27184         * tests/test-futimens.c: Likewise.
27185         * tests/test-fwritable.c: Likewise.
27186         * tests/test-fwriting.c: Likewise.
27187         * tests/test-getcwd.c: Likewise.
27188         * tests/test-getdate.c: Likewise.
27189         * tests/test-getdelim.c: Likewise.
27190         * tests/test-getdtablesize.c: Likewise.
27191         * tests/test-getgroups.c: Likewise.
27192         * tests/test-getline.c: Likewise.
27193         * tests/test-getndelim2.c: Likewise.
27194         * tests/test-glob.c: Likewise.
27195         * tests/test-hash.c: Likewise.
27196         * tests/test-i-ring.c: Likewise.
27197         * tests/test-iconv-utf.c: Likewise.
27198         * tests/test-iconv.c: Likewise.
27199         * tests/test-idpriv-drop.c: Likewise.
27200         * tests/test-idpriv-droptemp.c: Likewise.
27201         * tests/test-inet_ntop.c: Likewise.
27202         * tests/test-inet_pton.c: Likewise.
27203         * tests/test-isblank.c: Likewise.
27204         * tests/test-isfinite.c: Likewise.
27205         * tests/test-isinf.c: Likewise.
27206         * tests/test-isnan.c: Likewise.
27207         * tests/test-isnand.h: Likewise.
27208         * tests/test-isnanf.h: Likewise.
27209         * tests/test-isnanl.h: Likewise.
27210         * tests/test-lchown.c: Likewise.
27211         * tests/test-ldexpl.c: Likewise.
27212         * tests/test-link.c: Likewise.
27213         * tests/test-linkat.c: Likewise.
27214         * tests/test-linked_list.c: Likewise.
27215         * tests/test-linkedhash_list.c: Likewise.
27216         * tests/test-localename.c: Likewise.
27217         * tests/test-lseek.c: Likewise.
27218         * tests/test-lstat.c: Likewise.
27219         * tests/test-mbmemcasecmp.c: Likewise.
27220         * tests/test-mbmemcasecoll.c: Likewise.
27221         * tests/test-mbrtowc.c: Likewise.
27222         * tests/test-mbscasecmp.c: Likewise.
27223         * tests/test-mbscasestr1.c: Likewise.
27224         * tests/test-mbscasestr2.c: Likewise.
27225         * tests/test-mbscasestr3.c: Likewise.
27226         * tests/test-mbscasestr4.c: Likewise.
27227         * tests/test-mbschr.c: Likewise.
27228         * tests/test-mbscspn.c: Likewise.
27229         * tests/test-mbsinit.c: Likewise.
27230         * tests/test-mbsncasecmp.c: Likewise.
27231         * tests/test-mbsnrtowcs.c: Likewise.
27232         * tests/test-mbspbrk.c: Likewise.
27233         * tests/test-mbspcasecmp.c: Likewise.
27234         * tests/test-mbsrchr.c: Likewise.
27235         * tests/test-mbsrtowcs.c: Likewise.
27236         * tests/test-mbsspn.c: Likewise.
27237         * tests/test-mbsstr1.c: Likewise.
27238         * tests/test-mbsstr2.c: Likewise.
27239         * tests/test-mbsstr3.c: Likewise.
27240         * tests/test-memchr.c: Likewise.
27241         * tests/test-memchr2.c: Likewise.
27242         * tests/test-memcmp.c: Likewise.
27243         * tests/test-memmem.c: Likewise.
27244         * tests/test-memrchr.c: Likewise.
27245         * tests/test-mkdir.c: Likewise.
27246         * tests/test-mkdirat.c: Likewise.
27247         * tests/test-mkfifo.c: Likewise.
27248         * tests/test-mkfifoat.c: Likewise.
27249         * tests/test-mknod.c: Likewise.
27250         * tests/test-nanosleep.c: Likewise.
27251         * tests/test-nl_langinfo.c: Likewise.
27252         * tests/test-obstack-printf.c: Likewise.
27253         * tests/test-open.c: Likewise.
27254         * tests/test-openat.c: Likewise.
27255         * tests/test-pipe-filter-gi1.c: Likewise.
27256         * tests/test-pipe-filter-gi2-main.c: Likewise.
27257         * tests/test-pipe-filter-ii1.c: Likewise.
27258         * tests/test-pipe-filter-ii2-main.c: Likewise.
27259         * tests/test-pipe2.c: Likewise.
27260         * tests/test-popen.h: Likewise.
27261         * tests/test-posixtm.c: Likewise.
27262         * tests/test-pread.c: Likewise.
27263         * tests/test-printf-frexp.c: Likewise.
27264         * tests/test-printf-frexpl.c: Likewise.
27265         * tests/test-printf-posix.c: Likewise.
27266         * tests/test-priv-set.c: Likewise.
27267         * tests/test-quotearg.c: Likewise.
27268         * tests/test-random_r.c: Likewise.
27269         * tests/test-rawmemchr.c: Likewise.
27270         * tests/test-rbtree_list.c: Likewise.
27271         * tests/test-rbtree_oset.c: Likewise.
27272         * tests/test-rbtreehash_list.c: Likewise.
27273         * tests/test-readlink.c: Likewise.
27274         * tests/test-remove.c: Likewise.
27275         * tests/test-rename.c: Likewise.
27276         * tests/test-renameat.c: Likewise.
27277         * tests/test-rmdir.c: Likewise.
27278         * tests/test-round1.c: Likewise.
27279         * tests/test-roundf1.c: Likewise.
27280         * tests/test-roundl.c: Likewise.
27281         * tests/test-safe-alloc.c: Likewise.
27282         * tests/test-sameacls.c: Likewise.
27283         * tests/test-set-mode-acl.c: Likewise.
27284         * tests/test-setenv.c: Likewise.
27285         * tests/test-sigaction.c: Likewise.
27286         * tests/test-signbit.c: Likewise.
27287         * tests/test-sleep.c: Likewise.
27288         * tests/test-snprintf-posix.c: Likewise.
27289         * tests/test-snprintf.c: Likewise.
27290         * tests/test-sprintf-posix.c: Likewise.
27291         * tests/test-stat-time.c: Likewise.
27292         * tests/test-stat.c: Likewise.
27293         * tests/test-strcasestr.c: Likewise.
27294         * tests/test-strchrnul.c: Likewise.
27295         * tests/test-strerror.c: Likewise.
27296         * tests/test-striconv.c: Likewise.
27297         * tests/test-striconveh.c: Likewise.
27298         * tests/test-striconveha.c: Likewise.
27299         * tests/test-strsignal.c: Likewise.
27300         * tests/test-strstr.c: Likewise.
27301         * tests/test-strtod.c: Likewise.
27302         * tests/test-strverscmp.c: Likewise.
27303         * tests/test-symlink.c: Likewise.
27304         * tests/test-symlinkat.c: Likewise.
27305         * tests/test-trunc1.c: Likewise.
27306         * tests/test-trunc2.c: Likewise.
27307         * tests/test-truncf1.c: Likewise.
27308         * tests/test-truncf2.c: Likewise.
27309         * tests/test-truncl.c: Likewise.
27310         * tests/test-uname.c: Likewise.
27311         * tests/test-unlink.c: Likewise.
27312         * tests/test-unlinkat.c: Likewise.
27313         * tests/test-unsetenv.c: Likewise.
27314         * tests/test-usleep.c: Likewise.
27315         * tests/test-utimens.c: Likewise.
27316         * tests/test-utimensat.c: Likewise.
27317         * tests/test-vasnprintf-posix.c: Likewise.
27318         * tests/test-vasnprintf-posix2.c: Likewise.
27319         * tests/test-vasnprintf.c: Likewise.
27320         * tests/test-vasprintf-posix.c: Likewise.
27321         * tests/test-vasprintf.c: Likewise.
27322         * tests/test-vdprintf-posix.c: Likewise.
27323         * tests/test-vfprintf-posix.c: Likewise.
27324         * tests/test-vprintf-posix.c: Likewise.
27325         * tests/test-vsnprintf-posix.c: Likewise.
27326         * tests/test-vsnprintf.c: Likewise.
27327         * tests/test-vsprintf-posix.c: Likewise.
27328         * tests/test-wcrtomb.c: Likewise.
27329         * tests/test-wcsnrtombs.c: Likewise.
27330         * tests/test-wcsrtombs.c: Likewise.
27331         * tests/test-wctype.c: Likewise.
27332         * tests/test-wcwidth.c: Likewise.
27333         * tests/test-xfprintf-posix.c: Likewise.
27334         * tests/test-xmemdup0.c: Likewise.
27335         * tests/test-xprintf-posix.c: Likewise.
27336         * tests/test-xvasprintf.c: Likewise.
27337         * tests/unicase/test-locale-language.c: Likewise.
27338         * tests/unicase/test-mapping-part1.h: Likewise.
27339         * tests/unicase/test-predicate-part1.h: Likewise.
27340         * tests/unicase/test-u8-casecmp.c: Likewise.
27341         * tests/unicase/test-u8-casecoll.c: Likewise.
27342         * tests/unicase/test-u8-casefold.c: Likewise.
27343         * tests/unicase/test-u8-is-cased.c: Likewise.
27344         * tests/unicase/test-u8-is-casefolded.c: Likewise.
27345         * tests/unicase/test-u8-is-lowercase.c: Likewise.
27346         * tests/unicase/test-u8-is-titlecase.c: Likewise.
27347         * tests/unicase/test-u8-is-uppercase.c: Likewise.
27348         * tests/unicase/test-u8-tolower.c: Likewise.
27349         * tests/unicase/test-u8-totitle.c: Likewise.
27350         * tests/unicase/test-u8-toupper.c: Likewise.
27351         * tests/unicase/test-u16-casecmp.c: Likewise.
27352         * tests/unicase/test-u16-casecoll.c: Likewise.
27353         * tests/unicase/test-u16-casefold.c: Likewise.
27354         * tests/unicase/test-u16-is-cased.c: Likewise.
27355         * tests/unicase/test-u16-is-casefolded.c: Likewise.
27356         * tests/unicase/test-u16-is-lowercase.c: Likewise.
27357         * tests/unicase/test-u16-is-titlecase.c: Likewise.
27358         * tests/unicase/test-u16-is-uppercase.c: Likewise.
27359         * tests/unicase/test-u16-tolower.c: Likewise.
27360         * tests/unicase/test-u16-totitle.c: Likewise.
27361         * tests/unicase/test-u16-toupper.c: Likewise.
27362         * tests/unicase/test-u32-casecmp.c: Likewise.
27363         * tests/unicase/test-u32-casecoll.c: Likewise.
27364         * tests/unicase/test-u32-casefold.c: Likewise.
27365         * tests/unicase/test-u32-is-cased.c: Likewise.
27366         * tests/unicase/test-u32-is-casefolded.c: Likewise.
27367         * tests/unicase/test-u32-is-lowercase.c: Likewise.
27368         * tests/unicase/test-u32-is-titlecase.c: Likewise.
27369         * tests/unicase/test-u32-is-uppercase.c: Likewise.
27370         * tests/unicase/test-u32-tolower.c: Likewise.
27371         * tests/unicase/test-u32-totitle.c: Likewise.
27372         * tests/unicase/test-u32-toupper.c: Likewise.
27373         * tests/unicase/test-ulc-casecmp.c: Likewise.
27374         * tests/unicase/test-ulc-casecoll.c: Likewise.
27375         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27376         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27377         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27378         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27379         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27380         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27381         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27382         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27383         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27384         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27385         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27386         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27387         * tests/unictype/test-bidi_byname.c: Likewise.
27388         * tests/unictype/test-bidi_name.c: Likewise.
27389         * tests/unictype/test-bidi_of.c: Likewise.
27390         * tests/unictype/test-bidi_test.c: Likewise.
27391         * tests/unictype/test-block_list.c: Likewise.
27392         * tests/unictype/test-block_of.c: Likewise.
27393         * tests/unictype/test-block_test.c: Likewise.
27394         * tests/unictype/test-categ_and.c: Likewise.
27395         * tests/unictype/test-categ_and_not.c: Likewise.
27396         * tests/unictype/test-categ_byname.c: Likewise.
27397         * tests/unictype/test-categ_name.c: Likewise.
27398         * tests/unictype/test-categ_none.c: Likewise.
27399         * tests/unictype/test-categ_of.c: Likewise.
27400         * tests/unictype/test-categ_or.c: Likewise.
27401         * tests/unictype/test-categ_test_withtable.c: Likewise.
27402         * tests/unictype/test-combining.c: Likewise.
27403         * tests/unictype/test-decdigit.c: Likewise.
27404         * tests/unictype/test-digit.c: Likewise.
27405         * tests/unictype/test-mirror.c: Likewise.
27406         * tests/unictype/test-numeric.c: Likewise.
27407         * tests/unictype/test-pr_byname.c: Likewise.
27408         * tests/unictype/test-pr_test.c: Likewise.
27409         * tests/unictype/test-predicate-part1.h: Likewise.
27410         * tests/unictype/test-scripts.c: Likewise.
27411         * tests/unictype/test-sy_c_ident.c: Likewise.
27412         * tests/unictype/test-sy_java_ident.c: Likewise.
27413         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
27414         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
27415         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
27416         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
27417         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
27418         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
27419         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
27420         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
27421         * tests/uninorm/test-canonical-decomposition.c: Likewise.
27422         * tests/uninorm/test-compat-decomposition.c: Likewise.
27423         * tests/uninorm/test-composition.c: Likewise.
27424         * tests/uninorm/test-decomposing-form.c: Likewise.
27425         * tests/uninorm/test-decomposition.c: Likewise.
27426         * tests/uninorm/test-u8-nfc.c: Likewise.
27427         * tests/uninorm/test-u8-nfd.c: Likewise.
27428         * tests/uninorm/test-u8-nfkc.c: Likewise.
27429         * tests/uninorm/test-u8-nfkd.c: Likewise.
27430         * tests/uninorm/test-u8-normcmp.c: Likewise.
27431         * tests/uninorm/test-u8-normcoll.c: Likewise.
27432         * tests/uninorm/test-u16-nfc.c: Likewise.
27433         * tests/uninorm/test-u16-nfd.c: Likewise.
27434         * tests/uninorm/test-u16-nfkc.c: Likewise.
27435         * tests/uninorm/test-u16-nfkd.c: Likewise.
27436         * tests/uninorm/test-u16-normcmp.c: Likewise.
27437         * tests/uninorm/test-u16-normcoll.c: Likewise.
27438         * tests/uninorm/test-u32-nfc.c: Likewise.
27439         * tests/uninorm/test-u32-nfd.c: Likewise.
27440         * tests/uninorm/test-u32-nfkc.c: Likewise.
27441         * tests/uninorm/test-u32-nfkd.c: Likewise.
27442         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27443         * tests/uninorm/test-u32-normcmp.c: Likewise.
27444         * tests/uninorm/test-u32-normcoll.c: Likewise.
27445         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
27446         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27447         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27448         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27449         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27450         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27451         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27452         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27453         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27454         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27455         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27456         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27457         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27458         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27459         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27460         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27461         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27462         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27463         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27464         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27465         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27466         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27467         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27468         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27469         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27470         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27471         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27472         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27473         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27474         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
27475         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
27476         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
27477         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
27478         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27479         * tests/uniwidth/test-u8-width.c: Likewise.
27480         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27481         * tests/uniwidth/test-u16-width.c: Likewise.
27482         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27483         * tests/uniwidth/test-u32-width.c: Likewise.
27484         * tests/uniwidth/test-uc_width.c: Likewise.
27485         * tests/uniwidth/test-uc_width2.c: Likewise.
27486         * modules/acl-tests (Files): Add tests/macros.h.
27487         * modules/areadlink-tests (Files): Likewise.
27488         * modules/areadlink-with-size-tests (Files): Likewise.
27489         * modules/areadlinkat-tests (Files): Likewise.
27490         * modules/areadlinkat-with-size-tests (Files): Likewise.
27491         * modules/argmatch-tests (Files): Likewise.
27492         * modules/argv-iter-tests (Files): Likewise.
27493         * modules/array-list-tests (Files): Likewise.
27494         * modules/array-mergesort-tests (Files): Likewise.
27495         * modules/array-oset-tests (Files): Likewise.
27496         * modules/avltree-list-tests (Files): Likewise.
27497         * modules/avltree-oset-tests (Files): Likewise.
27498         * modules/avltreehash-list-tests (Files): Likewise.
27499         * modules/base64-tests (Files): Likewise.
27500         * modules/binary-io-tests (Files): Likewise.
27501         * modules/bitrotate-tests (Files): Likewise.
27502         * modules/btowc-tests (Files): Likewise.
27503         * modules/byteswap-tests (Files): Likewise.
27504         * modules/c-ctype-tests (Files): Likewise.
27505         * modules/c-stack-tests (Files): Likewise.
27506         * modules/c-strcase-tests (Files): Likewise.
27507         * modules/c-strcasestr-tests (Files): Likewise.
27508         * modules/c-strstr-tests (Files): Likewise.
27509         * modules/canonicalize-lgpl-tests (Files): Likewise.
27510         * modules/canonicalize-tests (Files): Likewise.
27511         * modules/carray-list-tests (Files): Likewise.
27512         * modules/ceilf-tests (Files): Likewise.
27513         * modules/ceill-tests (Files): Likewise.
27514         * modules/chown-tests (Files): Likewise.
27515         * modules/cloexec-tests (Files): Likewise.
27516         * modules/copy-file-tests (Files): Likewise.
27517         * modules/count-one-bits-tests (Files): Likewise.
27518         * modules/dprintf-posix-tests (Files): Likewise.
27519         * modules/dup2-tests (Files): Likewise.
27520         * modules/dup3-tests (Files): Likewise.
27521         * modules/duplocale-tests (Files): Likewise.
27522         * modules/fbufmode-tests (Files): Likewise.
27523         * modules/fchdir-tests (Files): Likewise.
27524         * modules/fcntl-safer-tests (Files): Likewise.
27525         * modules/fcntl-tests (Files): Likewise.
27526         * modules/fdopendir-tests (Files): Likewise.
27527         * modules/fdutimensat-tests (Files): Likewise.
27528         * modules/fflush-tests (Files): Likewise.
27529         * modules/filevercmp-tests (Files): Likewise.
27530         * modules/flock-tests (Files): Likewise.
27531         * modules/floorf-tests (Files): Likewise.
27532         * modules/floorl-tests (Files): Likewise.
27533         * modules/fnmatch-tests (Files): Likewise.
27534         * modules/fopen-safer-tests (Files): Likewise.
27535         * modules/fopen-tests (Files): Likewise.
27536         * modules/fpending-tests (Files): Likewise.
27537         * modules/fprintf-posix-tests (Files): Likewise.
27538         * modules/fpurge-tests (Files): Likewise.
27539         * modules/freadable-tests (Files): Likewise.
27540         * modules/freadahead-tests (Files): Likewise.
27541         * modules/freading-tests (Files): Likewise.
27542         * modules/freadptr-tests (Files): Likewise.
27543         * modules/freadseek-tests (Files): Likewise.
27544         * modules/freopen-tests (Files): Likewise.
27545         * modules/frexp-nolibm-tests (Files): Likewise.
27546         * modules/frexp-tests (Files): Likewise.
27547         * modules/frexpl-nolibm-tests (Files): Likewise.
27548         * modules/frexpl-tests (Files): Likewise.
27549         * modules/fseek-tests (Files): Likewise.
27550         * modules/fseeko-tests (Files): Likewise.
27551         * modules/fstrcmp-tests (Files): Likewise.
27552         * modules/fsync-tests (Files): Likewise.
27553         * modules/ftell-tests (Files): Likewise.
27554         * modules/ftello-tests (Files): Likewise.
27555         * modules/func-tests (Files): Likewise.
27556         * modules/futimens-tests (Files): Likewise.
27557         * modules/fwritable-tests (Files): Likewise.
27558         * modules/fwriting-tests (Files): Likewise.
27559         * modules/getcwd-tests (Files): Likewise.
27560         * modules/getdate-tests (Files): Likewise.
27561         * modules/getdelim-tests (Files): Likewise.
27562         * modules/getdtablesize-tests (Files): Likewise.
27563         * modules/getgroups-tests (Files): Likewise.
27564         * modules/getline-tests (Files): Likewise.
27565         * modules/getndelim2-tests (Files): Likewise.
27566         * modules/glob-tests (Files): Likewise.
27567         * modules/hash-tests (Files): Likewise.
27568         * modules/i-ring-tests (Files): Likewise.
27569         * modules/iconv-tests (Files): Likewise.
27570         * modules/iconv_open-utf-tests (Files): Likewise.
27571         * modules/idpriv-drop-tests (Files): Likewise.
27572         * modules/idpriv-droptemp-tests (Files): Likewise.
27573         * modules/inet_ntop-tests (Files): Likewise.
27574         * modules/inet_pton-tests (Files): Likewise.
27575         * modules/isblank-tests (Files): Likewise.
27576         * modules/isfinite-tests (Files): Likewise.
27577         * modules/isinf-tests (Files): Likewise.
27578         * modules/isnan-tests (Files): Likewise.
27579         * modules/isnand-nolibm-tests (Files): Likewise.
27580         * modules/isnand-tests (Files): Likewise.
27581         * modules/isnanf-nolibm-tests (Files): Likewise.
27582         * modules/isnanf-tests (Files): Likewise.
27583         * modules/isnanl-nolibm-tests (Files): Likewise.
27584         * modules/isnanl-tests (Files): Likewise.
27585         * modules/lchown-tests (Files): Likewise.
27586         * modules/ldexpl-tests (Files): Likewise.
27587         * modules/link-tests (Files): Likewise.
27588         * modules/linkat-tests (Files): Likewise.
27589         * modules/linked-list-tests (Files): Likewise.
27590         * modules/linkedhash-list-tests (Files): Likewise.
27591         * modules/localename-tests (Files): Likewise.
27592         * modules/lseek-tests (Files): Likewise.
27593         * modules/lstat-tests (Files): Likewise.
27594         * modules/mbmemcasecmp-tests (Files): Likewise.
27595         * modules/mbmemcasecoll-tests (Files): Likewise.
27596         * modules/mbrtowc-tests (Files): Likewise.
27597         * modules/mbscasecmp-tests (Files): Likewise.
27598         * modules/mbscasestr-tests (Files): Likewise.
27599         * modules/mbschr-tests (Files): Likewise.
27600         * modules/mbscspn-tests (Files): Likewise.
27601         * modules/mbsinit-tests (Files): Likewise.
27602         * modules/mbsncasecmp-tests (Files): Likewise.
27603         * modules/mbsnrtowcs-tests (Files): Likewise.
27604         * modules/mbspbrk-tests (Files): Likewise.
27605         * modules/mbspcasecmp-tests (Files): Likewise.
27606         * modules/mbsrchr-tests (Files): Likewise.
27607         * modules/mbsrtowcs-tests (Files): Likewise.
27608         * modules/mbsspn-tests (Files): Likewise.
27609         * modules/mbsstr-tests (Files): Likewise.
27610         * modules/memchr-tests (Files): Likewise.
27611         * modules/memchr2-tests (Files): Likewise.
27612         * modules/memcmp-tests (Files): Likewise.
27613         * modules/memmem-tests (Files): Likewise.
27614         * modules/memrchr-tests (Files): Likewise.
27615         * modules/mkdir-tests (Files): Likewise.
27616         * modules/mkfifo-tests (Files): Likewise.
27617         * modules/mkfifoat-tests (Files): Likewise.
27618         * modules/mknod-tests (Files): Likewise.
27619         * modules/nanosleep-tests (Files): Likewise.
27620         * modules/nl_langinfo-tests (Files): Likewise.
27621         * modules/obstack-printf-tests (Files): Likewise.
27622         * modules/open-tests (Files): Likewise.
27623         * modules/openat-tests (Files): Likewise.
27624         * modules/pipe-filter-gi-tests (Files): Likewise.
27625         * modules/pipe-filter-ii-tests (Files): Likewise.
27626         * modules/pipe2-tests (Files): Likewise.
27627         * modules/popen-safer-tests (Files): Likewise.
27628         * modules/popen-tests (Files): Likewise.
27629         * modules/posixtm-tests (Files): Likewise.
27630         * modules/pread-tests (Files): Likewise.
27631         * modules/printf-frexp-tests (Files): Likewise.
27632         * modules/printf-frexpl-tests (Files): Likewise.
27633         * modules/printf-posix-tests (Files): Likewise.
27634         * modules/priv-set-tests (Files): Likewise.
27635         * modules/quotearg-tests (Files): Likewise.
27636         * modules/random_r-tests (Files): Likewise.
27637         * modules/rawmemchr-tests (Files): Likewise.
27638         * modules/rbtree-list-tests (Files): Likewise.
27639         * modules/rbtree-oset-tests (Files): Likewise.
27640         * modules/rbtreehash-list-tests (Files): Likewise.
27641         * modules/readlink-tests (Files): Likewise.
27642         * modules/remove-tests (Files): Likewise.
27643         * modules/rename-tests (Files): Likewise.
27644         * modules/renameat-tests (Files): Likewise.
27645         * modules/rmdir-tests (Files): Likewise.
27646         * modules/round-tests (Files): Likewise.
27647         * modules/roundf-tests (Files): Likewise.
27648         * modules/roundl-tests (Files): Likewise.
27649         * modules/safe-alloc-tests (Files): Likewise.
27650         * modules/setenv-tests (Files): Likewise.
27651         * modules/sigaction-tests (Files): Likewise.
27652         * modules/signbit-tests (Files): Likewise.
27653         * modules/sleep-tests (Files): Likewise.
27654         * modules/snprintf-posix-tests (Files): Likewise.
27655         * modules/snprintf-tests (Files): Likewise.
27656         * modules/sprintf-posix-tests (Files): Likewise.
27657         * modules/stat-tests (Files): Likewise.
27658         * modules/stat-time-tests (Files): Likewise.
27659         * modules/strcasestr-tests (Files): Likewise.
27660         * modules/strchrnul-tests (Files): Likewise.
27661         * modules/strerror-tests (Files): Likewise.
27662         * modules/striconv-tests (Files): Likewise.
27663         * modules/striconveh-tests (Files): Likewise.
27664         * modules/striconveha-tests (Files): Likewise.
27665         * modules/strsignal-tests (Files): Likewise.
27666         * modules/strstr-tests (Files): Likewise.
27667         * modules/strtod-tests (Files): Likewise.
27668         * modules/strverscmp-tests (Files): Likewise.
27669         * modules/symlink-tests (Files): Likewise.
27670         * modules/symlinkat-tests (Files): Likewise.
27671         * modules/trunc-tests (Files): Likewise.
27672         * modules/truncf-tests (Files): Likewise.
27673         * modules/truncl-tests (Files): Likewise.
27674         * modules/uname-tests (Files): Likewise.
27675         * modules/unicase/cased-tests (Files): Likewise.
27676         * modules/unicase/ignorable-tests (Files): Likewise.
27677         * modules/unicase/locale-language-tests (Files): Likewise.
27678         * modules/unicase/tolower-tests (Files): Likewise.
27679         * modules/unicase/totitle-tests (Files): Likewise.
27680         * modules/unicase/toupper-tests (Files): Likewise.
27681         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27682         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27683         * modules/unicase/u8-casefold-tests (Files): Likewise.
27684         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27685         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27686         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27687         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27688         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27689         * modules/unicase/u8-tolower-tests (Files): Likewise.
27690         * modules/unicase/u8-totitle-tests (Files): Likewise.
27691         * modules/unicase/u8-toupper-tests (Files): Likewise.
27692         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27693         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27694         * modules/unicase/u16-casefold-tests (Files): Likewise.
27695         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27696         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27697         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27698         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27699         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27700         * modules/unicase/u16-tolower-tests (Files): Likewise.
27701         * modules/unicase/u16-totitle-tests (Files): Likewise.
27702         * modules/unicase/u16-toupper-tests (Files): Likewise.
27703         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27704         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27705         * modules/unicase/u32-casefold-tests (Files): Likewise.
27706         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27707         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27708         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27709         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27710         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27711         * modules/unicase/u32-tolower-tests (Files): Likewise.
27712         * modules/unicase/u32-totitle-tests (Files): Likewise.
27713         * modules/unicase/u32-toupper-tests (Files): Likewise.
27714         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27715         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27716         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27717         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27718         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27719         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27720         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27721         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27722         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27723         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27724         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27725         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27726         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27727         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27728         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27729         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27730         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27731         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27732         * modules/unictype/block-list-tests (Files): Likewise.
27733         * modules/unictype/block-of-tests (Files): Likewise.
27734         * modules/unictype/block-test-tests (Files): Likewise.
27735         * modules/unictype/category-C-tests (Files): Likewise.
27736         * modules/unictype/category-Cc-tests (Files): Likewise.
27737         * modules/unictype/category-Cf-tests (Files): Likewise.
27738         * modules/unictype/category-Cn-tests (Files): Likewise.
27739         * modules/unictype/category-Co-tests (Files): Likewise.
27740         * modules/unictype/category-Cs-tests (Files): Likewise.
27741         * modules/unictype/category-L-tests (Files): Likewise.
27742         * modules/unictype/category-Ll-tests (Files): Likewise.
27743         * modules/unictype/category-Lm-tests (Files): Likewise.
27744         * modules/unictype/category-Lo-tests (Files): Likewise.
27745         * modules/unictype/category-Lt-tests (Files): Likewise.
27746         * modules/unictype/category-Lu-tests (Files): Likewise.
27747         * modules/unictype/category-M-tests (Files): Likewise.
27748         * modules/unictype/category-Mc-tests (Files): Likewise.
27749         * modules/unictype/category-Me-tests (Files): Likewise.
27750         * modules/unictype/category-Mn-tests (Files): Likewise.
27751         * modules/unictype/category-N-tests (Files): Likewise.
27752         * modules/unictype/category-Nd-tests (Files): Likewise.
27753         * modules/unictype/category-Nl-tests (Files): Likewise.
27754         * modules/unictype/category-No-tests (Files): Likewise.
27755         * modules/unictype/category-P-tests (Files): Likewise.
27756         * modules/unictype/category-Pc-tests (Files): Likewise.
27757         * modules/unictype/category-Pd-tests (Files): Likewise.
27758         * modules/unictype/category-Pe-tests (Files): Likewise.
27759         * modules/unictype/category-Pf-tests (Files): Likewise.
27760         * modules/unictype/category-Pi-tests (Files): Likewise.
27761         * modules/unictype/category-Po-tests (Files): Likewise.
27762         * modules/unictype/category-Ps-tests (Files): Likewise.
27763         * modules/unictype/category-S-tests (Files): Likewise.
27764         * modules/unictype/category-Sc-tests (Files): Likewise.
27765         * modules/unictype/category-Sk-tests (Files): Likewise.
27766         * modules/unictype/category-Sm-tests (Files): Likewise.
27767         * modules/unictype/category-So-tests (Files): Likewise.
27768         * modules/unictype/category-Z-tests (Files): Likewise.
27769         * modules/unictype/category-Zl-tests (Files): Likewise.
27770         * modules/unictype/category-Zp-tests (Files): Likewise.
27771         * modules/unictype/category-Zs-tests (Files): Likewise.
27772         * modules/unictype/category-and-not-tests (Files): Likewise.
27773         * modules/unictype/category-and-tests (Files): Likewise.
27774         * modules/unictype/category-byname-tests (Files): Likewise.
27775         * modules/unictype/category-name-tests (Files): Likewise.
27776         * modules/unictype/category-none-tests (Files): Likewise.
27777         * modules/unictype/category-of-tests (Files): Likewise.
27778         * modules/unictype/category-or-tests (Files): Likewise.
27779         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27780         * modules/unictype/combining-class-tests (Files): Likewise.
27781         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27782         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27783         * modules/unictype/ctype-blank-tests (Files): Likewise.
27784         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27785         * modules/unictype/ctype-digit-tests (Files): Likewise.
27786         * modules/unictype/ctype-graph-tests (Files): Likewise.
27787         * modules/unictype/ctype-lower-tests (Files): Likewise.
27788         * modules/unictype/ctype-print-tests (Files): Likewise.
27789         * modules/unictype/ctype-punct-tests (Files): Likewise.
27790         * modules/unictype/ctype-space-tests (Files): Likewise.
27791         * modules/unictype/ctype-upper-tests (Files): Likewise.
27792         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27793         * modules/unictype/decimal-digit-tests (Files): Likewise.
27794         * modules/unictype/digit-tests (Files): Likewise.
27795         * modules/unictype/mirror-tests (Files): Likewise.
27796         * modules/unictype/numeric-tests (Files): Likewise.
27797         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27798         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27799         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27800         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27801         Likewise.
27802         * modules/unictype/property-bidi-block-separator-tests (Files):
27803         Likewise.
27804         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27805         Likewise.
27806         * modules/unictype/property-bidi-common-separator-tests (Files):
27807         Likewise.
27808         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27809         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27810         Likewise.
27811         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27812         Likewise.
27813         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27814         Likewise.
27815         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27816         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27817         Likewise.
27818         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27819         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27820         Likewise.
27821         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27822         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27823         * modules/unictype/property-bidi-segment-separator-tests (Files):
27824         Likewise.
27825         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27826         * modules/unictype/property-byname-tests (Files): Likewise.
27827         * modules/unictype/property-combining-tests (Files): Likewise.
27828         * modules/unictype/property-composite-tests (Files): Likewise.
27829         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27830         * modules/unictype/property-dash-tests (Files): Likewise.
27831         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27832         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27833         Likewise.
27834         * modules/unictype/property-deprecated-tests (Files): Likewise.
27835         * modules/unictype/property-diacritic-tests (Files): Likewise.
27836         * modules/unictype/property-extender-tests (Files): Likewise.
27837         * modules/unictype/property-format-control-tests (Files): Likewise.
27838         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27839         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27840         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27841         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27842         * modules/unictype/property-hyphen-tests (Files): Likewise.
27843         * modules/unictype/property-id-continue-tests (Files): Likewise.
27844         * modules/unictype/property-id-start-tests (Files): Likewise.
27845         * modules/unictype/property-ideographic-tests (Files): Likewise.
27846         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27847         * modules/unictype/property-ids-trinary-operator-tests (Files):
27848         Likewise.
27849         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27850         * modules/unictype/property-iso-control-tests (Files): Likewise.
27851         * modules/unictype/property-join-control-tests (Files): Likewise.
27852         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27853         * modules/unictype/property-line-separator-tests (Files): Likewise.
27854         * modules/unictype/property-logical-order-exception-tests (Files):
27855         Likewise.
27856         * modules/unictype/property-lowercase-tests (Files): Likewise.
27857         * modules/unictype/property-math-tests (Files): Likewise.
27858         * modules/unictype/property-non-break-tests (Files): Likewise.
27859         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27860         * modules/unictype/property-numeric-tests (Files): Likewise.
27861         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27862         * modules/unictype/property-other-default-ignorable-code-point-tests
27863         (Files): Likewise.
27864         * modules/unictype/property-other-grapheme-extend-tests (Files):
27865         Likewise.
27866         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27867         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27868         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27869         * modules/unictype/property-other-math-tests (Files): Likewise.
27870         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27871         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27872         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27873         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27874         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27875         * modules/unictype/property-private-use-tests (Files): Likewise.
27876         * modules/unictype/property-punctuation-tests (Files): Likewise.
27877         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27878         * modules/unictype/property-radical-tests (Files): Likewise.
27879         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27880         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27881         * modules/unictype/property-space-tests (Files): Likewise.
27882         * modules/unictype/property-terminal-punctuation-tests (Files):
27883         Likewise.
27884         * modules/unictype/property-test-tests (Files): Likewise.
27885         * modules/unictype/property-titlecase-tests (Files): Likewise.
27886         * modules/unictype/property-unassigned-code-value-tests (Files):
27887         Likewise.
27888         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27889         * modules/unictype/property-uppercase-tests (Files): Likewise.
27890         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27891         * modules/unictype/property-white-space-tests (Files): Likewise.
27892         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27893         * modules/unictype/property-xid-start-tests (Files): Likewise.
27894         * modules/unictype/property-zero-width-tests (Files): Likewise.
27895         * modules/unictype/scripts-tests (Files): Likewise.
27896         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27897         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27898         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27899         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27900         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27901         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27902         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27903         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27904         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27905         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27906         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27907         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27908         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27909         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27910         * modules/uninorm/composition-tests (Files): Likewise.
27911         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27912         * modules/uninorm/decomposition-tests (Files): Likewise.
27913         * modules/uninorm/filter-tests (Files): Likewise.
27914         * modules/uninorm/nfc-tests (Files): Likewise.
27915         * modules/uninorm/nfd-tests (Files): Likewise.
27916         * modules/uninorm/nfkc-tests (Files): Likewise.
27917         * modules/uninorm/nfkd-tests (Files): Likewise.
27918         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27919         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27920         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27921         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27922         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27923         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27924         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27925         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27926         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27927         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27928         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27929         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27930         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27931         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27932         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27933         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27934         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27935         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27936         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27937         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27938         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27939         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27940         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27941         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27942         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27943         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27944         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27945         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27946         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27947         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27948         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27949         * modules/uniwidth/u8-width-tests (Files): Likewise.
27950         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27951         * modules/uniwidth/u16-width-tests (Files): Likewise.
27952         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27953         * modules/uniwidth/u32-width-tests (Files): Likewise.
27954         * modules/uniwidth/width-tests (Files): Likewise.
27955         * modules/unlink-tests (Files): Likewise.
27956         * modules/unsetenv-tests (Files): Likewise.
27957         * modules/usleep-tests (Files): Likewise.
27958         * modules/utimens-tests (Files): Likewise.
27959         * modules/utimensat-tests (Files): Likewise.
27960         * modules/vasnprintf-posix-tests (Files): Likewise.
27961         * modules/vasnprintf-tests (Files): Likewise.
27962         * modules/vasprintf-posix-tests (Files): Likewise.
27963         * modules/vasprintf-tests (Files): Likewise.
27964         * modules/vdprintf-posix-tests (Files): Likewise.
27965         * modules/vfprintf-posix-tests (Files): Likewise.
27966         * modules/vprintf-posix-tests (Files): Likewise.
27967         * modules/vsnprintf-posix-tests (Files): Likewise.
27968         * modules/vsnprintf-tests (Files): Likewise.
27969         * modules/vsprintf-posix-tests (Files): Likewise.
27970         * modules/wcrtomb-tests (Files): Likewise.
27971         * modules/wcsnrtombs-tests (Files): Likewise.
27972         * modules/wcsrtombs-tests (Files): Likewise.
27973         * modules/wctype-tests (Files): Likewise.
27974         * modules/wcwidth-tests (Files): Likewise.
27975         * modules/xmemdup0-tests (Files): Likewise.
27976         * modules/xprintf-posix-tests (Files): Likewise.
27977         * modules/xvasprintf-tests (Files): Likewise.
27978
27979 2009-12-24  Eric Blake  <ebb9@byu.net>
27980
27981         test-nanosleep: fix typo
27982         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27983         patch.
27984         Reported by Bruno Haible.
27985
27986 2009-12-24  Bruno Haible  <bruno@clisp.org>
27987
27988         Reduce namespace pollution on glibc systems.
27989         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27990         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27991         systems.
27992         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27993         <getopt.h> on glibc systems.
27994         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27995         systems.
27996         * lib/fcntl.c: Include <unistd.h> here instead.
27997
27998 2009-12-24  Bruno Haible  <bruno@clisp.org>
27999
28000         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28001
28002 2009-12-24  Eric Blake  <ebb9@byu.net>
28003
28004         tests: add signature checks
28005         * tests/signature.h (SIGNATURE_CHECK): New file.
28006         * modules/atexit-tests (Files): Use it.
28007         * modules/btowc-tests (Files): Likewise.
28008         * modules/canonicalize-lgpl-tests (Files): Likewise.
28009         * modules/ceilf-tests (Files): Likewise.
28010         * modules/ceill-tests (Files): Likewise.
28011         * modules/chown-tests (Files): Likewise.
28012         * modules/dprintf-posix-tests (Files): Likewise.
28013         * modules/dup2-tests (Files): Likewise.
28014         * modules/dup3-tests (Files): Likewise.
28015         * modules/duplocale-tests (Files): Likewise.
28016         * modules/fchdir-tests (Files): Likewise.
28017         * modules/fcntl-tests (Files): Likewise.
28018         * modules/fdopendir-tests (Files): Likewise.
28019         * modules/fflush-tests (Files): Likewise.
28020         * modules/flock-tests (Files): Likewise.
28021         * modules/floorf-tests (Files): Likewise.
28022         * modules/floorl-tests (Files): Likewise.
28023         * modules/fnmatch-tests (Files): Likewise.
28024         * modules/fopen-tests (Files): Likewise.
28025         * modules/fprintf-posix-tests (Files): Likewise.
28026         * modules/freopen-tests (Files): Likewise.
28027         * modules/frexp-nolibm-tests (Files): Likewise.
28028         * modules/frexp-tests (Files): Likewise.
28029         * modules/frexpl-nolibm-tests (Files): Likewise.
28030         * modules/frexpl-tests (Files): Likewise.
28031         * modules/fseek-tests (Files): Likewise.
28032         * modules/fseeko-tests (Files): Likewise.
28033         * modules/fsync-tests (Files): Likewise.
28034         * modules/ftell-tests (Files): Likewise.
28035         * modules/ftello-tests (Files): Likewise.
28036         * modules/futimens-tests (Files): Likewise.
28037         * modules/getaddrinfo-tests (Files): Likewise.
28038         * modules/getcwd-tests (Files): Likewise.
28039         * modules/getdelim-tests (Files): Likewise.
28040         * modules/getdtablesize-tests (Files): Likewise.
28041         * modules/getgroups-tests (Files): Likewise.
28042         * modules/gethostname-tests (Files): Likewise.
28043         * modules/getline-tests (Files): Likewise.
28044         * modules/getopt-posix-tests (Files): Likewise.
28045         * modules/gettimeofday-tests (Files): Likewise.
28046         * modules/glob-tests (Files): Likewise.
28047         * modules/iconv-tests (Files): Likewise.
28048         * modules/inet_ntop-tests (Files): Likewise.
28049         * modules/inet_pton-tests (Files): Likewise.
28050         * modules/isblank-tests (Files): Likewise.
28051         * modules/lchown-tests (Files): Likewise.
28052         * modules/ldexpl-tests (Files): Likewise.
28053         * modules/link-tests (Files): Likewise.
28054         * modules/linkat-tests (Files): Likewise.
28055         * modules/lseek-tests (Files): Likewise.
28056         * modules/lstat-tests (Files): Likewise.
28057         * modules/mbrtowc-tests (Files): Likewise.
28058         * modules/mbsinit-tests (Files): Likewise.
28059         * modules/mbsnrtowcs-tests (Files): Likewise.
28060         * modules/mbsrtowcs-tests (Files): Likewise.
28061         * modules/memchr-tests (Files): Likewise.
28062         * modules/memcmp-tests (Files): Likewise.
28063         * modules/memmem-tests (Files): Likewise.
28064         * modules/memrchr-tests (Files): Likewise.
28065         * modules/mkdir-tests (Files): Likewise.
28066         * modules/mkfifo-tests (Files): Likewise.
28067         * modules/mkfifoat-tests (Files): Likewise.
28068         * modules/mknod-tests (Files): Likewise.
28069         * modules/nanosleep-tests (Files): Likewise.
28070         * modules/nl_langinfo-tests (Files): Likewise.
28071         * modules/obstack-printf-tests (Files): Likewise.
28072         * modules/open-tests (Files): Likewise.
28073         * modules/openat-tests (Files): Likewise.
28074         * modules/perror-tests (Files): Likewise.
28075         * modules/pipe2-tests (Files): Likewise.
28076         * modules/poll-tests (Files): Likewise.
28077         * modules/popen-tests (Files): Likewise.
28078         * modules/posix_spawn-tests (Files): Likewise.
28079         * modules/posix_spawnp-tests (Files): Likewise.
28080         * modules/pread-tests (Files): Likewise.
28081         * modules/printf-posix-tests (Files): Likewise.
28082         * modules/pty-tests (Files): Likewise.
28083         * modules/random_r-tests (Files): Likewise.
28084         * modules/rawmemchr-tests (Files): Likewise.
28085         * modules/readlink-tests (Files): Likewise.
28086         * modules/remove-tests (Files): Likewise.
28087         * modules/rename-tests (Files): Likewise.
28088         * modules/renameat-tests (Files): Likewise.
28089         * modules/rmdir-tests (Files): Likewise.
28090         * modules/round-tests (Files): Likewise.
28091         * modules/roundf-tests (Files): Likewise.
28092         * modules/roundl-tests (Files): Likewise.
28093         * modules/select-tests (Files): Likewise.
28094         * modules/setenv-tests (Files): Likewise.
28095         * modules/sigaction-tests (Files): Likewise.
28096         * modules/sleep-tests (Files): Likewise.
28097         * modules/snprintf-posix-tests (Files): Likewise.
28098         * modules/snprintf-tests (Files): Likewise.
28099         * modules/sprintf-posix-tests (Files): Likewise.
28100         * modules/stat-tests (Files): Likewise.
28101         * modules/strcasestr-tests (Files): Likewise.
28102         * modules/strchrnul-tests (Files): Likewise.
28103         * modules/strerror-tests (Files): Likewise.
28104         * modules/strsignal-tests (Files): Likewise.
28105         * modules/strstr-tests (Files): Likewise.
28106         * modules/strtod-tests (Files): Likewise.
28107         * modules/strverscmp-tests (Files): Likewise.
28108         * modules/symlink-tests (Files): Likewise.
28109         * modules/symlinkat-tests (Files): Likewise.
28110         * modules/times-tests (Files): Likewise.
28111         * modules/trunc-tests (Files): Likewise.
28112         * modules/truncf-tests (Files): Likewise.
28113         * modules/truncl-tests (Files): Likewise.
28114         * modules/tsearch-tests (Files): Likewise.
28115         * modules/uname-tests (Files): Likewise.
28116         * modules/unlink-tests (Files): Likewise.
28117         * modules/unsetenv-tests (Files): Likewise.
28118         * modules/usleep-tests (Files): Likewise.
28119         * modules/utimensat-tests (Files): Likewise.
28120         * modules/vasprintf-tests (Files): Likewise.
28121         * modules/vdprintf-posix-tests (Files): Likewise.
28122         * modules/vfprintf-posix-tests (Files): Likewise.
28123         * modules/vprintf-posix-tests (Files): Likewise.
28124         * modules/vsnprintf-posix-tests (Files): Likewise.
28125         * modules/vsnprintf-tests (Files): Likewise.
28126         * modules/vsprintf-posix-tests (Files): Likewise.
28127         * modules/wcrtomb-tests (Files): Likewise.
28128         * modules/wcsnrtombs-tests (Files): Likewise.
28129         * modules/wcsrtombs-tests (Files): Likewise.
28130         * modules/wcwidth-tests (Files): Likewise.
28131         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
28132         * tests/test-isinf.c (isinf): Likewise.
28133         * tests/test-isnan.c (isnan): Likewise.
28134         * tests/test-signbit.c (signbit): Likewise.
28135         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
28136         declaration, either as macro or with correct signature.
28137         (select): Ensure function under test is declared with correct
28138         signature in correct header.
28139         * tests/test-atexit.c (atexit): Likewise.
28140         * tests/test-btowc.c (btowc): Likewise.
28141         * tests/test-canonicalize-lgpl.c (realpath)
28142         (canonicalize_file_name): Likewise.
28143         * tests/test-ceilf1.c (ceilf): Likewise.
28144         * tests/test-ceill.c (ceill): Likewise.
28145         * tests/test-chown.c (chown): Likewise.
28146         * tests/test-dprintf-posix.c (dprintf): Likewise.
28147         * tests/test-dup2.c (dup2): Likewise.
28148         * tests/test-dup3.c (dup3): Likewise.
28149         * tests/test-duplocale.c (duplocale): Likewise.
28150         * tests/test-fchdir.c (fchdir): Likewise.
28151         * tests/test-fchownat.c (fchownat): Likewise.
28152         * tests/test-fcntl.c (fcntl): Likewise.
28153         * tests/test-fdopendir.c (fdopendir): Likewise.
28154         * tests/test-fflush.c (fflush): Likewise.
28155         * tests/test-flock.c (flock): Likewise.
28156         * tests/test-floorf1.c (floorf): Likewise.
28157         * tests/test-floorl.c (floorl): Likewise.
28158         * tests/test-fnmatch.c (fnmatch): Likewise.
28159         * tests/test-fopen.c (fopen): Likewise.
28160         * tests/test-fprintf-posix.c (fprintf): Likewise.
28161         * tests/test-freopen.c (freopen): Likewise.
28162         * tests/test-frexp.c (frexp): Likewise.
28163         * tests/test-frexpl.c (frexpl): Likewise.
28164         * tests/test-fseek.c (fseek): Likewise.
28165         * tests/test-fseeko.c (fseeko): Likewise.
28166         * tests/test-fstatat.c (fstatat): Likewise.
28167         * tests/test-fsync.c (fsync): Likewise.
28168         * tests/test-ftell.c (ftell): Likewise.
28169         * tests/test-ftello.c (ftello): Likewise.
28170         * tests/test-futimens.c (futimens): Likewise.
28171         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
28172         (gai_strerror): Likewise.
28173         * tests/test-getcwd.c (getcwd): Likewise.
28174         * tests/test-getdelim.c (getdelim): Likewise.
28175         * tests/test-getdtablesize.c (getdtablesize): Likewise.
28176         * tests/test-getgroups.c (getgroups): Likewise.
28177         * tests/test-gethostname.c (gethostname): Likewise.
28178         * tests/test-getline.c (getline): Likewise.
28179         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
28180         Likewise.
28181         * tests/test-gettimeofday.c (gettimeofday): Likewise.
28182         * tests/test-glob.c (glob, globfree): Likewise.
28183         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
28184         * tests/test-inet_ntop.c (inet_ntop): Likewise.
28185         * tests/test-inet_pton.c (inet_pton): Likewise.
28186         * tests/test-isblank.c (isblank): Likewise.
28187         * tests/test-lchown.c (lchown): Likewise.
28188         * tests/test-ldexpl.c (ldexpl): Likewise.
28189         * tests/test-link.c (link): Likewise.
28190         * tests/test-linkat.c (linkat): Likewise.
28191         * tests/test-lseek.c (lseek): Likewise.
28192         * tests/test-lstat.c (lstat): Likewise.
28193         * tests/test-mbrtowc.c (mbrtowc): Likewise.
28194         * tests/test-mbsinit.c (mbsinit): Likewise.
28195         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
28196         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
28197         * tests/test-memchr.c (memchr): Likewise.
28198         * tests/test-memcmp.c (memcmp): Likewise.
28199         * tests/test-memmem.c (memmem): Likewise.
28200         * tests/test-memrchr.c (memrchr): Likewise.
28201         * tests/test-mkdir.c (mkdir): Likewise.
28202         * tests/test-mkdirat.c (mkdirat): Likewise.
28203         * tests/test-mkfifo.c (mkfifo): Likewise.
28204         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
28205         * tests/test-mknod.c (mknod): Likewise.
28206         * tests/test-nanosleep.c (nanosleep): Likewise.
28207         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
28208         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
28209         Likewise.
28210         * tests/test-open.c (open): Likewise.
28211         * tests/test-openat.c (openat): Likewise.
28212         * tests/test-perror.c (perror): Likewise.
28213         * tests/test-pipe2.c (pipe2): Likewise.
28214         * tests/test-poll.c (poll): Likewise.
28215         * tests/test-popen.c (popen, pclose): Likewise.
28216         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
28217         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
28218         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
28219         (posix_spawn_file_actions_destroy)
28220         (posix_spawn_file_actions_addclose)
28221         (posix_spawn_file_actions_addopen)
28222         (posix_spawn_file_actions_adddup2): Likewise.
28223         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
28224         * tests/test-pread.c (pread): Likewise.
28225         * tests/test-printf-posix.c (printf): Likewise.
28226         * tests/test-pty.c (openpty, forkpty): Likewise.
28227         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
28228         (random_r): Likewise.
28229         * tests/test-rawmemchr.c (rawmemchr): Likewise.
28230         * tests/test-readlink.c (readlink): Likewise.
28231         * tests/test-remove.c (remove): Likewise.
28232         * tests/test-rename.c (rename): Likewise.
28233         * tests/test-renameat.c (renameat): Likewise.
28234         * tests/test-rmdir.c (rmdir): Likewise.
28235         * tests/test-round1.c (round): Likewise.
28236         * tests/test-roundf1.c (roundf): Likewise.
28237         * tests/test-roundl.c (roundl): Likewise.
28238         * tests/test-setenv.c (setenv): Likewise.
28239         * tests/test-sigaction.c (sigaction): Likewise.
28240         * tests/test-sleep.c (sleep): Likewise.
28241         * tests/test-snprintf.c (snprintf): Likewise.
28242         * tests/test-sprintf-posix.c (sprintf): Likewise.
28243         * tests/test-stat.c (stat): Likewise.
28244         * tests/test-stpncpy.c (stpncpy): Likewise.
28245         * tests/test-strcasestr.c (strcasestr): Likewise.
28246         * tests/test-strchrnul.c (strchrnul): Likewise.
28247         * tests/test-strerror.c (strerror): Likewise.
28248         * tests/test-strsignal.c (strsignal): Likewise.
28249         * tests/test-strstr.c (strstr): Likewise.
28250         * tests/test-strtod.c (strtod): Likewise.
28251         * tests/test-strverscmp.c (strverscmp): Likewise.
28252         * tests/test-symlink.c (symlink): Likewise.
28253         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
28254         * tests/test-times.c (times): Likewise.
28255         * tests/test-trunc1.c (trunc): Likewise.
28256         * tests/test-truncf1.c (truncf): Likewise.
28257         * tests/test-truncl.c (truncl): Likewise.
28258         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
28259         Likewise.
28260         * tests/test-uname.c (uname): Likewise.
28261         * tests/test-unlink.c (unlink): Likewise.
28262         * tests/test-unlinkat.c (unlinkat): Likewise.
28263         * tests/test-unsetenv.c (unsetenv): Likewise.
28264         * tests/test-usleep.c (usleep): Likewise.
28265         * tests/test-utimensat.c (utimensat): Likewise.
28266         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
28267         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
28268         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
28269         * tests/test-vprintf-posix.c (vprintf): Likewise.
28270         * tests/test-vsnprintf.c (vsnprintf): Likewise.
28271         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
28272         * tests/test-wcrtomb.c (wcrtomb): Likewise.
28273         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
28274         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
28275         * tests/test-wcwidth.c (wcwidth): Likewise.
28276
28277         build: pull in conditional headers during GNULIB_POSIXCHECK
28278         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
28279         definitions from any conditionally-included headers.
28280         * lib/stdlib.in.h (includes): Likewise.
28281         * lib/unistd.in.h (includes): Likewise.
28282
28283 2009-12-24  Bruno Haible  <bruno@clisp.org>
28284
28285         * tests/test-argv-iter.c: Include header file being tested immediately
28286         after config.h.
28287         * tests/test-base64.c: Likewise.
28288         * tests/test-flock.c: Likewise.
28289         * tests/test-fsync.c: Likewise.
28290         * tests/test-getdate.c: Likewise.
28291         * tests/test-getndelim2.c: Likewise.
28292         * tests/test-isfinite.c: Likewise.
28293         * tests/test-isinf.c: Likewise.
28294         * tests/test-strerror.c: Likewise.
28295         * tests/test-strsignal.c: Likewise.
28296
28297 2009-12-23  Eric Blake  <ebb9@byu.net>
28298
28299         unistd: work around cygwin bug
28300         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
28301         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28302         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28303
28304 2009-12-23  Bruno Haible  <bruno@clisp.org>
28305
28306         localename: More tests.
28307         * tests/test-localename.c (SIZEOF): New macro.
28308         (categories): New variable.
28309         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
28310         test_locale_name_default): Add test w.r.t. thread locale.
28311         (test_locale_name_thread): New function.
28312         (main): Invoke it.
28313
28314         localename: Make aware of thread locale.
28315         * lib/localename.h (gl_locale_name_thread): New declaration.
28316         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
28317         behaviour with respect to thread locale.
28318         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
28319         <langinfo.h>, glthread/lock.h.
28320         (SIZE_BITS): New macro.
28321         (string_hash): New function.
28322         (struct hash_node): New type.
28323         (HASH_TABLE_SIZE): New macro.
28324         (struniq_hash_table, struniq_lock): New variables.
28325         (struniq): New function.
28326         (gl_locale_name_thread): New function.
28327         (gl_locale_name): Invoke it.
28328         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
28329         * modules/localename (Depends-on): Add lock.
28330         Reported by Mike Gran <spk121@yahoo.com>.
28331
28332 2009-12-23  Eric Blake  <ebb9@byu.net>
28333
28334         va-args: new module
28335         * modules/va-args: New file.
28336         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
28337         * MODULES.html.sh (Core language properties): Mention it.
28338
28339         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
28340         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
28341         named alias for __attribute__((__unused__)).
28342         * lib/chown.c: Update client.
28343         * lib/fchmodat.c: Likewise.
28344         * lib/fts.c: Likewise.
28345         * lib/getdate.y: Likewise.
28346         * lib/getgroups.c: Likewise.
28347         * lib/getopt.c: Likewise.
28348         * lib/getugroups.c: Likewise.
28349         * lib/mkdir.c: Likewise.
28350         * lib/mkfifo.c: Likewise.
28351         * lib/mkfifoat.c: Likewise.
28352         * lib/mknod.c: Likewise.
28353         * lib/mknodat.c: Likewise.
28354         * lib/readlink.c: Likewise.
28355         * lib/se-context.in.h: Likewise.
28356         * lib/se-selinux.in.h: Likewise.
28357         * lib/sockets.c: Likewise.
28358         * lib/symlink.c: Likewise.
28359         * lib/symlinkat.c: Likewise.
28360         * lib/unicodeio.c: Likewise.
28361         * lib/unistr.h: Likewise.
28362         * tests/test-areadlink.c: Likewise.
28363         * tests/test-areadlinkat.c: Likewise.
28364         * tests/test-filenamecat.c: Likewise.
28365         * tests/test-fseeko.c: Likewise.
28366         * tests/test-ftello.c: Likewise.
28367         * tests/test-getdate.c: Likewise.
28368         * tests/test-getgroups.c: Likewise.
28369         * tests/test-gethostname.c: Likewise.
28370         * tests/test-quotearg.c: Likewise.
28371         * tests/test-version-etc.c: Likewise.
28372         * tests/test-xalloc-die.c: Likewise.
28373         * tests/test-xfprintf-posix.c: Likewise.
28374         * tests/test-xprintf-posix.c: Likewise.
28375         * tests/test-xvasprintf.c: Likewise.
28376
28377         tests: avoid compiler warnings
28378         * tests/test-fcntl.c (main): Delete unused parameters.
28379         * tests/test-freopen-safer.c (main): Likewise.
28380         * tests/test-xalloc-die.c (main): Mark unused parameters.
28381         * tests/test-fseeko.c (main): Likewise.
28382         * tests/test-ftello.c (main): Likewise.
28383         * tests/test-nanosleep.c (main): Avoid declaration warning.
28384         * tests/test-sleep.c (main): Likewise.
28385         * tests/test-unsetenv.c (main): Silence warning about string
28386         literal.
28387         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28388
28389 2009-12-23  Bruno Haible  <bruno@clisp.org>
28390
28391         * tests/test-localename.c (test_locale_name): New function, extracted
28392         from main. Also test mixed situations.
28393         (test_locale_name_posix, test_locale_name_environ,
28394         test_locale_name_default): New functions.
28395         (main): Invoke them all.
28396         * modules/localename-tests (configure.ac): Test for newlocale.
28397
28398 2009-12-23  Bruno Haible  <bruno@clisp.org>
28399
28400         unistd: Ensure getcwd gets declared before being overridden.
28401         * lib/unistd.in.h: Conditionally include <io.h>.
28402
28403 2009-12-22  Bruno Haible  <bruno@clisp.org>
28404
28405         wchar: Diagnose broken combination of glibc and gcc versions and flags.
28406         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
28407         (gl_WCHAR_H): Invoke it.
28408         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
28409         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
28410         Reported by Karl Berry <karl@freefriends.org>.
28411
28412 2009-12-22  Eric Blake  <ebb9@byu.net>
28413
28414         math, unistd: avoid redundant includes
28415         * lib/math.in.h (isnan): No need to re-include <math.h>.
28416         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
28417
28418         getsubopt: work around cygwin bug
28419         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
28420         avoid conflicting with system getsubopt.
28421         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
28422         bug.
28423
28424         getopt: synchronize from glibc
28425         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
28426         parameter order.  Adjust all callers.
28427         (_getopt_internal_r, main): Adjust quoting in error messages.
28428         Drop considerations for outdated POSIX 1003.2 error message.
28429         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
28430         callers.
28431         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
28432
28433         test-getopt: test stderr behavior
28434         * modules/getopt-posix-tests (Depends-on): Add dup2.
28435         * tests/test-getopt.c (ASSERT): Avoid stderr.
28436         (main): Move stderr to a temporary file.
28437         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
28438         Instead, add parameter to inform caller if output occurred.
28439         (test_getopt): Adjust all existing tests to expect silence, and
28440         add new tests of leading ":".
28441         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28442         glibc shortcomings with leading "-:" or "+:" in optstring.
28443         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28444         Likewise.
28445         * doc/posix-functions/getopt.texi (getopt): Likewise.
28446
28447         test-getopt: enhance test
28448         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
28449         supports optind=0.
28450         * tests/test-getopt.c (OPTIND_MIN): Move...
28451         * tests/test-getopt.h (OPTIND_MIN): ...here.
28452         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
28453         Require that optind=0 works, since modern BSD supports it in
28454         addition to optreset, and since coreutils expects it.
28455         (test_getopt_long_only): New test.
28456         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
28457         glibc shortcomings with 'W;', and enforcement of optind=0.
28458         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28459         Likewise.
28460
28461 2009-12-21  Bruno Haible  <bruno@clisp.org>
28462
28463         localename: Improvements for MacOS X and Cygwin.
28464         * lib/localename.h (gl_locale_name_environ): New declaration.
28465         * lib/localename.c (gl_locale_name_environ): New function, extracted from
28466         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
28467         (gl_locale_name_posix): Invoke it.
28468         (gl_locale_name_default): Add comments. Use Windows native API also on
28469         Cygwin.
28470
28471 2009-12-21  Bruno Haible  <bruno@clisp.org>
28472
28473         Update list of Win32 locale ids.
28474         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
28475         (LANG_SAMI): Renamed from LANG_SAAMI.
28476         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
28477         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
28478         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
28479         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
28480         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
28481         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
28482         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
28483         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
28484         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
28485         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
28486         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
28487         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
28488         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
28489         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
28490         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
28491         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
28492         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
28493         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
28494         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
28495         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
28496         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
28497         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
28498         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
28499         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
28500         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
28501         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
28502         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
28503         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
28504         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
28505         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
28506         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
28507         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
28508         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
28509         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
28510         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
28511         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
28512         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
28513         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
28514         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
28515         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
28516         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
28517         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
28518         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
28519         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
28520         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
28521         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
28522         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
28523         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
28524         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
28525         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
28526         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
28527         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
28528         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
28529         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
28530         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
28531         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
28532         Add more languages and countries for Sami, Sorbian. Add more countries
28533         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
28534         for Pashto. Change country for Syriac, Tswana.
28535
28536 2009-12-21  Eric Blake  <ebb9@byu.net>
28537
28538         test-utimens: avoid spurious failure
28539         * tests/test-chown.h (nap): Factor...
28540         * tests/nap.h: ...into new file.
28541         * tests/test-lchown.h (nap): Avoid duplication.
28542         * tests/test-utimens-common.h (nap): Use shared implementation,
28543         necessary on file systems with 1-second resolution.
28544         * modules/chown-tests (Files): Include new file.
28545         * modules/fdutimensat-tests (Files): Likewise.
28546         * modules/futimens-tests (Files): Likewise.
28547         * modules/lchown-tests (Files): Likewise.
28548         * modules/openat-tests (Files): Likewise.
28549         * modules/utimens-tests (Files): Likewise.
28550         * modules/utimensat-tests (Files): Likewise.
28551
28552 2009-12-19  Eric Blake  <ebb9@byu.net>
28553
28554         futimens, utimensat: work around Linux bug
28555         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28556         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28557         * lib/utimensat.c (rpl_utimensat): Work around it.
28558         * lib/futimens.c (rpl_futimens): Adjust comment.
28559
28560         utimens: work around Linux ctime bug
28561         * lib/utimens.c (detect_ctime_bug): New helper function.
28562         (update_timespec): Differentiate between workaround needed for
28563         this bug vs. what is needed for systems that lack utimensat.
28564         (fdutimens, lutimens): Work around bug.
28565
28566         utimens: check for ctime update
28567         * tests/test-utimens-common.h (check_ctime): Define.
28568         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28569         * tests/test-futimens.h (test_futimens): Likewise.
28570         * tests/test-lutimens.h (test_lutimens): Likewise.
28571         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28572         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28573
28574 2009-12-19  Bruno Haible  <bruno@clisp.org>
28575
28576         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28577         * tests/test-dprintf-posix2.sh: New file.
28578         * tests/test-dprintf-posix2.c: New file.
28579         * modules/dprintf-posix-tests (Files): Add them.
28580         (configure.ac): Check for getrlimit and setrlimit.
28581         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28582
28583 2009-12-19  Bruno Haible  <bruno@clisp.org>
28584
28585         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28586         * tests/test-fprintf-posix3.sh: New file.
28587         * tests/test-fprintf-posix3.c: New file.
28588         * modules/fprintf-posix-tests (Files): Add them.
28589         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28590
28591 2009-12-19  Eric Blake  <ebb9@byu.net>
28592
28593         dirfd: fix prototype
28594         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28595         * lib/dirfd.c (dirfd): Likewise.
28596
28597         canonicalize: reduce memory usage
28598         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28599         allocation to size.
28600         Reported by Solar Designer <solar@openwall.com>.
28601
28602 2009-12-19  Bruno Haible  <bruno@clisp.org>
28603
28604         New module attribute 'Applicability'.
28605         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28606         * gnulib-tool: New option --extract-applicability.
28607         (func_usage): Document it.
28608         (sed_extract_prog): Recognize it.
28609         (func_get_applicability): New function.
28610         (func_import): Generalize handling of 'link-warning' module.
28611         * modules/link-warning (Applicability): New section.
28612         * modules/arg-nonnull (Applicability): New section.
28613         Repoted by Simon Josefsson <simon@josefsson.org>.
28614
28615 2009-12-19  Bruno Haible  <bruno@clisp.org>
28616
28617         fflush: tweak
28618         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28619         * lib/fseeko.c (rpl_fseeko): Likewise.
28620
28621 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28622
28623         * lib/gl_list.h: Fix typo in comment.
28624
28625 2009-12-16  Eric Blake  <ebb9@byu.net>
28626
28627         fcntl: use to simplify other modules
28628         * modules/cloexec (Depends-on): Add fcntl.
28629         * modules/fchdir (Depends-on): Likewise.
28630         * modules/fd-safer-flag (Depends-on): Likewise.
28631         * modules/unistd-safer (Depends-on): Likewise.
28632         * modules/dup3 (configure.ac): Set module indicator.
28633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28634         missing.
28635         * lib/fchdir.c (_gl_register_dup): Fix comment.
28636         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28637         * lib/dup-safer.c (dup_safer): Likewise.
28638         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28639         * lib/dup3.c (dup3): Likewise.
28640         * tests/test-fchdir.c (main): Enhance test.
28641         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28642
28643         fcntl: port portions of fcntl to mingw
28644         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28645         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28646         replacement for mingw.
28647         * modules/fcntl (Description): Update.
28648         (Depends-on): Add dup2.
28649         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28650         * modules/fcntl-h (Makefile.am): Substitute it.
28651         * lib/fcntl.in.h (fcntl): Update declaration.
28652         (F_DUPFD, F_GETFD): New macros, when needed.
28653         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28654         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28655         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28656         we now guarantee.
28657
28658         fcntl: work around cygwin bug in F_DUPFD
28659         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28660         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28661         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28662         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28663         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28664
28665         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28666         * modules/fcntl (Files): List new files.
28667         (configure.ac): Run a test.
28668         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28669         * lib/fcntl.c (rpl_fcntl): Likewise.
28670         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28671         (gl_FCNTL_H): Always replace fcntl.h.
28672         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28673         * lib/fcntl.in.h (fcntl): Declare replacement.
28674         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28675         needed, plus a witness.
28676         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28677         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28678         * tests/test-fcntl.c: New file.
28679         * modules/fcntl-tests: Likewise.
28680
28681         binary-io: avoid potential compilation warning
28682         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28683         directives.
28684
28685         fflush: avoid compilation error on NetBSD
28686         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28687         between off_t and fpos_t, since the latter is sometimes a struct.
28688         * lib/fseeko.c (rpl_fseeko): Likewise.
28689         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28690
28691 2009-12-15  Eric Blake  <ebb9@byu.net>
28692
28693         fcntl-h, stdio, sys_ioctl: fix declarations
28694         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28695         function must not take arguments.
28696         * lib/sys_ioctl.in.h (ioctl): Likewise.
28697         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28698         (open): Add a link warning.
28699
28700 2009-12-15  Jim Meyering  <meyering@redhat.com>
28701
28702         areadlink, areadlink-with-size: relax license to LGPLv2+
28703         * modules/areadlink (License): Relax to LGPLv2+.
28704         * modules/areadlink-with-size (License): Likewise.
28705
28706 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28707             Bruno Haible  <bruno@clisp.org>
28708
28709         *printf: Fix memory leak.
28710         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28711         * lib/vfprintf.c (vfprintf): Likewise.
28712         * lib/dprintf.c (dprintf): Likewise.
28713         * lib/vdprintf.c (vdprintf): Likewise.
28714
28715 2009-12-14  Eric Blake  <ebb9@byu.net>
28716
28717         accept4: adjust module dependencies
28718         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28719
28720         utimens: one more try at avoiding compiler warning
28721         * lib/utimens.c (lutimens): Lower scope of result.
28722
28723 2009-12-13  Bruno Haible  <bruno@clisp.org>
28724
28725         Move the malloc checking from module 'list' to new module 'xlist'.
28726         * modules/xlist: New file.
28727         * lib/gl_xlist.h: New file.
28728         * lib/gl_xlist.c: New file.
28729         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28730         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28731         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28732         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28733         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28734         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28735         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28736         gl_sortedlist_nx_add): New declarations.
28737         (struct gl_list_implementation): Rename and change methods accordingly.
28738         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28739         (gl_list_nx_create): Renamed from gl_list_create.
28740         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28741         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28742         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28743         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28744         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28745         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28746         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28747         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28748         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28749         gl_list_create_empty.
28750         (gl_list_nx_create): Renamed from gl_list_create.
28751         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28752         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28753         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28754         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28755         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28756         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28757         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28758         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28759         * lib/gl_array_list.c: Don't include xalloc.h.
28760         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28761         NULL upon out-of-memory.
28762         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28763         out-of-memory.
28764         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28765         Change return type to 'int'.
28766         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28767         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28768         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28769         upon out-of-memory.
28770         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28771         upon out-of-memory.
28772         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28773         upon out-of-memory.
28774         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28775         upon out-of-memory.
28776         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28777         out-of-memory.
28778         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28779         Update.
28780         (gl_array_list_implementation): Update.
28781         * lib/gl_carray_list.c: Don't include xalloc.h.
28782         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28783         Return NULL upon out-of-memory.
28784         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28785         out-of-memory.
28786         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28787         Change return type to 'int'.
28788         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28789         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28790         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28791         upon out-of-memory.
28792         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28793         upon out-of-memory.
28794         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28795         out-of-memory.
28796         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28797         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28798         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28799         Update.
28800         (gl_carray_list_implementation): Update.
28801         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28802         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28803         gl_linked_create_empty. Return NULL upon out-of-memory.
28804         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28805         out-of-memory.
28806         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28807         Change return type to 'int'. Return -1 upon out-of-memory.
28808         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28809         out-of-memory.
28810         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28811         upon out-of-memory.
28812         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28813         upon out-of-memory.
28814         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28815         NULL upon out-of-memory.
28816         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28817         upon out-of-memory.
28818         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28819         out-of-memory.
28820         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28821         Update.
28822         * lib/gl_linked_list.c: Don't include xalloc.h.
28823         (gl_linked_list_implementation): Update.
28824         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28825         (add_to_bucket): Change return type to 'int'.
28826         (gl_linkedhash_list_implementation): Update.
28827         * lib/gl_anytree_list1.h (free_subtree): New function.
28828         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28829         gl_tree_create_empty. Return NULL upon out-of-memory.
28830         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28831         Change return type to 'int'. Return -1 upon out-of-memory.
28832         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28833         out-of-memory.
28834         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28835         (gl_tree_remove_node): New function, moved here from
28836         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28837         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28838         Update.
28839         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28840         malloc, not xmalloc. Return NULL upon out-of-memory.
28841         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28842         out-of-memory.
28843         (gl_tree_remove_node_from_tree): New function, extracted from
28844         gl_tree_remove_node.
28845         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28846         upon out-of-memory.
28847         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28848         out-of-memory.
28849         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28850         upon out-of-memory.
28851         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28852         upon out-of-memory.
28853         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28854         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28855         not xmalloc. Return NULL upon out-of-memory.
28856         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28857         out-of-memory.
28858         (gl_tree_remove_node_from_tree): New function, extracted from
28859         gl_tree_remove_node.
28860         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28861         upon out-of-memory.
28862         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28863         out-of-memory.
28864         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28865         upon out-of-memory.
28866         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28867         upon out-of-memory.
28868         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28869         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28870         gl_anytree_list1.h before gl_anyavltree_list2.h.
28871         (gl_avltree_list_implementation): Update.
28872         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28873         gl_anytree_list1.h before gl_anyavltree_list2.h.
28874         (gl_rbtree_list_implementation): Update.
28875         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28876         Change return type to 'int'. Return -1 upon out-of-memory. Use
28877         __builtin_expect.
28878         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28879         (gl_avltreehash_list_implementation): Update.
28880         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28881         (gl_rbtreehash_list_implementation): Update.
28882         * modules/array-list (Depends-on): Remove xalloc.
28883         * modules/carray-list (Depends-on): Likewise.
28884         * modules/linked-list (Depends-on): Likewise.
28885         * modules/linkedhash-list (Depends-on): Likewise.
28886         * modules/avltree-list (Depends-on): Likewise.
28887         * modules/rbtree-list (Depends-on): Likewise.
28888         * modules/avltreehash-list (Depends-on): Likewise.
28889         * modules/rbtreehash-list (Depends-on): Likewise.
28890
28891         * modules/xsublist: New file.
28892         * lib/gl_xsublist.h: New file.
28893         * lib/gl_xsublist.c: New file.
28894         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28895         (gl_sublist_nx_create): New declaration.
28896         * lib/gl_sublist.c: Don't include xalloc.h.
28897         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28898         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28899         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28900         Change return type to 'int'. Return -1 upon out-of-memory.
28901         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28902         upon out-of-memory.
28903         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28904         NULL upon out-of-memory.
28905         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28906         upon out-of-memory.
28907         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28908         NULL upon out-of-memory.
28909         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28910         NULL upon out-of-memory.
28911         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28912         upon out-of-memory.
28913         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28914         (gl_sublist_list_implementation): Update.
28915         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28916         upon out-of-memory.
28917         * modules/sublist (Depends-on): Remove xalloc.
28918
28919         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28920         * tests/test-carray_list.c: Likewise.
28921         * tests/test-linked_list.c: Likewise.
28922         * tests/test-linkedhash_list.c: Likewise.
28923         * tests/test-avltree_list.c: Likewise.
28924         * tests/test-rbtree_list.c: Likewise.
28925         * tests/test-avltreehash_list.c: Likewise.
28926         * tests/test-rbtreehash_list.c: Likewise.
28927         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28928         * modules/carray-list-tests (Makefile.am): Likewise.
28929         * modules/linked-list-tests (Makefile.am): Likewise.
28930         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28931         * modules/avltree-list-tests (Makefile.am): Likewise.
28932         * modules/rbtree-list-tests (Makefile.am): Likewise.
28933         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28934         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28935
28936         * NEWS: Mention the changes.
28937
28938         * lib/clean-temp.c: Include gl_xlist.h.
28939         * modules/clean-temp (Depends-on): Add xlist.
28940
28941         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28942         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28943
28944         * tests/test-array_oset.c: Include gl_xlist.h.
28945         * modules/array-oset-tests (Depends-on): Add xlist.
28946
28947         Reported by José E. Marchesi <jemarch@gnu.org>.
28948
28949 2009-12-13  Bruno Haible  <bruno@clisp.org>
28950
28951         Move the malloc checking from module 'oset' to new module 'xoset'.
28952         * modules/xoset: New file.
28953         * lib/gl_xoset.h: New file.
28954         * lib/gl_xoset.c: New file.
28955         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28956         declarations.
28957         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28958         (struct gl_oset_implementation): Rename and change methods accordingly.
28959         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28960         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28961         'int'. Mark as __warn_unused_result__.
28962         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28963         gl_oset_create_empty.
28964         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28965         'int'.
28966         * lib/gl_array_oset.c: Don't include xalloc.h.
28967         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28968         malloc, not xmalloc.
28969         (grow): Change return type to 'int'. Don't call xalloc_die.
28970         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28971         to 'int'.
28972         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28973         'int'.
28974         (gl_array_oset_implementation): Update.
28975         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28976         gl_tree_create_empty.
28977         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28978         'int'.
28979         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28980         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28981         xmalloc.
28982         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28983         not xmalloc.
28984         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28985         xmalloc.
28986         (gl_avltree_oset_implementation): Update.
28987         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28988         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28989         xmalloc.
28990         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28991         not xmalloc.
28992         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28993         xmalloc.
28994         (gl_rbtree_oset_implementation): Update.
28995         * modules/array-oset (Depends-on): Remove xalloc.
28996         * modules/avltree-oset (Depends-on): Likewise.
28997         * modules/rbtree-oset (Depends-on): Likewise.
28998         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28999         * tests/test-avltree_oset.c: Likewise.
29000         * tests/test-rbtree_oset.c: Likewise.
29001         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29002         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29003         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29004         * NEWS: Mention the change.
29005
29006 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29007
29008         maint.mk: allow a project to override release-prep commands
29009         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29010         commands into a new rule.
29011         (release-prep): New rule.
29012         (release-prep-hook): New overridable variable.
29013
29014 2009-12-13  Bruno Haible  <bruno@clisp.org>
29015
29016         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29017
29018 2009-12-13  Jim Meyering  <meyering@redhat.com>
29019
29020         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29021         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
29022
29023 2009-12-12  Bruno Haible  <bruno@clisp.org>
29024
29025         duplocale: Tweak.
29026         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
29027
29028 2009-12-12  Karl Berry  <karl@gnu.org>
29029
29030         * config/srclist.txt (strtoll.c): tab changes, no more sync.
29031
29032 2009-12-12  Bruno Haible  <bruno@clisp.org>
29033
29034         * m4/po.m4: Undo incorrect untabification.
29035
29036 2009-12-12  Bruno Haible  <bruno@clisp.org>
29037
29038         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
29039         * modules/c-strtod (Depends-on): Add locale.
29040         * modules/c-strtold (Depends-on): Likewise.
29041
29042 2009-12-12  Bruno Haible  <bruno@clisp.org>
29043
29044         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
29045
29046 2009-12-11  Eric Blake  <ebb9@byu.net>
29047
29048         setenv: relax requirement in light of POSIX ruling
29049         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
29050         not NULL.
29051         * tests/test-setenv.c (main): Relax test.
29052         * tests/test-unsetenv.c (main): Likewise.
29053         * doc/posix-functions/setenv.texi (setenv): Document this.
29054         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29055
29056 2009-12-11  Bruno Haible  <bruno@clisp.org>
29057
29058         New module 'fd-safer-flag'.
29059         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29060         * lib/dup-safer.c (dup_safer_flag): Remove function.
29061         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29062         * lib/fd-safer.c (fd_safer_flag): Remove function.
29063         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29064         * modules/cloexec (configure.ac): Drop indicator macro.
29065         * modules/fd-safer-flag: New file.
29066         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29067         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29068         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29069
29070 2009-12-11  Bruno Haible  <bruno@clisp.org>
29071
29072         Tests for module 'nl_langinfo'.
29073         * modules/nl_langinfo-tests: New file.
29074         * tests/test-nl_langinfo.sh: New file.
29075         * tests/test-nl_langinfo.c: New file.
29076
29077         New module 'nl_langinfo'.
29078         * lib/nl_langinfo.c: New file.
29079         * m4/nl_langinfo.m4: New file.
29080         * modules/nl_langinfo: New file.
29081         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29082
29083 2009-12-11  Bruno Haible  <bruno@clisp.org>
29084
29085         Tests for module 'langinfo'.
29086         * modules/langinfo-tests: New file.
29087         * tests/test-langinfo.c: New file.
29088
29089         New module 'langinfo'.
29090         * lib/langinfo.in.h: New file.
29091         * m4/langinfo_h.m4: New file.
29092         * modules/langinfo: New file.
29093         * doc/posix-headers/langinfo.texi: Mention the new module.
29094
29095 2009-12-11  Bruno Haible  <bruno@clisp.org>
29096
29097         * lib/config.charset: Untabify.
29098
29099 2009-12-11  Bruno Haible  <bruno@clisp.org>
29100
29101         * modules/unistd-safer (configure.ac): Drop indicator macro.
29102
29103 2009-12-11  Bruno Haible  <bruno@clisp.org>
29104
29105         Move pipe2-safer code to its own file.
29106         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29107         * lib/pipe-safer.c (pipe2_safer): Remove function.
29108         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29109         (Makefile.am): Add it to lib_SOURCES.
29110
29111 2009-12-10  Bruno Haible  <bruno@clisp.org>
29112
29113         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29114
29115 2009-12-10  Bruno Haible  <bruno@clisp.org>
29116
29117         Declare which arguments expect non-NULL values, for GCC and clang.
29118         * build-aux/arg-nonnull.h: New file.
29119         * modules/arg-nonnull: New file.
29120         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29121         (inet_ntop, inet_pton): Use it.
29122         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
29123         (closedir, dirfd, opendir, scandir, alphasort): Use it.
29124         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
29125         (open, openat): Use it.
29126         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
29127         (fnmatch): Use it.
29128         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
29129         (getopt, getopt_long, getopt_long_only): Use it.
29130         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
29131         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
29132         Use it.
29133         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
29134         (iconv_open): Use it.
29135         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
29136         (strtoimax, strtoumax): Use it.
29137         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
29138         (duplocale): Use it.
29139         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
29140         (frexp, frexpl): Use it.
29141         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
29142         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
29143         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
29144         (tsearch, tfind, tdelete, twalk): Use it.
29145         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
29146         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29147         sigpending): Use it.
29148         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
29149         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29150         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29151         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29152         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29153         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29154         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29155         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29156         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29157         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29158         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29159         Use it.
29160         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
29161         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
29162         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
29163         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
29164         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
29165         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
29166         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
29167         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
29168         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
29169         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
29170         strtoull, unsetenv): Use it.
29171         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
29172         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29173         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29174         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
29175         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
29176         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
29177         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
29178         (strcasecmp, strncasecmp): Use it.
29179         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
29180         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
29181         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
29182         rpl_setsockopt): Use it.
29183         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
29184         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
29185         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
29186         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
29187         (gettimeofday): Use it.
29188         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
29189         (times): Use it.
29190         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
29191         (uname): Use it.
29192         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
29193         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
29194         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
29195         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
29196         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
29197         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
29198         unlinkat, write): Use it.
29199         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
29200         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
29201         * lib/argv-iter.h: Include arg-nonnull.h.
29202         (_ATTRIBUTE_NONNULL_): Remove macro.
29203         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
29204         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
29205         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
29206         optimization.
29207         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
29208         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
29209         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
29210         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
29211         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
29212         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
29213         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
29214         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
29215         * modules/arpa_inet (Depends-on): Add arg-nonnull.
29216         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
29217         * modules/dirent (Depends-on): Add arg-nonnull.
29218         (Makefile.am): Insert arg-nonnull.h into dirent.h.
29219         * modules/fcntl-h (Depends-on): Add arg-nonnull.
29220         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
29221         * modules/fnmatch (Depends-on): Add arg-nonnull.
29222         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
29223         * modules/getopt-posix (Depends-on): Add arg-nonnull.
29224         (Makefile.am): Insert arg-nonnull.h into getopt.h.
29225         * modules/glob (Depends-on): Add arg-nonnull.
29226         (Makefile.am): Insert arg-nonnull.h into glob.h.
29227         * modules/iconv_open (Depends-on): Add arg-nonnull.
29228         (Makefile.am): Insert arg-nonnull.h into iconv.h.
29229         * modules/inttypes (Depends-on): Add arg-nonnull.
29230         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
29231         * modules/locale (Depends-on): Add arg-nonnull.
29232         (Makefile.am): Insert arg-nonnull.h into locale.h.
29233         * modules/math (Depends-on): Add arg-nonnull.
29234         (Makefile.am): Insert arg-nonnull.h into math.h.
29235         * modules/netdb (Depends-on): Add arg-nonnull.
29236         (Makefile.am): Insert arg-nonnull.h into netdb.h.
29237         * modules/search (Depends-on): Add arg-nonnull.
29238         (Makefile.am): Insert arg-nonnull.h into search.h.
29239         * modules/signal (Depends-on): Add arg-nonnull.
29240         (Makefile.am): Insert arg-nonnull.h into signal.h.
29241         * modules/spawn (Depends-on): Add arg-nonnull.
29242         (Makefile.am): Insert arg-nonnull.h into spawn.h.
29243         * modules/stdio (Depends-on): Add arg-nonnull.
29244         (Makefile.am): Insert arg-nonnull.h into stdio.h.
29245         * modules/stdlib (Depends-on): Add arg-nonnull.
29246         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
29247         * modules/string (Depends-on): Add arg-nonnull.
29248         (Makefile.am): Insert arg-nonnull.h into string.h.
29249         * modules/strings (Depends-on): Add arg-nonnull.
29250         (Makefile.am): Insert arg-nonnull.h into strings.h.
29251         * modules/sys_socket (Depends-on): Add arg-nonnull.
29252         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
29253         * modules/sys_stat (Depends-on): Add arg-nonnull.
29254         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
29255         * modules/sys_time (Depends-on): Add arg-nonnull.
29256         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
29257         * modules/sys_times (Depends-on): Add arg-nonnull.
29258         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
29259         * modules/sys_utsname (Depends-on): Add arg-nonnull.
29260         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
29261         * modules/time (Depends-on): Add arg-nonnull.
29262         (Makefile.am): Insert arg-nonnull.h into time.h.
29263         * modules/unistd (Depends-on): Add arg-nonnull.
29264         (Makefile.am): Insert arg-nonnull.h into unistd.h.
29265         * modules/wchar (Depends-on): Add arg-nonnull.
29266         (Makefile.am): Insert arg-nonnull.h into wchar.h.
29267         * modules/argv-iter (Depends-on): Add arg-nonnull.
29268         * tests/test-canonicalize.c (null_ptr): New function.
29269         (main): Use it.
29270         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
29271         (main): Use it.
29272         * tests/test-memmem.c (null_ptr): New function.
29273         (main): Use it.
29274         Reported by Jim Meyering.
29275
29276 2009-12-10  Bruno Haible  <bruno@clisp.org>
29277
29278         Use spaces for indentation, not tabs.
29279         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29280         * m4/*.m4: Untabify.
29281         * build-aux/*.h: Untabify.
29282         * tests/**/*.[hc]: Untabify.
29283         * README: New section "Indent with spaces, not TABs", based on
29284         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
29285         * NEWS: Mention the change.
29286
29287 2009-12-10  Bruno Haible  <bruno@clisp.org>
29288
29289         pty test: Fix link error.
29290         * modules/pty-tests (Makefile.am): Add the default LDADD value to
29291         test_pty_LDADD.
29292
29293 2009-12-07  Simon Josefsson  <simon@josefsson.org>
29294
29295         * modules/pty: New file.
29296         * modules/pty-tests: New file.
29297         * m4/pty.m4: New file.
29298         * tests/test-pty.c: New file.
29299         * doc/glibc-headers/pty.texi: Modified.
29300         * doc/glibc-functions/forkpty.texi: Modified.
29301         * doc/glibc-functions/openpty.texi: Modified.
29302
29303 2009-12-10  Bruno Haible  <bruno@clisp.org>
29304
29305         Avoid syntax error in C++ mode.
29306         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
29307
29308 2009-12-10  Bruno Haible  <bruno@clisp.org>
29309
29310         Use sed with option -e.
29311         * gnulib-tool (func_version, func_emit_copyright_notice,
29312         func_emit_initmacro_end, func_import, func_create_testdir): Pass
29313         option -e to sed.
29314         * modules/link-warning (Makefile.am): Likewise.
29315
29316 2009-12-10  Jim Meyering  <meyering@redhat.com>
29317
29318         mgetgroups: do not write bytes beyond end of malloc'd buffer
29319         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
29320         username, we call getgroups with a one-element-shorter buffer,
29321         but still told it the length was original, max_n_groups.
29322
29323 2009-12-09  Eric Blake  <ebb9@byu.net>
29324
29325         cloexec: relax license
29326         * modules/cloexec (Maintainer): Add myself.
29327         (License): Use LGPL, not GPL.
29328
29329         link-warning: optimize generation
29330         * modules/link-warning (Makefile.am): Reduce process usage.
29331
29332 2009-12-09  Bruno Haible  <bruno@clisp.org>
29333
29334         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
29335         workaround was added on 2009-11-17.
29336
29337 2009-12-09  Jim Meyering  <meyering@redhat.com>
29338             Bruno Haible  <bruno@clisp.org>
29339
29340         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
29341         * modules/link-warning (Makefile.am): Make the comment-removing sed
29342         command more robust in the face of bootstrap-prepended comment lines.
29343
29344 2009-12-09  Bruno Haible  <bruno@clisp.org>
29345
29346         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
29347         most one group.
29348
29349 2009-12-09  Simon Josefsson <simon@josefsson.org>
29350             Bruno Haible  <bruno@clisp.org>
29351
29352         * build-aux/link-warning.h: Add copyright notice.
29353         * modules/link-warning (Makefile.am): Generate link-warning.h from
29354         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
29355         * NEWS: Mention change in link-warning module.
29356         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
29357         * modules/dirent (Makefile.am): Add dependency to dirent.h.
29358         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
29359         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
29360         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
29361         * modules/math (Makefile.am): Add dependency to math.h.
29362         * modules/search (Makefile.am): Add dependency to search.h.
29363         * modules/signal (Makefile.am): Add dependency to signal.h.
29364         * modules/spawn (Makefile.am): Add dependency to spawn.h.
29365         * modules/stdio (Makefile.am): Add dependency to stdio.h.
29366         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
29367         * modules/string (Makefile.am): Add dependency to string.h.
29368         * modules/strings (Makefile.am): Add dependency to strings.h.
29369         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
29370         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
29371         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
29372         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
29373         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
29374         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
29375         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
29376         * modules/unistd (Makefile.am): Add dependency to unistd.h.
29377         * modules/wchar (Makefile.am): Add dependency to wchar.h.
29378
29379 2009-12-09  Bruno Haible  <bruno@clisp.org>
29380
29381         fchdir: Optimize away rpl_fstat when possible.
29382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
29383         REPLACE_OPEN_DIRECTORY.
29384         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
29385
29386 2009-12-09  Bruno Haible  <bruno@clisp.org>
29387
29388         * lib/fchdir.c: Update comment.
29389
29390 2009-12-09  Bruno Haible  <bruno@clisp.org>
29391
29392         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
29393
29394 2009-12-08  Eric Blake  <ebb9@byu.net>
29395
29396         fchdir: avoid memory leak on re-registration.
29397         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
29398
29399 2009-12-08  Jim Meyering  <meyering@redhat.com>
29400
29401         init.sh: avoid Solaris 10 /bin/sh portability problem
29402         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
29403         sourced script:
29404           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
29405           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
29406           bar
29407         tests/init.sh relied on that, accepting a --set-path=DIR argument,
29408         and two tests used that idiom.
29409         * tests/init.sh: Update suggested usage comments.
29410         (path_prepend_): New function, to be used in place
29411         of the --src-path=DIR option.
29412         (setup_): Move PATH-prepending code into path_prepend_.
29413         * tests/test-pread.sh: Adapt to new usage.
29414         * tests/test-xalloc-die.sh: Likewise.
29415
29416 2009-12-08  Simon Josefsson  <simon@josefsson.org>
29417
29418         * doc/gnulib.texi (Glibc pty.h): Add.
29419         * doc/glibc-functions/forkpty.texi: Add.
29420         * doc/glibc-functions/openpty.texi: Add.
29421         Suggested by Bruno Haible.
29422
29423 2009-12-08  Eric Blake  <ebb9@byu.net>
29424
29425         fchdir: fix logic bugs
29426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
29427         * tests/test-fchdir.c (main): Enhance test.
29428         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
29429         is in use.
29430
29431         dup2: fix logic bugs
29432         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
29433         REPLACE_DUP2 to decide when rpl_dup2 is needed.
29434         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
29435         exists.
29436         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
29437
29438 2009-12-07  Eric Blake  <ebb9@byu.net>
29439
29440         unlink: fix m4 detection
29441         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
29442
29443         unistd-safer: add unit test
29444         * modules/unistd-safer-tests: New file.
29445         * tests/test-dup-safer.c: Likewise.
29446         * tests/test-cloexec.c (setmode): Avoid compiler warning.
29447         * tests/test-dup2.c (setmode): Likewise.
29448         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
29449
29450         cloexec: preserve text vs. binary across dup_cloexec
29451         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
29452         mode.
29453         * modules/dup2-tests (Depends-on): Add binary-io.
29454         * modules/cloexec-tests (Depends-on): Likewise.
29455         * tests/test-dup2.c (setmode, is_mode): New helpers.
29456         (main): Add tests that translation mode is preserved.
29457         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
29458         Reported by Bruno Haible.
29459
29460         mgetgroups: reduce duplicate listings
29461         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
29462         resulting array.
29463         * tests/test-chown.h (test_chown): Simplify client.
29464         * tests/test-lchown.h (test_lchown): Likewise.
29465
29466 2009-12-06  Bruno Haible  <bruno@clisp.org>
29467
29468         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
29469         value.
29470
29471 2009-12-06  Bruno Haible  <bruno@clisp.org>
29472
29473         * lib/progname.c: Include stdio.h, stdlib.h.
29474         (set_program_name): Reject a NULL argument.
29475
29476 2009-12-05  Eric Blake  <ebb9@byu.net>
29477
29478         pipe2-safer: new module
29479         * modules/pipe2-safer: New file.
29480         * lib/unistd-safer.h (pipe2_safer): New prototype.
29481         * lib/unistd--.h (pipe2): New wrapper.
29482         * lib/pipe-safer.c (pipe2_safer): New function.
29483         * modules/pipe (Depends-on): Add pipe2-safer.
29484         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
29485
29486         stdlib-safer: preserve cloexec flag for mkostemp[s]
29487         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
29488         fd_safer_flag.
29489
29490         unistd-safer: allow preservation of cloexec status via flag
29491         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
29492         prototypes.
29493         * lib/dup-safer.c (dup_safer_flag): New function.
29494         * lib/fd-safer.c (fd_safer_flag): Likewise.
29495         * modules/cloexec (configure.ac): Set witness.
29496
29497         test-dup2: enhance test
29498         * modules/dup2-tests (Depends-on): Add cloexec.
29499         * tests/test-dup2.c (main): Enhance test.
29500
29501         cloexec: add dup_cloexec
29502         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
29503         header and comments.
29504         * lib/cloexec.c (set_cloexec_flag): Add comments.
29505         (dup_cloexec): New function, with mingw implementation borrowed
29506         from...
29507         * lib/w32spawn.h (dup_noinherit): ...here.
29508         * modules/execute (Depends-on): Add cloexec.
29509         * modules/pipe (Depends-on): Likewise.
29510         * modules/cloexec (Depends-on): Add dup2.
29511         * modules/cloexec-tests (Files): New file.
29512         * tests/test-cloexec.c: Likewise.
29513
29514         test-xalloc-die: fix test for mingw
29515         * modules/xalloc-die-tests (Files): Add tests/init.sh.
29516         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
29517         directory and .exe suffix off argv[0] output.
29518
29519         test-fseeko: fix test for mingw
29520         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
29521         than undefining fseek, so test will pass on mingw.
29522
29523 2009-12-05  Bruno Haible  <bruno@clisp.org>
29524
29525         * lib/progname.h (set_program_name): Clarify specification.
29526         * lib/progname.c (set_program_name): Likewise.
29527         Reported by Jim Meyering.
29528
29529 2009-12-05  Jim Meyering  <meyering@redhat.com>
29530
29531         maint.mk: backslash-escape parens in default regexp
29532         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
29533         backslash-escape the literal parentheses.
29534
29535         maint.mk: news-date-check: use grep -E
29536         * top/maint.mk (today): Define a Make variable, not a...
29537         (news-date-check): ...shell variable.
29538         (news-date-regexp): Use the Make variable.
29539         Use grep's -E option.  Change the failing diagnostic to mention
29540         the variable, $(news-date-regexp).
29541
29542 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
29543
29544         maintainer-makefile: allow customization of NEWS entry format
29545         * top/maint.mk (news-date-regexp): New overridable variable.
29546         (news-date-check): Use it.
29547
29548 2009-12-04  Eric Blake  <ebb9@byu.net>
29549
29550         mgetgroups: add xgetgroups, and avoid ENOSYS failures
29551         * lib/mgetgroups.h (xgetgroups): New prototype.
29552         * lib/mgetgroups.c (xgetgroups): New wrapper.
29553         (mgetgroups): Handle ENOSYS.
29554         * modules/mgetgroups (Depends-on): Add realloc.
29555         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29556
29557         mgetgroups: avoid argument promotion issues with -1
29558         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29559         for invalid gid_t.
29560         * tests/test-chown.h (getegid, test_chown): Likewise.
29561         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29562
29563 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29564
29565         exclude: Fix header file problems.
29566         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29567
29568 2009-12-01  Jim Meyering  <meyering@redhat.com>
29569
29570         fts: fts_open: do not let an empty string cause immediate failure
29571         This is required in support of GNU rm, for which the command
29572         "rm A '' B" must process and remove both A and B, in spite of
29573         the empty string argument.
29574         * lib/fts.c (fts_open): Do not let the presence of an empty string
29575         cause fts_open to fail immediately.  Most fts-using tools must be
29576         able to process all arguments, in order, and can be expected to
29577         diagnose such arguments themselves.
29578
29579 2009-11-30  Eric Blake  <ebb9@byu.net>
29580
29581         utimens: fix compilation error
29582         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29583         Declare variable at right scope.
29584
29585 2009-11-29  Jim Meyering  <meyering@redhat.com>
29586
29587         bootstrap: handle perl-5.11's changed --version output
29588         * build-aux/bootstrap (get_version): Handle perl separately,
29589         since perl-5.11's --version output is different.
29590
29591 2009-11-28  Jim Meyering  <meyering@redhat.com>
29592
29593         userspec: depend on the inttostr module, too
29594         * modules/userspec (Depends-on): Add inttostr.
29595
29596         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29597         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29598         number of MAXUID when it evaluates to (uid_t) -1.
29599         Likewise for group ID.  Reported by Matt McCutchen in
29600         <http://savannah.gnu.org/bugs/?28113>
29601
29602         userspec: reformat to use spaces, not TABs
29603         * lib/userspec.c: Expand TABs to spaces.
29604         Add Emacs' "indent-tabs-mode: nil" hint.
29605
29606 2009-11-27  Eric Blake  <ebb9@byu.net>
29607
29608         getopt-gnu: flush out another BSD bug
29609         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29610         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29611         flush out BSD bug.
29612         * tests/test-getopt.h (test_getopt): End lists with NULL.
29613         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29614         (test_getopt_long_posix): Enhance test.
29615         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29616         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29617         getopt-gnu.
29618         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29619         Likewise.
29620
29621 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29622
29623         * modules/idpriv-droptemp-tests (Notice): Fix text.
29624
29625 2009-11-27  Jim Meyering  <meyering@redhat.com>
29626
29627         test-xalloc-die: avoid spurious failure due to libtool argv difference
29628         In a libtool-enabled project, this test would fail due to a difference
29629         in the emitted program name, e.g.,
29630         -test-xalloc-die: memory exhausted
29631         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29632         Use program to avoid that.
29633         * modules/xalloc-die-tests (Depends-on): Add progname.
29634         * tests/test-xalloc-die.c: Include progname.h".
29635         (program_name): Remove decl.
29636         (main): Call set_program_name.
29637         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29638
29639 2009-11-26  Richard Jones  <rjones@redhat.com>
29640
29641         w32sock: leave win32 error in place.
29642         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29643
29644 2009-11-26  Eric Blake  <ebb9@byu.net>
29645
29646         init.sh: suggest to use skip_ and fail_ functions in comments
29647         * tests/init.sh: Add a sentence.
29648
29649 2009-11-25  Bruno Haible  <bruno@clisp.org>
29650
29651         init.sh: add documentation in comments
29652         * tests/init.sh: Add some developer and user documentation.
29653
29654 2009-11-26  Jim Meyering  <meyering@redhat.com>
29655
29656         init.sh: accommodate even those who specify bogus srcdir manually
29657         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29658         configure-time tests to be sanitized, so that there is no need to
29659         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29660         (with no double quotes) suffices.  However, since tests may be
29661         invoked manually, and since you may explicitly set srcdir to the
29662         name of a directory containing spaces, do quote its uses here.
29663         * tests/test-pread.sh: Likewise.
29664         Suggested by Bruno Haible.
29665
29666         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29667         * tests/test-pread.sh: Write no data into the pipe, because
29668         test-pread actually reads none.  This avoids a diagnostic,
29669         "bash: echo: write error: Broken pipe", that arises in the unusual
29670         event something is ignoring SIGPIPE, and might be interpreted
29671         as some sort of failure.  Reported by Bruno Haible.
29672
29673 2009-11-25  Jim Meyering  <meyering@redhat.com>
29674
29675         test-pread: cover failure with ESPIPE and EINVAL
29676         * tests/test-pread.c (main): Test for failure, too.
29677         * tests/test-pread.sh: Invoke with stdin on a pipe.
29678         Suggested by Eric Blake.
29679
29680         pread: improvement and fix
29681         * modules/pread (Depends-on): Depend on lseek, for portability to
29682         e.g., mingw.  Suggested by Eric Blake.
29683         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29684
29685         unistd.in.h: correct declaration of pread
29686         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29687         Reported by Richard W.M. Jones.
29688
29689         test-pread.sh: distribute the test script
29690         * modules/pread-tests (Files): Include test-pread.sh.
29691
29692         test-pread.sh: clean up
29693         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29694         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29695         That is unnecessary, since it's always ".".
29696         Suggestion from Eric Blake.
29697
29698         test-pread.sh: make executable
29699         * tests/test-pread.sh: Set executable bit.
29700         Reported by Eric Blake.
29701
29702         correct typo in test-pread.sh
29703         * tests/test-pread.sh: Add #! line.
29704
29705         test pread
29706         * tests/test-pread.c: New file.
29707         * tests/test-pread.sh: Likewise.
29708         * modules/pread-tests: Likewise.
29709
29710         pread: new module
29711         * modules/pread: New file.
29712         * lib/unistd.in.h (pread): Define/declare.
29713         * lib/pread.c (pread): New file.
29714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29715         * modules/unistd (Makefile.am): Substitute witnesses.
29716         * doc/posix-functions/pread.texi (pread): Update.
29717         * MODULES.html.sh: Add pread.
29718
29719 2009-11-25  Jim Meyering  <meyering@redhat.com>
29720
29721         tests/init.sh: new file to be used via most *.sh tests
29722         * tests/init.sh: New file.
29723
29724 2009-11-25  Eric Blake  <ebb9@byu.net>
29725
29726         utimens: work around older Linux failure with symlinks
29727         * lib/utimens.c (lutimensat_works_really): New variable.
29728         (fdutimens, lutimens): Use it to manage kernels that support
29729         nanosecond times on files, but not on symlinks.
29730         Reported by OndÅ™ej Vašík.
29731
29732         utimes: fix configure grammar
29733         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29734
29735 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29736
29737         regex: Fix fastmap for multibyte character ranges.
29738         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29739         characters when a multibyte character range is included.
29740
29741 2009-11-22  Andy Wingo  <wingo@pobox.com>
29742
29743         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29744         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29745
29746 2009-11-24  Bruno Haible  <bruno@clisp.org>
29747
29748         doc: Most *_l functions exist in MacOS X 10.5.
29749         * doc/posix-functions/duplocale.texi: Update platforms list.
29750         * doc/posix-functions/freelocale.texi: Likewise.
29751         * doc/posix-functions/newlocale.texi: Likewise.
29752         * doc/posix-functions/uselocale.texi: Likewise.
29753         * doc/posix-functions/isalnum_l.texi: Likewise.
29754         * doc/posix-functions/isalpha_l.texi: Likewise.
29755         * doc/posix-functions/isblank_l.texi: Likewise.
29756         * doc/posix-functions/iscntrl_l.texi: Likewise.
29757         * doc/posix-functions/isdigit_l.texi: Likewise.
29758         * doc/posix-functions/isgraph_l.texi: Likewise.
29759         * doc/posix-functions/islower_l.texi: Likewise.
29760         * doc/posix-functions/isprint_l.texi: Likewise.
29761         * doc/posix-functions/ispunct_l.texi: Likewise.
29762         * doc/posix-functions/isspace_l.texi: Likewise.
29763         * doc/posix-functions/isupper_l.texi: Likewise.
29764         * doc/posix-functions/iswalnum_l.texi: Likewise.
29765         * doc/posix-functions/iswalpha_l.texi: Likewise.
29766         * doc/posix-functions/iswblank_l.texi: Likewise.
29767         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29768         * doc/posix-functions/iswctype_l.texi: Likewise.
29769         * doc/posix-functions/iswdigit_l.texi: Likewise.
29770         * doc/posix-functions/iswgraph_l.texi: Likewise.
29771         * doc/posix-functions/iswlower_l.texi: Likewise.
29772         * doc/posix-functions/iswprint_l.texi: Likewise.
29773         * doc/posix-functions/iswpunct_l.texi: Likewise.
29774         * doc/posix-functions/iswspace_l.texi: Likewise.
29775         * doc/posix-functions/iswupper_l.texi: Likewise.
29776         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29777         * doc/posix-functions/isxdigit_l.texi: Likewise.
29778         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29779         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29780         * doc/posix-functions/strcoll_l.texi: Likewise.
29781         * doc/posix-functions/strfmon_l.texi: Likewise.
29782         * doc/posix-functions/strftime_l.texi: Likewise.
29783         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29784         * doc/posix-functions/strxfrm_l.texi: Likewise.
29785         * doc/posix-functions/tolower_l.texi: Likewise.
29786         * doc/posix-functions/toupper_l.texi: Likewise.
29787         * doc/posix-functions/towctrans_l.texi: Likewise.
29788         * doc/posix-functions/towlower_l.texi: Likewise.
29789         * doc/posix-functions/towupper_l.texi: Likewise.
29790         * doc/posix-functions/wcscoll_l.texi: Likewise.
29791         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29792         * doc/posix-functions/wctrans_l.texi: Likewise.
29793         * doc/posix-functions/wctype_l.texi: Likewise.
29794         * doc/glibc-functions/strptime_l.texi: Likewise.
29795         * doc/glibc-functions/strtod_l.texi: Likewise.
29796         * doc/glibc-functions/strtof_l.texi: Likewise.
29797         * doc/glibc-functions/strtol_l.texi: Likewise.
29798         * doc/glibc-functions/strtold_l.texi: Likewise.
29799         * doc/glibc-functions/strtoll_l.texi: Likewise.
29800         * doc/glibc-functions/strtoul_l.texi: Likewise.
29801         * doc/glibc-functions/strtoull_l.texi: Likewise.
29802         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29803         * doc/glibc-functions/wcstod_l.texi: Likewise.
29804         * doc/glibc-functions/wcstof_l.texi: Likewise.
29805         * doc/glibc-functions/wcstol_l.texi: Likewise.
29806         * doc/glibc-functions/wcstold_l.texi: Likewise.
29807         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29808         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29809         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29810
29811 2009-11-24  Bruno Haible  <bruno@clisp.org>
29812
29813         duplocale: Fix logic bug.
29814         * lib/duplocale.c: Don't include <langinfo.h>.
29815         (_NL_LOCALE_NAME): Remove macro.
29816         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29817         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29818
29819 2009-11-23  Jim Meyering  <meyering@redhat.com>
29820
29821         test-update-copyright: don't hard-code /usr/bin/perl
29822         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29823         perl to print the current year.  Gilles Espinasse reported that
29824         the replaced use of perl was hard-coded as /usr/bin/perl.
29825
29826 2009-11-23  Bruno Haible  <bruno@clisp.org>
29827
29828         duplocale: Add support for glibc 2.3.x.
29829         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29830
29831 2009-11-22  Bruno Haible  <bruno@clisp.org>
29832
29833         vasnprintf: Tiny optimization.
29834         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29835         MacOS X.
29836
29837 2009-11-22  Bruno Haible  <bruno@clisp.org>
29838
29839         Tests for module 'duplocale'.
29840         * modules/duplocale-tests: New file.
29841         * tests/test-duplocale.c: New file.
29842
29843         New module 'duplocale'.
29844         * m4/duplocale.m4: New file.
29845         * lib/locale.in.h (duplocale): New declaration.
29846         * lib/duplocale.c: New file.
29847         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29848         gl_LOCALE_H_DEFAULTS): New macros.
29849         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29850         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29851         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29852         REPLACE_DUPLOCALE.
29853         * modules/duplocale: New file.
29854         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29855
29856 2009-11-22  Bruno Haible  <bruno@clisp.org>
29857
29858         * modules/locale-tests (configure.ac): Test for newlocale function.
29859         * tests/test-locale.c: When the system has extended locale functions,
29860         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29861
29862         locale: Make locale_t available when possible.
29863         * lib/locale.in.h: Include <xlocale.h> when it exists.
29864         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29865         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29866         * modules/locale (Depends-on): Add extensions.
29867         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29868         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29869
29870 2009-11-22  Bruno Haible  <bruno@clisp.org>
29871
29872         Add comments.
29873         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29874         invocation.
29875         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29876         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29877         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29878
29879 2009-11-22  Bruno Haible  <bruno@clisp.org>
29880
29881         error: account for the possibility of freopen (stdout).
29882         * lib/error.c: Include <unistd.h>.
29883         (flush_stdout): New function, extracted from error and error_at_line.
29884         Determine stdout's fd dynamically.
29885         (error, error_at_line): Invoke flush_stdout.
29886         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29887         * modules/error (Depends-on): Add unistd.
29888
29889 2009-11-22  Bruno Haible  <bruno@clisp.org>
29890
29891         diffseq: Add comment.
29892         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29893
29894 2009-11-22  Jim Meyering  <meyering@redhat.com>
29895
29896         c-stack: avoid defining an unused static function
29897         * lib/c-stack.c (find_stack_direction): Do not define this function
29898         when it will not be used.
29899
29900         diffseq: avoid spurious gcc warnings
29901         * lib/diffseq.h (IF_LINT2): Define.
29902         (compareseq): Use it to initialize two members of "part".
29903         This avoids two used-uninitialized warnings.
29904
29905 2009-11-21  Jim Meyering  <meyering@redhat.com>
29906
29907         c-stack: avoid "ignoring return value of `write'" warning
29908         * lib/c-stack.c: Include "ignore-value.h".
29909         (die): Explicitly ignore each write return value.
29910         * modules/c-stack (Depends-on): Add ignore-value.
29911
29912 2009-11-21  Bruno Haible  <bruno@clisp.org>
29913
29914         diffseq: reduce scope of variable 'best'.
29915         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29916         variable, earlier used for two different purposes.
29917
29918 2009-11-21  Jim Meyering  <meyering@redhat.com>
29919
29920         diffseq: remove useless assignment to "best"
29921         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29922         assignment.  At that point "best" is already guaranteed to be zero.
29923
29924 2009-11-20  Eric Blake  <ebb9@byu.net>
29925
29926         build: mention ftp redirector in release announcements
29927         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29928         values that used to come from cfg.mk; mention FTP redirect URL.
29929         * build-aux/announce-gen: Mention the mirror list.
29930         Suggested by Karl Berry.
29931
29932         nanosleep: improve port to mingw
29933         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29935         LIB_NANOSLEEP, but only when needed.
29936         * modules/select (Link): Document LIBSOCKET.
29937         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29938         enough.
29939
29940         nanosleep: work around cygwin bug
29941         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29942         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29943         bug.
29944         (getnow): Delete, not needed.
29945         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29946         LIB_CLOCK_GETTIME.
29947         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29948         clock-time, gettime.
29949         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29950         bug.
29951         * modules/nanosleep-tests: New test.
29952         * tests/test-nanosleep.c: New file.
29953
29954         sleep: work around cygwin bug
29955         * lib/sleep.c (rpl_sleep): Work around the bug.
29956         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29957         (gl_PREREQ_SLEEP): Delete unused macro.
29958         * modules/sleep (Depends-on): Add verify.
29959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29960         * modules/unistd (Makefile.am): Substitute witness.
29961         * lib/unistd.in.h (sleep): Update prototype.
29962         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29963         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29964         * modules/sleep-tests (Depends-on): Check for alarm.
29965
29966 2009-11-20  Jim Meyering  <meyering@redhat.com>
29967
29968         maint.mk: improve sc_prohibit_magic_number_exit
29969         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29970         so it does not match uses like System.exit(1).
29971         Add comments showing how to correct all offenders.
29972
29973 2009-11-19  Eric Blake  <ebb9@byu.net>
29974
29975         xalloc-die-tests: add missing library
29976         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29977
29978         test-xvasprintf: silence compiler warnings
29979         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29980         empty string from gcc.
29981
29982 2009-11-19  Jim Meyering  <meyering@redhat.com>
29983
29984         xfreopen: new module, from coreutils
29985         * modules/xfreopen: New module.
29986         * lib/xfreopen.c: New file.
29987         * lib/xfreopen.h: New file.
29988         * MODULES.html.sh (File stream based Input/Output"): Add it.
29989
29990 2009-11-19  Eric Blake  <ebb9@byu.net>
29991
29992         manywarnings: depend on warnings
29993         * modules/manywarnings (Depends-on): Add warnings.
29994
29995         build: avoid compiler warnings
29996         * lib/select.c (rpl_select): Delete unused variable.
29997         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29998
29999 2009-11-18  Eric Blake  <ebb9@byu.net>
30000
30001         tests: avoid false negative with --with-packager
30002         * tests/test-version-etc.sh: Discard packager information.
30003         * tests/test-argp-version-etc-1.sh: Likewise.
30004         Reported by Mike Frysinger.
30005
30006         utimens: fix regression on Solaris
30007         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30008         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30009         can only change fd timestamps via futimesat.  Instead, use an
30010         additional witness macro to avoid BSD bug.
30011         Reported by Jim Meyering.
30012
30013 2009-11-17  Eric Blake  <ebb9@byu.net>
30014
30015         usleep: use it to simplify tests
30016         * modules/stat-time-tests (Depends-on): Add usleep.
30017         (configure.ac): Drop usleep check.
30018         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30019         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30020         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30021         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
30022         * modules/openat-tests (Depends-on, configure.ac): Likewise.
30023         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
30024         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
30025         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
30026         Likewise.
30027         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
30028         * tests/test-lchown.h (nap): Likewise.
30029         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
30030         * tests/test-stat-time.c (nap): Likewise.
30031         * tests/test-utimens-common.h (nap): Update comments.
30032
30033         usleep: new module
30034         * modules/usleep: New file.
30035         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
30036         * lib/usleep.c (usleep): Likewise.
30037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30038         * modules/unistd (Makefile.am): Substitute witnesses.
30039         * lib/unistd.in.h (usleep): Add declaration.
30040         * doc/pastposix-functions/usleep.texi (usleep): Document this.
30041         * MODULES.html.sh (Date and time): Likewise.
30042         * modules/usleep-tests (Depends-on): New test.
30043         * tests/test-usleep.c: New file.
30044
30045         chown: work around OpenBSD bug
30046         * lib/chown.c (rpl_chown): Work around the bug.
30047         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
30048         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
30049         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
30050         * modules/chown (Depends-on): Add stdbool.
30051         * modules/lchown (Depends-on): Likewise.
30052         * doc/posix-functions/chown.texi (chown): Document the bug.
30053         * doc/posix-functions/lchown.texi (lchown): Likewise.
30054         * tests/test-lchown.h (test_chown): Relax test.
30055
30056         mkstemp: avoid conflict with C++ keyword template
30057         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30058         * lib/mkostemp.c (mkostemp): Likewise.
30059         * lib/mkostemps.c (mkostemps): Likewise.
30060         * lib/mkstemp.c (mkstemp): Likewise.
30061         * lib/mkstemps.c (mkstemps): Likewise.
30062
30063         xalloc-die-tests: optimize
30064         * tests/test-xalloc-die.sh: Reduce number of processes.
30065
30066 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30067
30068         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30069         patch from ludo@gnu.org (Ludovic Courtès).
30070
30071 2009-11-17  Jim Meyering  <meyering@redhat.com>
30072
30073         version-etc: use proper license string
30074         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30075         * modules/version-etc-fsf: Likewise.
30076
30077 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30078
30079         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30080         printed to stdout.  Deal with EOL differences.
30081
30082 2009-11-17  Eric Blake  <ebb9@byu.net>
30083
30084         unsetenv: work around Solaris bug
30085         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30086         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30087         Reported by Jim Meyering.
30088
30089         vasnprintf: avoid compiler warnings
30090         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30091         variables.
30092         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30093
30094 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30095
30096         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30097         settings since xalloc-die is no longer the self test,
30098         xalloc-die.sh is.
30099
30100 2009-11-17  Jim Meyering  <meyering@redhat.com>
30101
30102         test-xalloc-die.sh: make the code agree with the commit log
30103         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30104         at the end, just in case you happen to have a test-xalloc-die
30105         program in some other PATH directory.
30106
30107         test-xalloc-die.sh: fix a portability bug
30108         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30109         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30110         Otherwise, argv[0] (as often seen in diagnostics) would be too
30111         system-dependent, sometimes with, and sometimes without the leading "./".
30112
30113         version-etc-fsf: relax license to LGPLv3+
30114         * modules/version-etc-fsf (License): Relax license.
30115
30116 2009-11-16  Eric Blake  <ebb9@byu.net>
30117
30118         xalloc-die-tests: avoid printing null pointer
30119         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30120         shell script.
30121         * tests/test-xalloc-die.c (program_name): Declare.
30122         * tests/test-xalloc-die.sh (tmpfiles): New file.
30123
30124         setenv, unsetenv: work around various bugs
30125         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
30126         (setenv) [HAVE_SETENV]: Work around bugs.
30127         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
30128         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
30129         for bugs.
30130         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
30131         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
30132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
30133         * modules/stdlib (Makefile.am): Update substitutions.
30134         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
30135         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
30136         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30137         * modules/setenv-tests: New test.
30138         * modules/unsetenv-tests: Likewise.
30139         * tests/test-setenv.c: New file.
30140         * tests/test-unsetenv.c: Likewise.
30141
30142 2009-11-16  Jim Meyering  <meyering@redhat.com>
30143
30144         version-etc: relax license to LGPLv3+
30145         * modules/version-etc (License): Relax license.
30146
30147         better AC_REQUIRE expanded-before-required-warning avoidance
30148         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
30149         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
30150         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
30151         which is no longer needed.
30152
30153 2009-11-16  Eric Blake  <ebb9@byu.net>
30154
30155         test-freading: clean up temporary file
30156         * tests/test-freading.c (main): Remove file on success, and use
30157         ASSERT more liberally.
30158         Reported by Jim Meyering.
30159
30160 2009-11-16  Jim Meyering  <meyering@redhat.com>
30161
30162         avoid new AC_REQUIRE expanded-before-required warnings
30163         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
30164         merely using it.
30165         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
30166         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
30167
30168 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30169
30170         * tests/test-xalloc-die.c: New file.
30171         * modules/xalloc-die-tests: New file.
30172         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
30173         XFAIL_TESTS so it can be appended by modules.
30174
30175 2009-11-15  Simon Josefsson  <simon@josefsson.org>
30176
30177         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
30178         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
30179
30180 2009-11-14  Eric Blake  <ebb9@byu.net>
30181
30182         fnmatch: avoid compiler warning
30183         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
30184         to silence compiler warning about mismatch signedness in ?:.
30185         Reported by Robert Millan.
30186
30187         intprops: add double-inclusion guard
30188         * lib/intprops.h: Allow idempotent includes.
30189         Suggested by Bruce Korb.
30190
30191         openat: detect Solaris fchownat bug
30192         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
30193         penalizing glibc chownat when only lchownat is broken.
30194         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
30195         trailing slash bugs.
30196         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
30197         * modules/openat-tests (Files): Include more files.
30198         (Depends-on): Add mgetgroups, sleep, stat-time.
30199         (configure.ac): Add additional checks.
30200         (Makefile.am): Build new test.
30201         * tests/test-fchownat.c: New file.
30202
30203         lchown: detect Solaris and FreeBSD bug
30204         * lib/lchown.c (rpl_lchown): Work around bug.
30205         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
30206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30207         * modules/unistd (Makefile.am): Populate it.
30208         * lib/unistd.in.h (lchown): Update declaration.
30209         * doc/posix-functions/lchown.texi (lchown): Document the bug.
30210         * modules/lchown-tests: New file.
30211         * tests/test-lchown.h (test_lchown): Likewise.
30212         * tests/test-lchown.c (main): Likewise.
30213
30214         chown: detect Solaris and FreeBSD bug
30215         * lib/chown.c (rpl_chown): Work around bug.
30216         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
30217         (gl_PREREQ_CHOWN): Delete.
30218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30219         * modules/unistd (Makefile.am): Populate it.
30220         * lib/unistd.in.h (chown): Update declaration.
30221         * lib/lchown.c (chown): Update client.
30222         * modules/lchown (Depends-on): Add lstat.
30223         * doc/posix-functions/chown.texi (chown): Document the bug.
30224         * doc/posix-functions/getgroups.texi (getgroups): Document
30225         getgroups pitfall.
30226         * modules/chown-tests: New file.
30227         * tests/test-chown.h (test_chown): Likewise.
30228         * tests/test-chown.c (main): Likewise.
30229
30230 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
30231
30232         gnulib-tool: correctly detect absence of m4 directories
30233         * gnulib-tool: Avoid extra newline on data passed to wc -l.
30234
30235 2009-11-14  Jim Meyering  <meyering@redhat.com>
30236
30237         maint.mk: Prohibit inclusion of "xalloc.h" without use.
30238         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30239
30240 2009-11-14  John W. Eaton  <jwe@gnu.org>
30241
30242         strftime.h: wrap funtion declaration in extern "C" block
30243         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
30244
30245 2009-11-13  Eric Blake  <ebb9@byu.net>
30246
30247         getgroups: avoid compiler warning
30248         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
30249
30250         getgroups: work around FreeBSD bug
30251         * lib/getgroups.c (rpl_getgroups): Work around the bug.
30252         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
30253         * doc/posix-functions/getgroups.texi (getgroups): Document it.
30254         * tests/test-getgroups.c (main): Fix buffer overrun.
30255
30256         getgroups: avoid compilation failure
30257         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
30258         * modules/getgroups (Depends-on): Add stdint.
30259
30260 2009-11-13  Jim Meyering  <meyering@redhat.com>
30261
30262         test-getgroups: avoid compilation failure
30263         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
30264
30265 2009-11-13  Eric Blake  <ebb9@byu.net>
30266
30267         mgetgroups: new module, taken from coreutils
30268         * modules/mgetgroups: New file.
30269         * lib/mgetgroups.h: Likewise.
30270         * lib/mgetgroups.c (mgetgroups): Likewise.
30271         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
30272         * MODULES.html.sh (Users and groups): Mention it.
30273
30274         getgroups: don't expose GETGROUPS_T to user
30275         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
30276         an element at a time if GETGROUPS_T is wrong size.
30277         * lib/getugroups.h (getugroups): Change signature.
30278         * lib/unistd.in.h (getgroups): Likewise.
30279         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
30280         signature needs fixing.
30281         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
30282         AC_TYPE_GETGROUPS.
30283         * modules/group-member (Depends-on): Add getgroups.
30284         * lib/group-member.c (group_info, get_group_info): Use gid_t.
30285         (group_member): Rely on getgroups replacement.
30286         * lib/getugroups.c (getugroups): Use gid_t.
30287         * tests/test-getgroups.c (main): Likewise.
30288         * NEWS: Mention the signature change.
30289         * doc/posix-functions/getgroups.texi (getgroups): Mention the
30290         problem with signature.
30291         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
30292         GETGROUPS_T is still useful for setgroups.
30293
30294         getgroups, getugroups: provide stubs for mingw
30295         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
30296         * lib/getugroups.c (getugroups): Likewise.
30297         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
30298         function.  Modernize replacement scheme.
30299         (gl_PREREQ_GETGROUPS): Delete.
30300         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
30301         * modules/getgroups (configure.ac): Declare witness.
30302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30303         * modules/unistd (Depends-on): Substitute witness.
30304         * lib/unistd.in.h (getgroups): Declare replacement.
30305
30306         getgroups: avoid calling exit
30307         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
30308         drop xalloc.
30309         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
30310         dependencies.
30311         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
30312         exiting, in the rare case of malloc failure.
30313
30314         getgroups: fix logic error
30315         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
30316         has more than 20 groups.
30317         * modules/getgroups-tests: New test.
30318         * tests/test-getgroups.c: New file.
30319
30320 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30321
30322         * tests/test-base64.c: Improve.
30323
30324 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30325
30326         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
30327         Blake <ebb9@byu.net>.
30328
30329 2009-11-13  Simon Josefsson  <simon@josefsson.org>
30330
30331         * tests/test-xvasprintf.c: Add %s%s related checks.
30332
30333 2009-11-12  Eric Blake  <ebb9@byu.net>
30334
30335         version-etc: match standards.texi style
30336         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
30337         and use <> only for URLs.
30338
30339 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
30340
30341         fts: do not fail on a submount during traversal
30342         * lib/fts.c (fts_build): Read the stat info again after opening
30343         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
30344         Original report at http://bugzilla.redhat.com/501848.
30345
30346 2009-11-12  Jim Meyering  <meyering@redhat.com>
30347
30348         bootstrap: sync from coreutils
30349         * build-aux/bootstrap (bootstrap_epilogue): New function.
30350         Use git_modules_config in one more place.  This make bootstrap's
30351         --gnulib-srcdir option more useful for testing.
30352
30353         bootstrap: generalize autoheader check
30354         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
30355         AC_CONFIG_HEADERS.
30356
30357 2009-11-11  Eric Blake  <ebb9@byu.net>
30358
30359         mkfifoat: use new modules for Solaris and BSD bugs
30360         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
30361         * lib/mkfifoat.c (mknodat): Split...
30362         * lib/mknodat.c (mknodat): ...into new file.
30363         * modules/mkfifoat (Files): Ship new file.
30364         (Depends-on): Add mkfifo, mknod.
30365         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
30366         (Depends-on): Add symlink.
30367         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
30368         redundant with test_mkfifo.h.
30369         (do_mkfifoat, do_mknodat): New helpers.
30370
30371         mknod: new module
30372         * modules/mknod: New file.
30373         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
30374         * lib/mknod.c (mknod): Likewise.
30375         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30376         defaults.
30377         * modules/sys_stat (Makefile.am): Substitute them.
30378         * lib/sys_stat.in.h (mknod): Declare replacement.
30379         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30380         Document it.
30381         * doc/posix-functions/mknod.texi (mknod): Likewise.
30382         * modules/mknod-tests: New test.
30383         * tests/test-mknod.c: Likewise.
30384
30385         mkfifo: new module
30386         * modules/mkfifo: New file.
30387         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
30388         * lib/mkfifo.c (mkfifo): Likewise.
30389         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
30390         defaults.
30391         * modules/sys_stat (Makefile.am): Substitute them.
30392         * lib/sys_stat.in.h (mkfifo): Declare replacement.
30393         * MODULES.html.sh (Support for systems lacking POSIX:2008):
30394         Document it.
30395         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
30396         * modules/mkfifo-tests: New test.
30397         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
30398         from test-mkfifoat.c.
30399         * tests/test-mkfifo.c: New file.
30400
30401         readlink: detect FreeBSD bug
30402         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
30403         slash on symlink.
30404         * doc/posix-functions/readlink.texi (readlink): Document the bug.
30405         * tests/test-readlink.h (test_readlink): Enhance test.
30406
30407         symlink: detect FreeBSD bug
30408         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
30409         slash on symlink.
30410         * doc/posix-functions/symlink.texi (symlink): Document the bug.
30411         * tests/test-symlink.h (test_symlink): Enhance test.
30412
30413 2009-11-10  Eric Blake  <ebb9@byu.net>
30414
30415         link: detect FreeBSD bug
30416         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
30417         symlink.
30418         * doc/posix-functions/link.texi (link): Document the bug.
30419         * tests/test-link.h (test_link): Enhance test.
30420         * tests/test-linkat.c (main): Update caller.
30421
30422         unlink, remove: detect FreeBSD bug
30423         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
30424         slash on symlink.
30425         * doc/posix-functions/unlink.texi (unlink): Document the bug.
30426         * doc/posix-functions/remove.texi (remove): Likewise.
30427         * tests/test-unlink.h (test_unlink): Enhance test.
30428         * tests/test-remove.c (main): Likewise.
30429
30430 2009-11-09  Eric Blake  <ebb9@byu.net>
30431
30432         rename: detect FreeBSD bug
30433         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
30434         slash on symlink.
30435         * modules/renameat-tests (Depends-on): Add filenamecat.
30436         * tests/test-rename.h (test_rename): Allow one more errno.
30437         * tests/test-renameat.c (main): Likewise.
30438         * doc/posix-functions/rename.texi (rename): Document the bug.
30439
30440         open: detect FreeBSD bug
30441         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
30442         symlink.
30443         * doc/posix-functions/open.texi (open): Document the bug.
30444         * doc/posix-functions/utimes.texi (utimes): Likewise.
30445         * tests/test-open.h (test_open): Add parameters, and test symlink
30446         handling.
30447         * tests/test-open.c (main): Adjust caller.
30448         * tests/test-fcntl-safer.c (main): Likewise.
30449         * modules/open-tests (Depends-on): Add stdbool, symlink.
30450         * modules/fcntl-safer-tests (Depends-on): Likewise.
30451         * tests/test-openat.c (main): Add test-open tests.
30452
30453         stat: detect FreeBSD bug
30454         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
30455         symlink.
30456         * doc/posix-functions/stat.texi (stat): Document the bug.
30457         * tests/test-stat.h (test_stat_func): Add argument.
30458         * tests/test-stat.c (main): Adjust caller.
30459         * tests/test-fstatat.c (main): Likewise.
30460         * modules/stat-tests (Depends-on): Add stdbool, symlink.
30461         Reported by Jim Meyering.
30462
30463 2009-11-09  James Youngman  <jay@gnu.org>
30464
30465         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
30466         * lib/strftime.c: Correct placement of #include "ignore-value.h".
30467
30468 2009-11-08  Jim Meyering  <meyering@redhat.com>
30469
30470         utimens: remove invalid futimesat call
30471         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
30472         It used the file descriptor of the target file as the DIR_FD
30473         parameter and NULL as the file name.  That caused failure with
30474         errno == EFAULT on FreeBSD-8.0-rc2
30475
30476 2009-11-07  Eric Blake  <ebb9@byu.net>
30477
30478         fflush, freadseek: use fseeko, not fseek
30479         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
30480         (clear_ungetc_buffer): Avoid potential problems on large files.
30481         * lib/freadseek.c (freadseek): Likewise.
30482         * modules/freadseek (Depends-on): Add fseeko.
30483         * modules/fseek (configure.ac): Set a witness.
30484         * tests/test-fflush.c (main): Use fseeko.
30485         * tests/test-fpurge.c (fseek): Disable link warning.
30486         * tests/test-freadable.c (fseek): Likewise.
30487         * tests/test-freading.c (fseek): Likewise.
30488         * tests/test-fseeko.c (fseek): Likewise.
30489         * tests/test-ftell.c (fseek): Likewise.
30490         * tests/test-ftello.c (fseek): Likewise.
30491         * tests/test-fwritable.c (fseek): Likewise.
30492         * tests/test-fwriting.c (fseek): Likewise.
30493
30494 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30495
30496         * modules/memchr (Depends-on): Drop getpagesize dependency.
30497
30498 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30499
30500         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
30501         Reported by Ludovic Courtès.
30502         * build-aux/pmccabe2html: Improve example usage.
30503         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
30504
30505 2009-11-06  Jim Meyering  <meyering@redhat.com>
30506
30507         do-release-commit-and-tag: New module.
30508         Automate the release-commit and tag process.
30509         * build-aux/do-release-commit-and-tag: New script, from coreutils.
30510         * modules/do-release-commit-and-tag: New file.
30511         * MODULES.html.sh (Support for maintaining and releasing): Add it.
30512
30513 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30514
30515         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
30516         because test-select.c uses inet_pton.
30517
30518 2009-11-06  Simon Josefsson  <simon@josefsson.org>
30519
30520         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
30521         GETADDRINFO_LIB.  Bump serial number.
30522         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
30523         Suggested by Eric Blake <ebb9@byu.net>.
30524
30525 2009-11-05  Eric Blake  <ebb9@byu.net>
30526
30527         strtod: detect darwin bug
30528         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
30529         Reported by Leo Davis.
30530
30531         freopen-safer: new module
30532         * modules/freopen-safer: New module.
30533         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
30534         * lib/freopen-safer.c (freopen_safer): New file.
30535         * lib/stdio-safer.h (freopen_safer): New declaration.
30536         * lib/stdio--.h (freopen): New override.
30537         * MODULES.html.sh (File stream based Input/Output): Mention it.
30538         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
30539         freopen-safer module.
30540         * doc/posix-functions/stderr.texi (stderr): Likewise.
30541         * doc/posix-functions/stdin.texi (stdin): Likewise.
30542         * doc/posix-functions/stdout.texi (stdout): Likewise.
30543         * modules/freopen-safer-tests: New test.
30544         * tests/test-reopen-safer.c: New file.
30545
30546 2009-11-05  Jim Meyering  <meyering@redhat.com>
30547
30548         maint.mk: Prohibit inclusion of "close-stream.h" without use.
30549         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
30550
30551 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30552
30553         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
30554
30555 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30556
30557         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30558
30559 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30560
30561         Fix link error.
30562         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30563         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30564
30565 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30566
30567         * tests/test-func.c: Also test value of __func__.
30568
30569 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30570
30571         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30572         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30573
30574 2009-11-05  Bruno Haible  <bruno@clisp.org>
30575
30576         Fix link error.
30577         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30578         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30579         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30580
30581 2009-11-05  Bruno Haible  <bruno@clisp.org>
30582
30583         Tests for module 'inet_pton'.
30584         * modules/inet_pton-tests: New file.
30585         * tests/test-inet_pton.c: New file.
30586
30587 2009-11-05  Bruno Haible  <bruno@clisp.org>
30588
30589         Tests for module 'inet_ntop'.
30590         * modules/inet_ntop-tests: New file.
30591         * tests/test-inet_ntop.c: New file.
30592
30593 2009-11-04  Eric Blake  <ebb9@byu.net>
30594
30595         stdlib-safer: wrap all mkstemp variants
30596         * modules/mkostemp (configure.ac): Set witness.
30597         * modules/mkostemps (configure.ac): Likewise.
30598         * modules/mkstemps (configure.ac): Likewise.
30599         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30600         (mkstemps_safer): Wrap more functions.
30601         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30602         wrapping.
30603         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30604         (mkstemps_safer): Implement the wrappers.
30605
30606         mkstemps, mkostemps: new modules
30607         * modules/mkostemps: New module.
30608         * modules/mkstemps: Likewise.
30609         * lib/mkostemps.c (mkostemps): New file.
30610         * lib/mkstemps.c (mkstemps): Likewise.
30611         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30612         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30614         * modules/stdlib (Makefile.am): Substitute them.
30615         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30616         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30617         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30618         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30619         * MODULES.html.sh (File system functions): Mention them.
30620
30621         tempname: resync from glibc
30622         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30623         same values for __GT_FILE as glibc.  Abort even when assertions
30624         are disabled.
30625         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30626         match its value otherwise.  Allow idempotent inclusion.
30627         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30628         * lib/mkostemp.c (mkostemp): Likewise.
30629         * lib/mkstemp.c (mkstemp): Likewise.
30630         * lib/tmpfile.c (tmpfile): Likewise.
30631         * NEWS: Document this.
30632
30633         utimens: fix use of futimens on older Linux
30634         * lib/utimens.c (fdutimens): Use updated, rather than original,
30635         timespec to avoid bug in older Linux kernel.
30636         Reported by Simon Josefsson.
30637
30638 2009-11-04  Bruno Haible  <bruno@clisp.org>
30639
30640         Make num_processors more flexible and consistent.
30641         * lib/nproc.h (enum nproc_query): New type.
30642         (num_processors): Add a 'query' argument.
30643         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30644         (num_processors): Add a 'query' argument. Test the value of the
30645         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30646         mingw, count the number of CPUs available for the current process.
30647         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30648         Check for sched_getaffinity and sched_getaffinity_np.
30649         * modules/nproc (Depends-on): Add c-ctype, extensions.
30650         * NEWS: Mention the change.
30651
30652 2009-11-03  Bruno Haible  <bruno@clisp.org>
30653
30654         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30655
30656 2009-11-03  Jim Meyering  <meyering@redhat.com>
30657
30658         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30659         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30660         if it is defined.
30661
30662 2009-11-02  Eric Blake  <ebb9@byu.net>
30663
30664         mktime, timegm: share common declaration
30665         * lib/mktime-internal.h: New file.
30666         * lib/mktime.c: Use it rather than open-coding a declaration.
30667         * lib/timegm.c: Likewise.
30668         * modules/mktime (Files): Ship it.
30669         * modules/timegm (Files): Likewise.
30670         Suggested by Bruno Haible.
30671
30672         test-update-copyright: update test to match script changes
30673         * tests/test-update-copyright.sh: Avoid hard-coding perl
30674         location.  Don't update *.bak created by earlier runs.
30675
30676 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30677             Simon Josefsson  <simon@josefsson.org>
30678             Bruno Haible  <bruno@clisp.org>
30679
30680         Fix link error on Solaris 8.
30681         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30682         also in libnsl. Define also INET_PTON_LIB.
30683         * modules/inet_pton (Link): New section.
30684
30685 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30686             Bruno Haible  <bruno@clisp.org>
30687
30688         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30689         * modules/inet_ntop (Link): New section.
30690         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30691
30692 2009-11-02  Eric Blake  <ebb9@byu.net>
30693
30694         maint: avoid compiler warnings in m4 macros
30695         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30696         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30697
30698 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30699
30700         * m4/pmccabe2html.m4: Remove file.
30701         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30702         function.  Change maintainer.
30703         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30704         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30705         Courtès).
30706
30707 2009-10-31  Eric Blake  <ebb9@byu.net>
30708
30709         fseeko: fix m4 regression
30710         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30711         regression from 2009-10-27.
30712         Reported by Ralf Wildenhues.
30713
30714 2009-10-31  Jim Meyering  <meyering@redhat.com>
30715
30716         inttostr: aesthetics and improved (compile-time) safety
30717         Define inttype_is_signed rather than inttype_is_unsigned,
30718         since the sole use is via "#if inttype_is_signed".
30719         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30720         inttype_is_unsigned.
30721         * lib/offtostr.c (inttype_is_signed): Likewise.
30722         * lib/uinttostr.c (inttype_is_signed): Likewise.
30723         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30724         * lib/inttostr.c (inttostr): Use verify to cross-check the
30725         inttype_is_signed value and the signedness of the actual type.
30726         * modules/inttostr (Depends-on): Add verify.
30727
30728 2009-10-30  Eric Blake  <ebb9@byu.net>
30729
30730         build: avoid compiler warnings
30731         * lib/fchmodat.c (lchmod): Mark unused variables.
30732         * lib/getopt.c (_getopt_initialize): Likewise.
30733         * lib/mktime.c (__mktime_internal): Provide prototype.
30734         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30735         older gcc that do not understand #pragma GCC diagnostic.
30736         * lib/uinttostr.c (inttype_is_unsigned): Define.
30737         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30738
30739 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30740
30741         stat: fix compilation on AIX
30742         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30743         only see struct stat64.
30744
30745 2009-10-30  Eric Blake  <ebb9@byu.net>
30746
30747         exclude: make more robust
30748         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30749         rather than masking a coding bug.
30750         Suggested by Bruno Haible.
30751
30752 2009-10-30  Jim Meyering  <meyering@redhat.com>
30753
30754         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30755         Rather than putting #!/usr/bin/perl on the first line,
30756         start with a variant of what's recommended by "man perlrun" that
30757         invokes the first "perl" program from your shell's search path.
30758         * build-aux/gitlog-to-changelog: Replace #!... as above.
30759         Add a "Local Variables" perl mode setting.
30760         Prompted by a patch from Ludovic Courtès.
30761         Improved by Eric Blake.
30762         * build-aux/useless-if-before-free: Likewise.
30763         * build-aux/announce-gen: Likewise.
30764         * build-aux/update-copyright: Likewise.
30765
30766 2009-10-29  Eric Blake  <ebb9@byu.net>
30767
30768         filenamecat-lgpl: adjust clients
30769         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30770         filenamecat.
30771         * modules/renameat (Depends-on): Likewise.
30772
30773         filenamecat: split into filenamecat-lgpl
30774         * modules/filenamecat-lgpl: New module.
30775         * modules/filenamecat (Files): Move library-safe files into
30776         filenamecat-lgpl.
30777         (Depends-on): Add filenamecat-lgpl.
30778         (configure.ac): Declare witness.
30779         * lib/filenamecat.h (file_name_concat): Only declare when using
30780         GPL module.
30781         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30782         Move...
30783         * lib/filenamecat-lgpl.c: ...into new file.
30784         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30785         (gl_FILE_NAME_CONCAT): Use it.
30786         * MODULES.html.sh (File system functions): Mention new module.
30787
30788         argp: avoid memory leak
30789         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30790         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30791         base_name, since the latter malloc()s and can call exit().
30792         Leak introduced 2006-07-03.
30793
30794         dirname-lgpl: adjust clients that don't need full dirname
30795         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30796         * modules/filenamecat (Depends-on): Likewise.
30797         * modules/linkat (Depends-on): Likewise.
30798         * modules/mkancesdirs (Depends-on): Likewise.
30799         * modules/mkdir (Depends-on): Likewise.
30800         * modules/openat (Depends-on): Likewise.
30801         * modules/savewd (Depends-on): Likewise.
30802         * modules/rename (Depends-on): Likewise.
30803         (License): Relax license.
30804         * modules/mkdir-tests (Depends-on): Drop progname.
30805         (Makefile.am): Delete unneeded LDADD.
30806         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30807
30808         dirname: split into dirname-lgpl
30809         * modules/dirname-lgpl: New module.
30810         * modules/dirname (Files): Move library-safe files into
30811         dirname-lgpl.
30812         (Depends-on): Add dirname-lgpl.
30813         (configure.ac): Declare witness.
30814         * modules/double-slash-root (License): Relax license.
30815         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30816         module.
30817         * lib/dirname.c (dir_len, mdir_name): Move...
30818         * lib/dirname-lgpl.c: ...into new file.
30819         * lib/basename.c (last_component, base_len): Move...
30820         * lib/basename-lgpl.c: ...into new file.
30821         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30822         (gl_DIRNAME): Use it.
30823         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30824         Mention new module.
30825         * modules/dirname-tests (Depends-on): Add progname.
30826         * tests/test-dirname.c (program_name): Delete.
30827
30828         mkdir: make safe for libraries
30829         * modules/mkdir (Depends-on): Drop xalloc.
30830         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30831         exit.
30832
30833         tests: avoid some compiler warnings
30834         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30835         literals.
30836         * tests/test-memchr.c (main): Avoid type mismatch.
30837         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30838         * tests/test-base64.c (main): Likewise.
30839         * tests/test-getdelim.c (main): Likewise.
30840         * tests/test-gethostname.c (main): Likewise.
30841         * tests/test-getline.c (main): Likewise.
30842         * tests/test-netinet_in.c (main): Likewise.
30843         * tests/test-select.c (open_server_socket, main): Likewise.
30844         * tests/test-select-stdin.c (main): Likewise.
30845         * tests/test-sockets.c (main): Likewise.
30846         * tests/test-strsignal.c (main): Likewise.
30847         * tests/test-sys_select.c (main): Likewise.
30848         * tests/test-sys_socket.c (main): Likewise.
30849         * tests/test-u64.c (main): Likewise.
30850         * tests/test-xfprintf-posix.c (main): Likewise.
30851         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30852
30853         sockets: avoid compiler warning
30854         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30855
30856         maint: detect usage(1) and other suspicious exits
30857         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30858
30859 2009-10-29  Jim Meyering  <meyering@redhat.com>
30860
30861         timespec: long-to-int truncation could make timespec_cmp malfunction
30862         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30863         a multiple of 2^32 nanoseconds as no difference.
30864
30865 2009-10-28  Jim Meyering  <meyering@redhat.com>
30866
30867         fprintftime: wrap macro code argument in "do {...} while(0)"
30868         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30869         cpy macro must be a statement that can be followed by a semicolon.
30870         Now that the else clause contains a comment and is hence longer
30871         than one line, I require curly braces.  That in turn requires
30872         that we wrap this code block in the standard do...while(0).
30873
30874         fprintftime: remove stray semicolon from previous change
30875         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30876
30877         fprintftime: avoid a warning about ignored fwrite return value
30878         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30879         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30880         that is unsafe.
30881         * modules/fprintftime (Depends-on): Add ignore-value.
30882
30883         exclude: avoid an unwarranted warning
30884         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30885
30886 2009-10-27  Eric Blake  <ebb9@byu.net>
30887
30888         fseek: avoid compilation failure when fflush is replaced
30889         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30890         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30891         module is in use.
30892         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30893         module is not in use; since REPLACE_FSEEK worked otherwise.
30894         (GNULIB_FTELLO): Likewise for ftell.
30895         Reported by Ian Beckwith and others.
30896
30897 2009-10-27  Bruno Haible  <bruno@clisp.org>
30898
30899         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30900         Reported by Jim Meyering.
30901
30902 2009-10-27  Jim Meyering  <jim@meyering.net>
30903             Bruno Haible  <bruno@clisp.org>
30904
30905         Avoid warning despite dropping the return value of fwrite.
30906         * lib/unicodeio.c: Include ignore-value.h.
30907         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30908         * modules/unicodeio (Depends-on): Add ignore-value.
30909
30910 2009-10-26  Eric Blake  <ebb9@byu.net>
30911
30912         areadlinkat: fix fallback path
30913         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30914         pointer and zero.
30915
30916 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30917
30918         Use a better IO block size for modern systems
30919         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30920         * lib/md2.c: Likewise.
30921         * lib/md4.c: Likewise.
30922         * lib/md5.c: Likewise.
30923         * lib/sha1.c: Likewise.
30924         * lib/sha256.c: Likewise.
30925         * lib/sha512.c: Likewise.
30926
30927 2009-10-22  Eric Blake  <ebb9@byu.net>
30928
30929         tests: avoid several compiler warnings
30930         * tests/test-getcwd.c (main): Avoid buffer underflow.
30931         * tests/test-getdate.c (main): String literals are not safe with
30932         putenv, so use setenv.  Declare unused argument.
30933         * modules/getdate-tests (Depends-on): Add setenv.
30934         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30935         problems with string literals in char *.
30936         * tests/test-hash.c (main): Avoid shadowing declaration.
30937         (insert_new): Treat string literals as char const *.
30938         * tests/test-getopt.h (test_getopt): Likewise.
30939         (getopt_loop): Alter types to minimize casting elsewhere.
30940         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30941         (test_getopt_long_posix): Likewise.
30942         (do_getopt_long): Add wrapper to minimize casting.
30943         * tests/test-atexit.c (clear_temp_file): Use void.
30944         * tests/test-areadlink-with-size.c (main): Declare unused
30945         arguments.
30946         * tests/test-areadlink.c (main): Likewise.
30947         * tests/test-areadlinkat-with-size.c (main): Likewise.
30948         * tests/test-areadlinkat.c (main): Likewise.
30949         * tests/test-canonicalize-lgpl.c (main): Likewise.
30950         * tests/test-canonicalize.c (main): Likewise.
30951         * tests/test-dirent-safer.c (main): Likewise.
30952         * tests/test-dirname.c (main): Likewise.
30953         * tests/test-dup2.c (main): Likewise.
30954         * tests/test-fchdir.c (main): Likewise.
30955         * tests/test-fcntl-h.c (main): Likewise.
30956         * tests/test-fcntl-safer.c (main): Likewise.
30957         * tests/test-fdopendir.c (main): Likewise.
30958         * tests/test-fdutimensat.c (main): Likewise.
30959         * tests/test-fflush.c (main): Likewise.
30960         * tests/test-filenamecat.c (main): Likewise.
30961         * tests/test-filevercmp.c (main): Likewise.
30962         * tests/test-fopen-safer.c (main): Likewise.
30963         * tests/test-fopen.c (main): Likewise.
30964         * tests/test-fpending.c (main): Likewise.
30965         * tests/test-fpurge.c (main): Likewise.
30966         * tests/test-freading.c (main): Likewise.
30967         * tests/test-fstatat.c (main): Likewise.
30968         * tests/test-fsync.c (main): Likewise.
30969         * tests/test-futimens.c (main): Likewise.
30970         * tests/test-getndelim2.c (main): Likewise.
30971         * tests/test-gettimeofday.c (main): Likewise.
30972         * tests/test-getopt.c (main): Likewise.
30973         * tests/test-i-ring.c (main): Likewise.
30974         * tests/test-inttypes.c (main): Likewise.
30975         * tests/test-link.c (main): Likewise.
30976         * tests/test-lstat.c (main): Likewise.
30977         * tests/test-math.c (main): Likewise.
30978         * tests/test-md5.c (main): Likewise.
30979         * tests/test-memchr2.c (main): Likewise.
30980         * tests/test-memrchr.c (main): Likewise.
30981         * tests/test-mkdir.c (main): Likewise.
30982         * tests/test-mkdirat.c (main): Likewise.
30983         * tests/test-mkfifoat.c (main): Likewise.
30984         * tests/test-open.c (main): Likewise.
30985         * tests/test-openat-safer.c (main): Likewise.
30986         * tests/test-openat.c (main): Likewise.
30987         * tests/test-quotearg.c (main): Likewise.
30988         * tests/test-rawmemchr.c (main): Likewise.
30989         * tests/test-readlink.c (main): Likewise.
30990         * tests/test-remove.c (main): Likewise.
30991         * tests/test-rename.c (main): Likewise.
30992         * tests/test-renameat.c (main): Likewise.
30993         * tests/test-rmdir.c (main): Likewise.
30994         * tests/test-sha1.c (main): Likewise.
30995         * tests/test-signal.c (main): Likewise.
30996         * tests/test-sigaction.c (main): Likewise.
30997         * tests/test-stat.c (main): Likewise.
30998         * tests/test-stat-time.c (main): Likewise.
30999         * tests/test-stddef.c (main): Likewise.
31000         * tests/test-stdint.c (main): Likewise.
31001         * tests/test-stdio.c (main): Likewise.
31002         * tests/test-stdlib.c (main): Likewise.
31003         * tests/test-strchrnul.c (main): Likewise.
31004         * tests/test-strerror.c (main): Likewise.
31005         * tests/test-string.c (main): Likewise.
31006         * tests/test-strtod.c (main): Likewise.
31007         * tests/test-strverscmp.c (main): Likewise.
31008         * tests/test-symlink.c (main): Likewise.
31009         * tests/test-symlinkat.c (main): Likewise.
31010         * tests/test-sys_stat.c (main): Likewise.
31011         * tests/test-sys_time.c (main): Likewise.
31012         * tests/test-time.c (main): Likewise.
31013         * tests/test-unistd.c (main): Likewise.
31014         * tests/test-unlink.c (main): Likewise.
31015         * tests/test-unlinkat.c (main): Likewise.
31016         * tests/test-utimens.c (main): Likewise.
31017         * tests/test-utimensat.c (main): Likewise.
31018         * tests/test-version-etc.c (main): Likewise.
31019         * tests/test-wchar.c (main): Likewise.
31020         * tests/test-wctype.c (main): Likewise.
31021         * tests/test-xprintf-posix.c (main): Likewise.
31022         * tests/test-posixtm.c (main): Likewise.
31023         (STREQ): Delete unused macro.
31024         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
31025         shadowed variables.
31026         * tests/test-memchr.c (main): Likewise.
31027
31028 2009-10-21  Eric Blake  <ebb9@byu.net>
31029
31030         areadlinkat: avoid failure on older glibc
31031         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
31032         rather than mis-comparing 0 against FUNC_RESULT of char*.
31033
31034 2009-10-21  Bruno Haible  <bruno@clisp.org>
31035
31036         * modules/stpncpy (License): Relicense under LGPLv2+.
31037         Reported by David Lutterkort <lutter@redhat.com>.
31038
31039 2009-10-20  Eric Blake  <ebb9@byu.net>
31040
31041         utimensat: work around Solaris 9 bug
31042         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
31043         has trailing slash bugs.
31044         * tests/test-lutimens.h (test_lutimens): Enhance test.
31045         * tests/test-utimens.h (test_utimens): Likewise.
31046         * doc/posix-functions/utime.texi (utime): Enhance documentation.
31047         * doc/posix-functions/utimes.texi (utimes): Likewise.
31048         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31049         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
31050         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
31051         * doc/posix-functions/futimens.texi (futimens): Likewise.
31052
31053         fdutimensat: new module
31054         * modules/fdutimensat: New file.
31055         * lib/fdutimensat.c (fdutimensat): Likewise.
31056         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31057         * MODULES.html.sh (File system functions): Mention module.
31058         * modules/fdutimensat-tests: New test.
31059         * tests/test-fdutimensat.c: Likewise.
31060
31061         doc: regenerate INSTALL
31062         * doc/INSTALL: Reflect recent autoconf update.
31063         * doc/INSTALL.ISO: Likewise.
31064         * doc/INSTALL.UTF-8: Likewise.
31065
31066 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31067
31068         acl: warn if ACL support is not detected
31069         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31070
31071 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31072
31073         * lib/nproc.h: Add extern "C" block for C++.
31074
31075 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31076             Bruno Haible  <bruno@clisp.org>
31077
31078         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31079         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31080         * doc/posix-functions/isalpha.texi: Likewise.
31081         * doc/posix-functions/isblank.texi: Likewise.
31082         * doc/posix-functions/iscntrl.texi: Likewise.
31083         * doc/posix-functions/isdigit.texi: Likewise.
31084         * doc/posix-functions/isgraph.texi: Likewise.
31085         * doc/posix-functions/islower.texi: Likewise.
31086         * doc/posix-functions/isprint.texi: Likewise.
31087         * doc/posix-functions/ispunct.texi: Likewise.
31088         * doc/posix-functions/isspace.texi: Likewise.
31089         * doc/posix-functions/isupper.texi: Likewise.
31090         * doc/posix-functions/isxdigit.texi: Likewise.
31091
31092 2009-10-18  Bruno Haible  <bruno@clisp.org>
31093
31094         Tests for module 'isblank'.
31095         * modules/isblank-tests: New file.
31096         * tests/test-isblank.c: New file.
31097
31098         New module 'isblank'.
31099         * lib/isblank.c: New file.
31100         * m4/isblank.m4: New file.
31101         * modules/isblank: New file.
31102         * doc/posix-functions/isblank.texi: Mention the new module.
31103
31104 2009-10-18  Bruno Haible  <bruno@clisp.org>
31105
31106         New module 'ctype'.
31107         * lib/ctype.in.h: New file.
31108         * m4/ctype.m4: New file.
31109         * modules/ctype: New file.
31110         * doc/posix-headers/ctype.texi: Mention the new module.
31111
31112 2009-10-18  Jim Meyering  <meyering@redhat.com>
31113
31114         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31115         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31116         right after its initialization, rather than farther down.
31117         Keeping these in close proximity makes it easier to ensure
31118         that each such variable is initialized.  E.g.,
31119
31120             LIB_CLOCK_GETTIME=
31121             AC_SUBST([LIB_CLOCK_GETTIME])
31122
31123         This change also increments these serial numbers.
31124         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
31125         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31126         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31127
31128 2009-10-18  Bruno Haible  <bruno@clisp.org>
31129
31130         Don't let environment variables perturb build.
31131         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
31132         (gl_PREREQ_GETHRXTIME): ... not here.
31133
31134 2009-10-18  Bruno Haible  <bruno@clisp.org>
31135
31136         Avoid symlink attack in localcharset module.
31137         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
31138         (O_NOFOLLOW): Define fallback.
31139         (get_charset_aliases): Don't open the file if it is a symbolic link.
31140         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
31141         gl_FCNTL_H.
31142         (gl_FCNTL_H): Require it.
31143         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
31144         * modules/localcharset (Files): Add m4/fcntl_h.m4.
31145         Reported by Fergal Glynn <fglynn@veracode.com>.
31146
31147 2009-10-18  Bruno Haible  <bruno@clisp.org>
31148
31149         Implement nproc for mingw.
31150         * lib/nproc.c: Include <windows.h>
31151         (num_processors): On native Windows platforms, try GetSystemInfo.
31152
31153 2009-10-18  Bruno Haible  <bruno@clisp.org>
31154
31155         Implement nproc for IRIX.
31156         * lib/nproc.c: Include <sys/sysmp.h>.
31157         (num_processors): On IRIX systems, try sysmp.
31158         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
31159
31160 2009-10-18  Bruno Haible  <bruno@clisp.org>
31161
31162         Implement nproc for HP-UX.
31163         * lib/nproc.c: Include <sys/pstat.h>
31164         (num_processors): On HP-UX systems, try pstat_getdynamic.
31165         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
31166         pstat_getdynamic.
31167
31168 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
31169             Bruno Haible  <bruno@clisp.org>
31170
31171         Implement nproc for NetBSD, OpenBSD.
31172         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
31173         (ARRAY_SIZE): New macro.
31174         (num_processors): On BSD systems, try sysctl of HW_NCPU.
31175         * m4/nproc.m4: New file.
31176         * modules/nproc (Files): Add m4/nproc.m4.
31177         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
31178         (Makefile.am): Instead, augment lib_SOURCES.
31179
31180 2009-10-18  Bruno Haible  <bruno@clisp.org>
31181
31182         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
31183         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
31184         sys/param.h.
31185
31186 2009-10-16  Eric Blake  <ebb9@byu.net>
31187
31188         utimensat: new module
31189         * modules/utimensat: New file.
31190         * lib/utimensat.c (utimensat): Likewise.
31191         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31192         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
31193         so we can work around Linux bugs.
31194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31195         * modules/sys_stat (Makefile.am): Substitute them.
31196         * lib/sys_stat.in.h (utimensat): Declare it.
31197         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31198         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31199         * modules/utimensat-tests: New test.
31200         * tests/test-utimensat.c: Likewise.
31201
31202         utimens: let lutimens work on non-symlinks
31203         * lib/utimens.c (lutimens): Fall back to utimens rather than
31204         failing with ENOSYS, when file is not a symlink.
31205         (utimens): Reduce redirection.
31206         * tests/test-lutimens.h (test_lutimens): Update test to cover
31207         non-symlinks.
31208         * tests/test-utimens.h (test_utimens): Update test to cover
31209         symlinks.
31210         * tests/test-utimens.c (main): Update caller.
31211
31212         utimens: cache whether utimensat syscall works
31213         * lib/utimens.c (utimensat_works_really): New cache variable.
31214         (fdutimens, lutimens): Use it to avoid failing syscall.
31215
31216         test-stat-time, test-utimens: improve portability
31217         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
31218         ext4 on alpha, and for cygwin.
31219         * tests/test-utimens-common.h: New file.
31220         (nap): Factor delays into single function.
31221         * tests/test-lutimens.h (test_lutimens): Use new header.
31222         * tests/test-futimens.h (test_futimens): Likewise.
31223         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
31224         timestamps to occur from same machine, as was done previously for
31225         test_utimens.
31226         * modules/utimens-tests (Files): Ship new file.
31227         * modules/futimens-tests (Files): Likewise.
31228         Reported in part by Jim Meyering.
31229
31230         sys_stat: sort replacement declarations
31231         * lib/sys_stat.in.h: Sort declarations.
31232         * lib/futimens.c (futimens): Fix typo.
31233
31234 2009-10-15  Jim Meyering  <meyering@redhat.com>
31235
31236         don't let environment settings perturb build
31237         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
31238         could cause a configure-time and/or build-time malfunction.
31239         Typically, a configure-time function-in-library test is performed
31240         via code like this:
31241
31242           LIB_VAR=
31243           AC_SUBST([LIB_VAR])
31244           prefix_saved_LIBS=$LIBS
31245             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
31246                        [test "$ac_cv_search_FUNC" = "none required" ||
31247                         LIB_VAR=$ac_cv_search_FUNC])
31248           LIBS=$prefix_saved_LIBS
31249
31250         However, in each of the files affected by this change, the LIB_VAR=
31251         initialization was omitted.  Thus, when set in the environment, its
31252         value would propagate into generated Makefiles when FUNC is not found
31253         in LIB_NAME.
31254         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
31255         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
31257
31258 2009-10-14  Eric Blake  <ebb9@byu.net>
31259
31260         fchdir: avoid infinite recursion in mingw
31261         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
31262         recursing.
31263
31264         test-stat-time: port to mingw
31265         * tests/test-stat-time.c (force_unlink): Return a value.
31266         (test_ctime) [W32]: Fix compilation error.
31267         (nap): Don't call usleep with too large an argument.  Use
31268         force_unlink.
31269         * doc/pastposix-functions/usleep.texi (usleep): Document the
31270         portability issue.
31271
31272 2009-10-13  Jim Meyering  <meyering@redhat.com>
31273
31274         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
31275         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
31276         * modules/pipe-filter-ii: Likewise.
31277         * modules/sys_socket-tests: Likewise.
31278         * modules/tsearch-tests: Likewise.
31279         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
31280         (check): Depend on it.
31281
31282 2009-10-12  Eric Blake  <ebb9@byu.net>
31283
31284         utimens-tests: port to NFS file systems
31285         * tests/test-utimens.h (test_utimens): Refactor utimecmp
31286         comparisons to avoid spurious failures from timestamp drift
31287         between NFS machines.
31288
31289 2009-10-12  Eric Blake  <ebb9@byu.net>
31290
31291         stat-time-tests: minor cleanups
31292         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
31293         * tests/test-stat-time.c (nap): Separate assignment from call.
31294         Suggested by Paolo Bonzini and Bruno Haible.
31295
31296         sys_stat: guarantee struct timespec
31297         * lib/sys_stat.in.h (includes): Always include <time.h>
31298         * modules/sys_stat (Depends-on): Add time.
31299         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
31300         mode_t permission values.
31301         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
31302         get at subsecond timestamps.
31303
31304 2009-10-10  Eric Blake  <ebb9@byu.net>
31305
31306         futimens: new module
31307         * modules/futimens: New file.
31308         * lib/futimens.c (futimens): Likewise.
31309         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
31310         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
31311         we can work around Linux bugs.
31312         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31313         * modules/sys_stat (Makefile.am): Substitute them.
31314         * lib/sys_stat.in.h (futimens): Declare it.
31315         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31316         * doc/posix-functions/futimens.texi (futimens): Likewise.
31317         * modules/futimens-tests: New test.
31318         * tests/test-futimens.c: Likewise.
31319
31320         utimens: introduce fdutimens
31321         * lib/utimens.h (fdutimens): New prototype.
31322         * lib/utimens.c (gl_futimens): Move guts...
31323         (fdutimens): ...to new interface.
31324         * tests/test-utimens.c (do_fdutimens): Use it.
31325
31326         utimens: add UTIME_NOW and UTIME_OMIT support
31327         * lib/utimens.c (validate_timespec, update_timespec): New helper
31328         functions.
31329         (gl_futimens, lutimens): Use them.
31330         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
31331         stdbool, sys_stat.
31332         (Link): Mention resulting library dependency.
31333         * modules/utimecmp (Link): Likewise.
31334         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
31335         (Makefile.am): Pick up library dependency.
31336         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
31337         definition.
31338         * tests/test-sys_stat.c: Test the definitions.
31339         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
31340         * NEWS: Document library dependency.
31341
31342         utimecmp: support symlink timestamps
31343         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
31344         hashing when possible.  Use pathconf when available.
31345         (SYSCALL_RESOLUTION): Recognize tighter resolution.
31346         * modules/utimecmp (Depends-on): Add lstat.
31347
31348         utimens: add lutimens interface
31349         * lib/utimens.c (lutimens): New function.
31350         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
31351         * lib/utimens.h (lutimens): Declare new interface.
31352         * tests/test-utimens.c (main): Enhance test.
31353         * tests/test-lutimens.h (test_lutimens): New file.
31354         * modules/utimens-tests (Files): Distribute it.
31355         (Depends-on): Add symlink.
31356         (configure.ac): Check for usleep.
31357
31358         utimens: validate futimens usage
31359         * lib/utimens.c (gl_futimens): Require valid fd up front, using
31360         fewer syscalls on failure later on.  Avoid compiler warning on
31361         mingw.
31362         * modules/utimens (Depends-on): Add dup2.
31363
31364         utimens: add test
31365         * modules/utimens-tests: New test.
31366         * tests/test-utimens.h: New file.
31367         * tests/test-futimens.h: Likewise.
31368         * tests/test-utimens.c: Likewise.
31369
31370         doc: mention timestamp portability issues
31371         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
31372         instead.
31373         * doc/posix-functions/utime.texi (utime): Likewise.
31374         * doc/posix-functions/utimes.texi (utimes): Likewise.
31375         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
31376         instead.
31377         * doc/posix-functions/futimens.texi (futimens): Mention utimens
31378         module.
31379         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31380         Mention weakness with symlink timestamps.
31381         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
31382         to utimensat/futimens instead.
31383         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
31384
31385         test-dup2: enhance test
31386         * tests/test-dup2.c (main): Also check AT_FDCWD.
31387
31388         test-stat-time: avoid more spurious failures
31389         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
31390         xfs; and avoid race if the two timestamps cross quantization edge.
31391
31392         relocatable: prefer 'file system' over 'filesystem'
31393         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
31394         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
31395         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
31396         * doc/relocatable.texi (Enabling Relocatability): Likewise.
31397         * lib/relocatable.c (compute_curr_prefix): Likewise.
31398
31399 2009-10-10  Jim Meyering  <meyering@redhat.com>
31400
31401         stat-time-tests: check for the usleep function
31402         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
31403
31404 2009-10-10  Bruno Haible  <bruno@clisp.org>
31405
31406         * modules/xnanosleep: Put the Link section after the Include section.
31407
31408 2009-10-09  Eric Blake  <ebb9@byu.net>
31409
31410         dup2: work around FreeBSD 6.1 bug
31411         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
31412         * doc/posix-functions/dup2.texi (dup2): Document it.
31413         Reported by Nelson H. F. Beebe and Jim Meyering.
31414
31415         test-stat-time: port to buggy NFS clients
31416         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
31417         (test_ctime): Also skip test if mtime and ctime are skewed.
31418
31419         maint: prefer 'file system' over 'filesystem'
31420         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31421         * doc/posix-functions/lstat.texi (lstat): Likewise.
31422         * lib/file-has-acl.c (file_has_acl): Likewise.
31423         * lib/fwriteerror.c [TEST]: Likewise.
31424         * tests/test-areadlink.h (test_areadlink): Likewise.
31425         * tests/test-areadlinkat-with-size.c (main): Likewise.
31426         * tests/test-areadlinkat.c (main): Likewise.
31427         * tests/test-canonicalize-lgpl.c (main): Likewise.
31428         * tests/test-canonicalize.c (main): Likewise.
31429         * tests/test-fstatat.c (main): Likewise.
31430         * tests/test-linkat.c (main): Likewise.
31431         * tests/test-lstat.h (test_lstat_func): Likewise.
31432         * tests/test-mkdir.h (test_mkdir): Likewise.
31433         * tests/test-readlink.h (test_readlink): Likewise.
31434         * tests/test-remove.c (main): Likewise.
31435         * tests/test-rename.h (test_rename): Likewise.
31436         * tests/test-renameat.c (main): Likewise.
31437         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31438         * tests/test-symlink.h (test_symlink): Likewise.
31439         * tests/test-symlinkat.c (main): Likewise.
31440         * tests/test-unlink.h (test_unlink_func): Likewise.
31441         * tests/test-unlinkat.c (main): Likewise.
31442
31443         maint: make realtime library usage explicit
31444         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
31445         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
31446         * modules/settime (Link): Likewise.
31447         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
31448
31449         test-stat-time: speed up execution
31450         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
31451         warning on mingw.
31452         (nap): New helper function.
31453         (prepare_test): Use it to reduce sleep time.
31454         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
31455         execution.
31456         * modules/stat-time-tests (configure.ac): Check for usleep.
31457
31458 2009-10-09  Jim Meyering  <meyering@redhat.com>
31459
31460         selinux-h: always use getfilecon wrappers
31461         * lib/getfilecon.c: New file.
31462         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
31463         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
31464         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
31465         (fgetfilecon): Provide a stub.
31466         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
31467         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
31468         file unconditionally.
31469         When <selinux/selinux.h> is found, arrange to use wrappers.
31470         * modules/selinux-h (Files): Add getfilecon.c.
31471         (Makefile.am): Substitute include-next-related bits
31472         into the now-always-generated selinux/selinux.h file.
31473         * doc/glibc-functions/lgetfilecon.texi: New file.
31474         * doc/glibc-functions/fgetfilecon.texi: New file.
31475         * doc/glibc-functions/getfilecon.texi: New file.
31476         * doc/glibc-functions/getfilecon-desc.texi: New file.
31477         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
31478         which to pull in the new files.
31479         * MODULES.html.sh (Misc): Add selinux-h.
31480
31481 2009-10-08  Jim Meyering  <meyering@redhat.com>
31482
31483         unistd: fix comment typo
31484         * lib/unistd.in.h (euidaccess): Fix a comment typo.
31485
31486 2009-10-08  Eric Blake  <ebb9@byu.net>
31487
31488         areadlink: use SIZE_MAX consistently
31489         * modules/areadlink (Depends-on): Add stdint.
31490         * modules/areadlink-with-size (Depends-on): Likewise.
31491         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
31492         gives NULL; drop sys/types, since unistd gives size_t; and add
31493         stdint for SIZE_MAX.
31494         (SIZE_MAX): Rely on headers.
31495         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
31496         and add stdint.
31497         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
31498         (SIZE_MAX): Likewise.
31499         (INITIAL_BUF_SIZE): Turn into enum.
31500         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
31501
31502 2009-10-08  Jim Meyering  <meyering@redhat.com>
31503
31504         areadlinkat: avoid compilation failure
31505         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
31506         Fix typo in comment.
31507
31508 2009-10-07  Eric Blake  <ebb9@byu.net>
31509
31510         areadlinkat-with-size: new module
31511         * modules/areadlinkat-with-size: New module.
31512         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
31513         * lib/areadlink.h (areadlinkat): Declare it.
31514         * MODULES.html.sh (File system functions): Mention it.
31515         * modules/areadlinkat-with-size-tests: New test.
31516         * tests/test-areadlinkat-with-size.c: New file.
31517
31518         xreadlinkat: new module
31519         * modules/xreadlinkat: New module.
31520         * lib/xreadlinkat.c (xreadlinkat): New file.
31521         * lib/xreadlink.h (xreadlinkat): Declare it.
31522         * MODULES.html.sh (File system functions): Mention it.
31523
31524         areadlinkat: new module
31525         * lib/at-func.c (FUNC_FAIL): New define.
31526         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
31527         * modules/areadlinkat: New module.
31528         * lib/linkat.c (areadlinkat): Move...
31529         * lib/areadlinkat.c (areadlinkat): ...to new file.
31530         * lib/areadlink.h (areadlinkat): Declare it.
31531         * modules/linkat (Depends-on): Add areadlinkat.
31532         * MODULES.html.sh (File system functions): Mention it.
31533         * modules/areadlinkat-tests: New test.
31534         * tests/test-areadlinkat.c: New file.
31535
31536         areadlink, areadlink-with-size: add tests
31537         * modules/areadlink-tests: New test.
31538         * modules/areadlink-with-size-tests: Likewise.
31539         * tests/test-areadlink.h: New file.
31540         * tests/test-areadlink.c: Likewise.
31541         * tests/test-areadlink-with-size.c: Likewise.
31542
31543         maint: minor cleanups
31544         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
31545         _UNUSED_PARAMETER_ instead.
31546         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
31547         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
31548         * modules/linkat-tests (Files): Distribute test-link.h.
31549
31550         openat, utimens: whitespace cleanup
31551         * lib/openat.c: Prefer space throughout, rather than mix of 8
31552         spaces vs. tabs.
31553         * lib/at-func.c: Likewise.
31554         * lib/utimens.c: Likewise.
31555
31556         openat: avoid using wrong fd
31557         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31558         working directory chooses same fd.
31559         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31560
31561         mkdir, mkdirat: fix cygwin 1.5.x bug
31562         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31563         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31564         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31565         bug.
31566         (gl_PREREQ_MKDIR): Delete unused macro.
31567         * modules/mkdir (Files): Track file rename.
31568         (configure.ac): Update macro name.
31569         * modules/openat (Depends-on): Add mkdir.
31570         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31571
31572         mkdir, mkdirat: add tests
31573         * modules/mkdir-tests: New test.
31574         * tests/test-mkdir.h: New file.
31575         * tests/test-mkdir.c: Likewise.
31576         * tests/test-mkdirat.c: Likewise.
31577         * modules/openat-tests (Files): Add new files.
31578         (Makefile.am): Run new test.
31579
31580 2009-10-06  Eric Blake  <ebb9@byu.net>
31581
31582         doc: tweak *at function documentation
31583         * doc/posix-functions/faccessat.texi (faccessat): Mention
31584         known issue with replacement.
31585         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31586         * doc/posix-functions/linkat.texi (linkat): Likewise.
31587         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31588         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31589         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31590         * doc/posix-functions/renameat.texi (renameat): Likewise.
31591         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31592
31593         openat: fix GNU/Hurd bug in unlinkat
31594         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31595         broken.
31596         * doc/posix-functions/unlink.texi (unlink): Document this.
31597         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31598
31599         fdopendir: fix GNU/Hurd bug
31600         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31601         allowing non-directory fds.
31602         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31603         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31604         * modules/dirent (Makefile.am): Substitute it.
31605         * lib/dirent.in.h (fdopendir): Declare replacement.
31606         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31607         * tests/test-fdopendir.c (main): Test something other than
31608         /dev/null, since on Hurd that behaves like a directory.
31609
31610         test-symlink: port to GNU/Hurd
31611         * tests/test-symlink.h (test_symlink): Relax expected errno.
31612
31613         doc: tweak more cygwin information
31614         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31615         now compatible with glibc.
31616         * doc/posix-functions/getopt.texi (getopt): Likewise.
31617
31618         getopt-gnu: add another test
31619         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31620         guarantee behavior relied on by m4.
31621         * tests/test-getopt.c (main): Use it.
31622         * modules/getopt-posix-tests (Depends-on): Add setenv.
31623         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31624
31625         getopt: fix compilation on darwin
31626         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31627         include.
31628         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31629         Reported by Ludovic Courtès.
31630
31631 2009-10-06  Bruno Haible  <bruno@clisp.org>
31632
31633         * modules/size_max (Description): Discourage its use.
31634         Reported by Simon Josefsson.
31635
31636 2009-10-06  Jim Meyering  <meyering@redhat.com>
31637
31638         linkat: avoid compilation failure
31639         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31640
31641 2009-10-05  Eric Blake  <ebb9@byu.net>
31642
31643         linkat: support Linux 2.6.17
31644         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31645         linkat on Linux, but allow cache variable override.
31646         * lib/linkat.c (rpl_linkat): Define override.
31647         * modules/linkat (Depends-on): Add symlinkat.
31648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31649         * modules/unistd (Makefile.am): Substitute it.
31650         * lib/unistd.in.h (linkat): Declare replacement.
31651         Reported by Pádraig Brady.
31652
31653         quotearg: port test to systems with C.UTF-8 locale
31654         * tests/test-quotearg.c (struct result_strings): Add another
31655         member, differentiating between C.ASCII and C.UTF-8 handling.
31656         (compare_strings): Add parameter.
31657         (main): Adjust all callers.
31658
31659         getopt: avoid clash with FreeBSD _getopt_internal
31660         * lib/getopt.in.h (_getopt_internal): Override the name.
31661         * lib/getopt_int.h (includes): Pick up any overrides.
31662         Reported by Reuben Thomas.
31663
31664         hash: allow C89 compilation
31665         * lib/hash.c (check_tuning): Move declaration before statement.
31666         Reported by Reuben Thomas.
31667
31668 2009-10-05  Karl Berry  <karl@gnu.org>
31669
31670         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31671
31672 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31673             Bruno Haible  <bruno@clisp.org>
31674
31675         * lib/uname.c (uname): Use a table-driven algorithm to compute
31676         Windows NT versions.
31677
31678 2009-10-04  Bruno Haible  <bruno@clisp.org>
31679
31680         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31681         program_invocation_short_name.
31682         * modules/progname (configure.ac): Test for presence of
31683         program_invocation_short_name.
31684         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31685
31686 2009-10-04  Bruno Haible  <bruno@clisp.org>
31687
31688         * lib/progname.c (set_program_name): Fix comment.
31689         Reported by Jim Meyering.
31690
31691 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31692             Bruno Haible  <bruno@clisp.org>
31693
31694         * lib/uname.c: Include <string.h>.
31695         (uname): Do only one call to GetVersionEx in the common case.
31696
31697 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31698             Bruno Haible  <bruno@clisp.org>
31699
31700         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31701         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31702         (uname): Add support for Windows CE and various non-x86 CPU types.
31703
31704 2009-10-03  Bruno Haible  <bruno@clisp.org>
31705
31706         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31707         invocation to tests/configure.ac.
31708         Reported by Ian Beckwith <ianb@erislabs.net>.
31709
31710 2009-10-02  Eric Blake  <ebb9@byu.net>
31711
31712         fchdir: avoid compiler warning
31713         * lib/fchdir.c (canonicalize_file_name)
31714         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31715
31716         test-open: support mingw errno values
31717         * tests/test-open.h (test_open): Relax test.
31718         * tests/test-fopen.h (test_fopen): Likewise.
31719         * tests/test-openat-safer.c (main): Likewise.
31720
31721         open: fix opening directory on mingw
31722         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31723
31724         test-open: on GNU/Hurd, /dev/null is a directory
31725         * tests/test-fopen.h (main): Rename...
31726         (test_fopen): ...to this.  Use a guaranteed non-directory when
31727         confirming open behavior on trailing slash.
31728         * tests/test-openat-safer.c (main): Likewise.
31729         * tests/test-open.h (main): Likewise....
31730         (test_open): ...to this.
31731         * tests/test-fopen.c (main): Adjust caller.
31732         * tests/test-fopen-safer.c (main): Likewise.
31733         * tests/test-open.c (main): Likewise.
31734         * tests/test-fcntl-safer.c (main): Likewise.
31735         Reported by Samuel Thibault.
31736
31737         rename, fchdir: don't ignore chdir failure
31738         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31739         * lib/rename.c (rpl_rename) [W32]: Likewise.
31740         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31741         an empty destination directory if source cannot be renamed,
31742         although there is still possibility for failure.
31743         * doc/posix-functions/rename.texi (rename): Document the race.
31744         Reported by Jim Meyering.
31745
31746         maint: cleanup whitespace in recent commits
31747         * lib/rename.c (rpl_rename): Remove tabs.
31748         * tests/test-link.h (test_link): Likewise.
31749         * lib/fchdir.c (get_name): Likewise.
31750         Reported by Jim Meyering.
31751
31752 2009-10-02  Ben Pfaff  <blp@gnu.org>
31753
31754         relocatable-prog-wrapper: Add missing dependency on
31755         double-slash-root.
31756         * modules/relocatable-prog-wrapper: Add dependency.
31757         Reported by Ian Beckwith <ianb@erislabs.net>.
31758
31759 2009-10-02  Eric Blake  <ebb9@byu.net>
31760
31761         renameat: fix Solaris bugs
31762         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31763         needed fixing.
31764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31765         * modules/stdio (Makefile.am): Substitute it.
31766         * lib/stdio.in.h (renameat): Declare replacement.
31767         * lib/renameat.c (rpl_renameat): Implement fix.
31768
31769         renameat: new module
31770         * modules/renameat: New file.
31771         * lib/renameat.c (renameat): Likewise.
31772         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31774         * modules/stdio (Makefile.am): Substitute them.
31775         * lib/stdio.in.h (renameat): Declare it.
31776         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31777         * doc/posix-functions/renameat.texi (renameat): Likewise.
31778         * modules/renameat-tests: New test.
31779         * tests/test-renameat.c: Likewise.
31780
31781         rename: fix mingw bugs
31782         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31783         directory overwrite bugs.
31784
31785         rename: fix another cygwin 1.5 bug
31786         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31787         checks.
31788         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31789         unnecessary cygwin workarounds.  Also work around bug with moving
31790         full directory onto an empty one.
31791         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31792
31793         rename-dest-slash: merge into rename module
31794         * modules/rename-dest-slash (Status): Mark obsolete.
31795         (Depends-on): Add rename.
31796         (Files): Let rename do it all.
31797         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31798         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31799         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31800         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31801         * lib/rename.c (rpl_rename): Update comments.
31802
31803         rename: fix cygwin 1.5.x bugs
31804         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31805         * lib/rename.c (rpl_rename): Work around them.
31806         * modules/rename (Depends-on): Add same-inode.
31807
31808         rename: fix Solaris 10 bug
31809         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31810         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31811         was the only bug.
31812
31813         rename: fix Solaris 9 bug
31814         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31815         on non-directory.  Avoid calling exit.
31816         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31817         strdup.
31818         * modules/rename-tests (Depends-on): Drop lstat.
31819         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31820         (gl_PREREQ_RENAME): Delete unused macro.
31821
31822         rename-dest-slash: fix NetBSD bug
31823         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31824         links.
31825         * modules/rename-dest-slash (Depends-on): Add same-inode.
31826
31827         rename-tests: new test, exposes several platform bugs
31828         * modules/rename-tests: New file.
31829         * tests/test-rename.h: Likewise.
31830         * tests/test-rename.c: Likewise.
31831         * doc/posix-functions/rename.texi (rename): Improve documentation,
31832         including bugs that will eventually be fixed in gnulib.
31833
31834 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31835
31836         * lib/uname.c: Include <stdlib.h>
31837         (uname): Assume version info is available.
31838
31839 2009-10-02  Jim Meyering  <meyering@redhat.com>
31840
31841         gnu-web-doc-update: correct --help output
31842         * build-aux/gnu-web-doc-update: Make --help output relevant.
31843
31844         gnu-web-doc-update: add standard options
31845         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31846
31847         gnu-web-doc-update: New module.
31848         Use this script to automatically update the on-line web documentation
31849         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31850         * modules/gnu-web-doc-update: New file, from coreutils.
31851         * build-aux/gnu-web-doc-update: New script.
31852
31853 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31854
31855         link: LoadLibrary is not needed.
31856         * lib/link.c: Use GetModuleHandle.
31857
31858 2009-10-01  Eric Blake  <ebb9@byu.net>
31859
31860         getopt: bump serial number
31861         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31862         change.
31863
31864         tests: tighten link, rmdir, and remove tests
31865         * tests/test-link.h (includes): No need to use <config.h> here.
31866         Clean up if directory hard link was created, otherwise test for
31867         trailing '.'.
31868         * tests/test-linkat.c (main): Simplify.
31869         * tests/test-remove.c (main): Enhance test for trailing '.'.
31870         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31871
31872 2009-10-01  Jim Meyering  <meyering@redhat.com>
31873
31874         maint.mk: requiring "make major" was annoying, for a "minor" release.
31875         What is intended is "stable", to contrast with alpha and beta,
31876         so require "make stable", not "make major".
31877         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31878         (get_tool_versions): Likewise.
31879         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31880
31881 2009-09-30  Ben Pfaff  <blp@gnu.org>
31882
31883         Fix broken build of replacement for Windows tmpfile().
31884         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31885         flags argument added along with the 'mkostemp' module.
31886
31887 2009-09-28  Bruno Haible  <bruno@clisp.org>
31888
31889         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31890         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31891         to 'remove_elt'.
31892         (gl_list_remove): Update.
31893         * lib/gl_list.c (gl_list_remove): Update.
31894         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31895         to 'remove_elt'.
31896         (gl_oset_remove): Update.
31897         * lib/gl_list.c (gl_oset_remove): Update.
31898         Reported by Eric Blake.
31899
31900 2009-09-28  Eric Blake  <ebb9@byu.net>
31901
31902         doc: mention yet more cygwin 1.7 status
31903         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31904         cygwin.
31905         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31906         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31907
31908         argp: fix test failure
31909         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31910         that are not upper-case.  Pass correct range to tolower.
31911
31912 2009-09-27  Jim Meyering  <meyering@redhat.com>
31913
31914         test-yesno: work around sparc-dash here-document infelicity
31915         Without this change, the literal \177 byte in a here document
31916         would make dash 0.5.5.1-3 access uninitialized memory.
31917         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31918         Instead, use a marker, "@", and filter through tr to create the desired
31919         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31920
31921 2009-09-27  Bruno Haible  <bruno@clisp.org>
31922
31923         Disable untested support for new flavours of ACLs on AIX.
31924         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31925         progress.
31926         * lib/set-mode-acl.c (qset_acl): Likewise.
31927
31928 2008-12-07  Bruno Haible  <bruno@clisp.org>
31929
31930         Add support for new flavours of ACLs on AIX. (Untested.)
31931         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31932         (file_has_acl): Add support for newer AIX.
31933         * lib/set-mode-acl.c (qset_acl): Likewise.
31934         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31935         Rainer Tammer <tammer@tammer.net>.
31936
31937 2009-09-26  Eric Blake  <ebb9@byu.net>
31938
31939         argp: fix compilation of getopt
31940         * lib/getopt.in.h (includes): Use different guard than glibc.
31941         Reported by Sergey Poznyakoff.
31942
31943         doc: mention more cygwin 1.7 status
31944         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31945         bug.
31946         * doc/posix-functions/execl.texi (execl): Likewise.
31947         * doc/posix-functions/execle.texi (execle): Likewise.
31948         * doc/posix-functions/execlp.texi (execlp): Likewise.
31949         * doc/posix-functions/execv.texi (execv): Likewise.
31950         * doc/posix-functions/execve.texi (execve): Likewise.
31951         * doc/posix-functions/execvp.texi (execvp): Likewise.
31952         * doc/glibc-functions/canonicalize_file_name.texi
31953         (canonicalize_file_name): Cygwin 1.7 now provides this.
31954         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31955         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31956         on AT_SYMLINK_NOFOLLOW.
31957
31958 2009-09-24  Eric Blake  <ebb9@byu.net>
31959
31960         test-linkat: make test more robust
31961         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31962
31963         getopt: fix inclusion guards for cygwin
31964         * modules/getopt-posix (Depends-on): Add include-next.
31965         (Makefile.am): Substitute more items in replacement header.
31966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31967         <getopt.h>.
31968         * lib/getopt.in.h (includes): Use split inclusion guard, and
31969         prefer <getopt.h> over include <unistd.h> when one is present.
31970         (option): Also override name of 'struct option'.
31971
31972         same-inode: revert prior change; it is not yet ready
31973         * NEWS: Undo mention of this change.
31974         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31975         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31976         * lib/cycle-check.c (cycle_check): Likewise.
31977         * lib/same.c (same_name): Likewise.
31978         * lib/at-func2.c (at_func2): Likewise.
31979
31980 2009-09-23  Eric Blake  <ebb9@byu.net>
31981
31982         linkat: new module
31983         * modules/linkat: New file.
31984         * lib/at-func2.c (at_func2): Likewise.
31985         * lib/linkat.c (linkat): Likewise.
31986         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31987         * lib/openat-priv.h (at_func2): Add declaration.
31988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31989         * modules/unistd (Makefile.am): Substitute them.
31990         * lib/unistd.in.h (linkat): Declare it.
31991         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31992         * doc/posix-functions/linkat.texi (linkat): Likewise.
31993         * doc/posix-functions/link.texi (link): Tweak wording.
31994         * tests/test-link.c (main): Move guts...
31995         * tests/test-link.h (test_link): ...into new file.
31996         * modules/linkat-tests: New test.
31997         * tests/test-linkat.c: Likewise.
31998         * modules/link-tests (Files): Ship new file.
31999         (Depends-on): Add stdbool.
32000
32001         dirname: add library-safe mdir_name
32002         * lib/dirname.h (mdir_name): New prototype.
32003         * lib/dirname.c (dir_name): Move guts...
32004         (mdir_name): ...to new function that avoids xalloc_die.
32005
32006         fchdir: another mingw fix
32007         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32008         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32009         on mingw (where it has not yet been ported), and make it optional
32010         elsewhere.
32011         (_gl_register_fd): Use it.
32012
32013         same-inode: make SAME_INODE tri-state, to port to mingw
32014         * NEWS: Mention this change.
32015         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32016         st_ino always being 0.
32017         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32018         * lib/cycle-check.c (cycle_check): Likewise.
32019         * lib/same.c (same_name): Likewise.
32020
32021         lstat: avoid mingw compilation error
32022         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
32023         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
32024         lstat ourselves.
32025         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
32026         was adequate.
32027         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
32028         the checks for lstat.
32029         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
32030
32031         link: fix test failure on Solaris 9
32032         * lib/link.c (rpl_link): Don't assume link will catch bogus
32033         trailing slash on source.
32034
32035         test-symlinkat: enhance test
32036         * tests/test-readlink.c (main): Move guts...
32037         * tests/test-readlink.h (test_readlink): ...into new file.
32038         * tests/test-symlink.c (main): Move guts...
32039         * tests/test-symlink.h (test_symlink): ...into new file.
32040         * tests/test-symlinkat.c (main): Use new files for further
32041         coverage.
32042         (do_symlink, do_readlink): New helper functions.
32043         * modules/symlink-tests (Files): Ship new file.
32044         (Depends-on): Add stdbool.
32045         * modules/readlink-tests (Files): Ship new file.
32046         (Depends-on): Add stdbool.
32047         * modules/symlinkat-tests (Files): Use new files.
32048
32049 2009-09-23  Eric Blake  <ebb9@byu.net>
32050
32051         readlink: document portability issue with symlink length
32052         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32053         systems have bogus st_size on symlinks, and mention the
32054         areadlink-with-size module.
32055         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32056         * doc/posix-functions/readlink.texi (readlink): Mention the
32057         areadlink module, and ERANGE failure.
32058         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32059         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32060
32061         readlink: fix Solaris 9 bug with trailing slash
32062         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32063         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32064         * doc/posix-functions/readlink.texi (readlink): Document this.
32065         * modules/readlink-tests: New test.
32066         * tests/test-readlink.c: Likewise.
32067
32068         readlink: fix cygwin 1.5.x bug with return type
32069         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32070         * lib/unistd.in.h (readlink): Use ssize_t.
32071         * lib/readlink.c (readlink): Likewise.
32072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32073         * modules/unistd (Makefile.am): Substitute it.
32074         * lib/unistd.in.h (readlink): Declare replacement.
32075         * doc/posix-functions/readlink.texi (readlink): Document this.
32076
32077         symlink: use throughout gnulib
32078         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32079         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32080         symlink is not used.
32081         * modules/symlinkat (Depends-on): Add symlink.
32082         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32083         * modules/canonicalize-tests (Depends-on): Likewise.
32084         * modules/lstat-tests (Depends-on): Likewise.
32085         * modules/openat-tests (Depends-on): Likewise.
32086         * modules/remove-tests (Depends-on): Likewise.
32087         * modules/rmdir-tests (Depends-on): Likewise.
32088         * modules/unlink-tests (Depends-on): Likewise.
32089         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32090         * tests/test-canonicalize.c (symlink): Likewise.
32091         * tests/test-fstatat.c (symlink): Likewise.
32092         * tests/test-lstat.c (symlink): Likewise.
32093         * tests/test-remove.c (symlink): Likewise.
32094         * tests/test-rmdir.c (symlink): Likewise.
32095         * tests/test-unlink.c (symlink): Likewise.
32096         * tests/test-unlinkat.c (symlink): Likewise.
32097
32098         symlink: new module, for Solaris 9 bug
32099         * modules/symlink: New file.
32100         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32101         * lib/symlink.c: Likewise.
32102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32103         * modules/unistd (Makefile.am): Substitute them.
32104         * lib/unistd.in.h (symlink): Declare replacement.
32105         * MODULES.html.sh (File system functions): Mention it.
32106         * doc/posix-functions/symlink.texi (symlink): Likewise.
32107         * modules/symlink-tests: New test.
32108         * tests/test-symlink.c: Likewise.
32109
32110 2009-09-23  Bruno Haible  <bruno@clisp.org>
32111
32112         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32113         when needed.
32114         Test case: gnulib-tool --import --with-tests atexit inttypes.
32115         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32116
32117 2009-09-23  Bruno Haible  <bruno@clisp.org>
32118
32119         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32120         subcommand, not in a subshell.
32121
32122 2009-09-22  Eric Blake  <ebb9@byu.net>
32123
32124         unistd: sort replacement declarations
32125         * lib/unistd.in.h: Sort declarations.
32126
32127         open, openat: minor optimization
32128         * lib/open.c (open): If open succeeded, len is non-zero.
32129         * lib/openat.c (rpl_openat): Likewise.
32130
32131         link-follow: ensure correct result
32132         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
32133         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
32134         distinguish between possible failures.
32135
32136 2009-09-21  Eric Blake  <ebb9@byu.net>
32137
32138         fts: avoid compiler warning
32139         * lib/fts.c (dirent_inode_sort_may_be_useful)
32140         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
32141
32142 2009-09-19  Bruno Haible  <bruno@clisp.org>
32143
32144         * lib/progreloc.c (canonicalize_file_name): New declaration.
32145
32146 2009-09-19  Eric Blake  <ebb9@byu.net>
32147
32148         link: fix quoting
32149         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
32150
32151         openat: fix openat bugs on Solaris 9
32152         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
32153         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
32154         * modules/openat (Depends-on): Add open.
32155         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
32156         * modules/fcntl-h (Makefile.am): Substitute it.
32157         * lib/fcntl.in.h (openat): Declare replacement.
32158         * doc/posix-functions/openat.texi (openat): Document this.
32159
32160         openat: move fstatat and unlinkat into correct files
32161         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
32162         compiled.
32163         * lib/openat.c (fstatat, unlinkat): Move...
32164         * lib/fstatat.c (fstatat): ...into correct files.
32165         * lib/unlinkat.c (unlinkat): Likewise.
32166
32167         openat: fix unlinkat bugs on Solaris 9
32168         * lib/unlinkat.c (unlinkat): New file.
32169         * modules/openat (Depends-on): Add unlink.
32170         (Files): Distribute it.
32171         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
32172         trailing slash behavior is broken.
32173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32174         * modules/unistd (Makefile.am): Substitute it.
32175         * lib/unistd.in.h (unlinkat): Declare replacement.
32176         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
32177
32178         openat: fix fstatat bugs on Solaris 9
32179         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
32180         stat.
32181         * doc/posix-functions/fstatat.texi (fstatat): Document this.
32182
32183         test-unlinkat: enhance test, to expose Solaris 9 bug
32184         * tests/test-unlink.c (main): Factor guts...
32185         * tests/test-unlink.h (test_rmdir_func): ...into new file.
32186         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
32187         * tests/test-rmdir.c (main): Adjust caller.
32188         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
32189         (unlinker): New helper function.
32190         (rmdirat): Enhance check.
32191         * modules/rmdir-tests (Depends-on): Add stdbool.
32192         * modules/unlink-tests (Depends-on): Likewise.
32193         (Files): Add test-unlink.h.
32194         * modules/openat-tests (Files): Likewise.
32195         (Depends-on): Add unlinkdir.
32196
32197         test-fstatat: new test, to expose Solaris 9 bugs
32198         * tests/test-stat.c (main): Factor guts...
32199         * tests/test-stat.h (test_stat_func): ...into new file.
32200         * tests/test-lstat.c (main): Factor guts...
32201         * tests/test-lstat.h (test_lstat_func): ...into new file.
32202         * tests/test-fstatat.c: New file.
32203         * modules/stat-tests (Files): Add test-stat.h.
32204         * modules/lstat-tests (Files): Add test-lstat.h.
32205         (Depends-on): Add stdbool.
32206         * modules/openat-tests (Depends-on): Add pathmax.
32207         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
32208         (Makefile.am): Run new test.
32209
32210         remove: new module, for mingw and Solaris 9 bugs
32211         * modules/remove: New file.
32212         * lib/remove.c: Likewise.
32213         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
32214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32215         * modules/stdio (Makefile.am): Use them.
32216         * lib/stdio.in.h (remove): Declare replacement.
32217         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32218         * doc/posix-functions/remove.texi (remove): Likewise.
32219         * modules/remove-tests: New test.
32220         * tests/test-remove.c: Likewise.
32221
32222         unlink: new module, for Solaris 9 bug
32223         * modules/unlink: New file.
32224         * lib/unlink.c: Likewise.
32225         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
32226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32227         * modules/unistd (Makefile.am): Use them.
32228         * lib/unistd.in.h (stat): Declare replacement.
32229         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32230         * doc/posix-functions/unlink.texi (unlink): Likewise.
32231         * modules/unlink-tests: New test.
32232         * tests/test-unlink.c: Likewise.
32233
32234         lstat: fix Solaris 9 bug
32235         * lib/lstat.c (lstat): Also check for trailing slash on
32236         non-symlink, non-directories.  Use stat module to simplify logic.
32237         * doc/posix-functions/lstat.texi (lstat): Document it.
32238         * modules/lstat-tests (Depends-on): Add errno, same-inode.
32239         (configure.ac): Check for symlink.
32240         * tests/test-lstat.c (main): Add more tests.
32241
32242         stat: add as dependency to other modules
32243         * modules/chown (Depends-on): Add stat.
32244         * modules/euidaccess (Depends-on): Likewise.
32245         * modules/fchdir (Depends-on): Likewise.
32246         * modules/isdir (Depends-on): Likewise.
32247         * modules/link (Depends-on): Likewise.
32248         * modules/lstat (Depends-on): Likewise.
32249         * modules/mkdir-p (Depends-on): Likewise.
32250         * modules/modechange (Depends-on): Likewise.
32251         * modules/open (Depends-on): Likewise.
32252         * modules/readlink (Depends-on): Likewise.
32253         * modules/same (Depends-on): Likewise.
32254
32255         stat: fix Solaris 9 bug
32256         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
32257         slash.
32258         * lib/stat.c (rpl_stat): Work around it.
32259         * doc/posix-functions/stat.texi (stat): Update documentation.
32260
32261         stat: new module, for mingw bug
32262         * modules/stat: New file.
32263         * lib/stat.c: Likewise.
32264         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
32265         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32266         * modules/sys_stat (Makefile.am): Use them.
32267         * lib/sys_stat.in.h (stat): Declare replacement.
32268         * lib/openat.c (fstatat): Deal with lstat and stat being function
32269         macros.
32270         * modules/openat (Depends-on): Add inline.
32271         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32272         * doc/posix-functions/stat.texi (stat): Likewise.
32273         * modules/stat-tests: New test.
32274         * tests/test-stat.c: Likewise.
32275
32276 2009-09-19  Jim Meyering  <meyering@redhat.com>
32277
32278         syntax-check: detect unnecessary inclusion of canonicalize.h
32279         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
32280
32281 2009-09-19  Eric Blake  <ebb9@byu.net>
32282
32283         canonicalize-lgpl: adjust clients to use correct header
32284         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32285         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
32286         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
32287         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
32288         * lib/progreloc.c (includes): Likewise.
32289
32290 2009-09-19  Jim Meyering  <meyering@redhat.com>
32291
32292         test-posixtm.c: correct a comment
32293         * tests/test-posixtm.c: Correct first-line comment.
32294         Spotted by Eric Blake.
32295
32296 2009-09-16  Jim Meyering  <meyering@redhat.com>
32297
32298         posixtm-tests: make T const-correct; add a test case
32299         * tests/test-posixtm.c (T): Declare const.
32300         Add a test for -(2^31+1).
32301         Remove useless can-succeed-only-in-2002 test.
32302
32303         posixtm-tests: adjust the sole failing test
32304         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
32305         expected output matches what mktime now produces.  Cross-checked via
32306         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
32307
32308         posixtm: move #ifdef'd tests into a new module
32309         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
32310         * tests/test-posixtm.c: ... this new file.
32311         * modules/posixtm-tests: New module.
32312
32313 2009-09-19  Eric Blake  <ebb9@byu.net>
32314
32315         openat: simplify use of at-func.c
32316         * lib/at-func.c (includes): Include prerequisites here, to
32317         simplify requirements on client files.
32318         * lib/openat-priv.h: Add double-inclusion guard.
32319         * lib/faccessat.c (includes): Simplify.
32320         * lib/fchmodat.c (includes): Likewise.
32321         * lib/fchownat.c (includes): Likewise.
32322         * lib/mkdirat.c (includes): Likewise.
32323         * lib/mkfifoat.c (includes): Likewise.
32324         * lib/symlinkat.c (includes): Likewise.
32325
32326         openat: allow return of fd 0
32327         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
32328         * modules/save-cwd (Depends-on): Replace fcntl-safer with
32329         unistd-safer.
32330         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
32331         <fcntl.h>; this module does not leak fds.
32332         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
32333         must be allowed to return 0, leaving openat_safer to add the
32334         safety.
32335         (openat_permissive): Avoid writing to just-opened fd 2 if
32336         restoring the current directory fails.
32337         * lib/openat-die.c (openat_restore_fail): Add comment.
32338         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
32339         (save_cwd): Guarantee safe fd, but without use of open_safer.
32340         * tests/test-openat.c: New test.
32341         * modules/openat-tests (Files, Makefile.am): Distribute and build
32342         new file.
32343
32344         relocatable-prog-wrapper: fix build
32345         * modules/relocatable-prog-wrapper (Files): Update name of
32346         canonicalize m4 file, broken on 2009-09-17.
32347         Reported by emad hajjar <aleppos@hotmail.com>.
32348
32349 2009-09-19  Bruno Haible  <bruno@clisp.org>
32350
32351         * lib/safe-alloc.h: Use the standard header with GPL copyright.
32352         * lib/safe-alloc.c: Likewise.
32353         Reported by Ian Beckwith <ianb@erislabs.net>.
32354
32355 2009-09-18  Bruno Haible  <bruno@clisp.org>
32356
32357         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
32358         Reported by <erobles@sensacd.com.mx>.
32359
32360 2009-09-17  Eric Blake  <ebb9@byu.net>
32361
32362         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
32363         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
32364         slashes when checking if last component is missing.
32365         * tests/test-canonicalize.c (main): Test this.
32366
32367         canonicalize, canonicalize-lgpl: honor // if distinct from /
32368         * modules/canonicalize (Files): Add double-slash-root.m4.
32369         * modules/canonicalize-lgpl (Files): Likewise.
32370         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
32371         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
32372         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
32373         fallback definition.
32374         (canonicalize_filename_mode): Use it to protect //.
32375         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
32376         (__realpath): Likewise.
32377         * tests/test-canonicalize.c (main): Test this.
32378         * tests/test-canonicalize-lgpl.c (main): Likewise.
32379         * modules/canonicalize-tests (Depends-on): Add same-inode.
32380         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32381
32382         canonicalize-lgpl: fix glibc bug with trailing slash
32383         * m4/canonicalize-lgpl.m4: Move contents...
32384         * m4/canonicalize.m4: ...here.
32385         (gl_CANONICALIZE_LGPL): Factor realpath check...
32386         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
32387         glibc 2.3.5 bug, fixed 2005-04-27.
32388         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
32389         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
32390         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
32391         * modules/canonicalize-lgpl (Files): Manage file rename.
32392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32393         * modules/stdlib (Makefile.am): Substitute witness.
32394         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
32395         is needed.
32396         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
32397         replacement is required.
32398         * lib/canonicalize.c (canonicalize_file_name): Likewise.
32399         * doc/glibc-functions/canonicalize_file_name.texi
32400         (canonicalize_file_name): Document this.
32401         * doc/posix-functions/realpath.texi (realpath): Likewise.
32402
32403         canonicalize-lgpl: reject non-directory with trailing slash
32404         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
32405         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
32406         catches failures in glibc 2.3.5.
32407         * tests/test-canonicalize.c (main): Likewise.
32408
32409         canonicalize-lgpl: use native realpath if it works
32410         * lib/canonicalize-lgpl.c (realpath): Guard with
32411         FUNC_REALPATH_WORKS.
32412         * lib/stdlib.in.h (realpath): Make declaration optional based on
32413         HAVE_REALPATH.
32414         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
32415         native realpath works.
32416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
32417         * modules/stdlib (Makefile.am): Substitute witness.
32418
32419         canonicalize, canonicalize-lgpl: use <stdlib.h>
32420         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
32421         (Include): Mention <stdlib.h>.
32422         (configure.ac): Mention functions we provide.
32423         * modules/canonicalize (configure.ac): Likewise.
32424         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
32425         realpath if canonicalize_file_name is missing.
32426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
32427         * modules/stdlib (Makefile.am): Substitute witnesses.
32428         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
32429         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
32430         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
32431         * NEWS: Document this.
32432         * doc/glibc-functions/canonicalize_file_name.texi
32433         (canonicalize_file_name): Likewise.
32434         * doc/posix-functions/realpath.texi (realpath): Likewise.
32435         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
32436
32437         test-canonicalize: consolidate into single C program
32438         * tests/test-canonicalize.sh: Delete; move setup into...
32439         * tests/test-canonicalize.c (main): ...the program, making it
32440         easier to run in debugger.  Add some tests.
32441         * modules/canonicalize-tests (Files): Remove unused file.
32442         (Depends-on): Add progname.
32443         (configure.ac, Makefile.am): Simplify.
32444
32445         test-canonicalize-lgpl: consolidate into single C program
32446         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
32447         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
32448         easier to run in debugger.  Add some tests.
32449         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
32450         (configure.ac, Makefile.am): Simplify.
32451
32452         canonicalize: avoid resolvepath
32453         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
32454         unnecessary checks.
32455         * lib/canonicalize.c (includes): Simplify.
32456         (canonicalize_file_name): Drop resolvepath implementation.
32457         * modules/canonicalize (Depends-on): Drop filenamecat.
32458
32459         canonicalize: don't lose errno
32460         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
32461         over calls to free.
32462
32463         canonicalize: simplify errno handling
32464         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
32465         assignment.
32466
32467         canonicalize, canonicalize-lgpl: update module dependencies
32468         * modules/canonicalize (Depends-on): Add extensions, lstat,
32469         pathmax, stdlib.
32470         (Files): Drop pathmax.h.
32471         (configure.ac): Adjust macro name.
32472         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
32473         lstat, stdlib, sys_stat.
32474         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
32475         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
32476         extensions.
32477         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
32478         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
32479         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
32480         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
32481         declaration, if available.
32482         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
32483         we can rely on the readlink module.
32484         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
32485         (includes): Use <unistd.h> unconditionally.
32486
32487 2009-09-17  Eric Blake  <ebb9@byu.net>
32488
32489         maint: make Include sections of modules consistent
32490         * modules/alloca: Use only header name; no need to list #include.
32491         * modules/alloca-opt: Likewise.
32492         * modules/arpa_inet: Likewise.
32493         * modules/canon-host: Likewise.
32494         * modules/configmake: Likewise.
32495         * modules/dirent: Likewise.
32496         * modules/eealloc: Likewise.
32497         * modules/environ: Likewise.
32498         * modules/fchdir: Likewise.
32499         * modules/fcntl: Likewise.
32500         * modules/fcntl-h: Likewise.
32501         * modules/gethrxtime: Likewise.
32502         * modules/gettime: Likewise.
32503         * modules/ignore-value: Likewise.
32504         * modules/inet_ntop: Likewise.
32505         * modules/inet_pton: Likewise.
32506         * modules/inttypes: Likewise.
32507         * modules/isnand-nolibm: Likewise.
32508         * modules/isnanf-nolibm: Likewise.
32509         * modules/mbchar: Likewise.
32510         * modules/mbfile: Likewise.
32511         * modules/mbiter: Likewise.
32512         * modules/mbuiter: Likewise.
32513         * modules/netdb: Likewise.
32514         * modules/netinet_in: Likewise.
32515         * modules/nproc: Likewise.
32516         * modules/pagealign_alloc: Likewise.
32517         * modules/poll: Likewise.
32518         * modules/printf-frexp: Likewise.
32519         * modules/pthread: Likewise.
32520         * modules/putenv: Likewise.
32521         * modules/random_r: Likewise.
32522         * modules/relocatable-prog: Likewise.
32523         * modules/search: Likewise.
32524         * modules/select: Likewise.
32525         * modules/selinux-h: Likewise.
32526         * modules/settime: Likewise.
32527         * modules/signal: Likewise.
32528         * modules/size_max: Likewise.
32529         * modules/socklen: Likewise.
32530         * modules/ssize_t: Likewise.
32531         * modules/stdarg: Likewise.
32532         * modules/stdbool: Likewise.
32533         * modules/stddef: Likewise.
32534         * modules/stdint: Likewise.
32535         * modules/stdio: Likewise.
32536         * modules/stdlib: Likewise.
32537         * modules/string: Likewise.
32538         * modules/strings: Likewise.
32539         * modules/sys_file: Likewise.
32540         * modules/sys_ioctl: Likewise.
32541         * modules/sys_select: Likewise.
32542         * modules/sys_socket: Likewise.
32543         * modules/sys_stat: Likewise.
32544         * modules/sys_time: Likewise.
32545         * modules/sys_times: Likewise.
32546         * modules/sys_utsname: Likewise.
32547         * modules/sys_wait: Likewise.
32548         * modules/sysexits: Likewise.
32549         * modules/time: Likewise.
32550         * modules/times: Likewise.
32551         * modules/tmpfile: Likewise.
32552         * modules/trim: Likewise.
32553         * modules/unistd: Likewise.
32554         * modules/wchar: Likewise.
32555         * modules/wctype: Likewise.
32556
32557 2009-09-17  Bruno Haible  <bruno@clisp.org>
32558
32559         Make getdate.y compile on QNX and NetBSD 5 / i386.
32560         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32561         TIME_T_FITS_IN_LONG_INT.
32562         * lib/getdate.y (long_time_t): New type.
32563         (relative_time): Change type of 'seconds' field to long_time_t.
32564         (get_date): Update types of local variables. Check against overflow
32565         during conversion from long_time_t to time_t.
32566         Reported by Matt Kraai <kraai@ftbfs.org>
32567         and Hasso Tepper <hasso@netbsd.org>.
32568
32569 2009-09-17  Bruno Haible  <bruno@clisp.org>
32570
32571         * modules/COPYING: Update copyright years.
32572         * modules/README: Likeiwse.
32573         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32574         Reported by Ian Beckwith <ianb@erislabs.net>.
32575
32576 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32577
32578         * users.txt: Update references for gnuit package.
32579
32580 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32581
32582         * m4/getdelim.m4: Fix typo in copyright line.
32583
32584 2009-09-17  Bruno Haible  <bruno@clisp.org>
32585
32586         * lib/atoll.c: Use the standard header with GPL copyright.
32587         * lib/argz.in.h: Likewise.
32588         * lib/glob.c: Likewise.
32589         * lib/glob-libc.h: Likewise.
32590         * lib/random_r.c: Likewise.
32591         * lib/siglist.h: Likewise.
32592         * lib/strsignal.c: Likewise.
32593         Reported by Ian Beckwith <ianb@erislabs.net>.
32594
32595 2009-09-17  Eric Blake  <ebb9@byu.net>
32596
32597         rmdir: ensure correct dependency order
32598         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32599
32600 2009-09-17  Bruno Haible  <bruno@clisp.org>
32601
32602         Disable assertion that fails on NetBSD 5 / i386.
32603         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32604         Reported by Sam Steingold <sds@gnu.org>
32605         and Hasso Tepper <hasso@netbsd.org>.
32606
32607 2009-09-16  Eric Blake  <ebb9@byu.net>
32608
32609         unlinkdir: port to mingw
32610         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32611         on which no one can unlink a directory.
32612
32613         stdlib: sort witness names
32614         * modules/stdlib (Makefile.am): Sort replacements.
32615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32616         * lib/stdlib.in.h: Likewise.
32617
32618         parse-duration-tests: avoid link failure
32619         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32620         LIBINTL.
32621         Reported by Tom G. Christensen.
32622
32623         openat-tests: ensure unlinkat behaves like rmdir
32624         * tests/test-rmdir.c (main): Factor guts...
32625         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32626         * modules/rmdir-tests (Files): Ship new file.
32627         * modules/openat-tests: New test.
32628         * tests/test-unlinkat.c: Likewise.
32629
32630         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32631         * modules/rmdir-errno (Status, Notice): Now obsolete.
32632
32633         rmdir: work around cygwin 1.5.x and mingw bugs
32634         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32635         * lib/rmdir.c (rmdir): Work around it.
32636         * modules/rmdir (Status, Notice): No longer obsolete.
32637         (Files): Add dos.m4.
32638         (Depends-on): Add unistd.
32639         (configure.ac): Set witnesses.
32640         (License): Relax to LGPLv2+.
32641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32642         * modules/unistd (Makefile.am): Substitute witnesses.
32643         * lib/unistd.in.h (rmdir): Declare replacement.
32644         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32645         * modules/rmdir-tests: New tests.
32646         * tests/test-rmdir.c: Likewise.
32647
32648 2009-09-15  Eric Blake  <ebb9@byu.net>
32649
32650         fchdir: improve use of replacement functions
32651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32652         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32654         REPLACE_CLOSEDIR.
32655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32656         * modules/sys_stat (Makefile.am): Substitute correct witness.
32657         * modules/dirent (Makefile.am): Likewise.
32658         * modules/unistd (Makefile.am): Likewise.
32659         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32660         * lib/unistd.in.h (dup): Likewise.
32661         * lib/sys_stat.in.h (fstat): Likewise.
32662
32663         maint: ignore gnulib-tool temp files
32664         * .gitignore: Ignore files created during gnulib-tool --test.
32665
32666 2009-09-13  Jim Meyering  <meyering@redhat.com>
32667
32668         posixtm: don't reject a time that specify "60" as the number of seconds
32669         * lib/posixtm.c (posixtime): The code to reject invalid dates
32670         would also reject a time specified with the .60 suffix.
32671         But POSIX allows that, in order to accommodate leap seconds.
32672         So don't reject it.
32673         (main): Adjust tests accordingly.
32674         * modules/posixtm (Depends-on): Add stpcpy.
32675
32676 2009-09-11  Jim Meyering  <meyering@redhat.com>
32677
32678         announce-gen: include [$release_type] in emitted Subject:
32679         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32680         e.g., [stable] in the emitted Subject: line.
32681
32682 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32683
32684         Remove obsolete macros from several modules.
32685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32686         obsolete Autoconf macros with their modern counterparts.
32687         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32688         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32689         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32690         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32691         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32692         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32694         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32695         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32696         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32697         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32698         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32699         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32700         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32701         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32702         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32703         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32704         * m4/time_r.m4 (gl_TIME_R): Likewise.
32705         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32706         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32707         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32708
32709         Fix copyright header in build-aux scripts.
32710         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32711         recommendation.
32712         * build-aux/ncftpput-ftp: Likewise.
32713         * build-aux/update-copyright: Likewise.
32714
32715 2009-09-09  Eric Blake  <ebb9@byu.net>
32716
32717         test-link: allow Linux choice of errno
32718         * tests/test-link.c (main): Relax test for alternate error.
32719
32720         strndup: fix improper m4 caching
32721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32722         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32723         (gl_PREREQ_STRNDUP): Delete.
32724         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32725         * modules/string (Makefile.am): Substitute it.
32726         * lib/string.in.h (strndup): Modernize prototype.
32727
32728         getcwd: port to mingw
32729         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32730         different from the POSIX assumptions made throughout the getcwd
32731         module; fortunately, the mingw getcwd does not need replacement.
32732         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32733         * modules/getcwd-tests: New test.
32734         * tests/test-getcwd.c: Likewise.
32735
32736         link: fix platform bugs
32737         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32738         * lib/link.c (link): Work around them.  Fix related mingw bug.
32739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32740         * modules/unistd (Makefile.am): Substitute it.
32741         * lib/unistd.in.h (link): Declare replacement.
32742         * doc/posix-functions/link.texi (link): Document this.
32743         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32744
32745         test-link: consolidate into single C program, test more cases
32746         * tests/test-link.sh: Delete.
32747         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32748         at least Cygwin and Solaris.
32749         * modules/link-tests (Files): Remove unused file.
32750         (Depends-on): Add errno, sys_stat.
32751         (Makefile.am): Simplify.
32752
32753 2009-09-08  Bruno Haible  <bruno@clisp.org>
32754
32755         Work around towlower, towupper bug on mingw.
32756         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32757         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32758         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32759         * doc/posix-functions/towupper.texi: Likewise.
32760         Reported by Eric Blake.
32761
32762 2009-09-08  Jim Meyering  <meyering@redhat.com>
32763
32764         build: don't try to run autoheader if we don't use it
32765         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32766         is not used in configure.ac.
32767
32768 2009-09-08  Eric Blake  <ebb9@byu.net>
32769
32770         euidaccess: fix compilation error
32771         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32772
32773         rawmemchr: relax license
32774         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32775         okay.
32776         Reported by Jim Meyering.
32777
32778         mkfifoat: new module
32779         * modules/mkfifoat: New file.
32780         * lib/mkfifoat.c: Likewise.
32781         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32782         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32783         * modules/sys_stat (Makefile.am): Use them.
32784         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32785         * MODULES.html.sh (File system functions): Mention module.
32786         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32787         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32788         * modules/mkfifoat-tests: New test.
32789         * tests/test-mkfifoat.c: Likewise.
32790
32791         strchrnul: relax license
32792         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32793         okay.
32794         Reported by Jim Meyering.
32795
32796 2009-09-08  Eric Blake  <ebb9@byu.net>
32797
32798         fstatat: fix compilation on Solaris
32799         * lib/fstatat.c (includes): Add fcntl.h.
32800         Reported by Pádraig Brady.
32801
32802 2009-09-07  Eric Blake  <ebb9@byu.net>
32803
32804         rename: modernize replacement
32805         * modules/rename (Depends-on): Add stdio.
32806         (configure.ac): Declare witness.
32807         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32808         stdio take care of replacement.
32809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32810         * modules/stdio (Makefile.am): Substitute them.
32811         * lib/stdio.in.h (rename): Declare replacement.
32812         * lib/rename.c (includes): Allow cross-compilation to non-windows
32813         machines.
32814         * doc/posix-functions/rename.texi (rename): Improve
32815         documentation.
32816
32817         stdio: sort witness names
32818         * modules/stdio (Makefile.am): Sort replacements.
32819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32820         * lib/stdio.in.h: Likewise.
32821
32822         getcwd: minor cleanups
32823         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32824         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32825
32826         openat: provide more convenience names
32827         * modules/faccessat (configure.ac): Add C witness.
32828         * lib/unistd.in.h (readlinkat): Fix typo.
32829         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32830         convenience wrappers.
32831         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32832         wrappers in syntax checks.
32833
32834 2009-09-06  Eric Blake  <ebb9@byu.net>
32835
32836         doc: fix comments in recent patches
32837         * lib/faccessat.c: Mention correct function.
32838         * lib/fchmodat.c: Likewise.
32839         * lib/fchownat.c: Likewise.
32840         * lib/symlinkat.c: Likewise.
32841         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32842         constants.
32843
32844         faccessat, symlinkat: continue cleanup of previous patch
32845         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32846         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32847         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32849         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32850         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32851         set.
32852
32853 2009-09-06  Bruno Haible  <bruno@clisp.org>
32854
32855         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32856         (fstatat): Declare if GNULIB_FSTATAT is set.
32857         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32858         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32859         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32860         * modules/fcntl-h (Files): Remove m4/openat.m4.
32861         * modules/sys_stat (Files): Remove m4/openat.m4.
32862         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32863         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32864         * modules/unistd (Files): Remove m4/openat.m4.
32865         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32866         GNULIB_OPENAT.
32867         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32868         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32869         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32870         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32871         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32872         gl_OPENAT_DEFAULTS.
32873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32874         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32875         Don't require gl_OPENAT_DEFAULTS.
32876         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32877         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32878         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32879         (gl_OPENAT_DEFAULTS): Remove macro.
32880
32881 2009-09-06  Bruno Haible  <bruno@clisp.org>
32882
32883         * modules/openat (configure.ac): Remove unneeded witness.
32884
32885 2009-09-06  Bruno Haible  <bruno@clisp.org>
32886
32887         Set errno to ENOSYS when a function is entirely unsupported.
32888         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32889         EOPNOTSUPP.
32890         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32891         * modules/chown (Depends-on): Remove errno.
32892
32893 2009-09-06  Bruno Haible  <bruno@clisp.org>
32894
32895         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32896
32897 2009-09-06  Bruno Haible  <bruno@clisp.org>
32898
32899         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32900
32901 2009-09-06  Ben Pfaff  <blp@gnu.org>
32902             Bruno Haible  <bruno@clisp.org>
32903
32904         Work around a glibc bug in strtok_r.
32905         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32906         Undefine if UNDEFINE_STRTOK_R is set.
32907         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32909         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32910         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32911         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32912         UNDEFINE_STRTOK_R.
32913         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32914
32915 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32916
32917         exclude: minor fix
32918         * lib/exclude.c: Include wctype.h
32919
32920 2009-09-06  Akim Demaille  <demaille@gostai.com>
32921
32922         bootstrap: improve error message
32923         * build-aux/bootstrap (find_tool): Upon failure, report the list
32924         of candidates.
32925         Honor the initial value of the envvar.
32926
32927 2009-09-05  Eric Blake  <ebb9@byu.net>
32928
32929         symlinkat: new module
32930         * modules/symlinkat: New file.
32931         * lib/symlinkat.c: Likewise.
32932         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32934         * modules/unistd (Makefile.am): Use them.
32935         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32936         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32937         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32938         * MODULES.html.sh (File system functions): Mention module.
32939         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32940         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32941         * modules/symlinkat-tests: New test.
32942         * tests/test-symlinkat.c: Likewise.
32943
32944         test-openat-safer: add more checks
32945         * tests/test-openat-safer.c (main): Check more code paths.
32946
32947 2009-09-05  Jim Meyering  <meyering@redhat.com>
32948
32949         syntax-check: detect unnecessary inclusion of openat.h
32950         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32951
32952 2009-09-05  Bruno Haible  <bruno@clisp.org>
32953
32954         Support towlower, towupper.
32955         * doc/posix-functions/towlower.texi: Mention module wctype.
32956         * doc/posix-functions/towupper.texi: Likewise.
32957         * lib/wctype.in.h (towlower, towupper): New functions.
32958         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32959         (ASSERT): New macro.
32960         (e): New variable.
32961         (main): Test also towlower, towupper. Test WEOF argument.
32962         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32963
32964 2009-09-05  Bruno Haible  <bruno@clisp.org>
32965
32966         Fix conversion behaviour when the input is invalid.
32967         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32968         mark occurring in first pass of indirect conversion.
32969         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32970         input.
32971         Found by clang's static analyzer.
32972
32973 2009-09-05  Bruno Haible  <bruno@clisp.org>
32974
32975         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32976         where direct conversion is possible.
32977
32978 2009-09-04  Eric Blake  <ebb9@byu.net>
32979
32980         openat: fail with ENOENT on empty name
32981         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32982         buffer.
32983
32984         link-follow: fix logic bug in prior patch
32985         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32986         reversed sense of yes and no in prior patch.  Avoid confusing
32987         compilation failure with desired semantics.
32988
32989         link-follow: accomodate mingw and cross-compilation
32990         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32991         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32992         cross-compilation results to -1, to make linkat easier to
32993         implement when cross-compiling.  Trivially support mingw.
32994         * modules/link-follow (configure.ac): Call new name.
32995         * NEWS: Mention this.
32996
32997 2009-09-03  Eric Blake  <ebb9@byu.net>
32998
32999         faccessat: compile replacement
33000         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33001         needed.
33002
33003         fts: fix compilation error
33004         * lib/fts.c (includes): Re-add "openat.h", for
33005         openat_needs_fchdir.
33006
33007         faccessat: new module
33008         * modules/faccessat: New file.
33009         * lib/faccessat.c: Likewise.
33010         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33012         * modules/unistd (Makefile.am): Use it.
33013         * lib/unistd.in.h (faccessat): Declare it.
33014         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33015         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33016         * MODULES.html.sh (File system functions): Mention it.
33017         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33018         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33019
33020         euidaccess: prefer POSIX over non-standard implementation
33021         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
33022         * lib/euidaccess.c (euidaccess): Use it if available.
33023
33024         openat: make template easier to use
33025         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
33026         AT_FUNC_F2 to be undefined.
33027         (VALIDATE_FLAG): New macro; use it to reject bad flags.
33028         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
33029         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
33030         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
33031         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
33032         Likewise.
33033         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
33034         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
33035         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
33036         Likewise.
33037
33038         openat: declare in POSIX headers
33039         * NEWS: Mention this.
33040         * modules/openat (configure.ac): Declare witnesses.
33041         (Depends-on): Add fcntl-h, sys_stat, unistd.
33042         (Include): Mention correct headers.
33043         * modules/fcntl-h (Depends-on): Add link-warning.
33044         (Files): Add openat.m4.
33045         (Makefile.am): Substitute witnesses.
33046         * modules/sys_stat (Files, Makefile.am): Likewise.
33047         * modules/unistd (Files, Makefile.am): Likewise.
33048         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
33049         (gl_OPENAT_DEFAULTS): New macro.
33050         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
33051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
33052         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33053         (SYS_STAT_H): Remove unused variable.
33054         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33055         * lib/fcntl--.h (includes): Remove unneeded header.
33056         * lib/openat-safer.c (includes): Likewise.
33057         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33058         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33059         appropriate headers.
33060         (__OPENAT_PREFIX): Delete.
33061         * lib/fcntl.in.h (openat): Provide declaration.
33062         (AT_FDCWD): Fix Solaris bug.
33063         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33064         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33065         * lib/fchmodat.c (includes):  Adjust to find declaration.
33066         * lib/fchownat.c (includes): Likewise.
33067         * lib/mkdirat.c (includes): Likewise.
33068         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33069         still visible.
33070
33071 2009-09-02  Eric Blake  <ebb9@byu.net>
33072
33073         errno: use consistently
33074         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33075         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33076         * lib/canonicalize.c (ELOOP): Likewise.
33077         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33078         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33079         * lib/lchown.c (EOPNOTSUPP): Likewise.
33080         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33081         * lib/savewd.c (ESTALE): Likewise.
33082         * lib/settime.c (ENOSYS): Likewise.
33083         * lib/utimens.c (ENOSYS): Likewise.
33084         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33085         * lib/chdir-safer.c (ELOOP): Likewise.
33086         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33087         * modules/c-stack (Depends-on): Add errno.
33088         * modules/canonicalize (Depends-on): Likewise.
33089         * modules/chdir-safer (Depends-on): Likewise.
33090         * modules/fdopendir (Depends-on): Likewise.
33091         * modules/inet_ntop (Depends-on): Likewise.
33092         * modules/inet_pton (Depends-on): Likewise.
33093         * modules/lchown (Depends-on): Likewise.
33094         * modules/openat (Depends-on): Likewise.
33095         * modules/savewd (Depends-on): Likewise.
33096         * modules/settime (Depends-on): Likewise.
33097         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33098
33099         fts: avoid leaking fds
33100         * modules/fts (Depends-on): Add cloexec.
33101         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33102         flag.
33103
33104         fts: make directory fds more robust
33105         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33106         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33107
33108         backupfile, chdir-long, fts, savedir: make safer
33109         * lib/backupfile.c (includes): Use "dirent--.h", since
33110         numbered_backup can write to stderr during readdir.
33111         * lib/savedir.c (includes): Likewise.
33112         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33113         emulation can write to stderr on failure.
33114         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33115         * lib/getcwd.c: Document why opendir_safer is unused.
33116         * lib/glob.c: Likewise.
33117         * lib/scandir.c: Likewise.
33118         * lib/openat-proc.c: Likewise, for open_safer.
33119         * modules/backupfile (Depends-on): Add dirent-safer.
33120         * modules/savedir (Depends-on): Likewise.
33121         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33122         * modules/chdir-long (Depends-on): Add openat-safer.
33123
33124         openat-safer: new module
33125         * modules/openat-safer: New file.
33126         * lib/openat-safer.c: Likewise.
33127         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
33128         * lib/fcntl-safer.h (openat_safer): Declare.
33129         * lib/fcntl--.h (openat): Override.
33130         * MODULES.html.sh (File descriptor based I/O): Mention it.
33131         * lib/openat.h: Add double-inclusion guards.
33132         * lib/openat.c (includes): Only include "fcntl-safer.h", not
33133         "fcntl--.h", so we can implement openat.
33134         * modules/openat-safer-tests: New test.
33135         * tests/test-openat-safer.c: New file.
33136
33137         dirent-safer: new module
33138         * modules/dirent-safer: New file.
33139         * lib/dirent--.h: Likewise.
33140         * lib/dirent-safer.h: Likewise.
33141         * lib/opendir-safer.c: Likewise.
33142         * m4/dirent-safer.m4: Likewise.
33143         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
33144         * modules/dirent-safer-tests: New test.
33145         * tests/test-dirent-safer.c: New file.
33146         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
33147
33148         fdopendir: optimize on mingw
33149         * lib/unistd.in.h (_gl_directory_name): New prototype.
33150         * lib/fchdir.c (_gl_directory_name): Implement it.
33151         (fchdir): Use it to simplify implementation.
33152         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
33153         fchdir, when available, to avoid calling [f]chdir().
33154
33155         fdopendir: split into its own module
33156         * lib/openat.c (fdopendir): Move...
33157         * lib/fdopendir.c: ...into new file.
33158         * modules/fdopendir: New module.
33159         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
33160         * modules/openat (Depends-on): Add fdopendir.
33161         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
33162         fdopendir here.
33163         * modules/savedir (Depends-on): Only need fdopendir, not full
33164         openat.
33165         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
33166         * lib/openat.h (fdopendir): Drop prototype.
33167         * lib/dirent.in.h (fdopendir): Provide prototype.
33168         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
33169         * modules/dirent (Makefile.am): Substitute them.
33170         * MODULES.html.sh (File system functions): Mention it.
33171         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
33172         * modules/fdopendir-tests: New file.
33173         * tests/test-fdopendir.c: Likewise.
33174
33175         fchdir: use more consistent macro convention
33176         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
33177         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
33178         REPLACE_FCHDIR, rather than relying on config.h macros.
33179         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
33180         inside a single make-time REPLACE_FCHDIR block, rather than using
33181         the config.h FCHDIR_REPLACEMENT.
33182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
33183         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
33184         Manage fstat replacement.
33185         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
33186         REPLACE_FCHDIR.
33187         * modules/sys_stat (Files): Add m4/unistd_h.m4.
33188         (Makefile.am): Substitute REPLACE_FCHDIR.
33189         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
33190         FCHDIR_REPLACEMENT.
33191         * lib/dup-safer.c (dup_safer): Likewise.
33192         * lib/dup2.c (rpl_dup2): Likewise.
33193         * lib/dup3.c (rpl_dup3): Likewise.
33194         * lib/open.c (rpl_open): Likewise.
33195
33196         fchdir: simplify error handling, and support dup3
33197         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
33198         stdbool, malloc-posix, realloc-posix.
33199         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
33200         (ensure_dirs_slot): Return false on allocation failure.
33201         (rpl_dup2): Delete.
33202         (_gl_register_dup): New function.
33203         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
33204         (_gl_register_fd): Close fd on allocation failure.
33205         * lib/fcntl.in.h (_gl_register_fd): Update signature.
33206         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
33207         prototype.
33208         (rpl_dup2_fchdir): Delete prototype.
33209         * lib/open.c (open): Update caller.
33210         * lib/dup2.c (dup2): Track fchdir metadata.
33211         * lib/dup3.c (dup3): Likewise.
33212         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
33213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
33214
33215 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33216
33217         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
33218         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
33219         don't pass arguments to AC_OUTPUT.
33220
33221 2009-09-02  Bruno Haible  <bruno@clisp.org>
33222
33223         * modules/mkdtemp (License): Relicense under LGPLv2+.
33224         Reported by Paolo Bonzini.
33225
33226 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33227
33228         Replace uses of obsolete autoconf macros in Jim's modules.
33229         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
33230         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
33231         can evoke a warning from autoconf when run with -Wobsolete
33232         enabled.  They were declared obsolete for good reasons (see
33233         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
33234         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
33235         should not continue using the deprecated macros.
33236         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
33237         obsolete Autoconf macros with modern counterparts.
33238         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33239         * m4/dos.m4 (gl_AC_DOS): Likewise.
33240         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
33241         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
33242         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
33243         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
33244         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
33245         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
33246         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33247         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
33248         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33249         Likewise.
33250         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
33251         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
33252         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
33253         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
33254         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33255         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
33256
33257 2009-09-01  Eric Blake  <ebb9@byu.net>
33258
33259         fchdir: fix off-by-one bug in previous patch
33260         * lib/fchdir.c (rpl_fstat): Use correct bounds.
33261         (_gl_unregister_fd): Delete useless if.
33262
33263 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
33264
33265         maint.mk: sort the list of syntax-check rules
33266         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
33267         easier to get a sense of progress when the rules are run sequentially
33268         and take a long time.
33269
33270 2009-09-01  Simon Josefsson  <simon@josefsson.org>
33271
33272         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
33273         * modules/netinet_in: Likewise.
33274         * modules/sys_file: Likewise.
33275         * modules/sys_ioctl: Likewise.
33276         * modules/sys_select: Likewise.
33277         * modules/sys_socket: Likewise.
33278         * modules/sys_stat: Likewise.
33279         * modules/sys_time: Likewise.
33280         * modules/sys_times: Likewise.
33281         * modules/sys_utsname: Likewise.
33282         * modules/sys_wait: Likewise.
33283
33284 2009-09-01  Jim Meyering  <meyering@redhat.com>
33285
33286         fts: help ensure that return values are not ignored
33287         * lib/fts_.h (__GNUC_PREREQ): Define.
33288         (__attribute_warn_unused_result__): Define.
33289         (fts_children, fts_close, fts_open, fts_read): Declare with
33290         __attribute_warn_unused_result__.
33291
33292         fts: fts_close now fails also when closing a dir file descriptor fails
33293         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
33294         and propagate to caller, along with errno.
33295
33296         announce-gen: correct formatting in --help output
33297         * build-aux/announce-gen (usage): Move the one-line description in
33298         --help output "up", to where it belongs, just after Usage:.
33299
33300 2009-08-31  Eric Blake  <ebb9@byu.net>
33301
33302         fchdir: port to mingw
33303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
33304         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
33305         opened, then use a substitute.
33306         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
33307         replacement.
33308         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
33309         (_gl_register_fd): No need to check stat if open already filters
33310         all directories.
33311         (fchdir): Fix error condition to match POSIX.
33312         * modules/fchdir (Depends-on): Add sys_stat.
33313         * doc/posix-functions/open.texi (open): Document the limitation.
33314         * modules/fchdir-tests: New file.
33315         * tests/test-fchdir.c: Likewise.
33316
33317         canonicalize: allow cross-testing from cygwin to mingw
33318         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
33319         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
33320         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
33321         Likewise.
33322         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
33323         target does not support symlinks.
33324         * tests/test-canonicalize-lgpl.sh: Likewise.
33325
33326         chown: avoid compilation warning on mingw
33327         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
33328         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
33329         mingw.
33330         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33331         * modules/chown (Depends-on): Add errno.
33332
33333 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
33334
33335         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
33336         command.
33337
33338 2009-08-31  Jim Meyering  <meyering@redhat.com>
33339
33340         canonicalize: remove useless initialization
33341         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
33342         initialization of local, "end".
33343
33344 2009-08-30  Bruno Haible  <bruno@clisp.org>
33345
33346         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
33347         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
33348         ENOSYS.
33349
33350 2009-08-30  Bruno Haible  <bruno@clisp.org>
33351
33352         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
33353         /usr/xpg4/bin/tr when it exists.
33354         * tests/test-pipe-filter-gi1.sh: Likewise.
33355
33356 2009-08-30  Bruno Haible  <bruno@clisp.org>
33357
33358         Work around deficient /usr/bin/id program on Solaris.
33359         * tests/test-file-has-acl.sh (ID): New variable.
33360         * tests/test-set-mode-acl.sh (ID): Likewise.
33361         * tests/test-copy-acl.sh (ID): Likewise.
33362         * tests/test-copy-file.sh (ID): Likewise.
33363
33364 2009-08-30  Bruno Haible  <bruno@clisp.org>
33365
33366         New module 'xstriconveh'.
33367         * lib/xstriconveh.h: New file.
33368         * lib/xstriconveh.c: New file.
33369         * modules/xstriconveh: New file.
33370
33371 2009-08-30  Bruno Haible  <bruno@clisp.org>
33372
33373         Make it easier to use mem_cd_iconveh.
33374         * lib/striconveh.h (iconveh_t): New type.
33375         (iconveh_open, iconveh_close): New declarations.
33376         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33377         with a single 'const iconveh_t *' argument.
33378         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
33379         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
33380         with a single 'const iconveh_t *' argument.
33381         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
33382         * tests/test-striconveh.c (main): Update.
33383         * NEWS: Mention the change.
33384
33385 2009-08-30  Bruno Haible  <bruno@clisp.org>
33386
33387         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
33388         problem.
33389
33390 2009-08-30  Bruno Haible  <bruno@clisp.org>
33391
33392         Work around iconv_open problem on Solaris.
33393         * lib/iconv_open-solaris.gperf: New file.
33394         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
33395         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
33396         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
33397         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
33398         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
33399         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
33400
33401 2009-08-29  Jim Meyering  <meyering@redhat.com>
33402
33403         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
33404         * top/maint.mk (cvs-check): Remove target; it was just an alias
33405         to the better-named vc-diff-check.
33406         (maintainer-distcheck): Remove rule.  It was used only from
33407         the (alpha/beta/major) target, and all of its commands but one
33408         were coreutils-specific.
33409         (vc-dist): Remove rule.
33410         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
33411         Run vc-diff-check, not vc-dist.
33412         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
33413
33414 2009-08-27  Bruno Haible  <bruno@clisp.org>
33415
33416         * tests/test-bitrotate.c (main): Remove test that uses a shift count
33417         of 0.
33418
33419 2009-08-27  Bruno Haible  <bruno@clisp.org>
33420
33421         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
33422         compilers.
33423         * doc/func.texi: Document the SunPRO C bug.
33424
33425 2009-08-27  Bruno Haible  <bruno@clisp.org>
33426
33427         Fix link error on Solaris.
33428         * tests/test-parse-duration.c (xstrdup): Remove function.
33429
33430 2009-08-26  Pádraig Brady  <P@draigbrady.com>
33431
33432         ignore-value: handle pointer types, too
33433         * lib/ignore-value.h (__attribute__): Remove definition.
33434         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
33435         of a more concise and more-often effective "(void) i" statement.
33436         (ignore_ptr): New function to suppress warnings from functions that
33437         return pointers, and to make it explicit that one function doesn't
33438         handle all cases.
33439
33440 2009-08-25  Bruno Haible  <bruno@clisp.org>
33441
33442         dup2: work around a Linux bug.
33443         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
33444         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
33445         * doc/posix-functions/dup2.texi: Mention the Linux bug.
33446         Reported by Simon Josefsson.
33447
33448 2009-08-25  Jim Meyering  <meyering@redhat.com>
33449
33450         libguestfs uses gnulib
33451         * users.txt: Add libguestfs.
33452
33453 2009-08-24  Eric Blake  <ebb9@byu.net>
33454
33455         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
33456         * lib/pipe2.c (includes): Add binary-io.h.
33457         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
33458
33459 2009-08-24  Bruno Haible  <bruno@clisp.org>
33460
33461         Tolerate declared but missing accept4 syscall.
33462         * lib/accept4.c (accept4): Invoke original accept4 function first, if
33463         available.
33464         * lib/sys_socket.in.h (accept4): If the function is already present,
33465         override it.
33466         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
33467         * modules/accept4 (Makefile.am): Compile accept4.c always.
33468         Reported by Paolo Bonzini and Eric Blake.
33469
33470 2009-08-23  Bruno Haible  <bruno@clisp.org>
33471
33472         New module 'accept4'.
33473         * lib/sys_socket.in.h (accept4): New declaration.
33474         * lib/accept4.c: New file.
33475         * m4/accept4.m4: New file.
33476         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
33477         GNULIB_ACCEPT4, HAVE_ACCEPT4.
33478         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
33479         HAVE_ACCEPT4.
33480         * modules/accept4: New file.
33481         * doc/glibc-functions/accept4.texi: Mention the new module.
33482
33483 2009-08-24  Jim Meyering  <meyering@redhat.com>
33484
33485         progname: also set global program_invocation_name, when possible
33486         Before this change, a libtool-enabled program that calls glibc's
33487         error function would report the program name as
33488         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
33489         * modules/progname (configure.ac): Check for a declaration of
33490         program_invocation_name.
33491         * lib/progname.c:  Include <errno.h>.
33492         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
33493         Set program_invocation_name.
33494
33495 2009-08-23  Bruno Haible  <bruno@clisp.org>
33496
33497         * lib/dup3.c: Include <string.h>.
33498
33499 2009-08-23  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/dup3.c (dup3): Test only once whether the system actually exists.
33502         * lib/pipe2.c (pipe2): Likewise.
33503         Suggested by Eric Blake.
33504
33505 2009-08-23  Bruno Haible  <bruno@clisp.org>
33506
33507         Tolerate declared but missing dup3 syscall.
33508         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
33509         * lib/unistd.in.h (dup3): If the function is already present,
33510         override it.
33511         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
33512         * modules/dup3 (Makefile.am): Compile dup3.c always.
33513         Reported by Paolo Bonzini.
33514
33515 2009-08-23  Bruno Haible  <bruno@clisp.org>
33516
33517         Tolerate declared but missing pipe2 syscall.
33518         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
33519         available.
33520         * lib/unistd.in.h (pipe2): If the function is already present,
33521         override it.
33522         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
33523         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
33524         Reported by Paolo Bonzini.
33525
33526 2009-08-23  Bruno Haible  <bruno@clisp.org>
33527
33528         * lib/pipe2.c (pipe2): Move #ifs inside function.
33529
33530 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33531
33532         quotearg: document limitations of quote_these_too
33533         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
33534         those limitations are created.
33535         * lib/quotearg.h (set_char_quoting): Document that digits and
33536         letters that are special after backslash are not permitted.
33537         (quotearg_char): Cross-reference set_char_quoting documentation.
33538
33539 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
33540
33541         quotearg: implement custom_quoting_style
33542         * lib/quotearg.c: (struct quoting_options): Add left_quote and
33543         right_quote fields.
33544         (set_custom_quoting): New public function.
33545         (quotearg_buffer_restyled): Add left_quote and right_quote
33546         arguments, handle them very much like locale quoting, and update
33547         all uses.
33548         (quotearg_n_custom): New public function.
33549         (quotearg_n_custom_mem): New public function.
33550         (quotearg_custom): New public function.
33551         (quotearg_custom_mem): New public function.
33552         * lib/quotearg.h: Prototype and document new public functions.
33553         (enum quoting_style): For escape_quoting_style and
33554         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33555         ignored even though they're otherwise like c_quoting_style.
33556         Add custom_quoting_style member and document with comparison to
33557         clocale_quoting_style.
33558         * tests/test-quotearg.c (custom_quotes): New array.
33559         (custom_results): New array.
33560         (main): Extend to test custom quoting.
33561
33562 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33563
33564         quotearg: fix right quote escaping when it's in quote_these_too
33565         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33566         quote, be sure to prepend only one backslash.
33567         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33568         (main): Test it.
33569
33570 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33571
33572         quotearg-tests: test escaping of embedded locale quotes
33573         * tests/test-quotearg.c (struct result_strings): Add member for
33574         new input.
33575         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33576         (inputs): Add new input.
33577         (results_g): Add expected results.
33578         (flag_results): Likewise.
33579         (locale_results): Likewise.
33580         (compare_strings): Check those.
33581
33582 2009-08-23  Bruno Haible  <bruno@clisp.org>
33583
33584         Tests for module 'dup3'.
33585         * modules/dup3-tests: New file.
33586         * tests/test-dup3.c: New file.
33587
33588         New module 'dup3'.
33589         * lib/unistd.in.h (dup3): New declaration.
33590         * lib/dup3.c: New file.
33591         * m4/dup3.m4: New file.
33592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33593         HAVE_DUP3.
33594         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33595         * modules/dup3: New file.
33596         * doc/glibc-functions/dup3.texi: Mention the new module.
33597
33598 2009-08-23  Bruno Haible  <bruno@clisp.org>
33599
33600         Tweak the dup2 test.
33601         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33602         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33603         the test file is still empty. Fix argument order of lseek.
33604
33605 2009-08-23  Bruno Haible  <bruno@clisp.org>
33606
33607         Avoid test link errors when the modules getopt-gnu, gettext are used.
33608         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33610
33611 2009-08-23  Bruno Haible  <bruno@clisp.org>
33612
33613         Fix getdtablesize() on mingw.
33614         * lib/getdtablesize.c (getdtablesize): Implement differently.
33615         * lib/unistd.in.h (getdtablesize): Improve comment.
33616
33617 2009-08-23  Bruno Haible  <bruno@clisp.org>
33618
33619         New module 'mkostemp'.
33620         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33621         * lib/stdlib.in.h (mksotemp): New declaration.
33622         * lib/mkostemp.c: New file, from glibc with modifications.
33623         * lib/tempname.h (GT_FILE): Remove outdated comment.
33624         (gen_tempname): Add flags argument.
33625         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33626         (__GT_FILE): Map to 1.
33627         (small_open, large_open): Remove macros.
33628         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33629         * lib/mkstemp.c (mkstemp): Update.
33630         * lib/mkdtemp.c (mkdtemp): Likewise.
33631         * m4/mkostemp.m4: New file.
33632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33633         HAVE_MKOSTEMP.
33634         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33635         HAVE_MKOSTEMP.
33636         * modules/mkostemp: New file, based on modules/mkstemp.
33637         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33638         * NEWS: Mention the change.
33639
33640 2009-08-23  Bruno Haible  <bruno@clisp.org>
33641
33642         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33643         Reported by Eric Blake.
33644
33645 2009-08-23  Bruno Haible  <bruno@clisp.org>
33646
33647         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33648         Reported by Eric Blake.
33649
33650 2009-08-23  Bruno Haible  <bruno@clisp.org>
33651
33652         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33653         * modules/pipe2 (Depends-on): Likewise.
33654
33655 2009-08-23  Eric Blake  <ebb9@byu.net>
33656
33657         fcntl-h: add O_TTY_INIT support
33658         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33659         * tests/test-fcntl-h.c (o): Test it.
33660         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33661
33662         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33663         * modules/fcntl: Move <fcntl.h> header replacement...
33664         * modules/fcntl-h: ...to new name, so as not to collide with
33665         like-named function.
33666         * tests/test-fcntl.c: Rename...
33667         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33668         * modules/fcntl-tests: Rename...
33669         * modules/fcntl-h-tests: ...to this.  Update test file name.
33670         * modules/chdir-long (Depends-on): Update clients.
33671         * modules/chdir-safer (Depends-on): Likewise.
33672         * modules/fcntl-safer (Depends-on): Likewise.
33673         * modules/fts (Depends-on): Likewise.
33674         * modules/mkancesdirs (Depends-on): Likewise.
33675         * modules/mkdir-p (Depends-on): Likewise.
33676         * modules/open (Depends-on): Likewise.
33677         * modules/savewd (Depends-on): Likewise.
33678         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33679         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33680
33681 2009-08-22  Bruno Haible  <bruno@clisp.org>
33682
33683         * modules/binary-io (License): Relicense under LGPL.
33684         * modules/pipe2 (License): Likewise.
33685
33686 2009-08-22  Bruno Haible  <bruno@clisp.org>
33687
33688         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33689         return value.
33690         * lib/pipe-filter-gi.c (filter_init): Likewise.
33691         Reported by Eric Blake.
33692
33693 2009-08-22  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33696         * modules/pipe (Depends-on): Add pipe2.
33697
33698 2009-08-22  Bruno Haible  <bruno@clisp.org>
33699
33700         Tests for module 'pipe2'.
33701         * modules/pipe2-tests: New file.
33702         * tests/test-pipe2.c: New file.
33703
33704         New module 'pipe2'.
33705         * lib/unistd.in.h (pipe2): New declaration.
33706         * lib/pipe2.c: New file.
33707         * m4/pipe2.m4: New file.
33708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33709         HAVE_PIPE2.
33710         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33711         * modules/pipe2: New file.
33712         * doc/glibc-functions/pipe2.texi: Mention the new module.
33713
33714 2009-08-22  Bruno Haible  <bruno@clisp.org>
33715
33716         Reference some new glibc functions.
33717         * doc/glibc-functions/accept4.texi: New file.
33718         * doc/glibc-functions/dup3.texi: New file.
33719         * doc/glibc-functions/mkostemp.texi: New file.
33720         * doc/glibc-functions/pipe2.texi: New file.
33721         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33722         (Glibc sys/socket.h): Refer to accept4.
33723         (Glibc unistd.h): Refer to dup3, pipe2.
33724         Reported by Eric Blake.
33725
33726 2009-08-22  Jim Meyering  <meyering@redhat.com>
33727             Bruno Haible  <bruno@clisp.org>
33728
33729         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33730         This makes it so packages using automake-1.11's silent-rules option
33731         can print e.g., a single "GEN    configmake.h" line, rather than
33732         the 30+ statements that perform the job.  If you want to see the
33733         actual commands, you can still run "make V=1".
33734         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33735         so that make output is abbreviated when those variables are defined
33736         appropriately.
33737         * modules/argz: Likewise.
33738         * modules/arpa_inet: Likewise.
33739         * modules/byteswap: Likewise.
33740         * modules/configmake: Likewise.
33741         * modules/dirent: Likewise.
33742         * modules/errno: Likewise.
33743         * modules/fcntl: Likewise.
33744         * modules/float: Likewise.
33745         * modules/fnmatch: Likewise.
33746         * modules/getopt-posix: Likewise.
33747         * modules/glob: Likewise.
33748         * modules/iconv_open: Likewise.
33749         * modules/inttypes: Likewise.
33750         * modules/localcharset: Likewise.
33751         * modules/locale: Likewise.
33752         * modules/math: Likewise.
33753         * modules/netdb: Likewise.
33754         * modules/netinet_in: Likewise.
33755         * modules/poll: Likewise.
33756         * modules/posix_spawnp-tests: Likewise.
33757         * modules/sched: Likewise.
33758         * modules/search: Likewise.
33759         * modules/selinux-h: Likewise.
33760         * modules/signal: Likewise.
33761         * modules/spawn: Likewise.
33762         * modules/stdarg: Likewise.
33763         * modules/stdbool: Likewise.
33764         * modules/stddef: Likewise.
33765         * modules/stdint: Likewise.
33766         * modules/stdio: Likewise.
33767         * modules/stdlib: Likewise.
33768         * modules/string: Likewise.
33769         * modules/strings: Likewise.
33770         * modules/sys_file: Likewise.
33771         * modules/sys_ioctl: Likewise.
33772         * modules/sys_select: Likewise.
33773         * modules/sys_socket: Likewise.
33774         * modules/sys_stat: Likewise.
33775         * modules/sys_time: Likewise.
33776         * modules/sys_times: Likewise.
33777         * modules/sys_utsname: Likewise.
33778         * modules/sys_wait: Likewise.
33779         * modules/sysexits: Likewise.
33780         * modules/time: Likewise.
33781         * modules/unistd: Likewise.
33782         * modules/wchar: Likewise.
33783         * modules/wctype: Likewise.
33784
33785 2009-08-22  Jim Meyering  <meyering@redhat.com>
33786
33787         announce-gen: detect write failure
33788         * build-aux/announce-gen: Add Coda at end.
33789         Remove equivalent-but-more-verbose block at top.
33790
33791 2009-08-19  Akim Demaille  <demaille@gostai.com>
33792
33793         bootstrap: --help to stdout.
33794         * bootstrap (usage): Don't send --help to stderr.
33795         Use a here doc instead of a long string.
33796
33797 2009-08-21  Eric Blake  <ebb9@byu.net>
33798
33799         test-popen-safer: split from test-popen
33800         * tests/test-popen.c (main): Move...
33801         * tests/test-popen.h: ...into new file.
33802         * tests/test-popen-safer2.c: New file.
33803         * modules/popen-tests (Files): Add test-popen.h.
33804         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33805         Suggested by Bruno Haible.
33806
33807         test-fcntl-safer: split from test-open
33808         * tests/test-open.c (main): Move...
33809         * tests/test-open.h: ...into new file.
33810         * tests/test-fcntl-safer.c: New file.
33811         * modules/open-tests (Files): Add test-open.h.
33812         * modules/fcntl-safer-tests: New file.
33813         Suggested by Bruno Haible.
33814
33815         test-fopen-safer: split from test-fopen
33816         * tests/test-fopen.c (main): Move...
33817         * tests/test-fopen.h: ...into new file.
33818         * tests/test-fopen-safer.c: New file.
33819         * modules/fopen-tests (Files): Add test-fopen.h.
33820         * modules/fopen-safer-tests: New file.
33821         Suggested by Bruno Haible.
33822
33823 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33824
33825         popen-safer: test O_CLOEXEC at run-time.
33826         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33827
33828 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33829
33830         fcntl: move more flags to the header
33831         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33832         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33833         * lib/fcntl.in.h: Do both things here.
33834
33835 2009-08-21  Jim Meyering  <meyering@redhat.com>
33836
33837         consistently remove $@-t before redirecting to it
33838         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33839         * modules/alloca-opt: Likewise.
33840         * modules/byteswap: Likewise.
33841         * modules/fnmatch: Likewise.
33842         * modules/getopt-posix: Likewise.
33843         * modules/glob: Likewise.
33844         * modules/poll: Likewise.
33845         * modules/posix_spawnp-tests: Likewise.
33846         * modules/sys_socket: Likewise.
33847         * modules/sysexits: Likewise.
33848
33849 2009-08-21  Eric Blake  <ebb9@byu.net>
33850
33851         popen: simplify access to original popen
33852         * lib/popen.c (rpl_popen): No need to worry about popen being a
33853         macro.
33854         Reported by Bruno Haible.
33855
33856 2009-08-20  Eric Blake  <ebb9@byu.net>
33857
33858         build: avoid some compiler warnings
33859         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33860         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33861         type.
33862         (new_exclude_segment, excluded_file_pattern_p)
33863         (excluded_file_name_p): Reduce scope.
33864         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33865         old-style declaration.
33866
33867 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33868
33869         * tests/test-exclude1.sh: Handle Windows EOL.
33870         * tests/test-exclude2.sh: Likewise.
33871         * tests/test-exclude3.sh: Likewise.
33872         * tests/test-exclude4.sh: Likewise.
33873         * tests/test-exclude5.sh: Likewise.
33874         * tests/test-exclude6.sh: Likewise.
33875         * tests/test-exclude7.sh: Likewise.
33876
33877 2009-08-19  Akim Demaille  <demaille@gostai.com>
33878
33879         bootstrap: find sha1sum when named gsha1sum.
33880         * bootstrap (find_tool): New.
33881         ($SHA1SUM): New.
33882         Use it.
33883
33884 2009-08-20  Jim Meyering  <meyering@redhat.com>
33885
33886         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33887         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33888         expression that converts "." in a file name to "\." in the resulting
33889         regexp.  Start with a dummy statement, so that prior shell variable
33890         definitions are expanded portably.  Reported by Simon Josefsson.
33891
33892 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33893
33894         Fix polling for writeability of a screen buffer.
33895         * lib/poll.c: Distinguish input and screen buffers for the
33896         Win32 implementation.
33897         * lib/select.c: Likewise.
33898
33899 2009-08-19  Eric Blake  <ebb9@byu.net>
33900
33901         popen-safer: prevent popen from clobbering std descriptors
33902         * modules/popen-safer: New file.
33903         * lib/popen-safer.c: Likewise.
33904         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33905         * lib/stdio--.h (popen): Provide override.
33906         * lib/stdio-safer.h (popen_safer): Provide declaration.
33907         * tests/test-popen.c (includes): Partially test this.
33908         * modules/popen-safer-tests: New file, for more tests.
33909         * tests/test-popen-safer.c: Likewise.
33910         * MODULES.html.sh (file stream based Input/Output): Mention it.
33911
33912         tests: test some of the *-safer modules
33913         * modules/fopen-safer (Depends-on): Add fopen.
33914         * modules/fcntl-safer (Depends-on): Add fcntl.
33915         * modules/stdlib-safer (Depends-on): Add stdlib.
33916         (configure.ac): Set indicator.
33917         * modules/unistd-safer (configure.ac): Likewise.
33918         * modules/tmpfile-safer (configure.ac): Likewise.
33919         (Depends-on): Add tmpfile.
33920         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33921         active.
33922         * tests/test-fopen.c (includes): Test safer versions when they are
33923         in use.
33924         * tests/test-open.c (includes): Likewise.
33925
33926         popen: fix cygwin 1.5 bug when stdin closed
33927         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33928         * modules/popen: New file.
33929         * modules/popen-tests: Likewise.
33930         * tests/test-popen.c: Likewise.
33931         * m4/popen.m4: Likewise.
33932         * lib/popen.c: Likewise.
33933         * lib/stdio.in.h (popen): New declaration.
33934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33935         * modules/stdio (Makefile.am): Likewise.
33936         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33937
33938 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33939
33940         maint.mk: give full control over update-copyright exclusions
33941         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33942         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33943         (update-copyright): Don't force inclusion of top-level
33944         ChangeLog.  Don't force exclusion of all COPYING files, but make
33945         them the default exclusion instead.
33946
33947 2009-08-16  Bruno Haible  <bruno@clisp.org>
33948
33949         Fix test failures on Solaris 10.
33950         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33951         tests when Solaris iconv() is used.
33952         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33953         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33954         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33955         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33956         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33957
33958 2009-08-16  Bruno Haible  <bruno@clisp.org>
33959
33960         Fix test failures on Solaris 10.
33961         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33962         'tr' program and pass it as first argument.
33963         * tests/test-pipe-filter-gi1.sh: Likewise.
33964         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33965         program as first argument.
33966         * tests/test-pipe-filter-gi1.c (main): Likewise.
33967
33968 2009-08-16  Eric Blake  <ebb9@byu.net>
33969
33970         fpurge: fix previous commits
33971         * modules/fpurge (Makefile.am): Make replacement conditional,
33972         partially reverting 2007-04-29 change; missed in previous
33973         attempt.
33974         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33975         is missing.
33976
33977 2009-08-16  Bruno Haible  <bruno@clisp.org>
33978
33979         Clarify fpurge's effect on the file position.
33980         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33981         * tests/test-fpurge.c (main): Make a second pass for checking the file
33982         position.
33983
33984 2009-08-16  Bruno Haible  <bruno@clisp.org>
33985
33986         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33987         declaration of fpurge is missing.
33988         * tests/test-fpurge.c (main): Check that the file has not more contents
33989         than expected. Close the file before removing it.
33990
33991 2009-08-15  Eric Blake  <ebb9@byu.net>
33992
33993         fpurge: don't wrap working cygwin implementation
33994         * lib/fpurge.c (fpurge): Fix comment typo.
33995         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33996         1.7 to avoid replacement.
33997         * tests/test-fpurge.c (main): Enhance test.
33998
33999 2009-08-15  Eric Blake  <ebb9@byu.net>
34000         and Jim Meyering  <meyering@redhat.com>
34001
34002         test-update-copyright: skip if perl is insufficient
34003         * tests/test-update-copyright.sh: Failure to run maintainer tool
34004         should not cause testsuite failure on cygwin 1.5.
34005
34006 2009-08-14  Eric Blake  <ebb9@byu.net>
34007
34008         doc: mention more functions added in cygwin 1.7.0
34009         * doc/posix-headers/limits.texi (limits.h): Update for recent
34010         cygwin additions.
34011         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34012         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34013         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34014         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34015         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34016
34017 2009-08-14  Eric Blake  <ebb9@byu.net>
34018
34019         maint.mk: simplify update-copyright rule
34020         * top/maint.mk (update-copyright-local): Delete, and document how
34021         to do it in cfg.mk instead.
34022         (update-copyright-exclude-regexp): Delete, and document how to do
34023         it in .x-update-copyright instead.
34024         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
34025         exclude ChangeLog.
34026
34027 2009-08-14  Bruno Haible  <bruno@clisp.org>
34028
34029         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
34030
34031 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34032
34033         maint.mk: support update-copyright-env
34034         * top/maint.mk (update-copyright-env): Define place-holder.
34035         (update-copyright): Expand $(update-copyright-env) before
34036         invoking update-copyright.
34037
34038 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34039
34040         update-copyright: implement forced reformatting
34041         * build-aux/update-copyright: Implement and document
34042         UPDATE_COPYRIGHT_FORCE.
34043         * tests/test-update-copyright.sh: Test it.
34044
34045 2009-08-14  Eric Blake  <ebb9@byu.net>
34046         and Bruno Haible  <bruno@clisp.org>
34047
34048         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
34049         * tests/test-locale.c: Revert previous patch related to NULL.
34050         * tests/test-stdio.c: Likewise.
34051         * tests/test-stdlib.c: Likewise.
34052         * tests/test-string.c: Likewise.
34053         * tests/test-unistd.c: Likewise.
34054         * modules/time-tests (Depends-on): Add verify.
34055         * modules/wchar-tests (Depends-on): Likewise.
34056         * tests/test-time.c: Test for NULL compliance.
34057         * tests/test-wchar.c: Likewise.
34058         * modules/locale (Depends-on): Add stddef.
34059         * modules/stdio (Depends-on): Likewise.
34060         * modules/stdlib (Depends-on): Likewise.
34061         * modules/string (Depends-on): Likewise.
34062         * modules/time (Depends-on): Likewise.
34063         * modules/unistd (Depends-on): Likewise.
34064         * modules/wchar (Depends-on): Likewise.
34065         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34066         * lib/stdlib.in.h (includes): Likewise.
34067         * lib/string.in.h (includes): Likewise.
34068         * lib/time.in.h (includes): Likewise.
34069         * lib/unistd.in.h (includes): Likewise.
34070         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34071         replaced.
34072         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34073         * m4/stddef_h.m4: New file.
34074         * modules/stddef: Likewise.
34075         * lib/stddef.in.h: Likewise.
34076         * modules/stddef-tests: Likewise.
34077         * tests/test-stddef.c: Likewise.
34078         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34079         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34080         * doc/posix-headers/locale.texi (locale.h): Likewise.
34081         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34082         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34083         * doc/posix-headers/string.texi (string.h): Likewise.
34084         * doc/posix-headers/time.texi (time.h): Likewise.
34085         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34086         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34087
34088 2009-08-14  Eric Blake  <ebb9@byu.net>
34089
34090         doc: improve git diff of texinfo files
34091         * .gitattributes: Add rule for *.texi files, with hint on how to
34092         use it.
34093         Copied from m4, and based on a report by Bruno Haible.
34094
34095 2009-08-14  Bruno Haible  <bruno@clisp.org>
34096
34097         Disable multithread support by default on Cygwin 1.5.x for real.
34098         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34099
34100 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34101
34102         update-copyright: much ado about intervals
34103         * build-aux/update-copyright: Implement and document
34104         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34105         of copyright year intervals.
34106         Also, document UPDATE_COPYRIGHT_YEAR.
34107         * tests/test-update-copyright.sh: Test it.
34108
34109         update-copyright: convert 2-digit to 4-digit years
34110         * build-aux/update-copyright: Implement and document.
34111         * tests/test-update-copyright.sh: Update.
34112
34113 2009-08-14  Jim Meyering  <meyering@redhat.com>
34114
34115         test-exclude: avoid coreutils "make check" failure
34116         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34117         just as in test-argmatch.c.
34118
34119 2009-08-13  Eric Blake  <ebb9@byu.net>
34120
34121         test-dup2: fix bad assumption
34122         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
34123         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
34124
34125         test-version-etc: fix CRLF portability issue
34126         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
34127         recognize \r.
34128         * tests/test-argp-version-etc-1.sh: Likewise.
34129
34130         getopt: update client modules
34131         * modules/argp (Depends-on): Use getopt-gnu.
34132         * modules/git-merge-changelog (Depends-on): Likewise.
34133         * modules/long-options (Depends-on): Likewise.
34134         * modules/xstrtol (Depends-on): Likewise.
34135
34136 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34137
34138         * tests/test-version-etc.sh: Don't fail on different
34139         project/version.  Don't fail on CRLF differences.  Rewrite to use
34140         multiple -e instead of multiple sed forks, suggested by Eric Blake
34141         <ebb9@byu.net>.
34142         * tests/test-argp-version-etc-1.sh: Likewise.
34143
34144 2009-08-13  Simon Josefsson  <simon@josefsson.org>
34145
34146         * tests/test-version-etc.sh: Don't fail on different
34147         project/version.
34148
34149 2009-08-12  Bruno Haible  <bruno@clisp.org>
34150
34151         Tests for modules 'getopt-posix', 'getopt-gnu'.
34152         * modules/getopt-posix-tests: New file.
34153         * tests/test-getopt.c: New file.
34154         * tests/test-getopt.h: New file.
34155         * tests/test-getopt_long.h: New file.
34156
34157         New modules 'getopt-posix', 'getopt-gnu'.
34158         * modules/getopt-gnu: New file, renamed from modules/getopt.
34159         * modules/getopt-posix: New file.
34160         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
34161         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
34162         (gl_GETOPT): Remove macro.
34163         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
34164         Disable the test against BSD systems that declare optreset. Test
34165         against mingw bug. Test against lack of support of optional arguments
34166         on many platforms.
34167         * doc/glibc-headers/getopt.texi: Update module name and list of
34168         relevant platforms.
34169         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
34170         'getopt-gnu' and more portability problems.
34171         * NEWS: Mention the changes.
34172
34173 2009-08-12  Bruno Haible  <bruno@clisp.org>
34174
34175         Ensure that optarg etc. get declared by <unistd.h>.
34176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
34177         AC_USE_SYSTEM_EXTENSIONS.
34178         * modules/getopt (Depends-on): Add 'extensions'.
34179
34180 2009-08-12  Bruno Haible  <bruno@clisp.org>
34181
34182         Avoid test link errors.
34183         * modules/pipe-filter-ii-tests (Makefile.am): Define
34184         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
34185         * modules/pipe-filter-gi-tests (Makefile.am): Define
34186         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
34187         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34188
34189 2009-08-12  Bruno Haible  <bruno@clisp.org>
34190
34191         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
34192         gl_GETOPT_SUBSTITUTE before.
34193         (gl_GETOPT): Use it.
34194         * m4/argp.m4 (gl_ARGP): Update.
34195         Reported by Sergey Poznyakoff.
34196
34197         * m4/getopt.m4: Reorder macros.
34198         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
34199         (gl_GETOPT_SUBSTITUTE): Remove macro.
34200
34201 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34202
34203         Minor improvement in gitlog-to-changelog
34204
34205         * build-aux/gitlog-to-changelog: New option `--format' makes
34206         output format string configurable.
34207
34208 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34209
34210         Optimize exclude: use hash tables for non-wildcard patterns.
34211
34212         * lib/exclude.c: Include hash.h and mbuiter.h
34213         (struct exclude_pattern, exclude_segment): New data types.
34214         (struct exclude): Rewrite.
34215         (fnmatch_pattern_has_wildcards): New function.
34216         (new_exclude_segment, free_exclude_segment): New functions.
34217         (excluded_file_pattern_p, excluded_file_name_p): New functions.
34218         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
34219         * lib/exclude.h (is_fnmatch_pattern): New prototype.
34220         * modules/exclude: Depend on hash and mbuiter.
34221
34222         * modules/exclude-tests: New file.
34223         * tests/test-exclude.c: New file.
34224         * tests/test-exclude1.sh: New file.
34225         * tests/test-exclude2.sh: New file.
34226         * tests/test-exclude3.sh: New file.
34227         * tests/test-exclude4.sh: New file.
34228         * tests/test-exclude5.sh: New file.
34229         * tests/test-exclude6.sh: New file.
34230         * tests/test-exclude7.sh: New file.
34231
34232 2009-08-12  Bruno Haible  <bruno@clisp.org>
34233
34234         Ensure that getopt() gets declared by <unistd.h>.
34235         * lib/unistd.in.h: Conditionally include getopt.h.
34236         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
34237         Set GNULIB_UNISTD_H_GETOPT.
34238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34239         GNULIB_UNISTD_H_GETOPT.
34240         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
34241
34242 2009-08-12  Bruno Haible  <bruno@clisp.org>
34243
34244         Clarify logic.
34245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
34246         gl_replace_getopt instead of GETOPT_H.
34247
34248 2009-08-12  Bruno Haible  <bruno@clisp.org>
34249
34250         * m4/getopt.m4: Add comments.
34251
34252 2009-08-12  Bruno Haible  <bruno@clisp.org>
34253
34254         Disable multithread support by default on Cygwin 1.5.x.
34255         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
34256         set gl_use_threads=no if not specified otherwise.
34257
34258 2009-08-11  Bruno Haible  <bruno@clisp.org>
34259
34260         Avoid compilation error on NetBSD 5.0.
34261         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
34262         * tests/test-stdio.c: Likewise.
34263         * tests/test-stdlib.c: Likewise.
34264         * tests/test-string.c: Likewise.
34265         * tests/test-unistd.c: Likewise.
34266         Reported by Greg Troxel <gdt@ir.bbn.com>
34267         at <https://savannah.gnu.org/support/?106973>.
34268
34269 2009-08-11  Bruno Haible  <bruno@clisp.org>
34270
34271         * modules/dup2-tests (Depends-on): Remove close.
34272
34273         Undo 2009-07-19 commit.
34274         * modules/acl-tests (Depends-on): Remove close.
34275         * modules/binary-io-tests (Depends-on): Likewise.
34276         * modules/closein-tests (Depends-on): Likewise.
34277         * modules/flock-tests (Depends-on): Likewise.
34278         * modules/fsync-tests (Depends-on): Likewise.
34279         * modules/lseek-tests (Depends-on): Likewise.
34280         * modules/pipe-tests (Depends-on): Likewise.
34281         * modules/posix_spawn-tests (Depends-on): Likewise.
34282         * modules/posix_spawnp-tests (Depends-on): Likewise.
34283         * modules/stat-time-tests (Depends-on): Likewise.
34284         * modules/yesno-tests (Depends-on): Likewise.
34285
34286 2009-08-10  Bruno Haible  <bruno@clisp.org>
34287
34288         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
34289
34290 2009-08-10  Bruno Haible  <bruno@clisp.org>
34291
34292         Fix a gcc warning.
34293         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
34294
34295 2009-08-10  Bruno Haible  <bruno@clisp.org>
34296
34297         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
34298         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
34299         not only the first time.
34300         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
34301         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
34302         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
34303         is 1, not only the the first time.
34304
34305 2009-08-10  Bruno Haible  <bruno@clisp.org>
34306
34307         Make it possible to use module 'gethostname' without module 'close'.
34308         * lib/unistd.in.h (close): Evoke a link error only if
34309         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34311         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34312         * modules/unistd (Makefile.am): Substitute
34313         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34314         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
34315         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
34316         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34317         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34318         * modules/sys_ioctl (Makefile.am): Substitute
34319         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34320         * modules/socket (configure.ac): On native Windows, set
34321         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
34322         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
34323         Reported by Sam Steingold <sds@gnu.org>.
34324
34325 2009-08-10  Bruno Haible  <bruno@clisp.org>
34326
34327         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
34328         * modules/ioctl (configure.ac): Likewise.
34329
34330 2009-08-10  Bruno Haible  <bruno@clisp.org>
34331
34332         Avoid collision between gnulib wrapper and libintl wrapper.
34333         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
34334         already defined in intl/printf.c.
34335         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
34336         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
34337
34338 2009-08-09  Bruno Haible  <bruno@clisp.org>
34339
34340         Make <sys/select.h> really self-contained, also on Solaris 10.
34341         * lib/sys_select.in.h: Include <string.h>.
34342         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
34343         Solaris 10 problem.
34344         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
34345         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
34346         Reported by Jim Meyering.
34347
34348 2009-08-09  Bruno Haible  <bruno@clisp.org>
34349
34350         Avoid warnings from 'aclocal' that are due to a use of macro name
34351         AM_XGETTEXT_OPTION that is not defined in automake.
34352         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
34353         automake.
34354         * modules/error (configure.ac): Likewise.
34355         * modules/propername (configure.ac): Likewise.
34356         * modules/vasprintf (configure.ac): Likewise.
34357         * modules/verror (configure.ac): Likewise.
34358         * modules/xprintf (configure.ac): Likewise.
34359         * modules/xvasprintf (configure.ac): Likewise.
34360
34361 2009-08-08  Bruno Haible  <bruno@clisp.org>
34362
34363         Avoid compilation error in C++ mode.
34364         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
34365         Reported by Sam Steingold <sds@gnu.org>.
34366
34367 2009-08-08  Bruno Haible  <bruno@clisp.org>
34368
34369         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
34370         for the various Unix platforms.
34371         * doc/posix-headers/limits.texi: Update platforms list regarding
34372         HOST_NAME_MAX.
34373         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34374
34375 2009-08-07  Jim Meyering  <meyering@redhat.com>
34376
34377         selinux-at: fix typo in a comment
34378         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
34379         Spotted by Paolo Bonzini.
34380
34381         selinux-at: remove redundant m4 code, add documentation
34382         * modules/selinux-at (configure.ac): Remove redundant code.
34383         LIB_SELINUX is already set via the dependent module, selinux-h.
34384         (Include): Add quotes around selinux-at.h.
34385         * lib/selinux-at.h: Add documentation.
34386         Reported by Bruno Haible in
34387         http://marc.info/?l=gnulib-bug&m=124958988300749
34388
34389 2009-08-07  Bruno Haible  <bruno@clisp.org>
34390
34391         Avoid link error on MacOS X 10.3 and 10.4.
34392         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
34393         on non-ELF systems.
34394         * lib/argp-pv.c (argp_program_version): Likewise.
34395         Reported by Simon Josefsson.
34396
34397 2009-08-07  Simon Josefsson  <simon@josefsson.org>
34398
34399         * tests/test-version-etc.sh: Use $EXEEXT.
34400
34401 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
34402
34403         update-copyright: update documentation to point to maint.mk
34404         * build-aux/update-copyright: Here.
34405
34406 2009-08-06  Jim Meyering  <meyering@redhat.com>
34407
34408         maint.mk: support update-copyright-local
34409         * top/maint.mk (update-copyright-local): Define place-holder.
34410         (update-copyright): Depend on $(update-copyright-local).
34411
34412 2009-08-06  Jim Meyering  <meyering@redhat.com>
34413
34414         selinux-at: new module
34415         Initially written for coreutils, this module will soon be
34416         used by findutils, too.
34417         * MODULES.html.sh [Misc]: Add selinux-at.
34418         * lib/selinux-at.h: New file, from coreutils.
34419         * lib/selinux-at.c: Likewise.
34420         * modules/selinux-at: Likewise.
34421         (License): Change from LGPL to GPL, since it depends
34422         on the GPL'd openat module.
34423
34424         doc: update README
34425         * README: Remove references to cogito.
34426         Remove cvs-repo-updating instructions from 2007.
34427         Don't imply that CVS is better if you have limited disk space.
34428
34429 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34430
34431         update-copyright: support C-style comments
34432         * build-aux/update-copyright: Implement and document.
34433         * tests/test-update-copyright.sh: Test.
34434
34435 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34436
34437         update-copyright: support omitted "(C)"
34438         * build-aux/update-copyright: Implement and document.  Also,
34439         allow variable whitespace before "(C)".
34440         * tests/test-update-copyright.sh: Test.
34441
34442 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34443
34444         update-copyright: don't trip on non-FSF copyright statements
34445         * build-aux/update-copyright: Fix so that the first correctly
34446         formatted FSF copyright statement is recognized no matter what
34447         appears before it.  Update documentation.
34448         * tests/test-update-copyright.sh: Test that.
34449
34450 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34451
34452         update-copyright: clean up code a little
34453         * build-aux/update-copyright: Append "_re" to the name of any
34454         variable holding a regular expression.
34455         Replace "old" and "new" with "stmt" in variable names.
34456         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
34457         handled correctly.
34458         Format code more consistently.
34459
34460 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
34461
34462         update-copyright-tests: improve portability
34463         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
34464         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
34465
34466 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34467
34468         update-copyright: support @copyright{} and &copy;
34469         * build-aux/update-copyright: Implement and document.
34470         * tests/test-update-copyright.sh: Test.
34471
34472 2009-08-04  Jim Meyering  <meyering@redhat.com>
34473
34474         update-copyright-tests: correctly test EOL=\r\n handling
34475         * tests/test-update-copyright.sh: Put \r at the end of some lines
34476         for the dos-eol tests.  Based on a patch by Joel E. Denny.
34477
34478         maint.mk: make update-copyright exclusion list more configurable
34479         * top/maint.mk (update-copyright): Default to excluding COPYING,
34480         but allow an override, in case someone does want to update that file.
34481
34482         maint.mk: don't update copyright date in COPYING
34483         * top/maint.mk (update-copyright): Exclude COPYING.
34484
34485         maint.mk: add a copyright-updating rule
34486         * top/maint.mk (update-copyright): New rule.
34487         Derived from coreutils/Makefile.am.
34488
34489         update-copyright: rename some variables
34490         * build-aux/update-copyright: Rename a few variables for clarity.
34491         Tweak syntax.  List Joel E. Denny as coauthor.
34492
34493 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
34494
34495         update-copyright: fix bug for 2-digit last year and add tests
34496         * build-aux/update-copyright: Fix bug.
34497         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
34498         specified.
34499         * modules/update-copyright-tests: New
34500         * tests/test-update-copyright.sh: New.
34501
34502 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34503
34504         update-copyright: handle leading tabs in line prefix
34505         * build-aux/update-copyright: Count leading tabs as 8 spaces
34506         when computing margin.  This helps with the formatting of
34507         ChangeLogs, for example.
34508         Fix documentation a little.
34509
34510 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34511
34512         update-copyright: support EOL=\r\n
34513         * build-aux/update-copyright: Implement that.
34514
34515 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
34516
34517         update-copyright: automatically format copyright statements
34518         * build-aux/update-copyright: Implement that.
34519         Also, be a little more predictable and safer by always failing
34520         when the full copyright format is not perfectly recognized as an
34521         unbroken whole.  Discussed at
34522         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
34523         Rewrite documentation.
34524
34525 2009-08-03  Bruno Haible  <bruno@clisp.org>
34526
34527         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
34528
34529 2009-08-02  Bruno Haible  <bruno@clisp.org>
34530
34531         Tests for module 'uname'.
34532         * modules/uname-tests: New file.
34533         * tests/test-uname.c: New file.
34534
34535         New module 'uname'.
34536         * lib/uname.c: New file.
34537         * m4/uname.m4: New file.
34538         * modules/uname: New file.
34539         * doc/posix-functions/uname.texi: Mention the new module.
34540
34541 2009-08-02  Bruno Haible  <bruno@clisp.org>
34542
34543         Tests for module 'sys_utsname'.
34544         * modules/sys_utsname-tests: New file.
34545         * tests/test-sys_utsname.c: New file.
34546
34547         New module 'sys_utsname'.
34548         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
34549         * m4/sys_utsname_h.m4: New file.
34550         * modules/sys_utsname: New file.
34551         * doc/posix-headers/sys_utsname.texi: Mention the new module.
34552
34553 2009-08-02  Bruno Haible  <bruno@clisp.org>
34554
34555         Implicitly initialize the sockets library.
34556         * lib/gethostname.c: Include sockets.h.
34557         (rpl_gethostname): Invoke gl_sockets_startup.
34558         * lib/socket.c: Include sockets.h.
34559         (rpl_socket): Invoke gl_sockets_startup.
34560         * modules/gethostname (Depends-on): Add sockets.
34561         * modules/socket (Depends-on): Likewise.
34562         * tests/test-poll.c: Don't include sockets.h.
34563         (main): Don't invoke gl_sockets_startup.
34564         * tests/test-select.c: Don't include sockets.h.
34565         (main): Don't invoke gl_sockets_startup.
34566
34567 2009-08-02  Bruno Haible  <bruno@clisp.org>
34568
34569         Allow multiple calls to gl_sockets_startup.
34570         * lib/sockets.c (initialized_sockets_version): New variable.
34571         (gl_sockets_startup): Do nothing if already called for this or a higher
34572         version.
34573         (gl_sockets_cleanup): Reset initialized_sockets_version.
34574
34575 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34576
34577         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34578         different project/version.
34579
34580 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34581             Bruno Haible  <bruno@clisp.org>
34582
34583         Tests for module 'pipe-filter-gi'.
34584         * modules/pipe-filter-gi-tests: New file.
34585         * tests/test-pipe-filter-gi1.sh: New file.
34586         * tests/test-pipe-filter-gi1.c: New file.
34587         * tests/test-pipe-filter-gi2.sh: New file.
34588         * tests/test-pipe-filter-gi2-main.c: New file.
34589         * tests/test-pipe-filter-gi2-child.c: New file.
34590
34591         New module 'pipe-filter-gi'.
34592         * lib/pipe-filter-gi.c: New file.
34593         * modules/pipe-filter-gi: New file.
34594
34595 2009-08-02  Bruno Haible  <bruno@clisp.org>
34596             Paolo Bonzini  <bonzini@gnu.org>
34597
34598         Tests for module 'pipe-filter-ii'.
34599         * modules/pipe-filter-ii-tests: New file.
34600         * tests/test-pipe-filter-ii1.sh: New file.
34601         * tests/test-pipe-filter-ii1.c: New file.
34602         * tests/test-pipe-filter-ii2.sh: New file.
34603         * tests/test-pipe-filter-ii2-main.c: New file.
34604         * tests/test-pipe-filter-ii2-child.c: New file.
34605
34606         New module 'pipe-filter-ii'.
34607         * lib/pipe-filter.h: New file.
34608         * lib/pipe-filter-ii.c: New file.
34609         * lib/pipe-filter-aux.h: New file.
34610         * modules/pipe-filter-ii: New file.
34611
34612 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34613
34614         * lib/gc-libgcrypt.c: Change copyright to FSF.
34615         * lib/gc-gnulib.c: Likewise.
34616
34617 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34618
34619         * lib/gethostname.c: Include limits.h.
34620
34621 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34622             Bruno Haible  <bruno@clisp.org>
34623
34624         Ensure HOST_NAME_MAX as part of the gethostname module.
34625         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34626         define also HOST_NAME_MAX.
34627         * tests/test-gethostname.c: Include <limits.h>.
34628         (main): Check also HOST_NAME_MAX.
34629         * doc/posix-headers/limits.texi: Document the mingw problem.
34630
34631 2009-08-02  Bruno Haible  <bruno@clisp.org>
34632
34633         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34634         Add comments.
34635
34636 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34637
34638         * lib/gethostname.c: Add Windows wrapper.
34639         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34640         * modules/gethostname: Depend on sys_socket & errno, for also
34641         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34642         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34643
34644 2009-07-31  Jim Meyering  <meyering@redhat.com>
34645
34646         getloadavg: fix symbol name in comment
34647         * lib/getloadavg.c: Correct a typo I introduced when adding
34648         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34649         Matt Kraai spotted the problem.
34650
34651 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34652
34653         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34654         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34655         code also if ! defined N_NAME_POINTER.
34656         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34657         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34658         but the n_name member is a 12-byte array.
34659
34660 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34661
34662         update-copyright: generalize comment handling
34663         * build-aux/update-copyright: Handle copyright statements
34664         within more comment styles.
34665         Document usage.
34666         Report any file with an external copyright holder or parse failure.
34667
34668 2009-07-29  Jim Meyering  <meyering@redhat.com>
34669
34670         mktime: correct setting of REPLACE_MKTIME
34671         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34672
34673         update-copyright: new module
34674         * modules/update-copyright: New file.
34675         * build-aux/update-copyright: New file.
34676         * MODULES.html.sh (maint+release support): Add update-copyright.
34677
34678 2009-07-27  Bruno Haible  <bruno@clisp.org>
34679
34680         Fix compilation error when <ctime> is used and mktime is replaced.
34681         * lib/time.in.h (mktime): New declaration.
34682         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34683         REPLACE_MKTIME instead of defining mktime in config.h.
34684         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34685         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34686         Reported by Ross McFarland <rwmcfa1@neces.com>.
34687
34688 2009-07-27  Bruno Haible  <bruno@clisp.org>
34689
34690         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34691         Reported by Matt Kraai <mkraai@beckman.com>.
34692
34693 2009-07-25  Jim Meyering  <meyering@redhat.com>
34694
34695         maint.mk: avoid warnings about missing files
34696         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34697         diagnostic when .prev-version does not exist.
34698         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34699         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34700         nonexistent cfg.mk.
34701         Suggestions from Simon Josefsson.
34702
34703 2009-07-25  Bruno Haible  <bruno@clisp.org>
34704
34705         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34706         defined as macros. Needed on QNX 6.4.1.
34707         Reported by Matt Kraai <mkraai@beckman.com>.
34708
34709 2009-07-23  Jim Meyering  <meyering@redhat.com>
34710
34711         maint.mk: invoke "make dist" with a working value of XZ_OPT
34712         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34713
34714 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34715
34716         Make fseeko.c compile on QNX.
34717         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34718
34719 2009-07-22  Peter Simons  <simons@cryp.to>
34720
34721         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34722         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34723         * lib/md4.h: Likewise.
34724         * lib/md5.h: Likewise.
34725         * lib/sha1.h: Likewise.
34726         * lib/sha256.h: Likewise.
34727         * lib/sha512.h: Likewise.
34728
34729         tests-sha1: don't assign literal string to 'char *' variable
34730         * tests/test-sha1.c (main): Declare locals with "const" to match
34731         attributes of the right hand side.
34732
34733 2009-07-21  Eric Blake  <ebb9@byu.net>
34734
34735         dup2: fix more mingw problems
34736         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34737         fd to itself.
34738         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34739         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34740         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34741         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34742         care of mingw bugs.
34743
34744 2009-07-21  Jim Meyering  <meyering@redhat.com>
34745
34746         vc-list-files: avoid failure when /bin/sh is dash
34747         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34748         On some Debian based systems, /bin/sh is a symlink to dash, and running
34749         this command would omit the "/" following each 'tests' prefix:
34750           dash -x build-aux/vc-list-files -C . tests
34751         That is because bash and dash work differently:
34752           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34753           bash ok
34754           dash odd
34755
34756 2009-07-21  Eric Blake  <ebb9@byu.net>
34757
34758         dup2-tests: test previous patch
34759         * modules/dup2-tests: New file.
34760         * tests/test-dup2.c: Likewise.
34761         * tests/test-open.c (main): Avoid unspecified behavior.
34762         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34763         test.
34764
34765         dup2: work around mingw and cygwin 1.5 bug
34766         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34768         * modules/unistd (Makefile.am): Substitute it.
34769         * lib/unistd.in.h (dup2): Declare the replacement.
34770         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34771         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34772         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34773         * modules/execute (Depends-on): Add dup2.
34774         * modules/fseterr (Depends-on): Likewise.
34775         * modules/pipe (Depends-on): Likewise.
34776         * modules/posix_spawn-internal (Depends-on): Likewise.
34777
34778 2009-07-21  Bruno Haible  <bruno@clisp.org>
34779
34780         * modules/.gitattributes: New file.
34781
34782 2009-07-20  Bruno Haible  <bruno@clisp.org>
34783
34784         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34785         (main): Use it.
34786
34787 2009-07-20  Eric Blake  <ebb9@byu.net>
34788
34789         test-pipe: make a bit more robust.
34790         * tests/test-pipe.c (myerr): Allow error messages regardless of
34791         what we do to stderr.
34792         (test_pipe): Rearrange to avoid deadlock.
34793         (child_main): Try a larger read, to ensure we avoided deadlock.
34794         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34795         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34796         if misused.
34797
34798 2009-07-19  Jim Meyering  <meyering@redhat.com>
34799
34800         fts: avoid false-positive cycle-detection
34801         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34802         for each new command line argument.
34803
34804 2009-07-19  Bruno Haible  <bruno@clisp.org>
34805
34806         Fix build error on mingw with the modules sys_select and unistd.
34807         * modules/acl-tests (Depends-on): Add close.
34808         * modules/binary-io-tests (Depends-on): Likewise.
34809         * modules/closein-tests (Depends-on): Likewise.
34810         * modules/flock-tests (Depends-on): Likewise.
34811         * modules/fsync-tests (Depends-on): Likewise.
34812         * modules/lseek-tests (Depends-on): Likewise.
34813         * modules/pipe-tests (Depends-on): Likewise.
34814         * modules/posix_spawn-tests (Depends-on): Likewise.
34815         * modules/posix_spawnp-tests (Depends-on): Likewise.
34816         * modules/stat-time-tests (Depends-on): Likewise.
34817         * modules/yesno-tests (Depends-on): Likewise.
34818
34819 2009-07-19  Bruno Haible  <bruno@clisp.org>
34820
34821         Unify conditionals.
34822         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34823         macros, not at the compiler macros.
34824         * lib/pipe.c: Likewise.
34825         * lib/execute.c: Likewise.
34826         * lib/spawni.c: Likewise.
34827
34828 2009-07-19  Bruno Haible  <bruno@clisp.org>
34829
34830         Fix handling of closed stdin/stdout/stderr on mingw.
34831         * lib/w32spawn.h: Include unistd.h.
34832         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34833         file descriptor with O_NOINHERIT flag.
34834         (fd_safer_noinherit): New function, based on fd-safer.c.
34835         (dup_safer_noinherit): New function, based on dup-safer.c.
34836         (undup_safer_noinherit): New function.
34837         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34838         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34839         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34840         instead of fd_safer.
34841         * tests/test-pipe.c: Include <windows.h>.
34842         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34843         result.
34844
34845         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34846         from main.
34847         (test_pipe): Pass an extra argument for disambiguation.
34848         (main): Invoke parent_main or child_main.
34849
34850         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34851         consistently.
34852
34853 2009-07-18  Eric Blake  <ebb9@byu.net>
34854
34855         test-pipe: fix mingw build
34856         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34857
34858 2009-07-18  Bruno Haible  <bruno@clisp.org>
34859
34860         * modules/pipe-tests (Makefile.am): Fix typo.
34861
34862 2009-07-18  Eric Blake  <ebb9@byu.net>
34863
34864         error: fix mingw build
34865         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34866         Reported by Bruno Haible.
34867
34868         error: avoid undefined use of stdout
34869         * lib/error.c (error, error_at_line): Check that fd 1 is open
34870         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34871         is handling faults and the close_stdout module wants to report the
34872         detection of closed stdout as an error.
34873
34874 2009-07-17  Eric Blake  <ebb9@byu.net>
34875
34876         pipe: be robust in face of closed fds
34877         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34878         should cause child to misbehave.
34879         * modules/pipe-tests: New module.
34880         * tests/test-pipe.c: New file.
34881         * tests/test-pipe.sh: New file.
34882         Reported by Akim Demaille.
34883
34884 2009-07-14  Bruno Haible  <bruno@clisp.org>
34885
34886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34887         Reported by anonymous kc.
34888
34889 2009-07-07  Jim Meyering  <meyering@redhat.com>
34890
34891         maint.mk: don't look for translatable strings in *.m4 or *.mk
34892         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34893         when searching for translatable strings.
34894
34895 2009-07-05  Jim Meyering  <meyering@redhat.com>
34896
34897         remove superfluous parentheses in STREQ definition
34898         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34899         * lib/getugroups.c (STREQ): Likewise.
34900         * lib/fnmatch.c (STREQ): Likewise.
34901         Spotted by Bruno Haible.
34902
34903 2009-07-04  Jim Meyering  <meyering@redhat.com>
34904
34905         argv-iter: new module
34906         * MODULES.html.sh: Add argv-iter.
34907         * lib/argv-iter.c, lib/argv-iter.h: New files.
34908         * modules/argv-iter: New file.
34909         * modules/argv-iter-tests: New file.
34910         * tests/test-argv-iter.c: Test it.
34911
34912 2009-07-04  Bruno Haible  <bruno@clisp.org>
34913
34914         Fix assertion.
34915         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34916         contains more exact copies of a given entry than file2, leave the extra
34917         copies unpaired rather than aborting.
34918         Reported by Eric Blake.
34919
34920 2009-07-02  Bruno Haible  <bruno@clisp.org>
34921
34922         Speedup git-merge-changelog for git cherry-pick.
34923         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34924         (entries_mapping_get): New function, extracted from compute_mapping.
34925         (entries_mapping_reverse_get): New function.
34926         (compute_mapping): Add a 'full' argument. Return the result in a
34927         'struct entries_mapping'.
34928         (main): Update. Access the mappings through entries_mapping_get.
34929         Reported by Eric Blake.
34930
34931 2009-07-02  Bruno Haible  <bruno@clisp.org>
34932
34933         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34934         best_i.
34935
34936 2009-07-02  Bruno Haible  <bruno@clisp.org>
34937
34938         Speed up approximate search for matching ChangeLog entries.
34939         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34940         argument. Call fstrcmp_bounded instead of fstrcmp.
34941         (compute_mapping, try_split_merged_entry, main): Update callers.
34942
34943 2009-07-02  Bruno Haible  <bruno@clisp.org>
34944
34945         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34946
34947 2009-06-30  Bruno Haible  <bruno@clisp.org>
34948
34949         Reduce the number of uc_is_cased calls.
34950         * lib/unicase.h (casing_suffix_context_t): Add
34951         'first_char_except_ignorable' field.
34952         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34953         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34954         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34955         Update initializer.
34956         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34957         case-ignorable characters.
34958         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34959         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34960         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34961         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34962         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34963
34964 2009-06-30  Bruno Haible  <bruno@clisp.org>
34965
34966         Tests for module 'unicase/ignorable'.
34967         * modules/unicase/ignorable-tests: New file.
34968         * tests/unicase/test-ignorable.c: New file, generated by
34969         gen-uni-tables.
34970
34971         Tests for module 'unicase/cased'.
34972         * modules/unicase/cased-tests: New file.
34973         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34974         * tests/unicase/test-predicate-part1.h: New file, derived from
34975         tests/unictype/test-predicate-part1.h.
34976         * tests/unicase/test-predicate-part2.h: New file, same as
34977         tests/unictype/test-predicate-part2.h.
34978
34979         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34980         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34981         (output_casing_properties): New function.
34982         (main): Call it.
34983         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34984         * lib/unicase/cased.c: Include unictype/bitmap.h.
34985         (uc_is_cased): Define through a bitmap lookup.
34986         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34987         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34988         (uc_is_case_ignorable): Define through a bitmap lookup.
34989         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34990         lib/unictype/bitmap.h.
34991         (Depends-on): Add inline. Clean up.
34992         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34993         lib/unictype/bitmap.h.
34994         (Depends-on): Add inline. Clean up.
34995         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34996         recognition.
34997         * tests/unicase/test-u16-tolower.c (main): Likewise.
34998         * tests/unicase/test-u32-tolower.c (main): Likewise.
34999
35000 2009-06-30  Bruno Haible  <bruno@clisp.org>
35001
35002         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35003         * lib/unicase/u16-casemap.c: Likewise.
35004         * lib/unicase/u32-casemap.c: Likewise.
35005
35006 2009-06-29  Bruno Haible  <bruno@clisp.org>
35007
35008         Define u32_casefold as a wrapper around u32_ct_casefold.
35009         * lib/unicase/u32-casefold.c: Update.
35010         * modules/unicase/u32-casefold (Depends-on): Add
35011         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35012         unicase/empty-suffix-context. Clean up.
35013
35014         Define u16_casefold as a wrapper around u16_ct_casefold.
35015         * lib/unicase/u16-casefold.c: Update.
35016         * modules/unicase/u16-casefold (Depends-on): Add
35017         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35018         unicase/empty-suffix-context. Clean up.
35019
35020         Define u8_casefold as a wrapper around u8_ct_casefold.
35021         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
35022         * lib/unicase/u8-casefold.c: Update.
35023         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
35024         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35025
35026         Define u32_totitle as a wrapper around u32_ct_totitle.
35027         * lib/unicase/u32-totitle.c: Update.
35028         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
35029         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35030
35031         Define u16_totitle as a wrapper around u16_ct_totitle.
35032         * lib/unicase/u16-totitle.c: Update.
35033         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
35034         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35035
35036         Define u8_totitle as a wrapper around u8_ct_totitle.
35037         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
35038         functions.
35039         (FUNC): Delegate to U_CT_TOTITLE.
35040         * lib/unicase/u8-totitle.c: Update.
35041         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
35042         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35043
35044         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
35045         invocation.
35046         * modules/unicase/u32-tolower (Depends-on): Add
35047         unicase/empty-prefix-context, unicase/empty-suffix-context.
35048
35049         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
35050         invocation.
35051         * modules/unicase/u16-tolower (Depends-on): Add
35052         unicase/empty-prefix-context, unicase/empty-suffix-context.
35053
35054         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35055         * modules/unicase/u8-tolower (Depends-on): Add
35056         unicase/empty-prefix-context, unicase/empty-suffix-context.
35057
35058         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35059         invocation.
35060         * modules/unicase/u32-toupper (Depends-on): Add
35061         unicase/empty-prefix-context, unicase/empty-suffix-context.
35062
35063         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35064         invocation.
35065         * modules/unicase/u16-toupper (Depends-on): Add
35066         unicase/empty-prefix-context, unicase/empty-suffix-context.
35067
35068         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35069         * modules/unicase/u8-toupper (Depends-on): Add
35070         unicase/empty-prefix-context, unicase/empty-suffix-context.
35071
35072         New module 'unicase/u32-ct-casefold'.
35073         * lib/unicase/u32-ct-casefold.c: New file.
35074         * modules/unicase/u32-ct-casefold: New file.
35075
35076         New module 'unicase/u16-ct-casefold'.
35077         * lib/unicase/u16-ct-casefold.c: New file.
35078         * modules/unicase/u16-ct-casefold: New file.
35079
35080         New module 'unicase/u8-ct-casefold'.
35081         * lib/unicase/u8-ct-casefold.c: New file.
35082         * lib/unicase/u-ct-casefold.h: New file, derived from
35083         lib/unicase/u-casefold.h.
35084         * modules/unicase/u8-ct-casefold: New file.
35085
35086         New module 'unicase/u32-ct-totitle'.
35087         * lib/unicase/u32-ct-totitle.c: New file.
35088         * modules/unicase/u32-ct-totitle: New file.
35089
35090         New module 'unicase/u16-ct-totitle'.
35091         * lib/unicase/u16-ct-totitle.c: New file.
35092         * modules/unicase/u16-ct-totitle: New file.
35093
35094         New module 'unicase/u8-ct-totitle'.
35095         * lib/unicase/u8-ct-totitle.c: New file.
35096         * lib/unicase/u-ct-totitle.h: New file, derived from
35097         lib/unicase/u-totitle.h.
35098         * modules/unicase/u8-ct-totitle: New file.
35099
35100         New module 'unicase/u32-ct-tolower'.
35101         * lib/unicase/u32-ct-tolower.c: New file.
35102         * modules/unicase/u32-ct-tolower: New file.
35103
35104         New module 'unicase/u16-ct-tolower'.
35105         * lib/unicase/u16-ct-tolower.c: New file.
35106         * modules/unicase/u16-ct-tolower: New file.
35107
35108         New module 'unicase/u8-ct-tolower'.
35109         * lib/unicase/u8-ct-tolower.c: New file.
35110         * modules/unicase/u8-ct-tolower: New file.
35111
35112         New module 'unicase/u32-ct-toupper'.
35113         * lib/unicase/u32-ct-toupper.c: New file.
35114         * modules/unicase/u32-ct-toupper: New file.
35115
35116         New module 'unicase/u16-ct-toupper'.
35117         * lib/unicase/u16-ct-toupper.c: New file.
35118         * modules/unicase/u16-ct-toupper: New file.
35119
35120         New module 'unicase/u8-ct-toupper'.
35121         * lib/unicase/u8-ct-toupper.c: New file.
35122         * modules/unicase/u8-ct-toupper: New file.
35123
35124         Add context arguments to u*_casemap functions.
35125         * lib/unicase/unicasemap.h: Include unicase.h.
35126         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
35127         suffix_context arguments.
35128         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
35129         functions.
35130         (FUNC): Add prefix_context and suffix_context arguments. Use
35131         uc_is_cased and uc_is_case_ignorable.
35132         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
35133         * lib/unicase/u16-casemap.c: Likewise.
35134         * lib/unicase/u32-casemap.c: Likewise.
35135         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
35136         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35137         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
35138         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35139         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
35140         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
35141
35142         New module 'unicase/u32-suffix-context'.
35143         * lib/unicase/u32-suffix-context.c: New file.
35144         * modules/unicase/u32-suffix-context: New file.
35145
35146         New module 'unicase/u16-suffix-context'.
35147         * lib/unicase/u16-suffix-context.c: New file.
35148         * modules/unicase/u16-suffix-context: New file.
35149
35150         New module 'unicase/u8-suffix-context'.
35151         * lib/unicase/u8-suffix-context.c: New file.
35152         * lib/unicase/u-suffix-context.h: New file.
35153         * modules/unicase/u8-suffix-context: New file.
35154
35155         New module 'unicase/empty-suffix-context'.
35156         * lib/unicase/empty-suffix-context.c: New file.
35157         * modules/unicase/empty-suffix-context: New file.
35158
35159         New module 'unicase/u32-prefix-context'.
35160         * lib/unicase/u32-prefix-context.c: New file.
35161         * modules/unicase/u32-prefix-context: New file.
35162
35163         New module 'unicase/u16-prefix-context'.
35164         * lib/unicase/u16-prefix-context.c: New file.
35165         * modules/unicase/u16-prefix-context: New file.
35166
35167         New module 'unicase/u8-prefix-context'.
35168         * lib/unicase/u8-prefix-context.c: New file.
35169         * lib/unicase/u-prefix-context.h: New file.
35170         * lib/unicase/context.h: New file.
35171         * modules/unicase/u8-prefix-context: New file.
35172
35173         New module 'unicase/empty-prefix-context'.
35174         * lib/unicase/empty-prefix-context.c: New file.
35175         * modules/unicase/empty-prefix-context: New file.
35176
35177         New module 'unicase/ignorable'.
35178         * lib/unicase/ignorable.c: New file.
35179         * modules/unicase/ignorable: New file.
35180
35181         New module 'unicase/cased'.
35182         * lib/unicase/caseprop.h: New file.
35183         * lib/unicase/cased.c: New file.
35184         * modules/unicase/cased: New file.
35185
35186         New functions for case mapping of substrings.
35187         * lib/unicase.h (casing_prefix_context_t): New type.
35188         (unicase_empty_prefix_context): New variable.
35189         (u8_casing_prefix_context, u16_casing_prefix_context,
35190         u32_casing_prefix_context, u8_casing_prefixes_context,
35191         u16_casing_prefixes_context, u32_casing_prefixes_context): New
35192         declarations.
35193         (casing_suffix_context_t): New type.
35194         (unicase_empty_suffix_context): New variable.
35195         (u8_casing_suffix_context, u16_casing_suffix_context,
35196         u32_casing_suffix_context, u8_casing_suffixes_context,
35197         u16_casing_suffixes_context, u32_casing_suffixes_context,
35198         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
35199         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
35200         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
35201         declarations.
35202
35203 2009-06-28  Jim Meyering  <meyering@redhat.com>
35204
35205         boostrap: indent only with spaces
35206         * build-aux/bootstrap: Indent only with spaces, never TABs.
35207
35208         bootstrap: split long lines
35209         * build-aux/bootstrap: Keep line length < 80.
35210
35211         bootstrap: sync from coreutils
35212         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
35213         just as autoreconf does.  Verify a list of prerequisite
35214         package-name,version-number pairs if defined in bootstrap.conf.
35215         Refer to README-prereq, if prerequisites are not satisfied.
35216
35217 2009-06-27  Eric Blake  <ebb9@byu.net>
35218
35219         tests: add test for bogus NULL definition
35220         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
35221         * tests/test-stdlib.c: Likewise.
35222         * tests/test-string.c: Likewise.
35223         * tests/test-locale.c: Likewise.
35224         * tests/test-unistd.c: Likewise.
35225         * modules/stdio-tests (Depends-on): Add verify.
35226         * modules/stdlib-tests (Depends-on): Likewise.
35227         * modules/string-tests (Depends-on): Likewise.
35228         * modules/locale-tests (Depends-on): Likewise.
35229         * modules/unistd-tests (Depends-on): Likewise.
35230
35231 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
35232
35233         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
35234         self-explaining comment.
35235         * m4/selinux-selinux-h: Update serial.
35236         (gl_LIBSELINUX): New macro, adding a warning for missing development
35237         packages to code extracted from...
35238         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
35239         Add warning for missing development packages here, too.
35240
35241 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
35242
35243         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
35244
35245 2009-06-25  Eric Blake  <ebb9@byu.net>
35246
35247         version-etc: fix regression
35248         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
35249         gcc.
35250         (version_etc): Use it, to catch bugs with trailing NULL.
35251         * lib/version-etc.c (version_etc_arn): Delete unused argument.
35252         (version_etc_va): Fix logic bug.
35253         * modules/version-etc-tests: Add test.
35254         * tests/test-version-etc.c: New file.
35255         * tests/test-version-etc.sh: Likewise.
35256
35257 2009-06-25  Sam Steingold  <sds@gnu.org>
35258
35259         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
35260         mbtowc declaration.
35261
35262 2009-06-25  Eric Blake  <ebb9@byu.net>
35263
35264         fpurge: migrate into <stdio.h>
35265         * lib/fpurge.h: Delete...
35266         * lib/stdio.in.h (fpurge): ...and declare here, instead.
35267         * lib/fpurge.c (fpurge): Change declaring header.
35268         * modules/fpurge (Files): Drop deleted file.
35269         (Depends-on): Add stdio.
35270         (configure.ac): Set witness.
35271         * modules/stdio (Makefile.am): Support fpurge macros.
35272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35273         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
35274         * lib/fflush.c: Update client.
35275         * tests/test-fpurge.c: Likewise.
35276         * NEWS: Mention the change.
35277
35278 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35279
35280         * lib/argp-version-etc.c (program_authors): Add const
35281         qualifier.
35282         * lib/version-etc.c: Fix typos in the comments.
35283         * modules/argp-version-etc: Depends on version-etc.
35284
35285 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35286
35287         argp-version-etc: new module.
35288
35289         * lib/argp-version-etc.c: New file.
35290         * lib/argp-version-etc.h: New file.
35291         * modules/argp-version-etc: New file.
35292         * modules/argp-version-etc-tests: New file.
35293         * tests/test-argp-version-etc.c: New test.
35294         * tests/test-argp-version-etc-1.sh: New test.
35295
35296 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35297
35298         Provide additional interfaces and documentation for version-etc
35299         module.
35300
35301         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
35302         interfaces.
35303         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
35304         prototypes.
35305
35306 2009-06-24  Bruno Haible  <bruno@clisp.org>
35307
35308         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
35309         HAVE_LIB${NAME} macro.
35310         Reported by Sam Steingold <sds@gnu.org>.
35311
35312 2009-06-23  Simon Josefsson  <simon@josefsson.org>
35313
35314         * modules/hash-tests (test_hash_LDADD): Link to libintl when
35315         needed.
35316
35317 2009-06-21  Bruno Haible  <bruno@clisp.org>
35318
35319         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
35320         work.
35321         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
35322         together with LIB${NAME}, LTLIB${NAME}.
35323         Reported by Sam Steingold <sds@gnu.org>.
35324
35325 2009-06-20  Jim Meyering  <meyering@redhat.com>
35326
35327         tests: make sc_require_test_exit_idiom more generic
35328         * top/maint.mk (Exit_witness_file): New overridable variable.
35329         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
35330         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
35331
35332 2009-06-19  Jim Meyering  <meyering@redhat.com>
35333
35334         hash: reverse order of src/dst parameters in an internal interface
35335         * lib/hash.c (transfer_entries): Reverse order of parameters to
35336         put DST before SRC.  Adjust callers.
35337
35338         tests: test-hash: avoid wholesale duplication
35339         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
35340         Instead, use a loop and add a single conditional.
35341
35342         tests: test-hash: allow seed selection via a command line argument
35343         * tests/test-hash.c (get_seed): New function.
35344         (main): Use it.
35345
35346 2009-06-19  Eric Blake  <ebb9@byu.net>
35347
35348         hash: avoid memory leak on allocation failure
35349         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
35350         failure.  Factor repeated algorithm...
35351         (transfer_entries): ...into new helper routine.
35352         (hash_delete): React to hash_rehash return value.
35353
35354         hash: reduce memory pressure in hash_rehash no-op case
35355         * lib/hash.c (next_prime): Avoid overflow.
35356         (hash_initialize): Factor bucket size computation...
35357         (compute_bucket_size): ...into new helper function.
35358         (hash_rehash): Use new function and open coding to reduce memory
35359         pressure, and avoid a memory leak in USE_OBSTACK code.
35360         Reported by Jim Meyering.
35361
35362 2009-06-18  Eric Blake  <ebb9@byu.net>
35363
35364         hash: make rotation more obvious
35365         * modules/hash (Depends-on): Add bitrotate and stdint.
35366         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
35367         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
35368         (SIZE_MAX): Rely on headers for definition.
35369         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
35370         (raw_hasher): Use rotr_sz.
35371         Suggested by Jim Meyering.
35372
35373         hash: fix memory leak in last patch
35374         * lib/hash.c (hash_rehash): Avoid memory leak.
35375
35376         hash: avoid no-op rehashing
35377         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
35378
35379         hash: provide default callback functions
35380         * lib/hash.c (raw_hasher, raw_comparator): New functions.
35381         (hash_initialize): Use them as defaults.
35382         * tests/test-hash.c (main): Test this.
35383
35384         hash: minor optimization
35385         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
35386         when possible.
35387         (hash_initialize): Document this promise.
35388         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
35389         * tests/test-hash.c (hash_compare_strings): Test this.
35390
35391 2009-06-18  Bruno Haible  <bruno@clisp.org>
35392
35393         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
35394         going to be replaced anyway.
35395
35396 2009-06-18  Bruno Haible  <bruno@clisp.org>
35397
35398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
35399         in one place.
35400         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
35401         be replaced anyway.
35402
35403 2009-06-18  Eric Blake  <ebb9@byu.net>
35404
35405         hash: check for resize before insertion
35406         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
35407         threshold before insertion, so that a pathological hash_rehash
35408         that fills every bucket can still trigger another rehash.
35409
35410 2009-06-18  Jim Meyering  <meyering@redhat.com>
35411
35412         hash-tests: add a loop around the small tests
35413         * tests/test-hash.c (main): Repeat small tests with selected
35414         small initial table sizes.
35415
35416 2009-06-17  Eric Blake  <ebb9@byu.net>
35417
35418         hash: minor cleanups
35419         * lib/hash.h (hash_entry): Make opaque, by moving...
35420         * lib/hash.c (hash_entry): ...here.
35421         (hash_insert): Clarify restrictions on what can be inserted.
35422         (hash_get_next): Clarify when it is safe to remove an element
35423         during traversal.
35424         (check_tuning): Skip verification when tuning is known safe.
35425         (hash_initialize): Clarify restrictions on tuning.
35426
35427 2009-06-17  Jim Meyering  <jim@meyering.net>
35428         and Eric Blake  <ebb9@byu.net>
35429
35430         hash-tests: new module
35431         * modules/hash-tests: New file.
35432         * tests/test-hash.c: New file.
35433
35434 2009-06-17  Eric Blake  <ebb9@byu.net>
35435
35436         strstr-simple: document new module
35437         * MODULES.html.sh: Document new module.
35438
35439         strstr, strcasestr: replace on platforms with broken memchr
35440         * modules/strstr: Split into...
35441         * modules/strstr-simple: ...new module that does not care about
35442         performance, but does care about glibc bug.
35443         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
35444         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
35445         if platform memchr is broken, per Debian bug 521737.
35446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
35447         memchr.
35448         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
35449         * doc/posix-functions/strstr.texi (strstr): Document the fix.
35450         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
35451         * modules/mountlist (Depends-on): Add strstr-simple.
35452         * modules/gen-uni-tables (Depends-on): Likewise.
35453         * modules/argz (Depends-on): Add strstr.
35454
35455 2009-06-17  Bruno Haible  <bruno@clisp.org>
35456
35457         * modules/posix_spawn-internal (Depends-on): Add errno.
35458
35459 2009-06-17  Bruno Haible  <bruno@clisp.org>
35460
35461         Define missing ESTALE on Interix 3.5.
35462         * lib/errno.in.h (ESTALE): Assign a value if missing.
35463         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
35464         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
35465         missing.
35466         * doc/posix-headers/errno.texi: Mention the Interix bug.
35467         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
35468
35469 2009-06-15  Eric Blake  <ebb9@byu.net>
35470
35471         memchr, memchr2: add valgrind exception
35472         * lib/memchr.valgrind: New file.
35473         * lib/memchr2.valgrind: New file.
35474         * modules/memchr (Files): Distribute valgrind file.
35475         * modules/memchr2 (Files): Likewise.
35476
35477         docs: memchr is no longer obsolete
35478         * MODULES.html.sh: Move memchr from obsolete to string.h section.
35479         * lib/string.in.h (memchr): Simplify logic.
35480
35481 2009-06-14  Jim Meyering  <meyering@redhat.com>
35482
35483         link-follow: fix the "checking..." message to not mention trailing slash
35484         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
35485         never considered trailing slashes.
35486
35487 2009-06-14  Bruno Haible  <bruno@clisp.org>
35488
35489         * m4/memchr.m4: Mention also the bug on IA-64.
35490         * doc/posix-functions/memchr.texi: Likewise.
35491
35492 2009-06-12  Eric Blake  <ebb9@byu.net>
35493
35494         memchr: detect broken x86_64 and alpha implementations
35495         * modules/memchr-tests (Depends-on): Move mmap detection...
35496         * modules/memchr (Depends-on): ...here.
35497         (configure.ac): Set indicator.
35498         * lib/string.in.h (memchr): Declare replacement.
35499         * modules/string (Makefile.am): Trigger replacement.
35500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35501         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
35502         bugs.
35503         * doc/posix-functions/memchr.texi (memchr): Document the bug.
35504         * modules/getpagesize (License): Relax license.
35505
35506 2009-06-11  Bruno Haible  <bruno@clisp.org>
35507
35508         * lib/idpriv.h: Add more references.
35509
35510 2009-06-08  Bruno Haible  <bruno@clisp.org>
35511
35512         Tests for module 'idpriv-droptemp'.
35513         * modules/idpriv-droptemp-tests: New file.
35514         * tests/test-idpriv-droptemp.sh: New file.
35515         * tests/test-idpriv-droptemp.su.sh: New file.
35516         * tests/test-idpriv-droptemp.c: New file.
35517
35518         New module 'idpriv-droptemp'.
35519         * lib/idpriv-droptemp.c: New file.
35520         * modules/idpriv-droptemp: New file.
35521
35522 2009-06-08  Bruno Haible  <bruno@clisp.org>
35523
35524         Tests for module 'idpriv-drop'.
35525         * modules/idpriv-drop-tests: New file.
35526         * tests/test-idpriv-drop.sh: New file.
35527         * tests/test-idpriv-drop.su.sh: New file.
35528         * tests/test-idpriv-drop.c: New file.
35529
35530         New module 'idpriv-drop'.
35531         * lib/idpriv.h: New file.
35532         * lib-idpriv-drop.c: New file.
35533         * m4/idpriv.m4: New file.
35534         * modules/idpriv-drop: New file.
35535
35536 2009-06-08  Bruno Haible  <bruno@clisp.org>
35537
35538         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
35539         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35540         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35541         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35542         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35543         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35544         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35545
35546 2009-06-08  Eric Blake  <ebb9@byu.net>
35547
35548         test-strstr: use memory fence, when possible
35549         * tests/test-strstr.c (main): Use memory fence, in order to be
35550         more likely to trigger Debian bug 521737.
35551         * modules/strstr-tests (Files): Pull in additional files.
35552
35553         memchr: no longer obsolete, for wider field testing
35554         * modules/memchr (Status, Notice): Delete, this module is no
35555         longer obsolete.
35556         * modules/vasnprintf (Depends-on): Add memchr.
35557
35558 2009-06-07  Jim Meyering  <meyering@redhat.com>
35559
35560         hash: declare some functions with the warn_unused_result attribute
35561         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35562
35563 2009-06-07  Bruno Haible  <bruno@clisp.org>
35564
35565         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35566         Reported by Eric Blake.
35567
35568 2009-06-06  Eric Blake  <ebb9@byu.net>
35569
35570         test-alignof: fix typo with long double
35571         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35572         compiler error.
35573
35574 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35575
35576         Escape non-texinfo { and }s.
35577         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35578         markup error.
35579
35580 2009-06-04  Jim Meyering  <meyering@redhat.com>
35581
35582         gitlog-to-changelog: don't infloop on an empty commit log
35583         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35584         Reported by Boris Petersen <transacid@centerim.org>.
35585
35586 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35587
35588         version-etc: extend for packagers
35589         Add three new configure options, intended for packagers:
35590           --with-packager="packager name"
35591           --with-packager-version="packager-specific version"
35592           --with-packager-bug-reports="packager bug reporting"
35593         An example with coreutils:
35594           $ ./configure \
35595             --with-packager=Gentoo \
35596             --with-packager-bug-report=http://bugs.gentoo.org/ \
35597             --with-packager-version="patchset 1.6"
35598           $ ./src/ls --version | head -n2
35599           ls (GNU coreutils) 7.1-dirty
35600           Packaged by Gentoo (patchset 1.6)
35601         Note that the bug reporting info via --help doesn't show up because
35602         coreutils uses its own custom emit_bug_reporting_address() implementation
35603         in src/system.h.  If it didn't, it'd look like:
35604           $ ./src/ls --help | tail -n4
35605           Report bugs to <bug-coreutils@gnu.org>.
35606           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35607           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35608           General help using GNU software: <http://www.gnu.org/gethelp/>.
35609         * lib/version-etc.c: Print new information, if provided.
35610         * m4/version-etc.m4: New file.
35611         * modules/version-etc (Files): Add m4/version-etc.m4.
35612         (configure.ac): Add gl_VERSION_ETC.
35613
35614 2009-05-31  Bruno Haible  <bruno@clisp.org>
35615
35616         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35617         and 'int64_t'.
35618         * modules/alignof-tests (Dependencies): Add stdint.
35619         Reported by Eric Blake.
35620
35621 2009-05-31  Bruno Haible  <bruno@clisp.org>
35622
35623         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35624         restriction due to compiler bugs.
35625         Reported by Eric Blake.
35626
35627 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35628             Bruno Haible  <bruno@clisp.org>
35629
35630         Fix test-alignof failure.
35631         * lib/alignof.h (alignof_slot): New macro.
35632         (alignof_type): New macro, with the same semantics as the previous
35633         'alignof'.
35634         (alignof): Alias to alignof_slot.
35635         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35636         check that the results are usable as constant expressions.
35637
35638 2009-05-31  Bruno Haible  <bruno@clisp.org>
35639
35640         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35641         * tests/test-memchr.c (main): Check that memchr does not read past the
35642         first occurrence of the byte.
35643         * tests/test-strstr.c (main): Update comment.
35644         Suggested by Eric Blake.
35645
35646 2009-05-30  Bruno Haible  <bruno@clisp.org>
35647
35648         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35649         detail how to use dumpbin.
35650         Reported by David Byron <dbyron@dbyron.com>.
35651
35652 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35653
35654         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35655
35656 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35657
35658         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35659
35660 2009-05-28  Bruno Haible  <bruno@clisp.org>
35661
35662         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35663         build-aux/ files.
35664
35665 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35666
35667         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35668
35669 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35670
35671         * gnulib-tool (sed_transform_main_lib_file)
35672         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35673         regexps.
35674
35675 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35676
35677         * tests/test-strstr.c: Add another self-test.
35678         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35679         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35680
35681 2009-05-23  Bruno Haible  <bruno@clisp.org>
35682
35683         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35684         change.
35685
35686 2009-05-21  Bruno Haible  <bruno@clisp.org>
35687
35688         Simplify use of mode_t varargs.
35689         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35690         uses 'mode_t' or 'int'.
35691         * lib/openat.c (openat): Likewise.
35692         * lib/open-safer.c (open_safer): Likewise.
35693         * m4/mode_t.m4: New file.
35694         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35695         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35696         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35697         * modules/open (Files): Add m4/mode_t.m4.
35698         * modules/openat (Files): Likewise.
35699         * modules/fcntl-safer (Files): Likewise.
35700         Suggested by Eric Blake.
35701
35702 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35703
35704         * doc/glibc-functions/fallocate.texi: New file.
35705         * doc/gnulib.texi: Include it.
35706
35707 2009-05-21  Eric Blake  <ebb9@byu.net>
35708             Bruno Haible  <bruno@clisp.org>
35709
35710         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35711         invocations.
35712         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35713
35714 2009-05-21  Eric Blake  <ebb9@byu.net>
35715             Bruno Haible  <bruno@clisp.org>
35716
35717         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35718         include_next. Fix of 2008-11-20 commit.
35719         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35720         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35721         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35722         NEXT_MATH_H.
35723         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35724         instead of NEXT_MATH_H.
35725
35726 2009-05-21  Bruno Haible  <bruno@clisp.org>
35727
35728         Avoid redefinition warnings for SIZE_MAX.
35729         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35730         Reported by Simon Josefsson.
35731
35732 2009-05-21  Bruno Haible  <bruno@clisp.org>
35733
35734         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35735         AC_CACHE_VAL.
35736
35737 2009-05-20  Bruno Haible  <bruno@clisp.org>
35738
35739         Make zeroptr.h work on mingw.
35740         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35741         mprotect.
35742         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35743         * modules/memchr2-tests (configure.ac): Likewise.
35744         * modules/memcmp-tests (configure.ac): Likewise.
35745         * modules/memmem-tests (configure.ac): Likewise.
35746         * modules/memrchr-tests (configure.ac): Likewise.
35747         Reported by Simon Josefsson.
35748
35749 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35750
35751         * tests/test-glob.c: Include string.h for strcmp prototype.
35752
35753 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35754
35755         * modules/getdelim (Depends-on): Add explicit stdint, although it
35756         was implicitly already pulled in via realloc-posix.
35757         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35758
35759 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35760
35761         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35762         G. Christensen" <tgc@jupiterrise.com>.
35763         * m4/sys_socket_h.m4: Check for sa_family_t.
35764         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35765         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35766         * tests/test-sys_socket.c: Check that sa_family_t works.
35767
35768 2009-05-18  Eric Blake  <ebb9@byu.net>
35769
35770         maint.mk: allow gnulib_dir in VPATH build
35771         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35772
35773 2009-05-15  Jim Meyering  <meyering@redhat.com>
35774
35775         maint.mk: Give gnulib_dir a default definition.
35776         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35777         Thus, most packages no longer need to specify this variable in cfg.mk
35778
35779 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35780
35781         rename.m4: fix typos that would make non-mingw cross-configure fail
35782         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35783
35784 2009-05-13  Eric Blake  <ebb9@byu.net>
35785
35786         mmap-anon: avoid out-of-order autoconf expansion
35787         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35788         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35789         * modules/memchr-tests (Depends-on): Add extensions.
35790         * modules/memchr2-tests (Depends-on): Add extensions.
35791         * modules/memcmp-tests (Depends-on): Add extensions.
35792         * modules/memmem-tests (Depends-on): Add extensions.
35793         * modules/memrchr-tests (Depends-on): Add extensions.
35794
35795 2009-05-13  Bruno Haible  <bruno@clisp.org>
35796
35797         Make some tests ISO C 99 compliant.
35798         * tests/zerosize-ptr.h: New file.
35799         * tests/test-memchr.c: Include zerosize-ptr.h.
35800         (main): Use a zero-size object pointer instead of NULL.
35801         * tests/test-memchr2.c: Include zerosize-ptr.h.
35802         (main): Use a zero-size object pointer instead of NULL.
35803         * tests/test-memcmp.c: Include zerosize-ptr.h.
35804         (main): Use a zero-size object pointer instead of NULL.
35805         * tests/test-memmem.c: Include zerosize-ptr.h.
35806         (main): Use a zero-size object pointer instead of NULL.
35807         * tests/test-memrchr.c: Include zerosize-ptr.h.
35808         (main): Use a zero-size object pointer instead of NULL.
35809         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35810         m4/mmap-anon.m4.
35811         (Depends-on): Add getpagesize.
35812         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35813         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35814         m4/mmap-anon.m4.
35815         (Depends-on): Add getpagesize.
35816         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35817         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35818         m4/mmap-anon.m4.
35819         (Depends-on): Add getpagesize.
35820         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35821         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35822         m4/mmap-anon.m4.
35823         (Depends-on): Add getpagesize.
35824         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35825         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35826         m4/mmap-anon.m4.
35827         (Depends-on): Add getpagesize.
35828         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35829
35830 2009-05-12  Bruno Haible  <bruno@clisp.org>
35831
35832         Tests for module 'alignof'.
35833         * modules/alignof-tests: New file.
35834         * tests/test-alignof.c: New file.
35835
35836 2009-05-12  Bruno Haible  <bruno@clisp.org>
35837
35838         Fix alignof macro.
35839         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35840         vendor compilers that are always correct.
35841
35842 2009-05-12  Bruno Haible  <bruno@clisp.org>
35843
35844         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35845         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35846         not whether its fully works.
35847
35848 2009-05-12  Bruno Haible  <bruno@clisp.org>
35849
35850         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35851
35852 2009-05-12  Jim Meyering  <meyering@redhat.com>
35853
35854         * top/maint.mk: Adjust backslash alignment.
35855
35856 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35857
35858         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35859
35860 2009-05-11  Eric Blake  <ebb9@byu.net>
35861
35862         argp: avoid undefined behavior
35863         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35864         macros.
35865
35866 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35867
35868         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35869         user.name to prevent git commit from complaining.
35870
35871 2009-05-10  Bruno Haible  <bruno@clisp.org>
35872
35873         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35874         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35875         it rewrites every file name only once.
35876         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35877
35878 2009-05-08  Bruno Haible  <bruno@clisp.org>
35879
35880         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35881         instead of 'max'.
35882
35883 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35884
35885         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35886         sockaddr_storage test.
35887
35888 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35889
35890         * modules/sys_socket (Makefile.am): Substitute
35891         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35892         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35893         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35894         * tests/test-sys_socket.c: Check sockaddr_storage.
35895
35896 2009-05-08  Bruno Haible  <bruno@clisp.org>
35897
35898         New module 'alignof'.
35899         * lib/alignof.h: New file.
35900         * modules/alignof: New file.
35901
35902 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35903             Bruno Haible  <bruno@clisp.org>
35904
35905         Fix test-file-has-acl on FreeBSD.
35906         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35907         mask is implicitly added.
35908         * tests/test-file-has-acl.c: Include <signal.h>.
35909         (main): Terminate the test after 5 seconds.
35910         * modules/acl-tests (configure.ac): Check for alarm function.
35911
35912 2009-05-04  Bruno Haible  <bruno@clisp.org>
35913
35914         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35916         * modules/errno (configure.ac): Drop AC_REQUIRE.
35917         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35918         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35919
35920 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35921
35922         * modules/glob-tests: New module.
35923         * tests/test-glob.c: Add.
35924
35925 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35926
35927         * modules/fnmatch-tests: New module.
35928         * tests/test-fnmatch.c: Add.
35929
35930 2009-05-04  Eric Blake  <ebb9@byu.net>
35931
35932         maint: make the new no-submodule-changes rule VPATH-safe
35933         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35934
35935 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35936             Bruno Haible  <bruno@clisp.org>
35937
35938         acl: Fix infinite loop on FreeBSD.
35939         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35940         of return value from acl_get_entry.
35941         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35942         Likewise.
35943
35944 2009-05-03  Bruno Haible  <bruno@clisp.org>
35945
35946         * lib/acl-internal.h (acl_entries): Clarify return value.
35947         * lib/acl_entries.c (acl_entries): Likewise.
35948
35949 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35950
35951         Bug fix in acl module.
35952         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35953
35954 2009-05-03  Bruno Haible  <bruno@clisp.org>
35955
35956         Create gperf-generated file in the source dir, not in the build dir.
35957         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35958         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35959         * modules/unicase/locale-language (unicase/locale-languages.h):
35960         Likewise.
35961         * modules/unicase/special-casing (unicase/special-casing-table.h):
35962         Likewise.
35963         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35964         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35965         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35966         Reported by Ralf Wildenhues.
35967
35968 2009-05-03  Bruno Haible  <bruno@clisp.org>
35969
35970         * modules/fnmatch (Description, configure.ac): Taken from
35971         fnmatch-posix.
35972         * modules/fnmatch-posix: Turn into a symbolic reference to the
35973         'fnmatch' module, and deprecate.
35974         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35975
35976 2009-05-03  Bruno Haible  <bruno@clisp.org>
35977
35978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35979         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35980         Reported by Ralf Wildenhues.
35981
35982 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35983
35984         * m4/fnmatch.m4: Fix fnmatch re-define.
35985
35986 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35987
35988         priv-set: new module and tests; adapt write-any-file
35989         * lib/priv-set.c: New file.
35990         * lib/priv-set.h: New file.
35991         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35992         * lib/write-any-file.c: Simplify by using priv-set module.
35993         * m4/priv-set.m4: New file.
35994         * modules/priv-set: New file.
35995         * modules/unlinkdir: Add dependency on priv-set module.
35996         * modules/write-any-file: Likewise.
35997
35998         Tests for module 'priv-set'.
35999         * modules/priv-set-tests: New file.
36000         * tests/test-priv-set.c: New file.
36001
36002 2009-05-03  Jim Meyering  <meyering@redhat.com>
36003             Bruno Haible  <bruno@clisp.org>
36004
36005         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36006         use the converted UTF-8 variant of the name instead.
36007
36008 2009-05-03  Jim Meyering  <meyering@redhat.com>
36009
36010         tests: tighten some getdate tests
36011         * tests/test-getdate.c (main): Tighten tests: require equality,
36012         not just greater than.  Set TZ envvar to UTC0.
36013
36014 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36015
36016         getdate: correctly interpret "next monday" when run on a Monday
36017         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36018         that e.g., "next tues" (when run on a tuesday) results in a date
36019         that is one week in the future, and not today's date.
36020         I.e., add a week when the wday is the same as the current one.
36021         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
36022         and earlier by Martin Bernreuther and Jan Minář.
36023         * tests/test-getdate.c (main): Check that "next DAY" is always in
36024         the future and that "last DAY" is always in the past.
36025
36026 2009-05-02  Jim Meyering  <meyering@redhat.com>
36027
36028         build: ensure that a release build fails when a submodule is unclean
36029         * top/maint.mk (no-submodule-changes): New rule.
36030         (alpha beta major): Depend on it.
36031
36032 2009-05-02  Bruno Haible  <bruno@clisp.org>
36033
36034         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
36035         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
36036         shell variable gl_fnmatch_required to detect which variant is
36037         requested.
36038         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
36039         gl_FUNC_FNMATCH_POSIX.
36040         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
36041         exclude fnmatch-posix.
36042
36043 2009-05-02  Bruno Haible  <bruno@clisp.org>
36044
36045         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
36046         * modules/mbsrtowcs (License): Change to LGPLv2+.
36047         * modules/strnlen1 (License): Likewise.
36048         Reported by Simon Josefsson.
36049
36050 2009-05-02  Bruno Haible  <bruno@clisp.org>
36051
36052         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36053         "cross".
36054         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36055         gnulib-tool was called with option --source-base=lib.
36056
36057 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36058
36059         Use automake *-local hooks without commands, for extensibility.
36060         * modules/localcharset (Makefile.am): Rename install-exec-local
36061         rule to install-exec-localcharset, and make it a prerequisite of
36062         install-exec-local.  Likewise, rename the uninstall-local rule to
36063         uninstall-localcharset, and make it a prerequisite of the former.
36064
36065 2009-05-01  Bruno Haible  <bruno@clisp.org>
36066
36067         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36068         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36069         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36071         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36072         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36073         m4/locale-zh.m4, m4/codeset.m4.
36074
36075         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36076         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36077         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36078         m4/locale-zh.m4.
36079
36080         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36081         REPLACE_WCRTOMB if mbstate_t must be replaced.
36082         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36083         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36084
36085 2009-05-01  Bruno Haible  <bruno@clisp.org>
36086
36087         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36088         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36089         dngettext, dcngettext, textdomain, bindtextdomain,
36090         bind_textdomain_codeset): Undefine before redefining.
36091
36092 2009-04-30  Bruno Haible  <bruno@clisp.org>
36093
36094         Fix bug introduced on 2009-04-25.
36095         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36096         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36097         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36098         is defined.
36099         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36100         is defined.
36101         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36102         is defined.
36103         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36104
36105 2009-04-28  Bruno Haible  <bruno@clisp.org>
36106
36107         Comment tweaks.
36108         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36109         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36110         * lib/unicase.h (u*_casexfrm): Likewise.
36111         Reported by Paolo Bonzini.
36112
36113 2009-04-28  Bruno Haible  <bruno@clisp.org>
36114
36115         Fix a compilation error.
36116         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36117         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36118         Reported by Jim Meyering.
36119
36120 2009-04-27  Bruno Haible  <bruno@clisp.org>
36121
36122         New module 'libunistring'.
36123         * modules/libunistring: New file.
36124         * m4/libunistring.m4: New file.
36125         * MODULES.html.sh (Unicode string functions): Add it.
36126
36127 2009-04-27  Eric Blake  <ebb9@byu.net>
36128
36129         maint.mk: allow package-specific header to provide <config.h>
36130         * top/maint.mk (sc_require_config_h): New variable.
36131         (sc_require_config_h, sc_require_config_h_first): Use it.
36132
36133 2009-04-27  Simon Josefsson  <simon@josefsson.org>
36134
36135         * top/maint.mk (sc_avoid_if_before_free): Except
36136         useless-if-before-free script.
36137
36138 2009-04-27  Eric Blake  <ebb9@byu.net>
36139
36140         maintainer-makefile: depend on all required helper scripts
36141         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
36142         useless-if-before-free.
36143         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
36144         version, rather than assuming gnulib checkout is available.
36145         Reported by Simen Josefsson.
36146
36147 2009-04-26  Bruno Haible  <bruno@clisp.org>
36148
36149         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
36150         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
36151         "../" or "..".
36152
36153 2009-04-26  Bruno Haible  <bruno@clisp.org>
36154
36155         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
36156         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
36157         AC_LIB_HAVE_LINKFLAGS.
36158
36159 2009-04-26  Bruno Haible  <bruno@clisp.org>
36160
36161         Simplify calling convention of u*_conv_from_encoding.
36162         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
36163         u32_conv_from_encoding): Expect a resultbuf argument and return the
36164         result directly as a pointer.
36165         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
36166         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
36167         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
36168         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
36169         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
36170         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36171         Update.
36172         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
36173         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
36174         * lib/vasnprintf.c (VASNPRINTF): Update.
36175         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
36176         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
36177         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
36178         * NEWS: Mention the change.
36179
36180 2009-04-26  Bruno Haible  <bruno@clisp.org>
36181
36182         Simplify calling convention of u*_conv_to_encoding.
36183         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
36184         u32_conv_to_encoding): Expect a resultbuf argument and return the
36185         result directly as a pointer.
36186         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36187         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
36188         freeing scaled_offsets if mem_iconveha failed.
36189         * lib/unicase/u-casexfrm.h (FUNC): Update.
36190         * lib/uninorm/u-normxfrm.h (FUNC): Update.
36191         * lib/vasnprintf.c (VASNPRINTF): Update.
36192         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
36193         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
36194         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
36195         * NEWS: Mention the change.
36196
36197 2009-04-26  Bruno Haible  <bruno@clisp.org>
36198
36199         Avoid test failures on AIX and OSF/1.
36200         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
36201         malloc(0).
36202         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
36203         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
36204         Likewise.
36205         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
36206         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
36207         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
36208         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
36209         * doc/posix-functions/malloc.texi: Document the portability problem
36210         related to malloc(0).
36211
36212 2009-04-26  Bruno Haible  <bruno@clisp.org>
36213
36214         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
36215         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
36216         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
36217
36218 2009-04-25  Bruno Haible  <bruno@clisp.org>
36219
36220         Avoid link error when creating a namespace clean library.
36221         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
36222         as macro with arguments if already defined as an alias.
36223         * lib/signbitf.c (gl_signbitf): Don't undefine.
36224         * lib/signbitd.c (gl_signbitd): Don't undefine.
36225         * lib/signbitl.c (gl_signbitl): Don't undefine.
36226
36227 2009-04-25  Jim Meyering  <meyering@redhat.com>
36228
36229         vc-list-files: fix another quoting bug
36230         * build-aux/vc-list-files: Avoid sed backslash expansion
36231         of pathological directory names.
36232
36233 2009-04-25  Eric Blake  <ebb9@byu.net>
36234
36235         vc-list-files: fix shell quoting error
36236         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
36237         timestamp.
36238
36239 2009-04-25  Jim Meyering  <meyering@redhat.com>
36240
36241         vc-list-files: restore lost functionality with subdir argument
36242         * build-aux/vc-list-files: When given a non-"." sub-directory
36243         argument, substitute the $dir/ prefix back onto each resulting name.
36244         Otherwise, coreutils' root_tests check would fail.
36245
36246 2009-04-24  Eric Blake  <ebb9@byu.net>
36247
36248         vc-list-files: ignore git symlinks
36249         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
36250         than ls-files, to ignore git symlinks.
36251
36252         maint.mk: import improvements from m4
36253         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
36254         (move_if_change): Delete unused macro.
36255         (news-date-check, vc-diff-check): Support VPATH builds.
36256         (announcement): Likewise.  Split --bootstrap-tools list...
36257         (boostrap-tools): ...into separate list, which can be overridden
36258         in cfg.mk.
36259         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
36260         requiring dependency on useless-if-before-free module.
36261         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
36262         Support VPATH builds.
36263
36264 2009-04-24  Jim Meyering  <meyering@redhat.com>
36265
36266         maint.mk: remove coreutils-specific rules and variables
36267         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
36268         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
36269         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
36270
36271         maint.mk: remove obsolete rule
36272         * top/maint.mk (rel-check): Remove rule.
36273         (WGET, WGETFLAGS): Remove now-unused variables.
36274
36275 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36276
36277         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
36278         consistency.
36279
36280         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
36281         '$(PATH_SEPARATOR)' instead of ':'.
36282
36283 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36284
36285         * lib/getopt1.c (main): Use 'const' for static array.
36286
36287 2009-04-24  Simon Josefsson  <simon@josefsson.org>
36288
36289         * top/maint.mk: Sync with coreutils.
36290         * NEWS: Explain incompatibilities.
36291
36292 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36293             Bruno Haible  <bruno@clisp.org>
36294
36295         Fix cross-compilation results.
36296         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
36297         statement, as third argument of AC_TRY_RUN.
36298         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
36299         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
36300         Likewise.
36301         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
36302         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
36303         Likewise.
36304         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
36305         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
36306         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
36307
36308 2009-04-20  Bruno Haible  <bruno@clisp.org>
36309
36310         Avoid test failure on mingw.
36311         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
36312
36313 2009-04-20  Bruno Haible  <bruno@clisp.org>
36314
36315         Avoid compilation error on mingw.
36316         * modules/localename-tests (Depends-on): Add locale.
36317
36318 2009-04-19  Bruno Haible  <bruno@clisp.org>
36319
36320         Support for building a shared library on Windows platforms.
36321         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
36322         (main): Test the presence of UNINORM_NFC here.
36323         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
36324         (main): Test the presence of UNINORM_NFD here.
36325         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
36326         (main): Test the presence of UNINORM_NFKC here.
36327         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
36328         (main): Test the presence of UNINORM_NFKD here.
36329
36330 2009-04-19  Bruno Haible  <bruno@clisp.org>
36331
36332         Avoid a compiler warning.
36333         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
36334         Change type of variable 'sequence'.
36335
36336 2009-04-19  Bruno Haible  <bruno@clisp.org>
36337
36338         * modules/configmake (Makefile.am): When the contents of configmake.h
36339         does not change, arrange to preserve its modification time.
36340
36341 2009-04-17  Simon Josefsson  <simon@josefsson.org>
36342
36343         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
36344         gettext domain.
36345
36346 2009-04-16  Jim Meyering  <meyering@redhat.com>
36347
36348         useless-if-before-free: improve conversion code
36349         * build-aux/useless-if-before-free: Adjust code-in-comment to match
36350         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
36351
36352 2009-04-14  Bruno Haible  <bruno@clisp.org>
36353
36354         * modules/fcntl (Depends-on): Add extensions.
36355         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
36356
36357 2009-04-12  Ben Pfaff  <blp@gnu.org>
36358
36359         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
36360         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
36361
36362 2009-03-20  Ben Pfaff  <blp@gnu.org>
36363
36364         Make rename replace existing destinations on Windows.
36365         * m4/rename.m4: Add test for Mingw.
36366         * lib/rename.c: Add rename replacement that uses MoveFileEx with
36367         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
36368         * doc/posix-functions/rename.texi: Document.
36369
36370 2009-04-10  Bruno Haible  <bruno@clisp.org>
36371
36372         New include file "iconveh.h".
36373         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
36374         * lib/striconveh.h: Include it.
36375         (enum iconv_ilseq_handler): Remove definition.
36376         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
36377         striconveh.h.
36378         * lib/striconveha.c: Include striconveh.h.
36379         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
36380         * modules/striconveh (Files): Add lib/iconveh.h.
36381         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
36382         lib/striconveh.h.
36383
36384 2009-04-10  Bruno Haible  <bruno@clisp.org>
36385
36386         * lib/uniconv.h: Update comment.
36387
36388 2009-04-10  Bruno Haible  <bruno@clisp.org>
36389
36390         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
36391         always.
36392         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36393         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36394         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36395         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
36396         "unistring-notinline.h", so that the function gets defined always.
36397         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36398         * lib/unistr/u8-uctomb.c: Likewise.
36399         * lib/unistr/u16-mbtouc.c: Likewise.
36400         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36401         * lib/unistr/u16-uctomb.c: Likewise.
36402         * lib/unistr/u32-mbtouc.c: Likewise.
36403         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36404         * lib/unistr/u32-uctomb.c: Likewise.
36405
36406 2009-04-10  Bruno Haible  <bruno@clisp.org>
36407
36408         Mark 'utime' obsolete.
36409         * modules/utime (Status, Notice): New sections.
36410         Suggested by Jim Meyering.
36411
36412         Fix cross-compile guess for utime test.
36413         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
36414         autoconf.
36415         * doc/posix-functions/utime.texi: Give more precisions.
36416         Reported by Jan <ipif@ymail.com>.
36417
36418 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
36419
36420         filevercmp: correct today's change
36421         * lib/filevercmp.c: Also handle coreutils' test inputs.
36422         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
36423
36424         Fix regression in 'filevercmp' module. Thanks Sven Joachim
36425         for reporting it.
36426         * lib/filevercmp.c: Special handle for "", "." and "..".
36427         * tests/test-filevercmp.c: Enlarge the set suite.
36428
36429 2009-04-07  Jim Meyering  <meyering@redhat.com>
36430
36431         useless-if-before-free: show how to remove braced useless free, too
36432         * build-aux/useless-if-before-free: still only in a comment, though.
36433
36434 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
36435
36436         maint.mk: import changes to syntax-check macros from coreutils
36437         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
36438         Use them in the relevant macros.
36439
36440 2009-04-06  Bruno Haible  <bruno@clisp.org>
36441
36442         Fix unportable use of bit-fields.
36443         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
36444         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
36445         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
36446
36447 2009-04-06  Bruno Haible  <bruno@clisp.org>
36448
36449         Avoid test failures on AIX and OSF/1.
36450         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
36451         that malloc(0) = NULL.
36452         * tests/unicase/test-u8-tolower.c (check): Likewise.
36453         * tests/unicase/test-u8-totitle.c (check): Likewise.
36454         * tests/unicase/test-u8-toupper.c (check): Likewise.
36455         * tests/unicase/test-u16-casefold.c (check): Likewise.
36456         * tests/unicase/test-u16-tolower.c (check): Likewise.
36457         * tests/unicase/test-u16-totitle.c (check): Likewise.
36458         * tests/unicase/test-u16-toupper.c (check): Likewise.
36459         * tests/unicase/test-u32-casefold.c (check): Likewise.
36460         * tests/unicase/test-u32-tolower.c (check): Likewise.
36461         * tests/unicase/test-u32-totitle.c (check): Likewise.
36462         * tests/unicase/test-u32-toupper.c (check): Likewise.
36463         * tests/uninorm/test-u8-nfc.c (check): Likewise.
36464         * tests/uninorm/test-u8-nfd.c (check): Likewise.
36465         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
36466         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
36467         * tests/uninorm/test-u16-nfc.c (check): Likewise.
36468         * tests/uninorm/test-u16-nfd.c (check): Likewise.
36469         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
36470         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
36471         * tests/uninorm/test-u32-nfc.c (check): Likewise.
36472         * tests/uninorm/test-u32-nfd.c (check): Likewise.
36473         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
36474         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
36475
36476 2009-04-05  Bruno Haible  <bruno@clisp.org>
36477
36478         Work around an autoconf limitation.
36479         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
36480         comment line if it would be longer than 3 KB.
36481
36482 2009-04-05  Bruno Haible  <bruno@clisp.org>
36483
36484         Avoid test failure with libiconv-1.13.
36485         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
36486         of the expected test results.
36487
36488 2009-04-05  Bruno Haible  <bruno@clisp.org>
36489
36490         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
36491         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
36492         that it should be installed.
36493
36494 2009-04-05  Bruno Haible  <bruno@clisp.org>
36495
36496         * gnulib-tool: New option --copy-file.
36497         (func_usage): Document it.
36498         (func_dest_tmpfilename): Moved out of func_import.
36499         (func_add_file, func_update_file): New functions, extracted from
36500         func_import.
36501         (func_import): Update.
36502
36503 2009-04-05  Karl Berry  <karl@gnu.org>
36504
36505         * README: prominently mention gnulib-tool.
36506         Rearrange sections so getting the code is near the top.
36507
36508 2009-04-05  Bruno Haible  <bruno@clisp.org>
36509
36510         * lib/unicase.h: Mention u*_cmp2.
36511         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36512         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
36513         * lib/unicase/ulc-casecmp.c: Likewise.
36514         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
36515         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
36516         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
36517         unistr/u8-cmp.
36518         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
36519         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
36520         unistr/u16-cmp.
36521         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
36522         unistr/u32-cmp.
36523
36524         * lib/uninorm.h: Mention u*_cmp2.
36525         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
36526         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
36527         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
36528         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
36529         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
36530         unistr/u8-cmp.
36531         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
36532         unistr/u16-cmp.
36533         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
36534         unistr/u32-cmp.
36535
36536         New module 'unistr/u32-cmp2'.
36537         * lib/unistr/u32-cmp2.c: New file.
36538         * modules/unistr/u32-cmp2: New file.
36539
36540         New module 'unistr/u16-cmp2'.
36541         * lib/unistr/u16-cmp2.c: New file.
36542         * modules/unistr/u16-cmp2: New file.
36543
36544         New module 'unistr/u8-cmp2'.
36545         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
36546         * lib/unistr/u8-cmp2.c: New file.
36547         * lib/unistr/u-cmp2.h: New file.
36548         * modules/unistr/u8-cmp2: New file.
36549
36550 2009-04-05  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/unictype.h (uc_property_is_valid): New macro.
36553         * tests/unictype/test-pr_byname.c (main): Use it.
36554
36555         * lib/unistr.h: Doc fixes.
36556         * lib/uniconv.h: Doc fixes.
36557         * lib/unictype.h: Doc fixes.
36558
36559 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36560
36561         Port coreutils 7.2 to Solaris 8.
36562
36563         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36564         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36565         for Solaris 8.  This is a bit of a hack, as it means it's the
36566         caller's responsibility to add -lnsl if needed, but most likely it
36567         won't be needed since only getaddrinfo uses this and getaddrinfo
36568         isn't needed on Solaris 8.
36569
36570         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36571         problem to Solaris 8 encountered with coreutils 7.2, which
36572         resulted in a message "fnmatch.c:292: warning: passing argument 4
36573         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36574         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36575
36576 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36577
36578         * m4/ld-version-script.m4: Add FIXME comment.
36579
36580 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36581
36582         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36583         SOVERSION variable.
36584
36585 2009-04-02  Bruno Haible  <bruno@clisp.org>
36586
36587         * Makefile (info, html, dvi, pdf): Combine the rules.
36588         Suggested by Jim Meyering.
36589
36590 2009-04-01  Bruno Haible  <bruno@clisp.org>
36591
36592         * Makefile (info, html, dvi, pdf): New targets.
36593         Reported by Reuben Thomas <rrt@sc3d.org>.
36594
36595 2009-04-01  Bruno Haible  <bruno@clisp.org>
36596
36597         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36598         can be put into PATH.
36599         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36600
36601 2009-04-01  Bruno Haible  <bruno@clisp.org>
36602
36603         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36604
36605 2009-04-01  Bruno Haible  <bruno@clisp.org>
36606
36607         Rename module 'visibility'.
36608         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36609         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36610         * doc/gnulib.texi: Update.
36611         * MODULES.html.sh (Misc): Update.
36612         * NEWS: Mention the change.
36613
36614 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36615
36616         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36617         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36618         Eric Blake <ebb9@byu.net> for review.
36619         * MODULES.html.sh: Add lib-msvc-compat.
36620         * doc/gnulib.texi: Link to new section.
36621         * m4/ld-output-def.m4: New file.
36622         * doc/ld-output-def.texi: New file.
36623
36624 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36625
36626         Rename ld-version-script to lib-symbol-versions.  Suggested by
36627         Bruno Haible <bruno@clisp.org>.
36628         * modules/ld-version-script: Renamed to lib-symbol-versions.
36629         * doc/ld-version-script.texi: Fix module name.
36630         * MODULES.html.sh: Add lib-symbol-versions.
36631
36632 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36633
36634         * modules/u64-tests: New file.
36635         * tests/test-u64.c: New file.
36636
36637 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36638
36639         * MODULES.html.sh: Mention u64.
36640         * modules/u64: New module.
36641         * modules/crypto/sha512: Depend on u64 module instead of providing
36642         u64.h.
36643
36644 2009-03-27  Eric Blake  <ebb9@byu.net>
36645
36646         test-strerror: make debugging EAI_SYSTEM easier
36647         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36648         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36649         failure was EAI_SYSTEM.
36650
36651 2009-03-25  Bruno Haible  <bruno@clisp.org>
36652
36653         Fix a problem with --enable-relocatable on Solaris 7.
36654         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36655         since 2008-02-24.
36656
36657 2009-03-25  Eric Blake  <ebb9@byu.net>
36658
36659         test-sockets: avoid gcc warning
36660         * tests/test-sockets.c (main): Silence compiler warning.
36661
36662 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36663
36664         New modules nproc, pthread, contributed by Glen Lenker.
36665
36666         * MODULES.html.sh: Add pthread, nproc.
36667         * lib/nproc.c: New file.
36668         * lib/nproc.h: New file.
36669         * lib/pthread.in.h: New file.
36670         * m4/pthread.m4: New file.
36671         * modules/nproc: New file.
36672         * modules/pthread: New file.
36673
36674 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36675
36676         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36677         New variable.
36678
36679 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36680
36681         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36682         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36683         * tests/test-filevercmp.c: Add tests for backup suffixes.
36684
36685 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36686
36687         * modules/stdlib (Depends-on): Add stdint, needed when defining
36688         struct random_data on, for example, HP-UX 10.20.  Reported by
36689         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36690
36691 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36692
36693         * lib/readline.c (readline): Call fflush on stdout after printing
36694         prompt.
36695
36696 2009-03-20  Bruno Haible  <bruno@clisp.org>
36697
36698         Remove dependency from 'close' module to -lws2_32 on native Windows.
36699         * lib/close-hook.h: New file.
36700         * lib/close-hook.c: New file.
36701         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36702         w32sock.h.
36703         (_gl_close_fd_maybe_socket): Remove function.
36704         (rpl_close): Invoke execute_all_close_hooks instead of
36705         _gl_close_fd_maybe_socket.
36706         * lib/sockets.c: Include close-hook.h, w32sock.h.
36707         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36708         (close_sockets_hook): New variable.
36709         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36710         (gl_sockets_cleanup): Unregister it.
36711         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36712         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36713         * modules/close-hook: New file.
36714         * modules/close (Files): Remove lib/w32sock.h.
36715         (Depends-on): Add close-hook.
36716         (Link): Remove section.
36717         * modules/sockets (Files): Add lib/w32sock.h.
36718         (Depends-on): Add close-hook.
36719         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36720         invocation.
36721         * NEWS: Mention that LIB_CLOSE is gone.
36722
36723 2009-03-23  Eric Blake  <ebb9@byu.net>
36724
36725         signal-tests: test previous patch
36726         * tests/test-signal.c: New file.
36727         * modules/signal-tests: Likewise.
36728
36729         signal.h: always support 'volatile sig_atomic_t'
36730         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36731         (gl_SIGNAL_H_DEFAULTS): Add a default.
36732         * modules/signal (Makefile.am): Substitute if needed.
36733         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36734         users can blindly add volatile.
36735         * doc/posix-headers/signal.texi (signal.h): Document it.
36736         Reported by Matthew Woehlke.
36737
36738 2009-03-23  Jim Meyering  <meyering@redhat.com>
36739
36740         pathmax: PATH_MAX: use pathconf only when available
36741         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36742         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36743         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36744         This avoids a link failure in a PSP cross-compilation environment
36745         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36746
36747         * lib/vasnprintf.c (divide): Fix typo in comment.
36748
36749 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36750
36751         * gnulib-tool (func_filter_filelist): Fix comment.
36752
36753 2009-03-20  Bruno Haible  <bruno@clisp.org>
36754
36755         Make sockets.h self-contained.
36756         * lib/sockets.c: Include sockets.h first.
36757         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36758
36759 2009-03-19  Eric Blake  <ebb9@byu.net>
36760
36761         doc: mention more functions added in cygwin 1.7.0
36762         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36763         addition.
36764         * doc/posix-functions/log2f.texi: Likewise.
36765
36766 2009-03-19  Jim Meyering  <meyering@redhat.com>
36767
36768         fsusage: avoid syntax error due to statement-before-declaration
36769         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36770         after all declarations.  Reported by Matthew Woehlke in
36771         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36772
36773 2009-03-18  Eric Blake  <ebb9@byu.net>
36774
36775         build-aux/compile: sync from automake
36776         * build-aux/compile: New file, from automake.
36777         * config/srclist.txt: Mention build-aux/compile.
36778
36779 2009-03-17  Bruno Haible  <bruno@clisp.org>
36780
36781         * lib/git-merge-changelog.c: Fix typo in comment.
36782         Reported by Reuben Thomas <rrt@sc3d.org>.
36783
36784 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36785
36786         * m4/regex.m4: update and improve help for
36787         --without-included-regex.
36788
36789 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36790
36791         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36792         failure on missing include files.
36793
36794 2009-03-17  Eric Blake  <ebb9@byu.net>
36795
36796         doc: mention more functions added in cygwin 1.7.0
36797         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36798         addition.
36799         * doc/posix-functions/fwscanf.texi: Likewise.
36800         * doc/posix-functions/swprintf.texi: Likewise.
36801         * doc/posix-functions/swscanf.texi: Likewise.
36802         * doc/posix-functions/vfwprintf.texi: Likewise.
36803         * doc/posix-functions/vfwscanf.texi: Likewise.
36804         * doc/posix-functions/vswprintf.texi: Likewise.
36805         * doc/posix-functions/vswscanf.texi: Likewise.
36806         * doc/posix-functions/vwprintf.texi: Likewise.
36807         * doc/posix-functions/vwscanf.texi: Likewise.
36808         * doc/posix-functions/wcscasecmp.texi: Likewise.
36809         * doc/posix-functions/wcsdup.texi: Likewise.
36810         * doc/posix-functions/wcsftime.texi: Likewise.
36811         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36812         * doc/posix-functions/wprintf.texi: Likewise.
36813         * doc/posix-functions/wscanf.texi: Likewise.
36814         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36815
36816 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36817
36818         maint.mk: really add $(AM_MAKEFLAGS)
36819         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36820         was inadvertently omitted in the last commit.
36821         Spotted by Bruno Haible.
36822
36823         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36824         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36825         $(AM_MAKEFLAGS)' rather than plain `make'.
36826
36827         gnulib-tool: execute $MAKE not make
36828         * gnulib-tool: Default $MAKE to 'make'.
36829         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36830         than make.  Initialize $MAKE in the do-autobuild script.
36831
36832         gnulib-tool: use $MAKE not make in generated files
36833         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36834         make, in generated files.  Initialize $MAKE in the do-autobuild
36835         script.
36836
36837         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36838
36839         GNUmakefile: disable parallelism only for multiple, recursive targets
36840         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36841         additions in the Makefile.
36842         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36843         by Automake.
36844         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36845         are listed on the command line and at least one of them is
36846         listed in $(ALL_RECURSIVE_TARGETS).
36847
36848 2009-03-14  Bruno Haible  <bruno@clisp.org>
36849
36850         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36851         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36852         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36853         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36854         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36855         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36856         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36857         unistr/u8-uctomb.
36858         * modules/unistr/u8-strchr (Depends-on): Likewise.
36859         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36860         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36861         unistr/u16-uctomb.
36862         * modules/unistr/u16-strchr (Depends-on): Likewise.
36863         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36864
36865 2009-03-12  Bruno Haible  <bruno@clisp.org>
36866
36867         Work around select() bug on Interix 3.5.
36868         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36869         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36870         * m4/select.m4: New file.
36871         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36872         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36873         * modules/select (Files): Add m4/select.m4.
36874         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36875         * modules/nanosleep (Depends-on): Add select.
36876         * modules/poll (Depends-on): Likewise.
36877         * doc/posix-functions/select.texi: Mention the Interix bug.
36878         Reported by Markus Duft <mduft@gentoo.org>.
36879
36880         * lib/select.c: Renamed from lib/winsock-select.c.
36881         * modules/select (Files): Add lib/select.c, remove
36882         lib/winsock-select.c.
36883         (configure.ac): Update.
36884
36885 2009-03-12  Jim Meyering  <meyering@redhat.com>
36886
36887         avoid gcc warnings about unused macro definitions
36888         * lib/readtokens.c (STREQ): Remove unused definition.
36889         * lib/xmalloc.c (SIZE_MAX): Likewise.
36890         * lib/openat-die.c (N_): Likewise.
36891         * lib/mountlist.c (SIZE_MAX): Remove definition.
36892         Instead, include <stdint.h>.
36893         * lib/readutmp.c: Likewise.
36894         * modules/readutmp (Depends-on): Add stdint.
36895         * modules/mountlist (Depends-on): Add stdint.
36896         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36897
36898 2009-03-10  Bruno Haible  <bruno@clisp.org>
36899
36900         Tests for module 'mbmemcasecoll'.
36901         * modules/mbmemcasecoll-tests: New file.
36902         * tests/test-mbmemcasecoll1.sh: New file.
36903         * tests/test-mbmemcasecoll2.sh: New file.
36904         * tests/test-mbmemcasecoll3.sh: New file.
36905         * tests/test-mbmemcasecoll.c: New file.
36906
36907         New module 'mbmemcasecoll'.
36908         * lib/mbmemcasecoll.h: New file.
36909         * lib/mbmemcasecoll.c: New file.
36910         * modules/mbmemcasecoll: New file.
36911
36912         * tests/test-mbmemcasecmp.h: New file, extracted from
36913         tests/test-mbmemcasecmp.c.
36914         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36915         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36916         (main): Update.
36917         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36918
36919 2009-03-09  Bruno Haible  <bruno@clisp.org>
36920
36921         Tests for module 'mbmemcasecmp'.
36922         * modules/mbmemcasecmp-tests: New file.
36923         * tests/test-mbmemcasecmp1.sh: New file.
36924         * tests/test-mbmemcasecmp2.sh: New file.
36925         * tests/test-mbmemcasecmp3.sh: New file.
36926         * tests/test-mbmemcasecmp.c: New file.
36927
36928         New module 'mbmemcasecmp'.
36929         * lib/mbmemcasecmp.h: New file.
36930         * lib/mbmemcasecmp.c: New file.
36931         * modules/mbmemcasecmp: New file.
36932
36933 2009-03-09  Bruno Haible  <bruno@clisp.org>
36934
36935         Tests for module 'unicase/ulc-casecoll'.
36936         * modules/unicase/ulc-casecoll-tests: New file.
36937         * tests/unicase/test-ulc-casecoll1.sh: New file.
36938         * tests/unicase/test-ulc-casecoll2.sh: New file.
36939         * tests/unicase/test-ulc-casecoll.c: New file.
36940
36941         New module 'unicase/ulc-casecoll'.
36942         * lib/unicase.h (ulc_casecoll): New declaration.
36943         * lib/unicase/ulc-casecoll.c: New file.
36944         * modules/unicase/ulc-casecoll: New file.
36945
36946         New module 'unicase/ulc-casexfrm'.
36947         * lib/unicase.h (ulc_casexfrm): New declaration.
36948         * lib/unicase/ulc-casexfrm.c: New file.
36949         * modules/unicase/ulc-casexfrm: New file.
36950
36951 2009-03-09  Bruno Haible  <bruno@clisp.org>
36952
36953         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36954         invocations.
36955
36956         * m4/mbscasecmp.m4: Remove file.
36957         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36958         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36959
36960         * m4/mbscasestr.m4: Remove file.
36961         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36962         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36963
36964         * m4/mbschr.m4: Remove file.
36965         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36966         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36967
36968         * m4/mbscspn.m4: Remove file.
36969         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36970         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36971
36972         * m4/mbslen.m4: Remove file.
36973         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36974         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36975
36976         * m4/mbsncasecmp.m4: Remove file.
36977         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36978         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36979
36980         * m4/mbsnlen.m4: Remove file.
36981         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36982         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36983
36984         * m4/mbspbrk.m4: Remove file.
36985         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36986         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36987
36988         * m4/mbspcasecmp.m4: Remove file.
36989         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36990         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36991
36992         * m4/mbsrchr.m4: Remove file.
36993         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36994         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36995
36996         * m4/mbssep.m4: Remove file.
36997         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36998         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36999
37000         * m4/mbsspn.m4: Remove file.
37001         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37002         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37003
37004         * m4/mbsstr.m4: Remove file.
37005         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37006         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37007
37008         * m4/mbstok_r.m4: Remove file.
37009         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37010         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37011
37012         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37013
37014         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37015         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37016
37017         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37018
37019 2009-03-08  Bruno Haible  <bruno@clisp.org>
37020
37021         Tests for module 'unicase/ulc-casecmp'.
37022         * modules/unicase/ulc-casecmp-tests: New file.
37023         * tests/unicase/test-ulc-casecmp1.sh: New file.
37024         * tests/unicase/test-ulc-casecmp2.sh: New file.
37025         * tests/unicase/test-ulc-casecmp.c: New file.
37026
37027         New module 'unicase/ulc-casecmp'.
37028         * lib/unicase.h (ulc_casecmp): New declaration.
37029         * lib/unicase/ulc-casecmp.c: New file.
37030         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
37031         'const SRC_UNIT *'.
37032         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
37033         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
37034         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
37035         * modules/unicase/ulc-casecmp: New file.
37036
37037         Tests for module 'unicase/u32-is-cased'.
37038         * modules/unicase/u32-is-cased-tests: New file.
37039         * tests/unicase/test-u32-is-cased.c: New file.
37040
37041         Tests for module 'unicase/u16-is-cased'.
37042         * modules/unicase/u16-is-cased-tests: New file.
37043         * tests/unicase/test-u16-is-cased.c: New file.
37044
37045         Tests for module 'unicase/u8-is-cased'.
37046         * modules/unicase/u8-is-cased-tests: New file.
37047         * tests/unicase/test-u8-is-cased.c: New file.
37048         * tests/unicase/test-is-cased.h: New file.
37049
37050         New module 'unicase/u32-is-cased'.
37051         * lib/unicase/u32-is-cased.c: New file.
37052         * modules/unicase/u32-is-cased: New file.
37053
37054         New module 'unicase/u16-is-cased'.
37055         * lib/unicase/u16-is-cased.c: New file.
37056         * modules/unicase/u16-is-cased: New file.
37057
37058         New module 'unicase/u8-is-cased'.
37059         * lib/unicase/u8-is-cased.c: New file.
37060         * lib/unicase/u-is-cased.h: New file.
37061         * modules/unicase/u8-is-cased: New file.
37062
37063         Tests for module 'unicase/u32-is-casefolded'.
37064         * modules/unicase/u32-is-casefolded-tests: New file.
37065         * tests/unicase/test-u32-is-casefolded.c: New file.
37066
37067         Tests for module 'unicase/u16-is-casefolded'.
37068         * modules/unicase/u16-is-casefolded-tests: New file.
37069         * tests/unicase/test-u16-is-casefolded.c: New file.
37070
37071         Tests for module 'unicase/u8-is-casefolded'.
37072         * modules/unicase/u8-is-casefolded-tests: New file.
37073         * tests/unicase/test-u8-is-casefolded.c: New file.
37074         * tests/unicase/test-is-casefolded.h: New file.
37075
37076         New module 'unicase/u32-is-casefolded'.
37077         * lib/unicase/u32-is-casefolded.c: New file.
37078         * modules/unicase/u32-is-casefolded: New file.
37079
37080         New module 'unicase/u16-is-casefolded'.
37081         * lib/unicase/u16-is-casefolded.c: New file.
37082         * modules/unicase/u16-is-casefolded: New file.
37083
37084         New module 'unicase/u8-is-casefolded'.
37085         * lib/unicase/u8-is-casefolded.c: New file.
37086         * modules/unicase/u8-is-casefolded: New file.
37087
37088         Tests for module 'unicase/u32-is-titlecase'.
37089         * modules/unicase/u32-is-titlecase-tests: New file.
37090         * tests/unicase/test-u32-is-titlecase.c: New file.
37091
37092         Tests for module 'unicase/u16-is-titlecase'.
37093         * modules/unicase/u16-is-titlecase-tests: New file.
37094         * tests/unicase/test-u16-is-titlecase.c: New file.
37095
37096         Tests for module 'unicase/u8-is-titlecase'.
37097         * modules/unicase/u8-is-titlecase-tests: New file.
37098         * tests/unicase/test-u8-is-titlecase.c: New file.
37099         * tests/unicase/test-is-titlecase.h: New file.
37100
37101         New module 'unicase/u32-is-titlecase'.
37102         * lib/unicase/u32-is-titlecase.c: New file.
37103         * modules/unicase/u32-is-titlecase: New file.
37104
37105         New module 'unicase/u16-is-titlecase'.
37106         * lib/unicase/u16-is-titlecase.c: New file.
37107         * modules/unicase/u16-is-titlecase: New file.
37108
37109         New module 'unicase/u8-is-titlecase'.
37110         * lib/unicase/u8-is-titlecase.c: New file.
37111         * modules/unicase/u8-is-titlecase: New file.
37112
37113         Tests for module 'unicase/u32-is-lowercase'.
37114         * modules/unicase/u32-is-lowercase-tests: New file.
37115         * tests/unicase/test-u32-is-lowercase.c: New file.
37116
37117         Tests for module 'unicase/u16-is-lowercase'.
37118         * modules/unicase/u16-is-lowercase-tests: New file.
37119         * tests/unicase/test-u16-is-lowercase.c: New file.
37120
37121         Tests for module 'unicase/u8-is-lowercase'.
37122         * modules/unicase/u8-is-lowercase-tests: New file.
37123         * tests/unicase/test-u8-is-lowercase.c: New file.
37124         * tests/unicase/test-is-lowercase.h: New file.
37125
37126         New module 'unicase/u32-is-lowercase'.
37127         * lib/unicase/u32-is-lowercase.c: New file.
37128         * modules/unicase/u32-is-lowercase: New file.
37129
37130         New module 'unicase/u16-is-lowercase'.
37131         * lib/unicase/u16-is-lowercase.c: New file.
37132         * modules/unicase/u16-is-lowercase: New file.
37133
37134         New module 'unicase/u8-is-lowercase'.
37135         * lib/unicase/u8-is-lowercase.c: New file.
37136         * modules/unicase/u8-is-lowercase: New file.
37137
37138         Tests for module 'unicase/u32-is-uppercase'.
37139         * modules/unicase/u32-is-uppercase-tests: New file.
37140         * tests/unicase/test-u32-is-uppercase.c: New file.
37141
37142         Tests for module 'unicase/u16-is-uppercase'.
37143         * modules/unicase/u16-is-uppercase-tests: New file.
37144         * tests/unicase/test-u16-is-uppercase.c: New file.
37145
37146         Tests for module 'unicase/u8-is-uppercase'.
37147         * modules/unicase/u8-is-uppercase-tests: New file.
37148         * tests/unicase/test-u8-is-uppercase.c: New file.
37149         * tests/unicase/test-is-uppercase.h: New file.
37150
37151         New module 'unicase/u32-is-uppercase'.
37152         * lib/unicase/u32-is-uppercase.c: New file.
37153         * modules/unicase/u32-is-uppercase: New file.
37154
37155         New module 'unicase/u16-is-uppercase'.
37156         * lib/unicase/u16-is-uppercase.c: New file.
37157         * modules/unicase/u16-is-uppercase: New file.
37158
37159         New module 'unicase/u8-is-uppercase'.
37160         * lib/unicase/u8-is-uppercase.c: New file.
37161         * modules/unicase/u8-is-uppercase: New file.
37162
37163         New module 'unicase/u32-is-invariant'.
37164         * lib/unicase/u32-is-invariant.c: New file.
37165         * modules/unicase/u32-is-invariant: New file.
37166
37167         New module 'unicase/u16-is-invariant'.
37168         * lib/unicase/u16-is-invariant.c: New file.
37169         * modules/unicase/u16-is-invariant: New file.
37170
37171         New module 'unicase/u8-is-invariant'.
37172         * lib/unicase/u8-is-invariant.c: New file.
37173         * lib/unicase/invariant.h: New file.
37174         * lib/unicase/u-is-invariant.h: New file.
37175         * modules/unicase/u8-is-invariant: New file.
37176
37177         Tests for module 'unicase/u32-casecoll'.
37178         * modules/unicase/u32-casecoll-tests: New file.
37179         * tests/unicase/test-u32-casecoll.c: New file.
37180
37181         Tests for module 'unicase/u16-casecoll'.
37182         * modules/unicase/u16-casecoll-tests: New file.
37183         * tests/unicase/test-u16-casecoll.c: New file.
37184
37185         Tests for module 'unicase/u8-casecoll'.
37186         * modules/unicase/u8-casecoll-tests: New file.
37187         * tests/unicase/test-u8-casecoll.c: New file.
37188
37189         New module 'unicase/u32-casecoll'.
37190         * lib/unicase/u32-casecoll.c: New file.
37191         * modules/unicase/u32-casecoll: New file.
37192
37193         New module 'unicase/u16-casecoll'.
37194         * lib/unicase/u16-casecoll.c: New file.
37195         * modules/unicase/u16-casecoll: New file.
37196
37197         New module 'unicase/u8-casecoll'.
37198         * lib/unicase/u8-casecoll.c: New file.
37199         * lib/unicase/u-casecoll.h: New file.
37200         * modules/unicase/u8-casecoll: New file.
37201
37202         New module 'unicase/u32-casexfrm'.
37203         * lib/unicase/u32-casexfrm.c: New file.
37204         * modules/unicase/u32-casexfrm: New file.
37205
37206         New module 'unicase/u16-casexfrm'.
37207         * lib/unicase/u16-casexfrm.c: New file.
37208         * modules/unicase/u16-casexfrm: New file.
37209
37210         New module 'unicase/u8-casexfrm'.
37211         * lib/unicase/u8-casexfrm.c: New file.
37212         * lib/unicase/u-casexfrm.h: New file.
37213         * modules/unicase/u8-casexfrm: New file.
37214
37215         Tests for module 'unicase/u32-casecmp'.
37216         * modules/unicase/u32-casecmp-tests: New file.
37217         * tests/unicase/test-u32-casecmp.c: New file.
37218
37219         Tests for module 'unicase/u16-casecmp'.
37220         * modules/unicase/u16-casecmp-tests: New file.
37221         * tests/unicase/test-u16-casecmp.c: New file.
37222
37223         Tests for module 'unicase/u8-casecmp'.
37224         * modules/unicase/u8-casecmp-tests: New file.
37225         * tests/unicase/test-u8-casecmp.c: New file.
37226         * tests/unicase/test-casecmp.h: New file.
37227
37228         New module 'unicase/u32-casecmp'.
37229         * lib/unicase/u32-casecmp.c: New file.
37230         * modules/unicase/u32-casecmp: New file.
37231
37232         New module 'unicase/u16-casecmp'.
37233         * lib/unicase/u16-casecmp.c: New file.
37234         * modules/unicase/u16-casecmp: New file.
37235
37236         New module 'unicase/u8-casecmp'.
37237         * lib/unicase/u8-casecmp.c: New file.
37238         * lib/unicase/u-casecmp.h: New file.
37239         * modules/unicase/u8-casecmp: New file.
37240
37241         Tests for module 'unicase/u32-casefold'.
37242         * modules/unicase/u32-casefold-tests: New file.
37243         * tests/unicase/test-u32-casefold.c: New file.
37244
37245         Tests for module 'unicase/u16-casefold'.
37246         * modules/unicase/u16-casefold-tests: New file.
37247         * tests/unicase/test-u16-casefold.c: New file.
37248
37249         Tests for module 'unicase/u8-casefold'.
37250         * modules/unicase/u8-casefold-tests: New file.
37251         * tests/unicase/test-u8-casefold.c: New file.
37252
37253         New module 'unicase/u32-casefold'.
37254         * lib/unicase/u32-casefold.c: New file.
37255         * modules/unicase/u32-casefold: New file.
37256
37257         New module 'unicase/u16-casefold'.
37258         * lib/unicase/u16-casefold.c: New file.
37259         * modules/unicase/u16-casefold: New file.
37260
37261         New module 'unicase/u8-casefold'.
37262         * lib/unicase/u8-casefold.c: New file.
37263         * lib/unicase/u-casefold.h: New file.
37264         * modules/unicase/u8-casefold: New file.
37265
37266         New module 'unicase/tocasefold'.
37267         * lib/unicase/casefold.h: New file.
37268         * lib/unicase/tocasefold.c: New file.
37269         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
37270         * modules/unicase/tocasefold: New file.
37271
37272         Tests for module 'unicase/u32-totitle'.
37273         * modules/unicase/u32-totitle-tests: New file.
37274         * tests/unicase/test-u32-totitle.c: New file.
37275
37276         Tests for module 'unicase/u16-totitle'.
37277         * modules/unicase/u16-totitle-tests: New file.
37278         * tests/unicase/test-u16-totitle.c: New file.
37279
37280         Tests for module 'unicase/u8-totitle'.
37281         * modules/unicase/u8-totitle-tests: New file.
37282         * tests/unicase/test-u8-totitle.c: New file.
37283
37284         New module 'unicase/u32-totitle'.
37285         * lib/unicase/u32-totitle.c: New file.
37286         * modules/unicase/u32-totitle: New file.
37287
37288         New module 'unicase/u16-totitle'.
37289         * lib/unicase/u16-totitle.c: New file.
37290         * modules/unicase/u16-totitle: New file.
37291
37292         New module 'unicase/u8-totitle'.
37293         * lib/unicase/u8-totitle.c: New file.
37294         * lib/unicase/u-totitle.h: New file.
37295         * modules/unicase/u8-totitle: New file.
37296
37297         Tests for module 'unicase/u32-tolower'.
37298         * modules/unicase/u32-tolower-tests: New file.
37299         * tests/unicase/test-u32-tolower.c: New file.
37300
37301         Tests for module 'unicase/u16-tolower'.
37302         * modules/unicase/u16-tolower-tests: New file.
37303         * tests/unicase/test-u16-tolower.c: New file.
37304
37305         Tests for module 'unicase/u8-tolower'.
37306         * modules/unicase/u8-tolower-tests: New file.
37307         * tests/unicase/test-u8-tolower.c: New file.
37308
37309         New module 'unicase/u32-tolower'.
37310         * lib/unicase/u32-tolower.c: New file.
37311         * modules/unicase/u32-tolower: New file.
37312
37313         New module 'unicase/u16-tolower'.
37314         * lib/unicase/u16-tolower.c: New file.
37315         * modules/unicase/u16-tolower: New file.
37316
37317         New module 'unicase/u8-tolower'.
37318         * lib/unicase/u8-tolower.c: New file.
37319         * modules/unicase/u8-tolower: New file.
37320
37321         Tests for module 'unicase/u32-toupper'.
37322         * modules/unicase/u32-toupper-tests: New file.
37323         * tests/unicase/test-u32-toupper.c: New file.
37324
37325         Tests for module 'unicase/u16-toupper'.
37326         * modules/unicase/u16-toupper-tests: New file.
37327         * tests/unicase/test-u16-toupper.c: New file.
37328
37329         Tests for module 'unicase/u8-toupper'.
37330         * modules/unicase/u8-toupper-tests: New file.
37331         * tests/unicase/test-u8-toupper.c: New file.
37332
37333         New module 'unicase/u32-toupper'.
37334         * lib/unicase/u32-toupper.c: New file.
37335         * modules/unicase/u32-toupper: New file.
37336
37337         New module 'unicase/u16-toupper'.
37338         * lib/unicase/u16-toupper.c: New file.
37339         * modules/unicase/u16-toupper: New file.
37340
37341         New module 'unicase/u8-toupper'.
37342         * lib/unicase/u8-toupper.c: New file.
37343         * modules/unicase/u8-toupper: New file.
37344
37345         New module 'unicase/u32-casemap'.
37346         * lib/unicase/u32-casemap.c: New file.
37347         * modules/unicase/u32-casemap: New file.
37348
37349         New module 'unicase/u16-casemap'.
37350         * lib/unicase/u16-casemap.c: New file.
37351         * modules/unicase/u16-casemap: New file.
37352
37353         New module 'unicase/u8-casemap'.
37354         * lib/unicase/unicasemap.h: New file.
37355         * lib/unicase/u8-casemap.c: New file.
37356         * lib/unicase/u-casemap.h: New file.
37357         * modules/unicase/u8-casemap: New file.
37358
37359         New module 'unicase/special-casing'.
37360         * lib/unicase/special-casing.h: New file.
37361         * lib/unicase/special-casing.c: New file.
37362         * lib/unicase/special-casing-table.gperf: New file, generated by
37363         gen-uni-tables.c.
37364         * modules/unicase/special-casing: New file.
37365
37366         Tests for module 'unicase/locale-language'.
37367         * modules/unicase/locale-language-tests: New file.
37368         * tests/unicase/test-locale-language.sh: New file.
37369         * tests/unicase/test-locale-language.c: New file.
37370
37371         New module 'unicase/locale-language'.
37372         * lib/unicase/locale-language.c: New file.
37373         * lib/unicase/locale-languages.gperf: New file.
37374         * modules/unicase/locale-language: New file.
37375
37376         Generate more tables for case conversion and case folding.
37377         * lib/gen-uni-tables.c (SCC_*): New enum items.
37378         (struct special_casing_rule): New type.
37379         (casing_rules, num_casing_rules, allocated_casing_rules): New
37380         variables.
37381         (add_casing_rule, fill_casing_rules): New functions.
37382         (struct casefold_rule): New type.
37383         (casefolding_rules, num_casefolding_rules,
37384         allocated_casefolding_rules): New variables.
37385         (fill_casefolding_rules): New function.
37386         (unicode_casefold): New variable.
37387         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
37388         sort_casing_rules, output_casing_rules): New functions.
37389         (main): Accept to more arguments: SpecialCasing.txt and
37390         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
37391         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
37392         Output mapping for casefolding.
37393
37394         * lib/unicase.h: Include stdbool.h, uninorm.h.
37395         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
37396         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
37397         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
37398         arguments.
37399         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
37400         resultp arguments.
37401         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
37402         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
37403         resultp arguments.
37404         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
37405         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
37406         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
37407         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
37408         declarations.
37409         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
37410
37411 2009-03-08  Bruno Haible  <bruno@clisp.org>
37412
37413         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37414         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
37415         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
37416         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37417
37418 2009-03-07  Bruno Haible  <bruno@clisp.org>
37419
37420         Adjust u*_normcmp, u*_normcoll API.
37421         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
37422         u16_normcoll, u32_normcoll): Change failure conventions.
37423         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
37424         errno and return -1.
37425         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
37426
37427 2009-03-07  Bruno Haible  <bruno@clisp.org>
37428
37429         Tests for module 'uninorm/u32-normcoll'.
37430         * modules/uninorm/u32-normcoll-tests: New file.
37431         * tests/uninorm/test-u32-normcoll.c: New file.
37432
37433         Tests for module 'uninorm/u16-normcoll'.
37434         * modules/uninorm/u16-normcoll-tests: New file.
37435         * tests/uninorm/test-u16-normcoll.c: New file.
37436
37437         Tests for module 'uninorm/u8-normcoll'.
37438         * modules/uninorm/u8-normcoll-tests: New file.
37439         * tests/uninorm/test-u8-normcoll.c: New file.
37440
37441 2009-03-07  Bruno Haible  <bruno@clisp.org>
37442
37443         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
37444         tests/uninorm/test-u32-normcmp.c.
37445         * tests/uninorm/test-u32-normcmp.c: Include it.
37446         (test_nonascii): New function, extracted from main. Add some more
37447         tests.
37448         (main): Invoke test_ascii and test_nonascii.
37449         * modules/uninorm/u32-normcmp-tests (Files): Add
37450         tests/uninorm/test-u32-normcmp.h.
37451         (Depends-on): Remove uninorm/u32-normcmp.
37452
37453         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
37454         tests/uninorm/test-u16-normcmp.c.
37455         * tests/uninorm/test-u16-normcmp.c: Include it.
37456         (test_nonascii): New function, extracted from main. Add some more
37457         tests.
37458         (main): Invoke test_ascii and test_nonascii.
37459         * modules/uninorm/u16-normcmp-tests (Files): Add
37460         tests/uninorm/test-u16-normcmp.h.
37461         (Depends-on): Remove uninorm/u16-normcmp.
37462
37463         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
37464         tests/uninorm/test-u8-normcmp.c.
37465         * tests/uninorm/test-u8-normcmp.c: Include it.
37466         (test_nonascii): New function, extracted from main. Add some more
37467         tests.
37468         (main): Invoke test_ascii and test_nonascii.
37469         * modules/uninorm/u8-normcmp-tests (Files): Add
37470         tests/uninorm/test-u8-normcmp.h.
37471         (Depends-on): Remove uninorm/u8-normcmp.
37472
37473 2009-03-07  Bruno Haible  <bruno@clisp.org>
37474
37475         New module 'uninorm/u32-normcoll'.
37476         * lib/uninorm/u32-normcoll.c: New file.
37477         * modules/uninorm/u32-normcoll: New file.
37478
37479         New module 'uninorm/u16-normcoll'.
37480         * lib/uninorm/u16-normcoll.c: New file.
37481         * modules/uninorm/u16-normcoll: New file.
37482
37483         New module 'uninorm/u8-normcoll'.
37484         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
37485         declarations.
37486         * lib/uninorm/u8-normcoll.c: New file.
37487         * lib/uninorm/u-normcoll.h: New file.
37488         * modules/uninorm/u8-normcoll: New file.
37489
37490         New module 'uninorm/u32-normxfrm'.
37491         * lib/uninorm/u32-normxfrm.c: New file.
37492         * modules/uninorm/u32-normxfrm: New file.
37493
37494         New module 'uninorm/u16-normxfrm'.
37495         * lib/uninorm/u16-normxfrm.c: New file.
37496         * modules/uninorm/u16-normxfrm: New file.
37497
37498         New module 'uninorm/u8-normxfrm'.
37499         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
37500         declarations.
37501         * lib/uninorm/u8-normxfrm.c: New file.
37502         * lib/uninorm/u-normxfrm.h: New file.
37503         * modules/uninorm/u8-normxfrm: New file.
37504
37505 2009-03-07  Bruno Haible  <bruno@clisp.org>
37506
37507         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
37508         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
37509         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
37510
37511 2009-03-07  Bruno Haible  <bruno@clisp.org>
37512
37513         New module 'memxfrm'.
37514         * lib/memxfrm.h: New file.
37515         * lib/memxfrm.c: New file.
37516         * modules/memxfrm: New file.
37517
37518 2009-03-07  Bruno Haible  <bruno@clisp.org>
37519
37520         New module 'memcmp2'.
37521         * lib/memcmp2.h: New file.
37522         * lib/memcmp2.c: New file.
37523         * modules/memcmp2: New file.
37524
37525 2009-03-07  Bruno Haible  <bruno@clisp.org>
37526
37527         Tests for module 'uninorm/decomposing-form'.
37528         * modules/uninorm/decomposing-form-tests: New file.
37529         * tests/uninorm/test-decomposing-form.c: New file.
37530
37531         New module 'uninorm/decomposing-form'.
37532         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
37533         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
37534         Add 'decomposing_variant' field.
37535         * lib/uninorm/decomposing-form.c: New file.
37536         * lib/uninorm/nfc.c (uninorm_nfc): Update.
37537         * lib/uninorm/nfd.c (uninorm_nfd): Update.
37538         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
37539         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
37540         * modules/uninorm/decomposing-form: New file.
37541         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
37542         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
37543
37544 2009-03-07  Bruno Haible  <bruno@clisp.org>
37545
37546         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
37547         strings.
37548
37549 2009-03-06  Bruno Haible  <bruno@clisp.org>
37550
37551         Tests for module 'uninorm/u32-normcmp'.
37552         * tests/uninorm/test-u32-normcmp.c: New file.
37553         * modules/uninorm/u32-normcmp-tests: New file.
37554
37555         Tests for module 'uninorm/u16-normcmp'.
37556         * tests/uninorm/test-u16-normcmp.c: New file.
37557         * modules/uninorm/u16-normcmp-tests: New file.
37558
37559         Tests for module 'uninorm/u8-normcmp'.
37560         * tests/uninorm/test-u8-normcmp.c: New file.
37561         * modules/uninorm/u8-normcmp-tests: New file.
37562
37563         New module 'uninorm/u32-normcmp'.
37564         * lib/uninorm/u32-normcmp.c: New file.
37565         * modules/uninorm/u32-normcmp: New file.
37566
37567         New module 'uninorm/u16-normcmp'.
37568         * lib/uninorm/u16-normcmp.c: New file.
37569         * modules/uninorm/u16-normcmp: New file.
37570
37571         New module 'uninorm/u8-normcmp'.
37572         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37573         declarations.
37574         * lib/uninorm/u8-normcmp.c: New file.
37575         * lib/uninorm/u-normcmp.h: New file.
37576         * modules/uninorm/u8-normcmp: New file.
37577
37578 2009-03-06  Bruno Haible  <bruno@clisp.org>
37579
37580         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37581         Reported by Eric Blake.
37582
37583 2009-03-06  Eric Blake  <ebb9@byu.net>
37584             Bruno Haible  <bruno@clisp.org>
37585
37586         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37587         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37588         condition.
37589         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37590         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37591         condition.
37592         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37593
37594 2009-03-06  Eric Blake  <ebb9@byu.net>
37595
37596         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37597         to avoid compiler warnings.
37598         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37599
37600 2009-03-05  Bruno Haible  <bruno@clisp.org>
37601
37602         * tests/test-ftell.c (main): Disable test beyond end of file on
37603         FreeMiNT.
37604         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37605
37606 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37607
37608         * lib/filevercmp.c: Move hidden files up in ordering.
37609         * tests/test-filevercmp.c: Add tests for hidden files.
37610
37611 2009-03-04  Bruno Haible  <bruno@clisp.org>
37612
37613         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37614         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37615         AM_CFLAGS.
37616         Reported by Simon Josefsson.
37617
37618 2009-03-03  Bruno Haible  <bruno@clisp.org>
37619
37620         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37621         Reported by Simon Josefsson.
37622
37623         * doc/ld-version-script.texi: Update node reference.
37624
37625 2009-03-03  Bruno Haible  <bruno@clisp.org>
37626
37627         * modules/visibility (License): Change to 'unlimited'.
37628         Suggested by Simon Josefsson.
37629
37630 2009-03-03  Jim Meyering  <meyering@redhat.com>
37631
37632         unlinkdir: cannot_unlink_dir may modify process state
37633         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37634         it's neither thread-safe nor appropriate for use in a library.
37635
37636 2009-03-03  Eric Blake  <ebb9@byu.net>
37637
37638         test-closein: silence test under Darwin
37639         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37640         care if it dies from EPIPE or EBADF.
37641
37642 2009-03-03  Bruno Haible  <bruno@clisp.org>
37643
37644         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37645         earlier.
37646         * doc/visibility.texi: Fix @node and @section.
37647
37648 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37649
37650         * doc/gnulib.texi: Link to sections for ld version script and
37651         visibility.
37652         * doc/visibility.texi: Add @node and @section.
37653         * modules/ld-version-script: New module.
37654         * m4/ld-version-script.m4: New file.
37655         * doc/ld-version-script.texi: New file.
37656
37657 2009-03-02  David Lutterkort  <lutter@redhat.com>
37658
37659         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37660         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37661
37662 2009-03-02  Bruno Haible  <bruno@clisp.org>
37663
37664         * doc/visibility.texi: Mention libtool's -export-symbols option.
37665
37666 2009-03-02  Jim Meyering  <meyering@redhat.com>
37667
37668         announce-gen: new option: --no-print-checksums
37669         * build-aux/announce-gen (usage): Describe it.
37670         (print_checksums): Print a newline here, not in the [*] footnote.
37671         (main): Honor it.
37672
37673 2009-03-01  Bruno Haible  <bruno@clisp.org>
37674
37675         Use socklen_t in the native Windows replacements prototypes.
37676         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37677         instead of 'int'.
37678         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37679         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37680         * modules/getsockopt (Depends-on): Add socklen.
37681         * modules/setsockopt (Depends-on): Add socklen.
37682
37683 2009-03-01  Bruno Haible  <bruno@clisp.org>
37684
37685         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37686         least 4.2.
37687
37688 2009-03-01  Eric Blake  <ebb9@byu.net>
37689             Bruno Haible  <bruno@clisp.org>
37690
37691         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37692         error messages.
37693         * lib/wait-process.c (wait_subprocess): Omit error message about
37694         deadly signal sent to the child of termsigp != NULL.
37695
37696 2009-03-01  Eric Blake  <ebb9@byu.net>
37697
37698         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37699
37700 2009-03-01  Bruno Haible  <bruno@clisp.org>
37701
37702         Avoid a gcc warning.
37703         * tests/test-sched.c (b): Make global.
37704         Reported by Eric Blake.
37705
37706 2009-01-19  Martin Lambers  <marlam@marlam.de>
37707
37708         Provide POSIX semantics for socket timeout options on W32.
37709         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37710         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37711         * modules/setsockopt: Depend on sys_time module for struct timeval.
37712         * modules/getsockopt: Depend on sys_time module for struct timeval.
37713
37714 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37715
37716         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37717         __USE_GNU, for consistency with netdb.in.h.
37718         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37719
37720 2009-03-01  Bruno Haible  <bruno@clisp.org>
37721
37722         More support for FreeMiNT.
37723         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37724         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37725
37726 2009-03-01  Bruno Haible  <bruno@clisp.org>
37727
37728         More support for FreeMiNT.
37729         * lib/fpurge.c (fpurge): Correct last commit.
37730         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37731
37732 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37733
37734         Fix unportable awk script in vc-list-files.
37735         * build-aux/vc-list-files: In the replacement awk script, use
37736         substr with a second argument of 1, not zero.
37737         Report by Simon Josefsson.
37738
37739 2009-02-28  Bruno Haible  <bruno@clisp.org>
37740
37741         More support for FreeMiNT.
37742         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37743         to FreeMiNT today.
37744         * lib/fwriting.c (fwriting): Likewise.
37745         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37746
37747 2009-02-28  Bruno Haible  <bruno@clisp.org>
37748
37749         * tests/test-freadseek.c (main): Disable test beyond end of file on
37750         FreeMiNT.
37751         * tests/test-ftello.c (main): Likewise.
37752         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37753
37754 2009-02-28  Bruno Haible  <bruno@clisp.org>
37755
37756         Add tentative support for FreeMiNT.
37757         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37758         * lib/fpurge.c (fpurge): Likewise.
37759         * lib/freadable.c (freadable): Likewise.
37760         * lib/freading.c (freading): Likewise.
37761         * lib/freadptr.c (freadptr): Likewise.
37762         * lib/freadseek.c (freadptrinc): Likewise.
37763         * lib/fseeko.c (rpl_fseeko): Likewise.
37764         * lib/fseterr.c (fseterr): Likewise.
37765         * lib/fwritable.c (fwritable): Likewise.
37766         * lib/fwriting.c (fwriting): Likewise.
37767         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37768         Hourihane.
37769         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37770
37771 2009-02-28  Bruno Haible  <bruno@clisp.org>
37772
37773         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37774         SIGCHLD.
37775         Reported by Jim Meyering.
37776
37777 2009-02-28  Bruno Haible  <bruno@clisp.org>
37778
37779         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37780         Mention the results of these tests on various platforms.
37781         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37782         order.
37783         * doc/posix-functions/printf.texi: Likewise.
37784         * doc/posix-functions/snprintf.texi: Likewise.
37785         * doc/posix-functions/sprintf.texi: Likewise.
37786         * doc/posix-functions/vfprintf.texi: Likewise.
37787         * doc/posix-functions/vprintf.texi: Likewise.
37788         * doc/posix-functions/vsnprintf.texi: Likewise.
37789         * doc/posix-functions/vsprintf.texi: Likewise.
37790         * doc/glibc-functions/obstack_printf.texi: Likewise.
37791         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37792
37793 2009-02-28  Bruno Haible  <bruno@clisp.org>
37794
37795         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37796         Reported by Loïc Minier <lool@dooz.org>.
37797
37798 2009-02-27  Bruno Haible  <bruno@clisp.org>
37799
37800         * gnulib-tool (func_import): Make the sed expression used to create the
37801         sed script for updating the .gitignore file POSIX compliant.
37802         Reported by Eric Blake.
37803
37804 2009-02-27  Bruno Haible  <bruno@clisp.org>
37805
37806         * gnulib-tool (sed): Don't alias as "sed --posix".
37807         Reported by Eric Blake.
37808
37809 2009-02-27  Bruno Haible  <bruno@clisp.org>
37810
37811         Avoid test link errors.
37812         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37813         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37814         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37815         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37817
37818 2009-02-27  Bruno Haible  <bruno@clisp.org>
37819
37820         Avoid spurious "(cached)" in configure output.
37821         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37822         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37823         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37824         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37825         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37826         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37827         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37828         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37829         Reported by Eric Blake.
37830
37831 2009-02-27  Eric Blake  <ebb9@byu.net>
37832
37833         printf: fix regression in previous patch
37834         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37835
37836 2009-02-27  Bruno Haible  <bruno@clisp.org>
37837
37838         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37839         value.
37840         * lib/stdint.in.h: Likewise.
37841         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37842
37843 2009-02-27  Eric Blake  <ebb9@byu.net>
37844
37845         doc: mention more functions added in cygwin 1.7.0
37846         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37847         addition.
37848         * doc/posix-functions/open_wmemstream.texi: Likewise.
37849         * doc/posix-functions/wcsnlen.texi: Likewise.
37850         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37851         * doc/posix-functions/wcstod.texi: Likewise.
37852         * doc/posix-functions/wcstof.texi: Likewise.
37853         * doc/posix-functions/wcstoimax.texi: Likewise.
37854         * doc/posix-functions/wcstok.texi: Likewise.
37855         * doc/posix-functions/wcstoumax.texi: Likewise.
37856
37857         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37859         * doc/posix-functions/fprintf.texi: Update.
37860         * doc/posix-functions/printf.texi: Update.
37861         * doc/posix-functions/snprintf.texi: Update.
37862         * doc/posix-functions/sprintf.texi: Update.
37863         * doc/posix-functions/vfprintf.texi: Update.
37864         * doc/posix-functions/vprintf.texi: Update.
37865         * doc/posix-functions/vsnprintf.texi: Update.
37866         * doc/posix-functions/vsprintf.texi: Update.
37867         * doc/glibc-functions/obstack_printf.texi: Update.
37868         * doc/glibc-functions/obstack_vprintf.texi: Update.
37869
37870 2009-02-26  Eric Blake  <ebb9@byu.net>
37871
37872         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37873         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37874         compilation bug by using runtime conversion.
37875         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37876         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37877         * modules/ceill-tests (Files): Use nan.h.
37878         * modules/floorl-tests (Files): Likewise.
37879         * modules/frexpl-tests (Files): Likewise.
37880         * modules/isnanl-tests (Files): Likewise.
37881         * modules/ldexpl-tests (Files): Likewise.
37882         * modules/roundl-tests (Files): Likewise.
37883         * modules/truncl-tests (Files): Likewise.
37884         * tests/test-ceill.c (main): Use a working NaN.
37885         * tests/test-floorl.c (main): Likewise.
37886         * tests/test-frexpl.c (main): Likewise.
37887         * tests/test-isnan.c (test_long_double): Likewise.
37888         * tests/test-isnanl.h (main): Likewise.
37889         * tests/test-ldexpl.h (main): Likewise.
37890         * tests/test-roundl.h (main): Likewise.
37891         * tests/test-truncl.h (main): Likewise.
37892         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37893
37894 2009-02-26  Eric Blake  <ebb9@byu.net>
37895             Bruno Haible  <bruno@clisp.org>
37896
37897         Work around a *printf bug with %ls on Solaris.
37898         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37899         precision is specified, sprintf stops converting the wide string
37900         argument when the number of bytes that have been produced by this
37901         conversion equals or exceeds the precision.
37902         * doc/posix-functions/fprintf.texi: Update.
37903         * doc/posix-functions/printf.texi: Update.
37904         * doc/posix-functions/snprintf.texi: Update.
37905         * doc/posix-functions/sprintf.texi: Update.
37906         * doc/posix-functions/vfprintf.texi: Update.
37907         * doc/posix-functions/vprintf.texi: Update.
37908         * doc/posix-functions/vsnprintf.texi: Update.
37909         * doc/posix-functions/vsprintf.texi: Update.
37910         * doc/glibc-functions/obstack_printf.texi: Update.
37911         * doc/glibc-functions/obstack_vprintf.texi: Update.
37912
37913 2009-02-26  Eric Blake  <ebb9@byu.net>
37914
37915         stdlib: favor compiler check of random.h
37916         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37917         to avoid an ObjC random.h installed by Swarm.
37918
37919 2009-02-26  Bruno Haible  <bruno@clisp.org>
37920
37921         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37922         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37923         Reported by Gary V. Vaughan <gary@gnu.org>.
37924
37925 2009-02-26  Bruno Haible  <bruno@clisp.org>
37926
37927         Fix *printf behaviour regarding the %ls directive.
37928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37929         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37930         NEED_PRINTF_DIRECTIVE_LS.
37931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37932         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37933         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37934         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37935         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37936         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37937         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37942         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37946         * doc/posix-functions/fprintf.texi: Update.
37947         * doc/posix-functions/printf.texi: Update.
37948         * doc/posix-functions/snprintf.texi: Update.
37949         * doc/posix-functions/sprintf.texi: Update.
37950         * doc/posix-functions/vfprintf.texi: Update.
37951         * doc/posix-functions/vprintf.texi: Update.
37952         * doc/posix-functions/vsnprintf.texi: Update.
37953         * doc/posix-functions/vsprintf.texi: Update.
37954         * doc/glibc-functions/obstack_printf.texi: Update.
37955         * doc/glibc-functions/obstack_vprintf.texi: Update.
37956         Reported by Eric Blake.
37957
37958 2009-02-25  Bruno Haible  <bruno@clisp.org>
37959
37960         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37961         with known value.
37962         Reported by Gary V. Vaughan <gary@gnu.org>.
37963
37964 2009-02-25  Bruno Haible  <bruno@clisp.org>
37965
37966         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37967         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37968         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37969         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37970         Reported by Gary V. Vaughan <gary@gnu.org>.
37971
37972 2009-02-25  Bruno Haible  <bruno@clisp.org>
37973
37974         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37975         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37976         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37977         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37978         Reported by Gary V. Vaughan <gary@gnu.org>.
37979
37980 2009-02-25  Eric Blake  <ebb9@byu.net>
37981
37982         tests: skip fseek/ftell tests if ungetc is broken
37983         * m4/ungetc.m4: New file.
37984         * modules/fseek-tests: Split test, so ungetc dependency is
37985         separate from rest of test.
37986         * modules/fseeko-tests: Likewise.
37987         * modules/ftell-tests: Likewise.
37988         * modules/ftello-tests: Likewise.
37989         * tests/test-fseek.c (main): Isolate ungetc dependency.
37990         * tests/test-fseeko.c (main): Likewise.
37991         * tests/test-ftell.c (main): Likewise.
37992         * tests/test-ftello.c (main): Likewise.
37993         * tests/test-fseek2.sh: New file.
37994         * tests/test-fseeko2.sh: Likewise.
37995         * tests/test-ftell2.sh: Likewise.
37996         * tests/test-ftello2.sh: Likewise.
37997
37998 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37999
38000         test-getaddrinfo: fix usage of skip return code 77
38001         * tests/test-gettaddrinfo.c: Return skip code 77 only
38002         for first occurance of skip (4x77 is not 77)
38003
38004 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38005
38006         strtod: avoid C99 decl-after-statement
38007         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38008
38009 2009-02-24  Eric Blake  <ebb9@byu.net>
38010
38011         strtod: detect HP-UX 11.31 bug
38012         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38013         Reported by Gary V. Vaughan.
38014
38015 2009-02-23  Bruno Haible  <bruno@clisp.org>
38016
38017         Fix invalid read past end of memory block.
38018         * lib/vasnprintf.c (DCHAR_SET): Define.
38019         (local_wcslen): Define only when needed.
38020         (local_strnlen, local_wcsnlen): New functions.
38021         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
38022         directives that involve a conversion ourselves.
38023         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
38024         wcsnlen, mbrtowc, wcrtomb.
38025         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
38026         * tests/test-vasprintf-posix.c (test_function): Likewise.
38027         * tests/test-snprintf-posix.h (test_function): Likewise.
38028         * tests/test-sprintf-posix.h (test_function): Likewise.
38029         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38030
38031 2009-02-22  Bruno Haible  <bruno@clisp.org>
38032
38033         Implement new clarified decomposition of Hangul syllables.
38034         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
38035         of type LTV, return only a pairwise decomposition.
38036         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
38037         Likewise.
38038         * tests/uninorm/test-decomposition.c (main): Updated expected result.
38039         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
38040         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
38041
38042 2009-02-22  Bruno Haible  <bruno@clisp.org>
38043
38044         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
38045         zero-length results and shrink excess allocated memory.
38046         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
38047         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
38048         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
38049         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
38050         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
38051         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
38052         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38053         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38054         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38055         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38056         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38057         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38058
38059 2009-02-21  Bruno Haible  <bruno@clisp.org>
38060
38061         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38062         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38063         spaces after a period. Put a space between a macro name and its
38064         argument list. Trivial rewordings.
38065         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38066         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38067         (main): Return 0 explicitly.
38068
38069 2009-02-21  Bruno Haible  <bruno@clisp.org>
38070
38071         Tests for module 'uninorm/filter'.
38072         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38073         * modules/uninorm/filter-tests: New file.
38074
38075         New module 'uninorm/filter'.
38076         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38077         uninorm_filter_flush, uninorm_filter_free): New declarations.
38078         * lib/uninorm/uninorm-filter.c: New file.
38079         * modules/uninorm/filter: New file.
38080
38081 2009-02-21  Bruno Haible  <bruno@clisp.org>
38082
38083         Tests for module 'uninorm/nfkc'.
38084         * tests/uninorm/test-nfkc.c: New file.
38085         * tests/uninorm/test-u8-nfkc.c: New file.
38086         * tests/uninorm/test-u16-nfkc.c: New file.
38087         * tests/uninorm/test-u32-nfkc.c: New file.
38088         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38089         * tests/uninorm/test-u32-nfkc-big.c: New file.
38090         * modules/uninorm/nfkc-tests: New file.
38091
38092         New module 'uninorm/nfkc'.
38093         * lib/uninorm/nfkc.c: New file.
38094         * modules/uninorm/nfkc: New file.
38095
38096         Tests for module 'uninorm/nfkd'.
38097         * tests/uninorm/test-nfkd.c: New file.
38098         * tests/uninorm/test-u8-nfkd.c: New file.
38099         * tests/uninorm/test-u16-nfkd.c: New file.
38100         * tests/uninorm/test-u32-nfkd.c: New file.
38101         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38102         * tests/uninorm/test-u32-nfkd-big.c: New file.
38103         * modules/uninorm/nfkd-tests: New file.
38104
38105         New module 'uninorm/nfkd'.
38106         * lib/uninorm/nfkd.c: New file.
38107         * modules/uninorm/nfkd: New file.
38108
38109         Tests for module 'uninorm/nfc'.
38110         * tests/uninorm/test-nfc.c: New file.
38111         * tests/uninorm/test-u8-nfc.c: New file.
38112         * tests/uninorm/test-u16-nfc.c: New file.
38113         * tests/uninorm/test-u32-nfc.c: New file.
38114         * tests/uninorm/test-u32-nfc-big.sh: New file.
38115         * tests/uninorm/test-u32-nfc-big.c: New file.
38116         * modules/uninorm/nfc-tests: New file.
38117
38118         New module 'uninorm/nfc'.
38119         * lib/uninorm/nfc.c: New file.
38120         * modules/uninorm/nfc: New file.
38121
38122         Tests for module 'uninorm/nfd'.
38123         * tests/uninorm/test-nfd.c: New file.
38124         * tests/uninorm/test-u8-nfd.c: New file.
38125         * tests/uninorm/test-u16-nfd.c: New file.
38126         * tests/uninorm/test-u32-nfd.c: New file.
38127         * tests/uninorm/test-u32-nfd-big.sh: New file.
38128         * tests/uninorm/test-u32-nfd-big.c: New file.
38129         * tests/uninorm/test-u32-normalize-big.h: New file.
38130         * tests/uninorm/test-u32-normalize-big.c: New file.
38131         * tests/uninorm/NormalizationTest.txt: New file, created from
38132         Unicode 5.1.0 NormalizationTest.txt.
38133         * modules/uninorm/nfd-tests: New file.
38134
38135         New module 'uninorm/nfd'.
38136         * lib/uninorm/nfd.c: New file.
38137         * modules/uninorm/nfd: New file.
38138
38139         New module 'uninorm/u32-normalize'.
38140         * lib/uninorm/u32-normalize.c: New file.
38141         * modules/uninorm/u32-normalize: New file.
38142
38143         New module 'uninorm/u16-normalize'.
38144         * lib/uninorm/u16-normalize.c: New file.
38145         * modules/uninorm/u16-normalize: New file.
38146
38147         New module 'uninorm/u8-normalize'.
38148         * lib/uninorm/u8-normalize.c: New file.
38149         * lib/uninorm/normalize-internal.h: New file.
38150         * lib/uninorm/u-normalize-internal.h: New file.
38151         * modules/uninorm/u8-normalize: New file.
38152
38153         New module 'uninorm/decompose-internal'.
38154         * lib/uninorm/decompose-internal.c: New file.
38155         * modules/uninorm/decompose-internal: New file.
38156
38157         Tests for module 'uninorm/composition'.
38158         * tests/uninorm/test-composition.c: New file.
38159         * modules/uninorm/composition-tests: New file.
38160
38161         New module 'uninorm/composition'.
38162         * lib/uninorm/composition.c: New file.
38163         * lib/uninorm/composition-table.gperf: New file, generated by
38164         gen-uni-tables.
38165         * modules/uninorm/composition: New file.
38166
38167         Tests for module 'uninorm/compat-decomposition'.
38168         * tests/uninorm/test-compat-decomposition.c: New file.
38169         * modules/uninorm/compat-decomposition-tests: New file.
38170
38171         New module 'uninorm/compat-decomposition'.
38172         * lib/uninorm/decompose-internal.h: New file.
38173         * lib/uninorm/compat-decomposition.c: New file.
38174         * modules/uninorm/compat-decomposition: New file.
38175
38176         Tests for module 'uninorm/canonical-decomposition'.
38177         * tests/uninorm/test-canonical-decomposition.c: New file.
38178         * modules/uninorm/canonical-decomposition-tests: New file.
38179
38180         New module 'uninorm/canonical-decomposition'.
38181         * lib/uninorm/canonical-decomposition.c: New file.
38182         * modules/uninorm/canonical-decomposition: New file.
38183
38184         Tests for module 'uninorm/decomposition'.
38185         * tests/uninorm/test-decomposition.c: New file.
38186         * modules/uninorm/decomposition-tests: New file.
38187
38188         New module 'uninorm/decomposition'.
38189         * lib/uninorm/decomposition.c: New file.
38190         * modules/uninorm/decomposition: New file.
38191
38192         New module 'uninorm/decomposition-table'.
38193         * lib/uninorm/decomposition-table.h: New file.
38194         * lib/uninorm/decomposition-table.c: New file.
38195         * lib/uninorm/decomposition-table1.h: New file, generated by
38196         gen-uni-tables.
38197         * lib/uninorm/decomposition-table2.h: New file, generated by
38198         gen-uni-tables.
38199         * modules/uninorm/decomposition-table: New file.
38200
38201         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
38202         (UC_DECOMP_*): New enumeration items.
38203         (get_decomposition): New function.
38204         (struct decomp_table): New type.
38205         (output_decomposition, output_decomposition_tables): New functions.
38206         (unicode_composition_exclusions): New variable.
38207         (fill_composition_exclusions, debug_output_composition_tables): New
38208         functions.
38209         (main): Accept one more argument. Invoke fill_composition_exclusions.
38210         Output decomposition and composition tables.
38211
38212         New module 'uninorm/base'.
38213         * lib/uninorm.h: New file.
38214         * lib/unictype.h: Update comment.
38215         * modules/uninorm/base: New file.
38216
38217 2009-02-21  David Lutterkort  <lutter@redhat.com>
38218
38219         Tests for module 'safe-alloc'.
38220         * tests/test-safe-alloc.c: New file.
38221         * modules/safe-alloc-tests: New file.
38222
38223         New module 'safe-alloc'.
38224         * lib/safe-alloc.h: New file.
38225         * lib/safe-alloc.c: New file.
38226         * m4/safe-alloc.m4: New file.
38227         * modules/safe-alloc: New file.
38228         * doc/safe-alloc.texi: New file.
38229         * doc/gnulib.texi: Include it.
38230         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
38231         safe-alloc.
38232
38233 2009-02-18  Bruno Haible  <bruno@clisp.org>
38234
38235         Fix link error on non-glibc systems.
38236         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
38237         variable.
38238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38239
38240 2009-02-18  Jim Meyering  <meyering@redhat.com>
38241
38242         fts: avoid used-uninitialized error due to recent change
38243         * lib/fts.c (fts_read): Guard uses of the new member,
38244         parent->fts_n_dirs_remaining, since it's not relevant for
38245         the parent of a directory specified on the command-line.
38246
38247 2009-02-17  James Youngman  <jay@gnu.org>
38248             Bruno Haible  <bruno@clisp.org>
38249
38250         * m4/include_next.m4: Reformulate comment.
38251
38252 2009-02-16  Jim Meyering  <meyering@redhat.com>
38253
38254         fts: add #if guards so that the fts_lgpl module still builds
38255         * lib/fts.c: Guard just-added hash-table-using parts with
38256         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
38257         Reported by Simon Josefsson.
38258
38259 2009-02-15  Bruno Haible  <bruno@clisp.org>
38260
38261         * modules/array-mergesort-tests: New file.
38262         * tests/test-array-mergesort.c: New file.
38263
38264         New module 'array-mergesort'.
38265         * modules/array-mergesort: New file.
38266         * lib/array-mergesort.h: New file.
38267
38268 2009-02-15  Bruno Haible  <bruno@clisp.org>
38269
38270         Fix 2009-02-07 commit.
38271         * lib/gen-uni-tables.c (output_predicate, output_category,
38272         output_combclass, output_bidi_category, output_decimal_digit,
38273         output_digit, output_numeric, output_mirror, output_scripts,
38274         output_ident_category, output_simple_mapping): Fix format directives.
38275         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
38276
38277 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
38278
38279         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
38280         fixes are available from IBM.
38281
38282 2009-02-13  Jim Meyering  <meyering@redhat.com>
38283
38284         fts: arrange not to stat non-directories in more cases
38285         This makes GNU find (when it doesn't need to stat each file)
38286         *much* more efficient at traversing reiserfs file systems.
38287         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
38288         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
38289         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
38290         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
38291         (leaf_optimization_applies): New function.
38292         (LCO_hash, LCO_compare): New helper functions.
38293         (link_count_optimize_ok): New function.
38294         (fts_stat): Initialize new member (if dir).
38295         (fts_read): Decrement parent's fts_n_dirs_remaining count if
38296         we've just stat'ed a directory.  Skip the stat call when possible.
38297         ---
38298         Note this AFS-related exchange:
38299         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
38300         and note find's pioctl call in find/fstype.c.
38301         But that is necessary only if you want to enable the
38302         optimization for AFS, and for now, I don't.
38303
38304         fts: move a function definition "up" (no semantic change)
38305         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
38306         "up" to precede upcoming use of a related function.
38307
38308 2009-02-11  Jim Meyering  <meyering@redhat.com>
38309
38310         fts: correct internal computation of nlinks (optimization-related)
38311         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
38312         whether the current entry is a directory, so don't test it.
38313
38314 2009-02-10  Bruno Haible  <bruno@clisp.org>
38315
38316         Tests for module 'uniwbrk/ulc-wordbreaks'.
38317         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
38318         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
38319         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
38320
38321         Tests for module 'uniwbrk/u32-wordbreaks'.
38322         * modules/uniwbrk/u32-wordbreaks-tests: New file.
38323         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
38324
38325         Tests for module 'uniwbrk/u16-wordbreaks'.
38326         * modules/uniwbrk/u16-wordbreaks-tests: New file.
38327         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
38328
38329         Tests for module 'uniwbrk/u8-wordbreaks'.
38330         * modules/uniwbrk/u8-wordbreaks-tests: New file.
38331         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
38332
38333 2009-02-10  Bruno Haible  <bruno@clisp.org>
38334
38335         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
38336         property.
38337         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
38338         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
38339         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
38340
38341 2009-02-10  Simon Josefsson  <simon@josefsson.org>
38342
38343         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
38344         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
38345
38346 2009-02-10  Bruno Haible  <bruno@clisp.org>
38347
38348         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
38349         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
38350         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
38351         * lib/unilbrk/u8-possible-linebreaks.c: Update.
38352         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
38353         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
38354
38355 2009-02-09  Simon Josefsson  <simon@josefsson.org>
38356
38357         * lib/sockets.h (gl_fd_to_handle): New function.
38358
38359         * tests/test-sockets.c: Call gl_fd_to_handle.
38360
38361 2009-02-09  Bruno Haible  <bruno@clisp.org>
38362
38363         * doc/havelib.texi: Document the conventions on bi-arch systems.
38364
38365 2009-02-08  Bruno Haible  <bruno@clisp.org>
38366
38367         Document the AC_LIB_LINKFLAGS macro.
38368         * doc/havelib.texi: New file, mostly written on 2005-05-24.
38369         * doc/gnulib.texi: Include it.
38370
38371 2009-02-08  Bruno Haible  <bruno@clisp.org>
38372
38373         Fix wrong order of sections, compared to TOC.
38374         * doc/gnulib.texi: Include relocatable-maint.texi after the
38375         "Regular expressions" node, not before.
38376
38377 2009-02-08  Bruno Haible  <bruno@clisp.org>
38378
38379         Tests for module 'unicase/totitle'.
38380         * modules/unicase/totitle-tests: New file.
38381
38382         Tests for module 'unicase/tolower'.
38383         * modules/unicase/tolower-tests: New file.
38384
38385         Tests for module 'unicase/toupper'.
38386         * modules/unicase/toupper-tests: New file.
38387         * tests/unicase/test-mapping-part1.h: New file.
38388         * tests/unicase/test-mapping-part2.h: New file.
38389
38390         New module 'unicase/totitle'.
38391         * modules/unicase/totitle: New file.
38392         * lib/unicase/totitle.c: New file.
38393
38394         New module 'unicase/tolower'.
38395         * modules/unicase/tolower: New file.
38396         * lib/unicase/tolower.c: New file.
38397
38398         New module 'unicase/toupper'.
38399         * modules/unicase/toupper: New file.
38400         * lib/unicase/toupper.c: New file.
38401         * lib/unicase/simple-mapping.h: New file.
38402
38403         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
38404         (mapping_table): New structure.
38405         (output_simple_mapping): New function.
38406         (main): Invoke output_simple_mapping_test and output_simple_mapping.
38407         * modules/gen-uni-tables (Description): Update.
38408         * lib/unicase/toupper.h: New file, automatically generated by
38409         gen-uni-tables.
38410         * lib/unicase/tolower.h: New file, automatically generated by
38411         gen-uni-tables.
38412         * lib/unicase/totitle.h: New file, automatically generated by
38413         gen-uni-tables.
38414         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
38415         gen-uni-tables.
38416         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
38417         gen-uni-tables.
38418         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
38419         gen-uni-tables.
38420
38421         New module 'unicase/base'.
38422         * modules/unicase/base: New file.
38423         * lib/unicase.h: New file.
38424
38425 2009-02-08  Bruno Haible  <bruno@clisp.org>
38426
38427         New module 'uniwbrk/ulc-wordbreaks'.
38428         * modules/uniwbrk/ulc-wordbreaks: New file.
38429         * lib/uniwbrk/ulc-wordbreaks.c: New file.
38430
38431         New module 'uniwbrk/u32-wordbreaks'.
38432         * modules/uniwbrk/u32-wordbreaks: New file.
38433         * lib/uniwbrk/u32-wordbreaks.c: New file.
38434
38435         New module 'uniwbrk/u16-wordbreaks'.
38436         * modules/uniwbrk/u16-wordbreaks: New file.
38437         * lib/uniwbrk/u16-wordbreaks.c: New file.
38438
38439         New module 'uniwbrk/u8-wordbreaks'.
38440         * modules/uniwbrk/u8-wordbreaks: New file.
38441         * lib/uniwbrk/u8-wordbreaks.c: New file.
38442         * lib/uniwbrk/u-wordbreaks.h: New file.
38443
38444         New module 'uniwbrk/table'.
38445         * modules/uniwbrk/table: New file.
38446         * lib/uniwbrk/wbrktable.h: New file.
38447         * lib/uniwbrk/wbrktable.c: New file.
38448
38449         New module 'uniwbrk/wordbreak-property'.
38450         * modules/uniwbrk/wordbreak-property: New file.
38451         * lib/uniwbrk/wordbreak-property.c: New file.
38452
38453         * lib/gen-uni-tables.c (WBP_*): New enum items.
38454         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
38455         (unicode_org_wbp): New variable.
38456         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
38457         New functions.
38458         (wbp_table): New structure.
38459         (output_wbp, output_wbrk_tables): New functions.
38460         (main): Accept additional argument. Invoke fill_org_wbp,
38461         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
38462         output_wbrk_tables.
38463         * modules/gen-uni-tables (Description): Update.
38464         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
38465         gen-uni-tables.
38466
38467         New module 'uniwbrk/base'.
38468         * modules/uniwbrk/base: New file.
38469         * lib/uniwbrk.h: New file.
38470
38471 2009-02-08  Bruno Haible  <bruno@clisp.org>
38472
38473         Update to Unicode 5.1.0.
38474         * lib/gen-uni-tables.c (is_property_alphabetic): Include
38475         U+2185..U+2188.
38476         (is_property_default_ignorable_code_point): Don't include characters
38477         of category Cc or Cs and not-a-characters.
38478         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
38479         U+0D79, U+109E, U+109F, U+A60C.
38480         * lib/unictype/bidi_of.h: Regenerated.
38481         * lib/unictype/blocks.h: Regenerated.
38482         * lib/unictype/categ_C.h: Regenerated.
38483         * lib/unictype/categ_Cf.h: Regenerated.
38484         * lib/unictype/categ_Cn.h: Regenerated.
38485         * lib/unictype/categ_L.h: Regenerated.
38486         * lib/unictype/categ_Ll.h: Regenerated.
38487         * lib/unictype/categ_Lm.h: Regenerated.
38488         * lib/unictype/categ_Lo.h: Regenerated.
38489         * lib/unictype/categ_Lu.h: Regenerated.
38490         * lib/unictype/categ_M.h: Regenerated.
38491         * lib/unictype/categ_Mc.h: Regenerated.
38492         * lib/unictype/categ_Me.h: Regenerated.
38493         * lib/unictype/categ_Mn.h: Regenerated.
38494         * lib/unictype/categ_N.h: Regenerated.
38495         * lib/unictype/categ_Nd.h: Regenerated.
38496         * lib/unictype/categ_Nl.h: Regenerated.
38497         * lib/unictype/categ_No.h: Regenerated.
38498         * lib/unictype/categ_P.h: Regenerated.
38499         * lib/unictype/categ_Pd.h: Regenerated.
38500         * lib/unictype/categ_Pe.h: Regenerated.
38501         * lib/unictype/categ_Pf.h: Regenerated.
38502         * lib/unictype/categ_Pi.h: Regenerated.
38503         * lib/unictype/categ_Po.h: Regenerated.
38504         * lib/unictype/categ_Ps.h: Regenerated.
38505         * lib/unictype/categ_S.h: Regenerated.
38506         * lib/unictype/categ_Sk.h: Regenerated.
38507         * lib/unictype/categ_Sm.h: Regenerated.
38508         * lib/unictype/categ_So.h: Regenerated.
38509         * lib/unictype/categ_of.h: Regenerated.
38510         * lib/unictype/combining.h: Regenerated.
38511         * lib/unictype/ctype_alnum.h: Regenerated.
38512         * lib/unictype/ctype_alpha.h: Regenerated.
38513         * lib/unictype/ctype_graph.h: Regenerated.
38514         * lib/unictype/ctype_lower.h: Regenerated.
38515         * lib/unictype/ctype_print.h: Regenerated.
38516         * lib/unictype/ctype_punct.h: Regenerated.
38517         * lib/unictype/ctype_upper.h: Regenerated.
38518         * lib/unictype/decdigit.h: Regenerated.
38519         * lib/unictype/digit.h: Regenerated.
38520         * lib/unictype/mirror.h: Regenerated.
38521         * lib/unictype/numeric.h: Regenerated.
38522         * lib/unictype/pr_alphabetic.h: Regenerated.
38523         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
38524         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
38525         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
38526         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
38527         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
38528         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
38529         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
38530         * lib/unictype/pr_combining.h: Regenerated.
38531         * lib/unictype/pr_dash.h: Regenerated.
38532         * lib/unictype/pr_decimal_digit.h: Regenerated.
38533         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
38534         * lib/unictype/pr_deprecated.h: Regenerated.
38535         * lib/unictype/pr_diacritic.h: Regenerated.
38536         * lib/unictype/pr_extender.h: Regenerated.
38537         * lib/unictype/pr_format_control.h: Regenerated.
38538         * lib/unictype/pr_grapheme_base.h: Regenerated.
38539         * lib/unictype/pr_grapheme_extend.h: Regenerated.
38540         * lib/unictype/pr_grapheme_link.h: Regenerated.
38541         * lib/unictype/pr_id_continue.h: Regenerated.
38542         * lib/unictype/pr_id_start.h: Regenerated.
38543         * lib/unictype/pr_ideographic.h: Regenerated.
38544         * lib/unictype/pr_ignorable_control.h: Regenerated.
38545         * lib/unictype/pr_lowercase.h: Regenerated.
38546         * lib/unictype/pr_math.h: Regenerated.
38547         * lib/unictype/pr_numeric.h: Regenerated.
38548         * lib/unictype/pr_other_alphabetic.h: Regenerated.
38549         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
38550         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
38551         * lib/unictype/pr_other_id_continue.h: Regenerated.
38552         * lib/unictype/pr_other_lowercase.h: Regenerated.
38553         * lib/unictype/pr_other_math.h: Regenerated.
38554         * lib/unictype/pr_punctuation.h: Regenerated.
38555         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38556         * lib/unictype/pr_soft_dotted.h: Regenerated.
38557         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38558         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38559         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38560         * lib/unictype/pr_uppercase.h: Regenerated.
38561         * lib/unictype/pr_xid_continue.h: Regenerated.
38562         * lib/unictype/pr_xid_start.h: Regenerated.
38563         * lib/unictype/pr_zero_width.h: Regenerated.
38564         * lib/unictype/scripts.h: Regenerated.
38565         * lib/unictype/scripts_byname.gperf: Regenerated.
38566         * lib/unictype/sy_java_ident.h: Regenerated.
38567         * lib/unilbrk/lbrkprop1.h: Regenerated.
38568         * lib/unilbrk/lbrkprop2.h: Regenerated.
38569         * tests/unictype/test-categ_C.c: Regenerated.
38570         * tests/unictype/test-categ_Cf.c: Regenerated.
38571         * tests/unictype/test-categ_Cn.c: Regenerated.
38572         * tests/unictype/test-categ_L.c: Regenerated.
38573         * tests/unictype/test-categ_Ll.c: Regenerated.
38574         * tests/unictype/test-categ_Lm.c: Regenerated.
38575         * tests/unictype/test-categ_Lo.c: Regenerated.
38576         * tests/unictype/test-categ_Lu.c: Regenerated.
38577         * tests/unictype/test-categ_M.c: Regenerated.
38578         * tests/unictype/test-categ_Mc.c: Regenerated.
38579         * tests/unictype/test-categ_Me.c: Regenerated.
38580         * tests/unictype/test-categ_Mn.c: Regenerated.
38581         * tests/unictype/test-categ_N.c: Regenerated.
38582         * tests/unictype/test-categ_Nd.c: Regenerated.
38583         * tests/unictype/test-categ_Nl.c: Regenerated.
38584         * tests/unictype/test-categ_No.c: Regenerated.
38585         * tests/unictype/test-categ_P.c: Regenerated.
38586         * tests/unictype/test-categ_Pd.c: Regenerated.
38587         * tests/unictype/test-categ_Pe.c: Regenerated.
38588         * tests/unictype/test-categ_Pf.c: Regenerated.
38589         * tests/unictype/test-categ_Pi.c: Regenerated.
38590         * tests/unictype/test-categ_Po.c: Regenerated.
38591         * tests/unictype/test-categ_Ps.c: Regenerated.
38592         * tests/unictype/test-categ_S.c: Regenerated.
38593         * tests/unictype/test-categ_Sk.c: Regenerated.
38594         * tests/unictype/test-categ_Sm.c: Regenerated.
38595         * tests/unictype/test-categ_So.c: Regenerated.
38596         * tests/unictype/test-ctype_alnum.c: Regenerated.
38597         * tests/unictype/test-ctype_alpha.c: Regenerated.
38598         * tests/unictype/test-ctype_graph.c: Regenerated.
38599         * tests/unictype/test-ctype_lower.c: Regenerated.
38600         * tests/unictype/test-ctype_print.c: Regenerated.
38601         * tests/unictype/test-ctype_punct.c: Regenerated.
38602         * tests/unictype/test-ctype_upper.c: Regenerated.
38603         * tests/unictype/test-decdigit.h: Regenerated.
38604         * tests/unictype/test-digit.h: Regenerated.
38605         * tests/unictype/test-numeric.h: Regenerated.
38606         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38607         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38608         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38609         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38610         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38611         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38612         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38613         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38614         * tests/unictype/test-pr_combining.c: Regenerated.
38615         * tests/unictype/test-pr_dash.c: Regenerated.
38616         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38617         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38618         * tests/unictype/test-pr_deprecated.c: Regenerated.
38619         * tests/unictype/test-pr_diacritic.c: Regenerated.
38620         * tests/unictype/test-pr_extender.c: Regenerated.
38621         * tests/unictype/test-pr_format_control.c: Regenerated.
38622         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38623         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38624         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38625         * tests/unictype/test-pr_id_continue.c: Regenerated.
38626         * tests/unictype/test-pr_id_start.c: Regenerated.
38627         * tests/unictype/test-pr_ideographic.c: Regenerated.
38628         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38629         * tests/unictype/test-pr_lowercase.c: Regenerated.
38630         * tests/unictype/test-pr_math.c: Regenerated.
38631         * tests/unictype/test-pr_numeric.c: Regenerated.
38632         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38633         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38634         Regenerated.
38635         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38636         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38637         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38638         * tests/unictype/test-pr_other_math.c: Regenerated.
38639         * tests/unictype/test-pr_punctuation.c: Regenerated.
38640         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38641         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38642         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38643         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38644         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38645         * tests/unictype/test-pr_uppercase.c: Regenerated.
38646         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38647         * tests/unictype/test-pr_xid_start.c: Regenerated.
38648         * tests/unictype/test-pr_zero_width.c: Regenerated.
38649
38650         Update to Unicode 5.1.0.
38651         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38652         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38653         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38654         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38655         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38656         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38657         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38658         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38659         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38660         (nonspacing_table_ind): Update.
38661         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38662
38663         Update to Unicode 5.1.0.
38664         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38665         code transform.
38666         * lib/uniname/uniname.c (unicode_character_name,
38667         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38668         * lib/uniname/uninames.h: Regenerated.
38669         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38670
38671 2009-02-07  Bruno Haible  <bruno@clisp.org>
38672
38673         Merge gen-ctype and gen-lbrk into a single program.
38674         * lib/gen-uni-tables.c: New file, incorporating
38675         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38676         Add directory prefixes to the names of the generated files.
38677         * lib/unictype/gen-ctype.c: Remove file.
38678         * lib/unilbrk/gen-lbrk.c: Remove file.
38679         * modules/gen-uni-tables: New file.
38680         * modules/unictype/gen-ctype: Remove file.
38681         * modules/unilbrk/gen-lbrk: Remove file.
38682
38683 2009-02-07  Bruno Haible  <bruno@clisp.org>
38684
38685         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38686
38687         New module 'unistr/u32-strcoll'.
38688         * modules/unistr/u32-strcoll: New file.
38689         * lib/unistr/u32-strcoll.c: New file.
38690
38691         New module 'unistr/u16-strcoll'.
38692         * modules/unistr/u16-strcoll: New file.
38693         * lib/unistr/u16-strcoll.c: New file.
38694
38695         New module 'unistr/u8-strcoll'.
38696         * modules/unistr/u8-strcoll: New file.
38697         * lib/unistr/u8-strcoll.c: New file.
38698         * lib/unistr/u-strcoll.h: New file.
38699
38700 2009-02-07  Bruno Haible  <bruno@clisp.org>
38701
38702         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38703         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38704         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38705         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38706         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38707         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38708
38709 2009-02-07  Bruno Haible  <bruno@clisp.org>
38710
38711         Make 64-bit clean.
38712         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38713         output_combclass, output_bidi_category, output_decimal_digit,
38714         output_digit, output_numeric, output_mirror, output_scripts,
38715         output_ident_category): Use proper width specifier in format strings.
38716
38717 2009-02-07  Bruno Haible  <bruno@clisp.org>
38718
38719         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38720         failure behaviour.
38721
38722 2009-02-07  Jim Meyering  <meyering@redhat.com>
38723
38724         regex: avoid compilation failure with upcoming gcc-4.4
38725         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38726         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38727         "... error: integer overflow in preprocessor expression".
38728
38729 2009-02-05  Ben Pfaff  <blp@gnu.org>
38730
38731         Fix link errors on Windows when close module is used.
38732         * modules/close: Add $(LIB_CLOSE) to Link section.
38733         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38734         $(LIB_CLOSE) on Windows.
38735
38736 2009-02-05  Jim Meyering  <meyering@redhat.com>
38737
38738         still avoid unused-parameter warnings, but do it cleanly
38739         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38740         (get_fs_usage): Cast to void instead.
38741         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38742         (dev_from_mount_options, read_file_system_list): Cast to void.
38743         Prompted by Bruno Haible.
38744
38745 2009-02-04  Jim Meyering  <meyering@redhat.com>
38746
38747         fsusage.c: correct copyright year
38748         * lib/fsusage.c: Reflect year in which the change is pushed into
38749
38750         avoid misc. warnings
38751         * lib/fsusage.c (UNUSED_PARAM): Define.
38752         (get_fs_usage): Mark parameter "disk" as unused.
38753         * lib/getugroups.c (getgrent): Use "void" in prototype.
38754         * lib/mountlist.c: Mark unused parameters.
38755         (read_file_system_list): Declare a local with "const".
38756         * lib/nanosleep.c (getnow): Declare static.
38757         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38758
38759         dirfd: set errno upon failure
38760         * lib/dirfd.c: Include <errno.h>.
38761         Set errno to ENOTSUP when returning -1.
38762         * modules/dirfd (Depends-on): Add errno.
38763         Suggested by John Kodis <kodis@comcast.net>.
38764
38765 2009-02-01  Bruno Haible  <bruno@clisp.org>
38766
38767         Don't assume sizeof (long) >= sizeof (void *).
38768         * lib/memcmp.c: Include stdint.h.
38769         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38770         srcp2 to 'const byte *'.
38771         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38772         types to uintptr_t.
38773         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38774         * modules/memcmp (Depends-on): Add stdint.
38775         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38776
38777 2009-01-30  Eric Blake  <ebb9@byu.net>
38778
38779         fix more require-before-expand issues
38780         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38781         expand, AC_PROG_AWK.
38782         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38783
38784 2009-01-28  Eric Blake  <ebb9@byu.net>
38785
38786         version-etc: use consistent URL formatting
38787         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38788         Improve formatting.  Use fputs for string without %.
38789
38790 2009-01-28  Jim Meyering  <meyering@redhat.com>
38791
38792         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38793         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38794         "underquoted definition of NAME" from autoconf-2.59.
38795
38796 2009-01-28  Bruno Haible  <bruno@clisp.org>
38797
38798         * doc/gnulib.texi: Add "Obsolete modules" to index.
38799
38800 2009-01-28  Jim Meyering  <meyering@redhat.com>
38801
38802         useless-if-before-free: recognize more variants
38803         * build-aux/useless-if-before-free: Also recognize e.g.,
38804         if (NULL != p) free (p);
38805
38806 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38807
38808         test-getaddrinfo: skip (don't fail) this test when there's no network
38809         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38810         on the presumption that it means you lack network access.
38811
38812 2009-01-26  Jim Meyering  <meyering@redhat.com>
38813
38814         fflush: avoid warnings on modern systems
38815         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38816         pos and result, into scopes where they're used.
38817
38818 2009-01-26  Eric Blake  <ebb9@byu.net>
38819
38820         Silence warning reintroduced by recent extensions patch.
38821         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38822         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38823         autoconf.
38824
38825         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38826         * m4/00gnulib.m4: New file.
38827         * gnulib-tool (func_get_filelist): Always use it.
38828         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38829         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38830
38831 2009-01-25  Bruno Haible  <bruno@clisp.org>
38832
38833         Make test-quotearg work on MacOS X and AIX.
38834         * tests/test-quotearg.sh: New file.
38835         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38836         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38837         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38838         include <libintl.h>.
38839         (fake_locale): Remove variable.
38840         (gettext, dgettext, dcgettext): Remove functions.
38841         (main): Instead of setting a fake locale, set a real locale. Call
38842         textdomain and bindtextdomain.
38843         * modules/quotearg-tests (Files): Add the new files.
38844         (Depends-on): Add gettext, setenv, unsetenv.
38845         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38846         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38847         Augment TESTS_ENVIRONMENT.
38848
38849 2009-01-25  Bruno Haible  <bruno@clisp.org>
38850
38851         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38852         fr_FR.ISO8859-1 locale on MacOS X.
38853         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38854         ja_JP.eucJP locale on MacOS X.
38855         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38856         zh_CN.GB18030 locale on MacOS X.
38857
38858 2009-01-25  Bruno Haible  <bruno@clisp.org>
38859
38860         Avoid link errors on MacOS X 10.3.
38861         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38862         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38863
38864 2009-01-25  Bruno Haible  <bruno@clisp.org>
38865
38866         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38867         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38868         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38869         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38870         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38871         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38872         posix_spawnattr_init, posix_spawnattr_setsigmask,
38873         posix_spawnattr_setflags, posix_spawnattr_destroy.
38874
38875         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38876         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38877         * modules/execute (Files): Remove m4/posix_spawn.m4.
38878         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38879         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38880         posix_spawnattr_init, posix_spawnattr_setsigmask,
38881         posix_spawnattr_setflags, posix_spawnattr_destroy.
38882
38883 2009-01-25  Bruno Haible  <bruno@clisp.org>
38884
38885         * lib/glthread/threadlib.c: Include <stdlib.h>.
38886
38887 2009-01-25  Bruno Haible  <bruno@clisp.org>
38888
38889         * lib/glthread/threadlib.c (dummy): New declaration.
38890
38891 2009-01-25  Bruno Haible  <bruno@clisp.org>
38892
38893         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38894         multibyte characters also for the GB18030 encoding. Don't crash when
38895         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38896
38897 2009-01-25  Bruno Haible  <bruno@clisp.org>
38898
38899         Avoid redefining 'struct random_data' on OSF/1 5.1.
38900         * lib/stdlib.in.h: Include <random.h> if it exists.
38901         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38902         HAVE_RANDOM_H. Include <random.h> when testing whether
38903         'struct random_data' exists.
38904         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38905
38906 2009-01-25  Bruno Haible  <bruno@clisp.org>
38907
38908         Don't install charset.alias on MacOS X >= 10.3.
38909         * lib/localcharset.c (DARWIN7): New macro.
38910         (get_charset_aliases): Hardcode the result for Darwin7.
38911         * modules/localcharset (install-exec-local): Don't install
38912         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38913
38914 2009-01-25  Bruno Haible  <bruno@clisp.org>
38915
38916         Don't install charset.alias on mingw and Cygwin.
38917         * modules/localcharset (install-exec-local): Don't install
38918         charset.alias on mingw and Cygwin, if the file does not yet exist.
38919         The result for these platforms is hardcoded in localcharset.c.
38920
38921 2009-01-25  Bruno Haible  <bruno@clisp.org>
38922
38923         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38925         before requiring AC_USE_SYSTEM_EXTENSIONS.
38926
38927 2009-01-25  Jim Meyering  <meyering@redhat.com>
38928
38929         c-strtod: avoid warnings
38930         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38931         "assignment discards qualifiers from pointer target type" warnings.
38932
38933 2009-01-24  Bruno Haible  <bruno@clisp.org>
38934
38935         Add support for non-UTF-8 locales on MacOS X.
38936         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38937         canonical encodings. For Darwin 7 and newer, don't map traditional
38938         encodings to UTF-8.
38939         Reported by Vincent Lefevre <vincent@vinc17.org>
38940         at <http://savannah.gnu.org/bugs/?25235>.
38941
38942 2009-01-24  Bruno Haible  <bruno@clisp.org>
38943
38944         * doc/gnulib.texi (Obsolete modules): New section.
38945         Reported by Mike Frysinger <vapier@gentoo.org>.
38946
38947 2009-01-24  Bruno Haible  <bruno@clisp.org>
38948
38949         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38950         (%.dvi): New rule.
38951
38952 2009-01-24  Bruno Haible  <bruno@clisp.org>
38953
38954         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38955         Reported by Eric Blake.
38956
38957 2009-01-24  Bruno Haible  <bruno@clisp.org>
38958
38959         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38960         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38961         Reported by Gary V. Vaughan <gary@gnu.org>.
38962
38963 2009-01-24  Bruno Haible  <bruno@clisp.org>
38964
38965         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38966
38967 2009-01-23  Bruno Haible  <bruno@clisp.org>
38968
38969         Make c-strtod, c-strtold usable in libraries.
38970         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38971         (C_STRTOD): Call strdup instead of xstrdup.
38972         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38973         * modules/c-strtold (Depends-on): Likewise.
38974         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38975         * NEWS: Mention the change.
38976         Reported by Michael Gold <mgold@ncf.ca>.
38977
38978 2009-01-23  Jim Meyering  <meyering@redhat.com>
38979
38980         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38981         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38982         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38983
38984 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38985
38986         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38987         GNU CoreUtils.
38988         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38989         * modules/version-etc (Description): Update.
38990
38991 2009-01-22  Bruno Haible  <bruno@clisp.org>
38992
38993         Cache the C locale object.
38994         * lib/c-strtod.c (c_locale_cache): New variable.
38995         (c_locale): New function.
38996         (C_STRTOD): Use it, and don't call freelocale.
38997         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38998         Suggested by Paolo Bonzini.
38999
39000 2009-01-21  Bruno Haible  <bruno@clisp.org>
39001
39002         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39003         conditions other than overflow.
39004
39005 2009-01-21  Bruno Haible  <bruno@clisp.org>
39006
39007         * lib/c-strtod.c: Include errno.h.
39008         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39009         value from STRTOD_L and STRTOD.
39010
39011 2009-01-21  Bruno Haible  <bruno@clisp.org>
39012         and Jim Meyering  <meyering@redhat.com>
39013
39014         nanosleep: skip configure test (fail it) for apple universal builds
39015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39016         universal builds, assume that nanosleep does not work.
39017         * modules/nanosleep (Depends-on): Add multiarch.
39018
39019         mktime: skip configure test (fail it) for apple universal builds
39020         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39021         universal builds, assume that mktime does not work.
39022         * modules/mktime (Depends-on): Add multiarch.
39023
39024 2009-01-21  Eric Blake  <ebb9@byu.net>
39025
39026         multiarch: avoid expand-before-require warning
39027         * modules/multiarch (configure.ac): Require, rather than expand,
39028         gl_MULTIARCH.
39029         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
39030         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
39031         enforce that all clients require it.  Partial reversion of
39032         2008-12-29 patch.
39033
39034         error: avoid expand-before-require warning
39035         * modules/errno (configure.ac): Require, rather than expand,
39036         gl_HEADER_ERRNO_H.
39037         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
39038         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
39039         enforce that all clients require it.
39040
39041         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
39042         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
39043         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
39044         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
39045
39046 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
39047
39048         Revert:
39049         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39050
39051         regex: do not depend on obsolete modules.
39052         * modules/regex: Remove memcmp and memmove.
39053
39054 2009-01-20  Bruno Haible  <bruno@clisp.org>
39055
39056         Make the 'link' module link on Windows NT 4.
39057         * lib/link.c (_WIN32_WINNT): Don't define.
39058         (CreateHardLinkFuncType): New type.
39059         (CreateHardLinkFunc, initialized): New variables.
39060         (initialize): New function.
39061         (link): Invoke CreateHardLink indirectly through the function pointer.
39062
39063 2009-01-20  Bruno Haible  <bruno@clisp.org>
39064
39065         Fix compilation failure on mingw.
39066         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39067
39068 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39069
39070         * doc/c-strtod.texi: Mention a couple of restrictions.
39071
39072 2009-01-20  Jim Meyering  <meyering@redhat.com>
39073
39074         gettimeofday: move more declarations out of functions
39075         * lib/gettimeofday.c: Move extern declarations of tzset and
39076         gmtime out of containing functions.  Prompted by Bruno Haible.
39077
39078 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39079
39080         regex: do not depend on obsolete modules.
39081         * modules/regex: Remove memcmp and memmove.
39082
39083 2009-01-19  Bruno Haible  <bruno@clisp.org>
39084
39085         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39086         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39087         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39088         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39089         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39090
39091 2009-01-19  Bruno Haible  <bruno@clisp.org>
39092
39093         * tests/test-link.c: Include <errno.h>.
39094         (main): Exit with code 77 when a hard link cannot be created due to
39095         the file system.
39096         * tests/test-link.sh: Skip test when a hard link cannot be created due
39097         to the file system.
39098         Suggested by Eric Blake.
39099
39100 2009-01-19  Martin Lambers  <marlam@marlam.de>
39101
39102         * modules/link-tests: New file.
39103         * tests/test-link.sh: New file.
39104         * tests/test-link.c: New file.
39105
39106 2009-01-19  Eric Blake  <ebb9@byu.net>
39107
39108         doc: mention another function added in cygwin 1.7.0
39109         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39110         Another new function in cygwin 1.7.
39111
39112 2009-01-19  Bruno Haible  <bruno@clisp.org>
39113
39114         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39115         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39116         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39117         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39118         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39119         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39120         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39121         * m4/md4.m4 (gl_MD4): Likewise.
39122         * m4/md5.m4 (gl_MD5): Likewise.
39123         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
39124         * m4/sha1.m4 (gl_SHA1): Likewise.
39125         * m4/sha256.m4 (gl_SHA256): Likewise.
39126         * m4/sha512.m4 (gl_SHA512): Likewise.
39127
39128 2009-01-19  Bruno Haible  <bruno@clisp.org>
39129
39130         * modules/uniname/uniname-tests (Depends-on): Add progname.
39131         * tests/uniname/test-uninames.c: Include progname.h.
39132         (main): Call set_program_name.
39133
39134         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
39135         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
39136         (main): Call set_program_name.
39137
39138         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
39139         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
39140         (main): Call set_program_name.
39141
39142         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
39143         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
39144         (main): Call set_program_name.
39145
39146         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
39147         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
39148         (main): Call set_program_name.
39149
39150         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
39151         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
39152         (main): Call set_program_name.
39153
39154         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
39155         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
39156         (main): Call set_program_name.
39157
39158         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
39159         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
39160         (main): Call set_program_name.
39161
39162         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
39163         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
39164         (main): Call set_program_name.
39165
39166 2009-01-19  Eric Blake  <ebb9@byu.net>
39167
39168         test-unistd: test previous patch
39169         * tests/test-unistd.c: Test *_FILENO macros.
39170
39171         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
39172         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39173         Guarantee a definition.
39174         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
39175         * modules/unistd-safer (Depends-on): Add dependency on unistd.
39176         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
39177         * lib/dup-safer.c (STDERR_FILENO): Likewise.
39178         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39179         Likewise.
39180         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
39181         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
39182         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
39183         Likewise.
39184         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
39185         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
39186         (STDERR_FILENO): Likewise.
39187         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
39188         (STDERR_FILENO): Likewise.
39189         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
39190         (STDERR_FILENO): Likewise.
39191         Reported by Elbert Pol.
39192
39193 2009-01-19  Eric Blake  <ebb9@byu.net>
39194
39195         doc: mention more functions added in cygwin 1.7.0
39196         * doc/posix-functions/abort.texi (abort): Update wording related
39197         to cygwin.
39198         * doc/posix-functions/daylight.texi (daylight): Likewise.
39199         * doc/posix-functions/optarg.texi (optarg): Likewise.
39200         * doc/posix-functions/optarg.texi (opterr): Likewise.
39201         * doc/posix-functions/optarg.texi (optind): Likewise.
39202         * doc/posix-functions/optarg.texi (optopt): Likewise.
39203         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
39204         worked in 1.5.x, and was withdrawn in 1.7.
39205         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
39206         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
39207         cygwin versions.
39208         * doc/posix-functions/perror.texi (perror): Likewise.
39209         * doc/posix-functions/printf.texi (printf): Likewise.
39210         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
39211         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
39212         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39213         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39214         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
39215         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
39216         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39217         Likewise.
39218         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39219         Likewise.
39220         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
39221         this function.
39222         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
39223         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
39224         Likewise.
39225         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
39226         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
39227         * doc/posix-functions/confstr.texi (confstr): Likewise.
39228         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
39229         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
39230         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
39231         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
39232         * doc/posix-functions/fputws.texi (fputws): Likewise.
39233         * doc/posix-functions/fwide.texi (fwide): Likewise.
39234         * doc/posix-functions/getwc.texi (getwc): Likewise.
39235         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
39236         * doc/posix-functions/putwc.texi (putwc): Likewise.
39237         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
39238         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
39239         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
39240         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
39241         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
39242         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
39243         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
39244         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
39245         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
39246         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
39247         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
39248
39249 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39250
39251         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
39252         * lib/ioctl.c: Include <sys/ioctl.h>.
39253
39254 2009-01-19  Simon Josefsson  <simon@josefsson.org>
39255
39256         * modules/getdate-tests (Depends-on): Add progname.
39257         * tests/test-getdate.c: Use progname module, to avoid link errors
39258         on non-glibc systems.
39259
39260 2009-01-18  Simon Josefsson  <simon@josefsson.org>
39261
39262         * modules/filenamecat-tests (Depends-on): Add progname.
39263         * modules/fstrcmp-tests (Depends-on): Likewise.
39264
39265         * tests/test-filenamecat.c: Use progname module, to avoid link
39266         errors on non-glibc systems.
39267         * tests/test-fstrcmp.c: Likewise.
39268
39269 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
39270
39271         gettimeofday: avoid warning: nested extern declaration of 'localtime'
39272         * lib/gettimeofday.c: Move extern declaration out of function.
39273
39274 2009-01-18  Bruno Haible  <bruno@clisp.org>
39275
39276         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
39277         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
39278         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
39279
39280 2009-01-18  Bruno Haible  <bruno@clisp.org>
39281
39282         * lib/strftime.c (MEMPCPY): Remove unused macro.
39283         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
39284
39285 2009-01-18  Martin Lambers  <marlam@marlam.de>
39286
39287         New module 'link'.
39288         * lib/unistd.in.h (link): New declaration.
39289         * lib/link.c: New file.
39290         * m4/link.m4: New file.
39291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
39292         HAVE_LINK.
39293         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
39294         * modules/link: New file.
39295         * doc/posix-functions/link.texi: Mention the new module.
39296
39297 2009-01-18  Bruno Haible  <bruno@clisp.org>
39298
39299         * tests/test-avltree_list.c (main): Call set_program_name.
39300         * tests/test-avltree_oset.c (main): Likewise.
39301         * tests/test-obstack-printf.c: Include progname.h.
39302         (main): Call set_program_name.
39303         * tests/test-quotearg.c: Include progname.h.
39304         (main): Call set_program_name.
39305         * tests/test-xmemdup0.c: Include progname.h.
39306         (main): Call set_program_name.
39307
39308 2009-01-18  Bruno Haible  <bruno@clisp.org>
39309
39310         New module 'alphasort'.
39311         * lib/dirent.in.h (alphasort): New declaration.
39312         * lib/alphasort.c: New file, from glibc with modifications.
39313         * m4/alphasort.m4: New file.
39314         * modules/alphasort: New file.
39315         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
39316         HAVE_ALPHASORT.
39317         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
39318         HAVE_ALPHASORT.
39319         * doc/posix-functions/alphasort.texi: Mention the new module and the
39320         portability problems.
39321
39322 2009-01-18  Bruno Haible  <bruno@clisp.org>
39323
39324         New module 'scandir'.
39325         * lib/dirent.in.h (scandir): New declaration.
39326         * lib/scandir.c: New file, from glibc with modifications.
39327         * m4/scandir.m4: New file.
39328         * modules/scandir: New file.
39329         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
39330         HAVE_SCANDIR.
39331         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
39332         HAVE_SCANDIR.
39333         * doc/posix-functions/scandir.texi: Mention the new module and the
39334         portability problems.
39335
39336 2009-01-17  Bruno Haible  <bruno@clisp.org>
39337
39338         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
39339         Update documentation.
39340         (func_remove_suffix): Escape all dots in the suffix. Update
39341         documentation.
39342         (func_filter_filelist): Update documentation.
39343         Reported by Ralf Wildenhues.
39344
39345 2009-01-17  Bruno Haible  <bruno@clisp.org>
39346
39347         * modules/dprintf-posix-tests: New file.
39348         * tests/test-dprintf-posix.sh: New file.
39349         * tests/test-dprintf-posix.c: New file.
39350
39351         New modules 'dprintf', 'dprintf-posix'.
39352         * lib/stdio.in.h (dprintf): New declaration.
39353         * lib/dprintf.c: New file.
39354         * m4/dprintf.m4: New file.
39355         * m4/dprintf-posix.m4: New file.
39356         * modules/dprintf: New file.
39357         * modules/dprintf-posix: New file.
39358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
39359         HAVE_DPRINTF, REPLACE_DPRINTF.
39360         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
39361         HAVE_DPRINTF, REPLACE_DPRINTF.
39362         * doc/posix-functions/dprintf.texi: Mention the new modules.
39363
39364 2009-01-17  Bruno Haible  <bruno@clisp.org>
39365
39366         * modules/vdprintf-posix-tests: New file.
39367         * tests/test-vdprintf-posix.sh: New file.
39368         * tests/test-vdprintf-posix.c: New file.
39369
39370         New modules 'vdprintf', 'vdprintf-posix'.
39371         * lib/stdio.in.h (vdprintf): New declaration.
39372         * lib/vdprintf.c: New file.
39373         * m4/vdprintf.m4: New file.
39374         * m4/vdprintf-posix.m4: New file.
39375         * modules/vdprintf: New file.
39376         * modules/vdprintf-posix: New file.
39377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
39378         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39379         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
39380         HAVE_VDPRINTF, REPLACE_VDPRINTF.
39381         * doc/posix-functions/vdprintf.texi: Mention the new modules.
39382
39383 2009-01-17  Bruno Haible  <bruno@clisp.org>
39384
39385         Fix replacement of fopen on mingw.
39386         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
39387         mingw.
39388
39389 2009-01-17  Bruno Haible  <bruno@clisp.org>
39390
39391         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
39392         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
39393
39394 2009-01-17  Bruno Haible  <bruno@clisp.org>
39395
39396         Avoid test-fflush2.sh failure on mingw.
39397         * tests/test-fflush2.c: Include binary-io.h.
39398         (main): Put standard input into binary mode.
39399         * modules/fflush-tests (Depends-on): Add binary-io.
39400
39401 2009-01-17  Bruno Haible  <bruno@clisp.org>
39402
39403         * lib/wchar.in.h: In another particular situation, include only the
39404         system's <wchar.h> file.
39405         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
39406         Reported by Albert Chin-A-Young <china@thewrittenword.com>
39407         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
39408
39409 2009-01-17  Bruno Haible  <bruno@clisp.org>
39410
39411         Support for stripping executables in --enable-relocatable.
39412         * build-aux/install-reloc: Expect one more argument, or an environment
39413         variable RELOC_STRIP_PROG. If set, strip the destination program and
39414         its wrapper.
39415         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
39416         RELOC_STRIP_PROG.
39417         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
39418         to set RELOCATABLE_STRIP.
39419         * NEWS: Mention the new Makefile requirement.
39420
39421 2009-01-17  Bruno Haible  <bruno@clisp.org>
39422
39423         * build-aux/install-reloc: Remove debugging information left over by
39424         C compiler on MacOS X.
39425
39426 2009-01-17  Bruno Haible  <bruno@clisp.org>
39427
39428         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
39429         * lib/progreloc.c (find_executable): Fix type of pointer passed to
39430         _NSGetExecutablePath.
39431
39432 2009-01-16  Jim Meyering  <meyering@redhat.com>
39433
39434         strerror: avoid warnings about discarding "const"
39435         * lib/strerror.c (rpl_strerror): Instead of returning a const
39436         string from each and every "case", use a variable, and add a single
39437         cast after the switch.
39438
39439 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
39440
39441         * lib/arpa_inet.in.h: Add extern "C" block for C++.
39442
39443 2009-01-16  Bruno Haible  <bruno@clisp.org>
39444
39445         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
39446         array initializer syntax that also works in C++ mode.
39447         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39448
39449 2009-01-16  Jim Meyering  <meyering@redhat.com>
39450
39451         poll: suppress a warning
39452         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
39453         to ignore "...unsigned expression < 0 is always false" warnings.
39454
39455 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
39456
39457         poll: remove declarations of unused variables
39458         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
39459         sockbuf and optlen.
39460
39461 2009-01-15  Bruno Haible  <bruno@clisp.org>
39462
39463         Make fflush-after-ungetc POSIX compliant on BSD systems.
39464         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
39465         (clear_ungetc_buffer): Implement also for other systems.
39466         (rpl_fflush): On glibc systems, invoke
39467         clear_ungetc_buffer_preserving_position. Otherwise, invoke
39468         clear_ungetc_buffer after fetching the stream's position, not before.
39469
39470 2009-01-15  Bruno Haible  <bruno@clisp.org>
39471
39472         Make fflush-after-ungetc POSIX compliant on glibc systems.
39473         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
39474         after ungetc.
39475         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
39476         (rpl_fflush): On glibc systems, simply call the system's fflush
39477         function after clearing the ungetc buffer.
39478         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
39479         Instead, lseek only to the end of file, then use the system's fseeko
39480         for the rest. On glibc systems, reset the EOF indicator bit.
39481
39482 2009-01-15  Jim Meyering  <meyering@redhat.com>
39483
39484         openmp.m4: revert quote-adding change, for portability to older autoconf
39485         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
39486         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
39487         Simon Josefsson noticed the problem when using autoconf-2.61.
39488
39489 2009-01-15  Bruno Haible  <bruno@clisp.org>
39490
39491         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
39492         * tests/test-fflush2.c (ASSERT): Always fail.
39493         (main): Add two tests for fflush() after ungetc(), taking into account
39494         the Austin Group's clarification.
39495         Suggested by Eric Blake.
39496
39497 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
39498
39499         mktime.m4: remove K&R-style function prototypes
39500         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
39501         for the Sun C++ compiler.
39502
39503 2009-01-14  Bruno Haible  <bruno@clisp.org>
39504
39505         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
39506         while including <wchar.h>.
39507         * lib/wchar.in.h: In two particular situations on HP-UX, include only
39508         the system's <wchar.h> file.
39509         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39510
39511 2009-01-14  Bruno Haible  <bruno@clisp.org>
39512
39513         * m4/csharp.m4: Don't mention gettext on the serial number line.
39514         * m4/csharpexec.m4: Likewise.
39515         * m4/eaccess.m4: Likewise.
39516         * m4/javaexec.m4: Likewise.
39517         * m4/sig_atomic_t.m4: Likewise.
39518         * m4/tmpdir.m4: Likewise.
39519         * m4/intldir.m4: Bump gettext version.
39520         * m4/lib-ld.m4: Likewise.
39521
39522 2009-01-14  Bruno Haible  <bruno@clisp.org>
39523
39524         * lib/progname.c (set_program_name): Add more comments.
39525         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39526
39527 2009-01-14  Simon Josefsson  <simon@josefsson.org>
39528
39529         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
39530         were sys/stat.h does not define it.
39531
39532 2009-01-14  Jim Meyering  <meyering@redhat.com>
39533
39534         many *.m4 files: improve m4 quoting
39535         99% of this change was performed by running the following commands:
39536         git ls-files | grep '\.m4$' | xargs perl -pi \
39537           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
39538           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39539           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
39540           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
39541         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
39542         The remainder were to add Copyright dates, increment serial numbers,
39543         undo some changes in comments, exclude m4/intl.m4, and add quotes
39544         around the "1" in ",1" where the unusual spacing prohibited the
39545         above regexps from doing the job.  For more details, see
39546         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
39547         * m4/acl.m4: Modified.
39548         * m4/afs.m4: Likewise.
39549         * m4/alloca.m4: Likewise.
39550         * m4/argp.m4: Likewise.
39551         * m4/argz.m4: Likewise.
39552         * m4/atexit.m4: Likewise.
39553         * m4/bison-i18n.m4: Likewise.
39554         * m4/bison.m4: Likewise.
39555         * m4/byteswap.m4: Likewise.
39556         * m4/c-stack.m4: Likewise.
39557         * m4/c-strtod.m4: Likewise.
39558         * m4/calloc.m4: Likewise.
39559         * m4/canonicalize-lgpl.m4: Likewise.
39560         * m4/chown.m4: Likewise.
39561         * m4/clock_time.m4: Likewise.
39562         * m4/codeset.m4: Likewise.
39563         * m4/copy-file.m4: Likewise.
39564         * m4/csharp.m4: Likewise.
39565         * m4/csharpcomp.m4: Likewise.
39566         * m4/csharpexec.m4: Likewise.
39567         * m4/d-ino.m4: Likewise.
39568         * m4/d-type.m4: Likewise.
39569         * m4/dirfd.m4: Likewise.
39570         * m4/double-slash-root.m4: Likewise.
39571         * m4/eaccess.m4: Likewise.
39572         * m4/eealloc.m4: Likewise.
39573         * m4/environ.m4: Likewise.
39574         * m4/errno_h.m4: Likewise.
39575         * m4/euidaccess.m4: Likewise.
39576         * m4/execute.m4: Likewise.
39577         * m4/fatal-signal.m4: Likewise.
39578         * m4/fchdir.m4: Likewise.
39579         * m4/fcntl_h.m4: Likewise.
39580         * m4/fileblocks.m4: Likewise.
39581         * m4/filenamecat.m4: Likewise.
39582         * m4/findprog.m4: Likewise.
39583         * m4/flexmember.m4: Likewise.
39584         * m4/fnmatch.m4: Likewise.
39585         * m4/fopen.m4: Likewise.
39586         * m4/fpending.m4: Likewise.
39587         * m4/fprintf-posix.m4: Likewise.
39588         * m4/free.m4: Likewise.
39589         * m4/frexp.m4: Likewise.
39590         * m4/frexpl.m4: Likewise.
39591         * m4/fsusage.m4: Likewise.
39592         * m4/ftruncate.m4: Likewise.
39593         * m4/gc-camellia.m4: Likewise.
39594         * m4/gc-random.m4: Likewise.
39595         * m4/gc.m4: Likewise.
39596         * m4/getaddrinfo.m4: Likewise.
39597         * m4/getcwd-abort-bug.m4: Likewise.
39598         * m4/getcwd-path-max.m4: Likewise.
39599         * m4/getdate.m4: Likewise.
39600         * m4/getdomainname.m4: Likewise.
39601         * m4/getgroups.m4: Likewise.
39602         * m4/gethostname.m4: Likewise.
39603         * m4/gethrxtime.m4: Likewise.
39604         * m4/getline.m4: Likewise.
39605         * m4/getloadavg.m4: Likewise.
39606         * m4/getndelim2.m4: Likewise.
39607         * m4/getpass.m4: Likewise.
39608         * m4/gettext.m4: Likewise.
39609         * m4/gettime.m4: Likewise.
39610         * m4/gettimeofday.m4: Likewise.
39611         * m4/gnulib-common.m4: Likewise.
39612         * m4/group-member.m4: Likewise.
39613         * m4/host-os.m4: Likewise.
39614         * m4/iconv.m4: Likewise.
39615         * m4/iconv_open.m4: Likewise.
39616         * m4/inet_ntop.m4: Likewise.
39617         * m4/inet_pton.m4: Likewise.
39618         * m4/inline.m4: Likewise.
39619         * m4/intldir.m4: Likewise.
39620         * m4/intlmacosx.m4: Likewise.
39621         * m4/intmax.m4: Likewise.
39622         * m4/intmax_t.m4: Likewise.
39623         * m4/inttypes.m4: Likewise.
39624         * m4/inttypes_h.m4: Likewise.
39625         * m4/inttypes-pri.m4: Likewise.
39626         * m4/isapipe.m4: Likewise.
39627         * m4/isnand.m4: Likewise.
39628         * m4/isnanf.m4: Likewise.
39629         * m4/isnanl.m4: Likewise.
39630         * m4/javacomp.m4: Likewise.
39631         * m4/javaexec.m4: Likewise.
39632         * m4/jm-winsz1.m4: Likewise.
39633         * m4/jm-winsz2.m4: Likewise.
39634         * m4/lchown.m4: Likewise.
39635         * m4/lcmessage.m4: Likewise.
39636         * m4/ldexpl.m4: Likewise.
39637         * m4/lib-ld.m4: Likewise.
39638         * m4/lib-link.m4: Likewise.
39639         * m4/libsigsegv.m4: Likewise.
39640         * m4/link-follow.m4: Likewise.
39641         * m4/localcharset.m4: Likewise.
39642         * m4/locale-fr.m4: Likewise.
39643         * m4/locale-ja.m4: Likewise.
39644         * m4/locale-tr.m4: Likewise.
39645         * m4/locale-zh.m4: Likewise.
39646         * m4/lock.m4: Likewise.
39647         * m4/longlong.m4: Likewise.
39648         * m4/ls-mntd-fs.m4: Likewise.
39649         * m4/lstat.m4: Likewise.
39650         * m4/malloc.m4: Likewise.
39651         * m4/mathl.m4: Likewise.
39652         * m4/mbrtowc.m4: Likewise.
39653         * m4/mbstate_t.m4: Likewise.
39654         * m4/mbswidth.m4: Likewise.
39655         * m4/memchr.m4: Likewise.
39656         * m4/memcmp.m4: Likewise.
39657         * m4/memcpy.m4: Likewise.
39658         * m4/memmem.m4: Likewise.
39659         * m4/memmove.m4: Likewise.
39660         * m4/mempcpy.m4: Likewise.
39661         * m4/memrchr.m4: Likewise.
39662         * m4/memset.m4: Likewise.
39663         * m4/minmax.m4: Likewise.
39664         * m4/mkdir-slash.m4: Likewise.
39665         * m4/mkdtemp.m4: Likewise.
39666         * m4/mktime.m4: Likewise.
39667         * m4/mmap-anon.m4: Likewise.
39668         * m4/mountlist.m4: Likewise.
39669         * m4/nanosleep.m4: Likewise.
39670         * m4/nls.m4: Likewise.
39671         * m4/nocrash.m4: Likewise.
39672         * m4/open.m4: Likewise.
39673         * m4/openat.m4: Likewise.
39674         * m4/openmp.m4: Likewise.
39675         * m4/pathmax.m4: Likewise.
39676         * m4/perl.m4: Likewise.
39677         * m4/physmem.m4: Likewise.
39678         * m4/pipe.m4: Likewise.
39679         * m4/po.m4: Likewise.
39680         * m4/poll.m4: Likewise.
39681         * m4/posixtm.m4: Likewise.
39682         * m4/posixver.m4: Likewise.
39683         * m4/printf-frexp.m4: Likewise.
39684         * m4/printf-frexpl.m4: Likewise.
39685         * m4/printf-posix.m4: Likewise.
39686         * m4/printf-posix-rpl.m4: Likewise.
39687         * m4/printf.m4: Likewise.
39688         * m4/progtest.m4: Likewise.
39689         * m4/putenv.m4: Likewise.
39690         * m4/readline.m4: Likewise.
39691         * m4/readlink.m4: Likewise.
39692         * m4/readutmp.m4: Likewise.
39693         * m4/realloc.m4: Likewise.
39694         * m4/regex.m4: Likewise.
39695         * m4/relocatable.m4: Likewise.
39696         * m4/relocatable-lib.m4: Likewise.
39697         * m4/rename-dest-slash.m4: Likewise.
39698         * m4/rename.m4: Likewise.
39699         * m4/rmdir-errno.m4: Likewise.
39700         * m4/rmdir.m4: Likewise.
39701         * m4/roundf.m4: Likewise.
39702         * m4/roundl.m4: Likewise.
39703         * m4/rpmatch.m4: Likewise.
39704         * m4/save-cwd.m4: Likewise.
39705         * m4/selinux-selinux-h.m4: Likewise.
39706         * m4/setenv.m4: Likewise.
39707         * m4/settime.m4: Likewise.
39708         * m4/sig2str.m4: Likewise.
39709         * m4/sig_atomic_t.m4: Likewise.
39710         * m4/signalblocking.m4: Likewise.
39711         * m4/signbit.m4: Likewise.
39712         * m4/sigpipe.m4: Likewise.
39713         * m4/sockets.m4: Likewise.
39714         * m4/sockpfaf.m4: Likewise.
39715         * m4/st_dm_mode.m4: Likewise.
39716         * m4/stat-time.m4: Likewise.
39717         * m4/stdbool.m4: Likewise.
39718         * m4/stdint.m4: Likewise.
39719         * m4/stdint_h.m4: Likewise.
39720         * m4/stpcpy.m4: Likewise.
39721         * m4/stpncpy.m4: Likewise.
39722         * m4/strcase.m4: Likewise.
39723         * m4/strchrnul.m4: Likewise.
39724         * m4/strcspn.m4: Likewise.
39725         * m4/strdup.m4: Likewise.
39726         * m4/strftime.m4: Likewise.
39727         * m4/strndup.m4: Likewise.
39728         * m4/strnlen.m4: Likewise.
39729         * m4/strpbrk.m4: Likewise.
39730         * m4/strptime.m4: Likewise.
39731         * m4/strsep.m4: Likewise.
39732         * m4/strtod.m4: Likewise.
39733         * m4/strtoimax.m4: Likewise.
39734         * m4/strtok_r.m4: Likewise.
39735         * m4/strtol.m4: Likewise.
39736         * m4/strtoll.m4: Likewise.
39737         * m4/strtoul.m4: Likewise.
39738         * m4/strtoull.m4: Likewise.
39739         * m4/strtoumax.m4: Likewise.
39740         * m4/strverscmp.m4: Likewise.
39741         * m4/threadlib.m4: Likewise.
39742         * m4/timegm.m4: Likewise.
39743         * m4/tm_gmtoff.m4: Likewise.
39744         * m4/tmpdir.m4: Likewise.
39745         * m4/tmpfile.m4: Likewise.
39746         * m4/tzset.m4: Likewise.
39747         * m4/uintmax_t.m4: Likewise.
39748         * m4/unlinkdir.m4: Likewise.
39749         * m4/unlocked-io.m4: Likewise.
39750         * m4/uptime.m4: Likewise.
39751         * m4/userspec.m4: Likewise.
39752         * m4/utimbuf.m4: Likewise.
39753         * m4/utime.m4: Likewise.
39754         * m4/utimes-null.m4: Likewise.
39755         * m4/utimes.m4: Likewise.
39756         * m4/vararrays.m4: Likewise.
39757         * m4/vasnprintf.m4: Likewise.
39758         * m4/vfprintf-posix.m4: Likewise.
39759         * m4/vprintf-posix.m4: Likewise.
39760         * m4/wait-process.m4: Likewise.
39761         * m4/wchar_t.m4: Likewise.
39762         * m4/wint_t.m4: Likewise.
39763         * m4/write-any-file.m4: Likewise.
39764         * m4/yield.m4: Likewise.
39765
39766 2009-01-13  Bruno Haible  <bruno@clisp.org>
39767
39768         Avoid test-copy-file.sh failures when ACL support insufficient.
39769         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39770         TESTS_ENVIRONMENT.
39771         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39772         Reported by Jim Meyering.
39773
39774 2009-01-13  Bruno Haible  <bruno@clisp.org>
39775
39776         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39777         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39778         * modules/unistdio/u8-printf-parse (Files): Likewise.
39779         * modules/unistdio/u32-printf-parse (Files): Likewise.
39780         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39781
39782 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39783
39784         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39785         and m4/inttypes_h.m4 too.
39786
39787 2009-01-12  Eric Blake  <ebb9@byu.net>
39788
39789         tests: IRIX 6.2 cc can't compile -0.0 into .data
39790         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39791         rather than at compile-time.
39792         * tests/test-floorl.c (minus_zero): Likewise.
39793         * tests/test-frexpl.c (minus_zero): Likewise.
39794         * tests/test-isnan.c (minus_zerol): Likewise.
39795         * tests/test-isnanl.h (minus_zero): Likewise.
39796         * tests/test-ldexpl.c (minus_zero): Likewise.
39797         * tests/test-roundl.c (minus_zero): Likewise.
39798         * tests/test-signbit.c (minus_zerol): Likewise.
39799         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39800         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39801         * tests/test-truncl.c (minus_zero): Likewise.
39802         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39803         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39804         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39805
39806 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39807
39808         regex: fix glibc bug 9697
39809         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39810         handling.
39811
39812 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39813
39814         regex: fix glibc bug 697
39815         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39816         being NULL also if there are no backreferences.
39817
39818 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39819
39820         regex: merge glibc changes
39821         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39822         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39823         re_string_skip_chars, re_string_reconstruct): Likewise.
39824         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39825
39826 2009-01-07  Jim Meyering  <meyering@redhat.com>
39827
39828         poll: filter through cppi
39829         * lib/poll.c: Indent cpp directives to reflect nesting.
39830
39831 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39832
39833         poll: don't return uninitialized
39834         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39835
39836 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39837
39838         avoid compile failure on AIX 6.1
39839         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39840         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39841
39842 2009-01-04  Jim Meyering  <meyering@redhat.com>
39843
39844         remove duplicate inclusion of <stdio.h>
39845         * tests/test-fprintf-posix.c: Likewise.
39846         * tests/test-printf-posix.c: Likewise.
39847         * tests/test-snprintf-posix.c: Likewise.
39848         * tests/test-sprintf-posix.c: Likewise.
39849         * tests/test-vasprintf-posix.c: Likewise.
39850         * tests/test-vfprintf-posix.c: Likewise.
39851         * tests/test-vprintf-posix.c: Likewise.
39852         * tests/test-vsnprintf-posix.c: Likewise.
39853         * tests/test-vsprintf-posix.c: Likewise.
39854
39855 2009-01-03  Jim Meyering  <meyering@redhat.com>
39856
39857         gnulib-tool: fix sed-based filtering
39858         * gnulib-tool (func_filter_filelist): Remove extra backslash
39859         in sed_fff_filter definition.
39860
39861 2009-01-02  Jim Meyering  <meyering@redhat.com>
39862
39863         strftime: avoid compilation failure on Solaris 2.6
39864         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39865         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39866         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39867         be available.  Reported by Tom G. Christensen.  Details in
39868         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39869
39870 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39871             Bruno Haible  <bruno@clisp.org>
39872
39873         Speed up gnulib-tool by doing more string processing through shell
39874         built-ins.
39875         * gnulib-tool (fast_func_append): New variable.
39876         (func_remove_prefix, func_remove_suffix): New functions.
39877         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39878         (func_filter_filelist): New function.
39879         (func_get_dependencies): Use func_remove_suffix instead of sed.
39880         (func_get_automake_snippet): Use func_filter_filelist instead of a
39881         subshell and sed invocation.
39882
39883 2009-01-01  Bruno Haible  <bruno@clisp.org>
39884
39885         Fix a security bug.
39886         * gnulib-tool (func_import, import, update): Don't allow the characters
39887         '"', '$', '`', '\' in macro arguments that become part of commands that
39888         are evaluated.
39889
39890 2009-01-01  Bruno Haible  <bruno@clisp.org>
39891
39892         * gnulib-tool (func_reset_sigpipe): Add more comments.
39893
39894 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39895
39896         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39897         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39898         already know the answer.
39899
39900 2009-01-01  Jim Meyering  <meyering@redhat.com>
39901
39902         * lib/version-etc.c (version_etc_va): Update copyright year.
39903
39904 2008-12-30  Bruno Haible  <bruno@clisp.org>
39905
39906         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39907         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39908         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39909
39910 2008-12-29  Eric Blake  <ebb9@byu.net>
39911
39912         multiarch: avoid autoconf AC_REQUIRE bug
39913         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39914         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39915         2.63 and older.
39916         Reported by Bruno Haible, and analyzed in
39917         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39918
39919 2008-12-29  Bruno Haible  <bruno@clisp.org>
39920
39921         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39922         files in subdirectories correctly.
39923         Reported by Ralf Wildenhues.
39924
39925 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39926
39927         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39928         rather than 'join FILE -', for Solaris join.
39929
39930 2008-12-29  Bruno Haible  <bruno@clisp.org>
39931
39932         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39933         quoting.
39934         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39935         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39936         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39937         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39938         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39939         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39940         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39941         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39942         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39943         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39944         * m4/nls.m4 (AM_NLS): Likewise.
39945         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39946         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39947         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39948         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39949         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39950         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39951         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39952         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39953         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39954         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39955         * m4/xsize.m4 (gl_XSIZE): Likewise.
39956         Suggested by Jim Meyering.
39957
39958 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39959
39960         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39961         * lib/parse-duration.c: use a switch instead of cascading if's.
39962
39963 2008-12-29  Eric Blake  <ebb9@byu.net>
39964
39965         wchar.h: supply WEOF on Irix 5.3
39966         * lib/wchar.in.h (wint_t): Also supply WEOF.
39967         * lib/wctype.in.h (wint_t): Likewise.
39968         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39969         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39970         Reported by Tom G. Christensen.
39971
39972 2008-12-26  Bruno Haible  <bruno@clisp.org>
39973
39974         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39975         i486, i586, i686.
39976
39977 2008-12-26  Bruno Haible  <bruno@clisp.org>
39978
39979         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39980
39981 2008-12-26  Bruno Haible  <bruno@clisp.org>
39982
39983         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39984         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39985         not __STDC_CONSTANT_MACROS.
39986         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39987
39988 2008-12-25  Bruno Haible  <bruno@clisp.org>
39989
39990         Add support for universal builds to vasnprintf.
39991         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39992         universal builds, guess no.
39993         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39994         * modules/vasprintf-posix (Depends-on): Likewise.
39995         * modules/fprintf-posix (Depends-on): Likewise.
39996         * modules/vfprintf-posix (Depends-on): Likewise.
39997         * modules/snprintf-posix (Depends-on): Likewise.
39998         * modules/vsnprintf-posix (Depends-on): Likewise.
39999         * modules/sprintf-posix (Depends-on): Likewise.
40000         * modules/vsprintf-posix (Depends-on): Likewise.
40001         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40002         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40003         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40004         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40005         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40006         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40007         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40008
40009         Add support for universal builds to <inttypes.h>.
40010         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40011         _SCNu64_PREFIX): In Apple
40012         universal builds, define directly, using _LP64.
40013         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40014         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40015         * modules/inttypes (Depends-on): Add multiarch.
40016         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40017
40018         Add support for universal builds to <stdint.h>.
40019         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40020         universal builds, define directly, using _LP64.
40021         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
40022         Apple universal builds, don't test for the size and suffix of ptrdiff_t
40023         and size_t.
40024         * modules/stdint (Depends-on): Add multiarch.
40025         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40026
40027         New module 'multiarch'.
40028         * modules/multiarch: New file.
40029         * m4/multiarch.m4: New file.
40030
40031 2008-12-25  Bruno Haible  <bruno@clisp.org>
40032
40033         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
40034
40035 2008-12-25  Bruno Haible  <bruno@clisp.org>
40036
40037         * modules/btowc (License): Relicense under LGPLv2+.
40038         * modules/mbsinit (License): Likewise.
40039         * modules/mbrtowc (License): Likewise.
40040         * modules/wcrtomb (License): Likewise.
40041         * modules/streq (License): Likewise.
40042         Reported by David Lutterkort <lutter@redhat.com>.
40043
40044 2008-12-23  Bruno Haible  <bruno@clisp.org>
40045
40046         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
40047
40048 2008-12-23  Bruno Haible  <bruno@clisp.org>
40049
40050         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
40051         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
40052         GETADDRINFO_LIB, not in LIBS.
40053         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40054         * modules/canon-host (Link): Likewise.
40055         * NEWS: Mention the change.
40056         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40057         GETADDRINFO_LIB.
40058
40059 2008-12-22  Bruno Haible  <bruno@clisp.org>
40060
40061         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40062         * doc/posix-functions/iswalpha_l.texi: Likewise.
40063         * doc/posix-functions/iswblank_l.texi: Likewise.
40064         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40065         * doc/posix-functions/iswctype_l.texi: Likewise.
40066         * doc/posix-functions/iswdigit_l.texi: Likewise.
40067         * doc/posix-functions/iswgraph_l.texi: Likewise.
40068         * doc/posix-functions/iswlower_l.texi: Likewise.
40069         * doc/posix-functions/iswprint_l.texi: Likewise.
40070         * doc/posix-functions/iswpunct_l.texi: Likewise.
40071         * doc/posix-functions/iswspace_l.texi: Likewise.
40072         * doc/posix-functions/iswupper_l.texi: Likewise.
40073         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40074         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40075         * doc/posix-functions/open_wmemstream.texi: Likewise.
40076         * doc/posix-functions/swscanf.texi: Likewise.
40077         * doc/posix-functions/towctrans_l.texi: Likewise.
40078         * doc/posix-functions/towlower.texi: Likewise.
40079         * doc/posix-functions/towlower_l.texi: Likewise.
40080         * doc/posix-functions/towupper.texi: Likewise.
40081         * doc/posix-functions/towupper_l.texi: Likewise.
40082         * doc/posix-functions/vfwprintf.texi: Likewise.
40083         * doc/posix-functions/vfwscanf.texi: Likewise.
40084         * doc/posix-functions/vswscanf.texi: Likewise.
40085         * doc/posix-functions/vwprintf.texi: Likewise.
40086         * doc/posix-functions/vwscanf.texi: Likewise.
40087         * doc/posix-functions/wcpcpy.texi: Likewise.
40088         * doc/posix-functions/wcpncpy.texi: Likewise.
40089         * doc/posix-functions/wcscasecmp.texi: Likewise.
40090         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40091         * doc/posix-functions/wcscoll_l.texi: Likewise.
40092         * doc/posix-functions/wcsdup.texi: Likewise.
40093         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40094         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40095         * doc/posix-functions/wcsnlen.texi: Likewise.
40096         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40097         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40098         * doc/posix-functions/wctrans_l.texi: Likewise.
40099         * doc/posix-functions/wctype_l.texi: Likewise.
40100         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40101         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40102         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40103         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40104         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40105         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40106         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40107         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40108         * doc/glibc-functions/wcschrnul.texi: Likewise.
40109         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40110         * doc/glibc-functions/wcstod_l.texi: Likewise.
40111         * doc/glibc-functions/wcstof_l.texi: Likewise.
40112         * doc/glibc-functions/wcstol_l.texi: Likewise.
40113         * doc/glibc-functions/wcstold_l.texi: Likewise.
40114         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40115         * doc/glibc-functions/wcstoq.texi: Likewise.
40116         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40117         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40118         * doc/glibc-functions/wcstouq.texi: Likewise.
40119         * doc/glibc-functions/wmempcpy.texi: Likewise.
40120
40121 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40122             Eric Blake  <ebb9@byu.net>
40123             Paolo Bonzini  <bonzini@gnu.org>
40124             Bruno Haible  <bruno@clisp.org>
40125
40126         Make c-stack work on Haiku.
40127         * lib/c-stack.c (SA_ONSTACK): Define fallback.
40128         (c_stack_action): Use SA_ONSTACK flag.
40129
40130 2008-12-22  Bruno Haible  <bruno@clisp.org>
40131
40132         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
40133
40134 2008-12-22  Bruno Haible  <bruno@clisp.org>
40135
40136         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
40137         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
40138         being overridden.
40139         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
40140         New macros.
40141         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
40142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
40143         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
40144         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
40145
40146 2008-12-22  Bruno Haible  <bruno@clisp.org>
40147
40148         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
40149         from test code.
40150
40151 2008-12-22  Eric Blake  <ebb9@byu.net>
40152
40153         Avoid gcc warnings on cygwin.
40154         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
40155         Avoid unused variable.
40156         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
40157         Likewise.
40158
40159 2008-12-22  Bruno Haible  <bruno@clisp.org>
40160
40161         Remove HAVE_MBRTOWC conditionals.
40162         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
40163         (mbscasecmp): Assume mbrtowc function.
40164         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
40165         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
40166         * lib/mbschr.c: Include mbuiter.h unconditionally.
40167         (mbschr): Assume mbrtowc function.
40168         * lib/mbscspn.c: Include mbuiter.h unconditionally.
40169         (mbscspn): Assume mbrtowc function.
40170         * lib/mbslen.c: Include mbuiter.h unconditionally.
40171         (mbslen): Assume mbrtowc function.
40172         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
40173         (mbsncasecmp): Assume mbrtowc function.
40174         * lib/mbsnlen.c: Include mbiter.h unconditionally.
40175         (mbsnlen): Assume mbrtowc function.
40176         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
40177         (mbspbrk): Assume mbrtowc function.
40178         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
40179         (mbspcasecmp): Assume mbrtowc function.
40180         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
40181         (mbsrchr): Assume mbrtowc function.
40182         * lib/mbssep.c: Include mbuiter.h unconditionally.
40183         (mbssep): Assume mbrtowc function.
40184         * lib/mbsspn.c: Include mbuiter.h unconditionally.
40185         (mbsspn): Assume mbrtowc function.
40186         * lib/mbsstr.c: Include mbuiter.h unconditionally.
40187         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
40188         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
40189         (mbstok_r): Assume mbrtowc function.
40190         * lib/propername.c: Include mbuiter.h unconditionally.
40191         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
40192         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
40193         (trim2): Assume mbrtowc function.
40194         * lib/mbswidth.c (mbsinit): Remove fallback definition.
40195         (mbsnwidth): Assume mbrtowc function.
40196         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
40197         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
40198         fallback definitions.
40199         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
40200
40201 2008-12-22  Bruno Haible  <bruno@clisp.org>
40202
40203         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
40204
40205 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
40206
40207         * modules/regex: Request emulations for the mb*/wc* functions we need.
40208         * m4/regex.m4: Don't look for those functions here.
40209         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
40210
40211 2008-12-22  Bruno Haible  <bruno@clisp.org>
40212
40213         * modules/fnmatch (Depends-on): Remove duplicated dependency.
40214
40215 2008-12-21  Bruno Haible  <bruno@clisp.org>
40216
40217         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
40218         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
40219         (Include): Remove conditionalization.
40220         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
40221         (Include): Remove conditionalization.
40222         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
40223         (Include): Remove conditionalization.
40224         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
40225         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40226         * NEWS: Mention the change.
40227         Reported by Alan Hourihane <alanh@fairlite.co.uk>
40228         via Sergey Poznyakoff <gray@gnu.org.ua>.
40229
40230 2008-12-21  Bruno Haible  <bruno@clisp.org>
40231
40232         * MODULES.html.sh (Extended multibyte and wide character utilities
40233         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
40234         wcrtomb, wcsrtombs.
40235         (Support for systems lacking POSIX:2008): Add accept, bind, close,
40236         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
40237         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
40238         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
40239
40240 2008-12-21  Bruno Haible  <bruno@clisp.org>
40241
40242         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
40243
40244 2008-12-21  Bruno Haible  <bruno@clisp.org>
40245
40246         * modules/wcsnrtombs-tests: New file.
40247         * tests/test-wcsnrtombs1.sh: New file.
40248         * tests/test-wcsnrtombs2.sh: New file.
40249         * tests/test-wcsnrtombs3.sh: New file.
40250         * tests/test-wcsnrtombs4.sh: New file.
40251         * tests/test-wcsnrtombs.c: New file.
40252
40253         New module 'wcsnrtombs'.
40254         * lib/wchar.in.h (wcsnrtombs): New declaration.
40255         * lib/wcsnrtombs.c: New file.
40256         * lib/wcsrtombs-state.c: New file.
40257         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
40258         (internal_state): Remove variable.
40259         * m4/wcsnrtombs.m4: New file.
40260         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
40261         compilation units.
40262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
40263         HAVE_WCSNRTOMBS.
40264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
40265         HAVE_WCSNRTOMBS.
40266         * modules/wcsnrtombs: New file.
40267         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
40268         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
40269
40270 2008-12-21  Bruno Haible  <bruno@clisp.org>
40271
40272         * modules/wcsrtombs-tests: New file.
40273         * tests/test-wcsrtombs1.sh: New file.
40274         * tests/test-wcsrtombs2.sh: New file.
40275         * tests/test-wcsrtombs3.sh: New file.
40276         * tests/test-wcsrtombs4.sh: New file.
40277         * tests/test-wcsrtombs.c: New file.
40278
40279         New module 'wcsrtombs'.
40280         * lib/wchar.in.h (wcsrtombs): New declaration.
40281         * lib/wcsrtombs.c: New file.
40282         * m4/wcsrtombs.m4: New file.
40283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
40284         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40285         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
40286         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
40287         * modules/wcsrtombs: New file.
40288         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
40289         bugs.
40290
40291 2008-12-21  Bruno Haible  <bruno@clisp.org>
40292
40293         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
40294         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
40295         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
40296         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
40297         if not correct.
40298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
40299         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
40300         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40301         m4/locale-zh.m4, m4/codeset.m4.
40302         * doc/posix-functions/wcrtomb.texi: Document the bug.
40303
40304 2008-12-21  Bruno Haible  <bruno@clisp.org>
40305
40306         Work around a btowc() bug on IRIX 6.5.
40307         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
40308         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
40309         REPLACE_WTOBC if not.
40310         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
40311         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
40312         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
40313
40314 2008-12-21  Bruno Haible  <bruno@clisp.org>
40315
40316         * modules/wcrtomb-tests: New file.
40317         * tests/test-wcrtomb.sh: New file.
40318         * tests/test-wcrtomb.c: New file.
40319
40320         New module 'wcrtomb'.
40321         * lib/wchar.in.h (wcrtomb): New declaration.
40322         * lib/wcrtomb.c: New file.
40323         * m4/wcrtomb.m4: New file.
40324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
40325         HAVE_WCRTOMB.
40326         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
40327         HAVE_WCRTOMB.
40328         * modules/wcrtomb: New file.
40329         * doc/posix-functions/wcrtomb.texi: Mention the new module.
40330
40331 2008-12-21  Bruno Haible  <bruno@clisp.org>
40332
40333         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
40334         * modules/mbsrtowcs (Files): Likewise.
40335         * modules/wctob (Files): Likewise.
40336         * modules/c-strcase-tests (Files): Likewise.
40337         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40338         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40339         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40340         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40341         * modules/vasnprintf-posix-tests (Files): Likewise.
40342
40343 2008-12-21  William Pursell  <bill.pursell@gmail.com>
40344
40345         gitlog-to-changelog: pass all command-line arguments to git-log
40346         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
40347         it is sometimes convenient to filter the commits in various ways.
40348         gitlog-to-changelog only allows --since to specify a start date,
40349         but git-log itself supports many other filtering mechanisms.
40350         At the moment, I want to filter by branch name.  Rather than
40351         adding a --branch option to gitlog-to-changelog, it seems more
40352         flexible to simply pass all options directly to git-log and let
40353         git do the work.  Notice that this effectively makes --since a
40354         redundant option for gitlog-to-changelog, but removing it would
40355         require current usage to change since calls would then require
40356         an additional '--'.
40357
40358 2008-12-21  Bruno Haible  <bruno@clisp.org>
40359
40360         * modules/mbsnrtowcs-tests: New file.
40361         * tests/test-mbsnrtowcs1.sh: New file.
40362         * tests/test-mbsnrtowcs2.sh: New file.
40363         * tests/test-mbsnrtowcs3.sh: New file.
40364         * tests/test-mbsnrtowcs4.sh: New file.
40365         * tests/test-mbsnrtowcs.c: New file.
40366
40367         New module 'mbsnrtowcs'.
40368         * lib/wchar.in.h (mbsnrtowcs): New declaration.
40369         * lib/mbsnrtowcs.c: New file.
40370         * lib/mbsrtowcs-state.c: New file.
40371         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
40372         (internal_state): Remove variable.
40373         * m4/mbsnrtowcs.m4: New file.
40374         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
40375         compilation units.
40376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
40377         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40378         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
40379         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
40380         * modules/mbsnrtowcs: New file.
40381         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
40382         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
40383         portability problem.
40384
40385 2008-12-21  Bruno Haible  <bruno@clisp.org>
40386
40387         Work around mbsrtowcs bug.
40388         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
40389         (gl_FUNC_MBSRTOWCS): Invoke it.
40390         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40391         m4/locale-zh.m4.
40392         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
40393
40394 2008-12-21  Bruno Haible  <bruno@clisp.org>
40395
40396         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
40397
40398 2008-12-21  Bruno Haible  <bruno@clisp.org>
40399
40400         Update doc for AIX.
40401         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
40402         16-bit wchar_t type.
40403         * doc/posix-functions/btowc.texi: Likewise.
40404         * doc/posix-functions/fgetwc.texi: Likewise.
40405         * doc/posix-functions/fgetws.texi: Likewise.
40406         * doc/posix-functions/fputwc.texi: Likewise.
40407         * doc/posix-functions/fputws.texi: Likewise.
40408         * doc/posix-functions/fwide.texi: Likewise.
40409         * doc/posix-functions/fwprintf.texi: Likewise.
40410         * doc/posix-functions/fwscanf.texi: Likewise.
40411         * doc/posix-functions/getwchar.texi: Likewise.
40412         * doc/posix-functions/getwc.texi: Likewise.
40413         * doc/posix-functions/iswalnum.texi: Likewise.
40414         * doc/posix-functions/iswalpha.texi: Likewise.
40415         * doc/posix-functions/iswblank.texi: Likewise.
40416         * doc/posix-functions/iswcntrl.texi: Likewise.
40417         * doc/posix-functions/iswctype.texi: Likewise.
40418         * doc/posix-functions/iswdigit.texi: Likewise.
40419         * doc/posix-functions/iswgraph.texi: Likewise.
40420         * doc/posix-functions/iswlower.texi: Likewise.
40421         * doc/posix-functions/iswprint.texi: Likewise.
40422         * doc/posix-functions/iswpunct.texi: Likewise.
40423         * doc/posix-functions/iswspace.texi: Likewise.
40424         * doc/posix-functions/iswupper.texi: Likewise.
40425         * doc/posix-functions/iswxdigit.texi: Likewise.
40426         * doc/posix-functions/mbrtowc.texi: Likewise.
40427         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40428         * doc/posix-functions/mbstowcs.texi: Likewise.
40429         * doc/posix-functions/mbtowc.texi: Likewise.
40430         * doc/posix-functions/putwchar.texi: Likewise.
40431         * doc/posix-functions/putwc.texi: Likewise.
40432         * doc/posix-functions/swprintf.texi: Likewise.
40433         * doc/posix-functions/tolower.texi: Likewise.
40434         * doc/posix-functions/toupper.texi: Likewise.
40435         * doc/posix-functions/towctrans.texi: Likewise.
40436         * doc/posix-functions/ungetwc.texi: Likewise.
40437         * doc/posix-functions/vswprintf.texi: Likewise.
40438         * doc/posix-functions/wcrtomb.texi: Likewise.
40439         * doc/posix-functions/wcscat.texi: Likewise.
40440         * doc/posix-functions/wcschr.texi: Likewise.
40441         * doc/posix-functions/wcscmp.texi: Likewise.
40442         * doc/posix-functions/wcscoll.texi: Likewise.
40443         * doc/posix-functions/wcscpy.texi: Likewise.
40444         * doc/posix-functions/wcscspn.texi: Likewise.
40445         * doc/posix-functions/wcsftime.texi: Likewise.
40446         * doc/posix-functions/wcslen.texi: Likewise.
40447         * doc/posix-functions/wcsncat.texi: Likewise.
40448         * doc/posix-functions/wcsncmp.texi: Likewise.
40449         * doc/posix-functions/wcsncpy.texi: Likewise.
40450         * doc/posix-functions/wcspbrk.texi: Likewise.
40451         * doc/posix-functions/wcsrchr.texi: Likewise.
40452         * doc/posix-functions/wcsrtombs.texi: Likewise.
40453         * doc/posix-functions/wcsspn.texi: Likewise.
40454         * doc/posix-functions/wcsstr.texi: Likewise.
40455         * doc/posix-functions/wcstod.texi: Likewise.
40456         * doc/posix-functions/wcstof.texi: Likewise.
40457         * doc/posix-functions/wcstoimax.texi: Likewise.
40458         * doc/posix-functions/wcstok.texi: Likewise.
40459         * doc/posix-functions/wcstold.texi: Likewise.
40460         * doc/posix-functions/wcstoll.texi: Likewise.
40461         * doc/posix-functions/wcstol.texi: Likewise.
40462         * doc/posix-functions/wcstombs.texi: Likewise.
40463         * doc/posix-functions/wcstoull.texi: Likewise.
40464         * doc/posix-functions/wcstoul.texi: Likewise.
40465         * doc/posix-functions/wcstoumax.texi: Likewise.
40466         * doc/posix-functions/wcswidth.texi: Likewise.
40467         * doc/posix-functions/wcsxfrm.texi: Likewise.
40468         * doc/posix-functions/wctob.texi: Likewise.
40469         * doc/posix-functions/wctomb.texi: Likewise.
40470         * doc/posix-functions/wctrans.texi: Likewise.
40471         * doc/posix-functions/wctype.texi: Likewise.
40472         * doc/posix-functions/wcwidth.texi: Likewise.
40473         * doc/posix-functions/wmemchr.texi: Likewise.
40474         * doc/posix-functions/wmemcmp.texi: Likewise.
40475         * doc/posix-functions/wmemcpy.texi: Likewise.
40476         * doc/posix-functions/wmemmove.texi: Likewise.
40477         * doc/posix-functions/wmemset.texi: Likewise.
40478         * doc/posix-functions/wprintf.texi: Likewise.
40479         * doc/posix-functions/wscanf.texi: Likewise.
40480
40481 2008-12-21  Bruno Haible  <bruno@clisp.org>
40482
40483         Update doc for HP-UX 11.11.
40484         * doc/posix-functions/btowc.texi: Clarify that the function is missing
40485         in HP-UX version 11.00, not in all versions of HP-UX 11.
40486         * doc/posix-functions/fwide.texi: Likewise.
40487         * doc/posix-functions/fwprintf.texi: Likewise.
40488         * doc/posix-functions/fwscanf.texi: Likewise.
40489         * doc/posix-functions/inet_ntop.texi: Likewise.
40490         * doc/posix-functions/inet_pton.texi: Likewise.
40491         * doc/posix-functions/mbrlen.texi: Likewise.
40492         * doc/posix-functions/mbrtowc.texi: Likewise.
40493         * doc/posix-functions/mbsinit.texi: Likewise.
40494         * doc/posix-functions/mbsrtowcs.texi: Likewise.
40495         * doc/posix-functions/swprintf.texi: Likewise.
40496         * doc/posix-functions/swscanf.texi: Likewise.
40497         * doc/posix-functions/towctrans.texi: Likewise.
40498         * doc/posix-functions/vfwprintf.texi: Likewise.
40499         * doc/posix-functions/vswprintf.texi: Likewise.
40500         * doc/posix-functions/vwprintf.texi: Likewise.
40501         * doc/posix-functions/wcrtomb.texi: Likewise.
40502         * doc/posix-functions/wcsrtombs.texi: Likewise.
40503         * doc/posix-functions/wcsstr.texi: Likewise.
40504         * doc/posix-functions/wctob.texi: Likewise.
40505         * doc/posix-functions/wctrans.texi: Likewise.
40506         * doc/posix-functions/wmemchr.texi: Likewise.
40507         * doc/posix-functions/wmemcmp.texi: Likewise.
40508         * doc/posix-functions/wmemcpy.texi: Likewise.
40509         * doc/posix-functions/wmemmove.texi: Likewise.
40510         * doc/posix-functions/wmemset.texi: Likewise.
40511         * doc/posix-functions/wprintf.texi: Likewise.
40512         * doc/posix-functions/wscanf.texi: Likewise.
40513
40514 2008-12-21  Bruno Haible  <bruno@clisp.org>
40515
40516         Work around a portability problem.
40517         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
40518         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
40519
40520 2008-12-20  Bruno Haible  <bruno@clisp.org>
40521
40522         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
40523         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
40524         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
40525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
40526         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
40527
40528         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
40529         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
40530         set.
40531         (GNULIB_defined_mbstate_t): New macro.
40532         (mbsinit): Redefine if REPLACE_MBSINIT is set.
40533         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
40534         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
40535         reuses the system's mbrtowc function but works around the bugs.
40536         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
40537         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
40538         macros.
40539         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
40540         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
40541         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
40542         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
40543         REPLACE_MBSINIT if mbsinit needs to be overridden.
40544         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
40545         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40546         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
40547         REPLACE_MBSINIT, REPLACE_MBRTOWC.
40548         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
40549         m4/locale-zh.m4.
40550         (Depends): Add mbsinit.
40551         * modules/mbsinit (Depends): Add mbrtowc.
40552         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
40553
40554 2008-12-20  Bruno Haible  <bruno@clisp.org>
40555
40556         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40557         so that there are no conversion errors on AIX.
40558         * tests/test-mbsrtowcs.c (main): LIkewise.
40559
40560 2008-12-20  Bruno Haible  <bruno@clisp.org>
40561
40562         Work around wctob bug on Solaris <= 9.
40563         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40564         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40565         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40566         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40567         * modules/wctob (Files): Add m4/locale-fr.m4.
40568         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40569
40570 2008-12-20  Bruno Haible  <bruno@clisp.org>
40571
40572         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40573         /dev/null.
40574         * tests/test-select-in.sh: Likewise.
40575         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40576
40577 2008-12-20  Bruno Haible  <bruno@clisp.org>
40578
40579         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40580         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40581         Cygwin 1.5.x.
40582
40583 2008-12-20  Bruno Haible  <bruno@clisp.org>
40584
40585         Ensure mbstate_t is defined on HP-UX 11.11.
40586         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40587         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40588         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40589         AC_USE_SYSTEM_EXTENSIONS.
40590         * modules/fnmatch (Depends-on): Add extensions.
40591         * modules/mbrlen (Depends-on): Likewise.
40592         * modules/mbrtowc (Depends-on): Likewise.
40593         * modules/mbsinit (Depends-on): Likewise.
40594         * modules/mbsrtowcs (Depends-on): Likewise.
40595         * modules/mbswidth (Depends-on): Likewise.
40596         * modules/quotearg (Depends-on): Likewise.
40597         * modules/strftime (Depends-on): Likewise.
40598
40599 2008-12-20  Bruno Haible  <bruno@clisp.org>
40600
40601         Ensure wctob is declared on IRIX 6.5.
40602         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40603         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40604         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40605         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40606         of HAVE_WCTOB.
40607         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40608         HAVE_WCTOB.
40609         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40610
40611 2008-12-19  Bruno Haible  <bruno@clisp.org>
40612
40613         * modules/mbsrtowcs-tests: New file.
40614         * tests/test-mbsrtowcs1.sh: New file.
40615         * tests/test-mbsrtowcs2.sh: New file.
40616         * tests/test-mbsrtowcs3.sh: New file.
40617         * tests/test-mbsrtowcs4.sh: New file.
40618         * tests/test-mbsrtowcs.c: New file.
40619
40620         New module 'mbsrtowcs'.
40621         * lib/wchar.in.h (mbsrtowcs): New declaration.
40622         * lib/mbsrtowcs.c: New file.
40623         * m4/mbsrtowcs.m4: New file.
40624         * modules/mbsrtowcs: New file.
40625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40626         HAVE_MBSRTOWCS.
40627         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40628         HAVE_MBSRTOWCS.
40629         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40630
40631 2008-12-19  Bruno Haible  <bruno@clisp.org>
40632
40633         New module 'mbrlen'.
40634         * lib/wchar.in.h (mbrlen): New declaration.
40635         * lib/mbrlen.c: New file.
40636         * m4/mbrlen.m4: New file.
40637         * modules/mbrlen: New file.
40638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40639         HAVE_MBRLEN.
40640         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40641         HAVE_MBRLEN.
40642         * doc/posix-functions/mbrlen.texi: Document the new module.
40643
40644 2008-12-19  Bruno Haible  <bruno@clisp.org>
40645
40646         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40647         * modules/mbrtowc (Depends-on): Add verify.
40648         Suggested by Paul Eggert.
40649
40650 2008-12-18  Bruno Haible  <bruno@clisp.org>
40651
40652         * modules/mbsinit-tests: New file.
40653         * tests/test-mbsinit.sh: New file.
40654         * tests/test-mbsinit.c: New file.
40655
40656 2008-12-18  Bruno Haible  <bruno@clisp.org>
40657
40658         * modules/mbrtowc-tests: New file.
40659         * tests/test-mbrtowc1.sh: New file.
40660         * tests/test-mbrtowc2.sh: New file.
40661         * tests/test-mbrtowc3.sh: New file.
40662         * tests/test-mbrtowc4.sh: New file.
40663         * tests/test-mbrtowc.c: New file.
40664
40665         New module 'mbrtowc'.
40666         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40667         mbsinit and mbrtowc.
40668         (mbrtowc): New declaration.
40669         * lib/mbrtowc.c: New file.
40670         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40671         * modules/mbrtowc: New file.
40672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40673         HAVE_MBRTOWC.
40674         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40675         HAVE_MBRTOWC.
40676         * doc/posix-functions/mbrtowc.texi: Document the new module.
40677
40678 2008-12-18  Bruno Haible  <bruno@clisp.org>
40679
40680         New module 'wctob'.
40681         * lib/wchar.in.h (wctob): New declaration.
40682         * lib/wctob.c: New file.
40683         * m4/wctob.m4: New file.
40684         * modules/wctob: New file.
40685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40686         HAVE_WCTOB.
40687         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40688         * doc/posix-functions/wctob.texi: Document the new module.
40689
40690 2008-12-18  Bruno Haible  <bruno@clisp.org>
40691
40692         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40693         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40694
40695 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40696
40697         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40698         G. Christensen" <tgc@jupiterrise.com>.
40699
40700         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40701         G. Christensen" <tgc@jupiterrise.com>.
40702
40703         * lib/flock.c: Need to include string.h.  Reported by "Tom
40704         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40705         <ebb9@byu.net>.
40706
40707 2008-12-18  Bruno Haible  <bruno@clisp.org>
40708
40709         * m4/locale-ja.m4: New file, from GNU gettext.
40710
40711 2008-12-17  Bruno Haible  <bruno@clisp.org>
40712
40713         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40714         Suggested by Eric Blake.
40715
40716 2008-12-17  Bruno Haible  <bruno@clisp.org>
40717
40718         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40719
40720 2008-12-17  Bruno Haible  <bruno@clisp.org>
40721
40722         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40723         * modules/mbsinit (Depends-on): Add verify.
40724         Suggested by Paul Eggert.
40725
40726 2008-12-17  Bruno Haible  <bruno@clisp.org>
40727
40728         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40729         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40730         gl_FUNC_MBRTOWC.
40731         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40732         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40733         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40734         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40735         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40736         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40737         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40738         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40739         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40740         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40741         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40742         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40743         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40744         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40745         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40746         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40747         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40748         * modules/trim (configure.ac): Likewise.
40749
40750 2008-12-17  Bruno Haible  <bruno@clisp.org>
40751
40752         * modules/btowc-tests: New file.
40753         * tests/test-btowc1.sh: New file.
40754         * tests/test-btowc2.sh: New file.
40755         * tests/test-btowc.c: New file.
40756
40757         New module 'btowc'.
40758         * lib/wchar.in.h (btowc): New declaration.
40759         * lib/btowc.c: New file.
40760         * m4/btowc.m4: New file.
40761         * modules/btowc: New file.
40762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40763         HAVE_BTOWC.
40764         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40765         * doc/posix-functions/btowc.texi: Document the new module.
40766
40767 2008-12-17  Bruno Haible  <bruno@clisp.org>
40768
40769         New module 'mbsinit'.
40770         * lib/wchar.in.h (mbsinit): New declaration.
40771         * lib/mbsinit.c: New file.
40772         * m4/mbsinit.m4: New file.
40773         * modules/mbsinit: New file.
40774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40775         HAVE_MBSINIT.
40776         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40777         HAVE_MBSINIT.
40778         * doc/posix-functions/mbsinit.texi: Document the new module.
40779
40780 2008-12-16  Bruno Haible  <bruno@clisp.org>
40781
40782         * lib/unistd.in.h: Add comment.
40783         * tests/test-environ.c: Don't include <stdlib.h>.
40784
40785 2008-12-16  Bruno Haible  <bruno@clisp.org>
40786
40787         * lib/parse-duration.h (parse_duration): Document return value
40788         convention.
40789         * lib/parse-duration.c: Include specification header first. Add
40790         comments.
40791         (_): Remove macro.
40792         (parse_year_month_day, parse_hour_minute_second): Move side effects
40793         outside of strchr call.
40794         (parse_non_iso8601): Move side effects outside of isspace call.
40795         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40796         call.
40797
40798 2008-12-16  Bruno Haible  <bruno@clisp.org>
40799
40800         * tests/test-parse-duration.sh: Produce no output when the test
40801         succeeds.
40802
40803 2008-12-16  Bruno Haible  <bruno@clisp.org>
40804
40805         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40806         expressions.
40807
40808 2008-12-15  Bruno Haible  <bruno@clisp.org>
40809
40810         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40811         * doc/glibc-functions/flistxattr.texi: Likewise.
40812         * doc/glibc-functions/fopencookie.texi: Likewise.
40813         * doc/glibc-functions/fremovexattr.texi: Likewise.
40814         * doc/glibc-functions/fsetxattr.texi: Likewise.
40815         * doc/glibc-functions/getxattr.texi: Likewise.
40816         * doc/glibc-functions/lgetxattr.texi: Likewise.
40817         * doc/glibc-functions/listxattr.texi: Likewise.
40818         * doc/glibc-functions/llistxattr.texi: Likewise.
40819         * doc/glibc-functions/lremovexattr.texi: Likewise.
40820         * doc/glibc-functions/lsetxattr.texi: Likewise.
40821         * doc/glibc-functions/removexattr.texi: Likewise.
40822         * doc/glibc-functions/setxattr.texi: Likewise.
40823         * doc/posix-functions/open_memstream.texi: Likewise.
40824
40825 2008-12-15  Eric Blake  <ebb9@byu.net>
40826
40827         Update doc for cygwin 1.7.
40828         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40829         functions.
40830         * doc/posix-functions/fchmodat.texi: Likewise.
40831         * doc/posix-functions/fchownat.texi: Likewise.
40832         * doc/posix-functions/fdopendir.texi: Likewise.
40833         * doc/posix-functions/fmemopen.texi: Likewise.
40834         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40835         * doc/posix-functions/fstatat.texi: Likewise.
40836         * doc/posix-functions/futimens.texi: Likewise.
40837         * doc/posix-functions/gai_strerror.texi: Likewise.
40838         * doc/posix-functions/getaddrinfo.texi: Likewise.
40839         * doc/posix-functions/getnameinfo.texi: Likewise.
40840         * doc/posix-functions/if_freenameindex.texi: Likewise.
40841         * doc/posix-functions/if_indextoname.texi: Likewise.
40842         * doc/posix-functions/if_nameindex.texi: Likewise.
40843         * doc/posix-functions/if_nametoindex.texi: Likewise.
40844         * doc/posix-functions/insque.texi: Likewise.
40845         * doc/posix-functions/linkat.texi: Likewise.
40846         * doc/posix-functions/llrint.texi: Likewise.
40847         * doc/posix-functions/llrintf.texi: Likewise.
40848         * doc/posix-functions/llrintl.texi: Likewise.
40849         * doc/posix-functions/lockf.texi: Likewise.
40850         * doc/posix-functions/lrintl.texi: Likewise.
40851         * doc/posix-functions/mkdirat.texi: Likewise.
40852         * doc/posix-functions/mkfifoat.texi: Likewise.
40853         * doc/posix-functions/mknodat.texi: Likewise.
40854         * doc/posix-functions/mq_close.texi: Likewise.
40855         * doc/posix-functions/mq_getattr.texi: Likewise.
40856         * doc/posix-functions/mq_notify.texi: Likewise.
40857         * doc/posix-functions/mq_open.texi: Likewise.
40858         * doc/posix-functions/mq_receive.texi: Likewise.
40859         * doc/posix-functions/mq_send.texi: Likewise.
40860         * doc/posix-functions/mq_setattr.texi: Likewise.
40861         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40862         * doc/posix-functions/mq_timedsend.texi: Likewise.
40863         * doc/posix-functions/mq_unlink.texi: Likewise.
40864         * doc/posix-functions/open_memstream.texi: Likewise.
40865         * doc/posix-functions/openat.texi: Likewise.
40866         * doc/posix-functions/posix_fadvise.texi: Likewise.
40867         * doc/posix-functions/posix_fallocate.texi: Likewise.
40868         * doc/posix-functions/posix_madvise.texi: Likewise.
40869         * doc/posix-functions/posix_memalign.texi: Likewise.
40870         * doc/posix-functions/posix_openpt.texi: Likewise.
40871         * doc/posix-functions/readlinkat.texi: Likewise.
40872         * doc/posix-functions/remque.texi: Likewise.
40873         * doc/posix-functions/renameat.texi: Likewise.
40874         * doc/posix-functions/rintl.texi: Likewise.
40875         * doc/posix-functions/sem_unlink.texi: Likewise.
40876         * doc/posix-functions/shm_open.texi: Likewise.
40877         * doc/posix-functions/shm_unlink.texi: Likewise.
40878         * doc/posix-functions/signgam.texi: Likewise.
40879         * doc/posix-functions/sigset.texi: Likewise.
40880         * doc/posix-functions/stpcpy.texi: Likewise.
40881         * doc/posix-functions/stpncpy.texi: Likewise.
40882         * doc/posix-functions/strerror.texi: Likewise.
40883         * doc/posix-functions/strtod.texi: Likewise.
40884         * doc/posix-functions/symlinkat.texi: Likewise.
40885         * doc/posix-functions/unlinkat.texi: Likewise.
40886         * doc/posix-functions/utimensat.texi: Likewise.
40887         * doc/glibc-functions/bindresvport.texi: Likewise.
40888         * doc/glibc-functions/dn_expand.texi: Likewise.
40889         * doc/glibc-functions/exp10.texi: Likewise.
40890         * doc/glibc-functions/exp10f.texi: Likewise.
40891         * doc/glibc-functions/fgetxattr.texi: Likewise.
40892         * doc/glibc-functions/flistxattr.texi: Likewise.
40893         * doc/glibc-functions/fopencookie.texi: Likewise.
40894         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40895         * doc/glibc-functions/fremovexattr.texi: Likewise.
40896         * doc/glibc-functions/fsetxattr.texi: Likewise.
40897         * doc/glibc-functions/getifaddrs.texi: Likewise.
40898         * doc/glibc-functions/getxattr.texi: Likewise.
40899         * doc/glibc-functions/lgetxattr.texi: Likewise.
40900         * doc/glibc-functions/listxattr.texi: Likewise.
40901         * doc/glibc-functions/llistxattr.texi: Likewise.
40902         * doc/glibc-functions/lremovexattr.texi: Likewise.
40903         * doc/glibc-functions/lsetxattr.texi: Likewise.
40904         * doc/glibc-functions/pow10.texi: Likewise.
40905         * doc/glibc-functions/pow10f.texi: Likewise.
40906         * doc/glibc-functions/rcmd_af.texi: Likewise.
40907         * doc/glibc-functions/removexattr.texi: Likewise.
40908         * doc/glibc-functions/res_init.texi: Likewise.
40909         * doc/glibc-functions/res_mkquery.texi: Likewise.
40910         * doc/glibc-functions/res_query.texi: Likewise.
40911         * doc/glibc-functions/res_querydomain.texi: Likewise.
40912         * doc/glibc-functions/res_send.texi: Likewise.
40913         * doc/glibc-functions/rresvport_af.texi: Likewise.
40914         * doc/glibc-functions/setxattr.texi: Likewise.
40915         * doc/glibc-functions/strcasestr.texi: Likewise.
40916
40917 2008-12-15  Bruno Haible  <bruno@clisp.org>
40918
40919         Fix compilation error on OSF/1 4.0.
40920         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40921         <sys/time.h>, simply delegate to the system header.
40922         Reported by Daniel Richard G. <oss@teragram.com>.
40923
40924 2008-12-15  Bruno Haible  <bruno@clisp.org>
40925
40926         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40927         * doc/posix-functions/fchmodat.texi: Likewise.
40928         * doc/posix-functions/fchownat.texi: Likewise.
40929         * doc/posix-functions/fdopendir.texi: Likewise.
40930         * doc/posix-functions/fstatat.texi: Likewise.
40931         * doc/posix-functions/mkdirat.texi: Likewise.
40932         * doc/posix-functions/unlinkat.texi: Likewise.
40933
40934 2008-12-14  Bruno Haible  <bruno@clisp.org>
40935
40936         Update doc for POSIX:2008.
40937         * doc/posix-functions/faccessat.texi: New file.
40938         * doc/posix-functions/fchmodat.texi: New file.
40939         * doc/posix-functions/fchownat.texi: New file.
40940         * doc/posix-functions/fdopendir.texi: New file.
40941         * doc/posix-functions/fstatat.texi: New file.
40942         * doc/posix-functions/futimens.texi: New file.
40943         * doc/posix-functions/linkat.texi: New file.
40944         * doc/posix-functions/mkdirat.texi: New file.
40945         * doc/posix-functions/mkfifoat.texi: New file.
40946         * doc/posix-functions/mknodat.texi: New file.
40947         * doc/posix-functions/open_wmemstream.texi: New file.
40948         * doc/posix-functions/openat.texi: New file.
40949         * doc/posix-functions/psiginfo.texi: New file.
40950         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40951         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40952         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40953         * doc/posix-functions/readlinkat.texi: New file.
40954         * doc/posix-functions/renameat.texi: New file.
40955         * doc/posix-functions/strerror_l.texi: New file.
40956         * doc/posix-functions/symlinkat.texi: New file.
40957         * doc/posix-functions/unlinkat.texi: New file.
40958         * doc/posix-functions/utimensat.texi: New file.
40959         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40960
40961 2008-12-14  Bruno Haible  <bruno@clisp.org>
40962
40963         Update doc for POSIX:2008.
40964         * doc/posix-functions/alphasort.texi: Renamed from
40965         doc/glibc-functions/alphasort.texi.
40966         * doc/posix-functions/dirfd.texi: Renamed from
40967         doc/glibc-functions/dirfd.texi.
40968         * doc/posix-functions/dprintf.texi: Renamed from
40969         doc/glibc-functions/dprintf.texi.
40970         * doc/posix-functions/duplocale.texi: Renamed from
40971         doc/glibc-functions/duplocale.texi.
40972         * doc/posix-functions/fexecve.texi: Renamed from
40973         doc/glibc-functions/fexecve.texi.
40974         * doc/posix-functions/fmemopen.texi: Renamed from
40975         doc/glibc-functions/fmemopen.texi.
40976         * doc/posix-functions/freelocale.texi: Renamed from
40977         doc/glibc-functions/freelocale.texi.
40978         * doc/posix-functions/getdate_err.texi: Renamed from
40979         doc/glibc-functions/getdate_err.texi.
40980         * doc/posix-functions/isalnum_l.texi: Renamed from
40981         doc/glibc-functions/isalnum_l.texi.
40982         * doc/posix-functions/isalpha_l.texi: Renamed from
40983         doc/glibc-functions/isalpha_l.texi.
40984         * doc/posix-functions/isblank_l.texi: Renamed from
40985         doc/glibc-functions/isblank_l.texi.
40986         * doc/posix-functions/iscntrl_l.texi: Renamed from
40987         doc/glibc-functions/iscntrl_l.texi.
40988         * doc/posix-functions/isdigit_l.texi: Renamed from
40989         doc/glibc-functions/isdigit_l.texi.
40990         * doc/posix-functions/isgraph_l.texi: Renamed from
40991         doc/glibc-functions/isgraph_l.texi.
40992         * doc/posix-functions/islower_l.texi: Renamed from
40993         doc/glibc-functions/islower_l.texi.
40994         * doc/posix-functions/isprint_l.texi: Renamed from
40995         doc/glibc-functions/isprint_l.texi.
40996         * doc/posix-functions/ispunct_l.texi: Renamed from
40997         doc/glibc-functions/ispunct_l.texi.
40998         * doc/posix-functions/isspace_l.texi: Renamed from
40999         doc/glibc-functions/isspace_l.texi.
41000         * doc/posix-functions/isupper_l.texi: Renamed from
41001         doc/glibc-functions/isupper_l.texi.
41002         * doc/posix-functions/iswalnum_l.texi: Renamed from
41003         doc/glibc-functions/iswalnum_l.texi.
41004         * doc/posix-functions/iswalpha_l.texi: Renamed from
41005         doc/glibc-functions/iswalpha_l.texi.
41006         * doc/posix-functions/iswblank_l.texi: Renamed from
41007         doc/glibc-functions/iswblank_l.texi.
41008         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41009         doc/glibc-functions/iswcntrl_l.texi.
41010         * doc/posix-functions/iswctype_l.texi: Renamed from
41011         doc/glibc-functions/iswctype_l.texi.
41012         * doc/posix-functions/iswdigit_l.texi: Renamed from
41013         doc/glibc-functions/iswdigit_l.texi.
41014         * doc/posix-functions/iswgraph_l.texi: Renamed from
41015         doc/glibc-functions/iswgraph_l.texi.
41016         * doc/posix-functions/iswlower_l.texi: Renamed from
41017         doc/glibc-functions/iswlower_l.texi.
41018         * doc/posix-functions/iswprint_l.texi: Renamed from
41019         doc/glibc-functions/iswprint_l.texi.
41020         * doc/posix-functions/iswpunct_l.texi: Renamed from
41021         doc/glibc-functions/iswpunct_l.texi.
41022         * doc/posix-functions/iswspace_l.texi: Renamed from
41023         doc/glibc-functions/iswspace_l.texi.
41024         * doc/posix-functions/iswupper_l.texi: Renamed from
41025         doc/glibc-functions/iswupper_l.texi.
41026         * doc/posix-functions/iswxdigit_l.texi: Renamed from
41027         doc/glibc-functions/iswxdigit_l.texi.
41028         * doc/posix-functions/isxdigit_l.texi: Renamed from
41029         doc/glibc-functions/isxdigit_l.texi.
41030         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
41031         doc/glibc-functions/mbsnrtowcs.texi.
41032         * doc/posix-functions/mkdtemp.texi: Renamed from
41033         doc/glibc-functions/mkdtemp.texi.
41034         * doc/posix-functions/newlocale.texi: Renamed from
41035         doc/glibc-functions/newlocale.texi.
41036         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
41037         doc/glibc-functions/nl_langinfo_l.texi.
41038         * doc/posix-functions/open_memstream.texi: Renamed from
41039         doc/glibc-functions/open_memstream.texi.
41040         * doc/posix-functions/opterr.texi: Renamed from
41041         doc/glibc-functions/opterr.texi.
41042         * doc/posix-functions/optind.texi: Renamed from
41043         doc/glibc-functions/optind.texi.
41044         * doc/posix-functions/optopt.texi: Renamed from
41045         doc/glibc-functions/optopt.texi.
41046         * doc/posix-functions/psignal.texi: Renamed from
41047         doc/glibc-functions/psignal.texi.
41048         * doc/posix-functions/scandir.texi: Renamed from
41049         doc/glibc-functions/scandir.texi.
41050         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
41051         doc/glibc-functions/sched_get_priority_min.texi.
41052         * doc/posix-functions/signgam.texi: Renamed from
41053         doc/glibc-functions/signgam.texi.
41054         * doc/posix-functions/stpcpy.texi: Renamed from
41055         doc/glibc-functions/stpcpy.texi.
41056         * doc/posix-functions/stpncpy.texi: Renamed from
41057         doc/glibc-functions/stpncpy.texi.
41058         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41059         doc/glibc-functions/strcasecmp_l.texi.
41060         * doc/posix-functions/strcoll_l.texi: Renamed from
41061         doc/glibc-functions/strcoll_l.texi.
41062         * doc/posix-functions/strfmon_l.texi: Renamed from
41063         doc/glibc-functions/strfmon_l.texi.
41064         * doc/posix-functions/strftime_l.texi: Renamed from
41065         doc/glibc-functions/strftime_l.texi.
41066         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41067         doc/glibc-functions/strncasecmp_l.texi.
41068         * doc/posix-functions/strndup.texi: Renamed from
41069         doc/glibc-functions/strndup.texi.
41070         * doc/posix-functions/strnlen.texi: Renamed from
41071         doc/glibc-functions/strnlen.texi.
41072         * doc/posix-functions/strsignal.texi: Renamed from
41073         doc/glibc-functions/strsignal.texi.
41074         * doc/posix-functions/strxfrm_l.texi: Renamed from
41075         doc/glibc-functions/strxfrm_l.texi.
41076         * doc/posix-functions/timer_gettime.texi: Renamed from
41077         doc/glibc-functions/timer_gettime.texi.
41078         * doc/posix-functions/tolower_l.texi: Renamed from
41079         doc/glibc-functions/tolower_l.texi.
41080         * doc/posix-functions/toupper_l.texi: Renamed from
41081         doc/glibc-functions/toupper_l.texi.
41082         * doc/posix-functions/towctrans_l.texi: Renamed from
41083         doc/glibc-functions/towctrans_l.texi.
41084         * doc/posix-functions/towlower_l.texi: Renamed from
41085         doc/glibc-functions/towlower_l.texi.
41086         * doc/posix-functions/towupper_l.texi: Renamed from
41087         doc/glibc-functions/towupper_l.texi.
41088         * doc/posix-functions/uselocale.texi: Renamed from
41089         doc/glibc-functions/uselocale.texi.
41090         * doc/posix-functions/vdprintf.texi: Renamed from
41091         doc/glibc-functions/vdprintf.texi.
41092         * doc/posix-functions/wcpcpy.texi:
41093         Renamed from doc/glibc-functions/wcpcpy.texi.
41094         * doc/posix-functions/wcpncpy.texi: Renamed from
41095         doc/glibc-functions/wcpncpy.texi.
41096         * doc/posix-functions/wcscasecmp.texi: Renamed from
41097         doc/glibc-functions/wcscasecmp.texi.
41098         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41099         doc/glibc-functions/wcscasecmp_l.texi.
41100         * doc/posix-functions/wcscoll_l.texi: Renamed from
41101         doc/glibc-functions/wcscoll_l.texi.
41102         * doc/posix-functions/wcsdup.texi: Renamed from
41103         doc/glibc-functions/wcsdup.texi.
41104         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41105         doc/glibc-functions/wcsncasecmp.texi.
41106         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41107         doc/glibc-functions/wcsncasecmp_l.texi.
41108         * doc/posix-functions/wcsnlen.texi: Renamed from
41109         doc/glibc-functions/wcsnlen.texi.
41110         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41111         doc/glibc-functions/wcsnrtombs.texi.
41112         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41113         doc/glibc-functions/wcsxfrm_l.texi.
41114         * doc/posix-functions/wctrans_l.texi: Renamed from
41115         doc/glibc-functions/wctrans_l.texi.
41116         * doc/posix-functions/wctype_l.texi: Renamed from
41117         doc/glibc-functions/wctype_l.texi.
41118         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41119         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41120         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41121         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41122         these subsections.
41123         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
41124         Remove sections.
41125
41126 2008-12-14  Bruno Haible  <bruno@clisp.org>
41127
41128         Update doc for POSIX:2008.
41129         * doc/posix-functions/*.texi: Update URL of POSIX specification.
41130
41131 2008-12-14  Bruno Haible  <bruno@clisp.org>
41132
41133         Update doc for POSIX:2008.
41134         * doc/pastposix-functions/bcmp.texi: Renamed from
41135         doc/posix-functions/bcmp.texi.
41136         * doc/pastposix-functions/bcopy.texi: Renamed from
41137         doc/posix-functions/bcopy.texi.
41138         * doc/pastposix-functions/bsd_signal.texi: Renamed from
41139         doc/posix-functions/bsd_signal.texi.
41140         * doc/pastposix-functions/bzero.texi: Renamed from
41141         doc/posix-functions/bzero.texi.
41142         * doc/pastposix-functions/ecvt.texi: Renamed from
41143         doc/posix-functions/ecvt.texi.
41144         * doc/pastposix-functions/fcvt.texi: Renamed from
41145         doc/posix-functions/fcvt.texi.
41146         * doc/pastposix-functions/ftime.texi: Renamed from
41147         doc/posix-functions/ftime.texi.
41148         * doc/pastposix-functions/gcvt.texi: Renamed from
41149         doc/posix-functions/gcvt.texi.
41150         * doc/pastposix-functions/getcontext.texi: Renamed from
41151         doc/posix-functions/getcontext.texi.
41152         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
41153         doc/posix-functions/gethostbyaddr.texi.
41154         * doc/pastposix-functions/gethostbyname.texi: Renamed from
41155         doc/posix-functions/gethostbyname.texi.
41156         * doc/pastposix-functions/getwd.texi: Renamed from
41157         doc/posix-functions/getwd.texi.
41158         * doc/pastposix-functions/h_errno.texi: Renamed from
41159         doc/posix-functions/h_errno.texi.
41160         * doc/pastposix-functions/index.texi: Renamed from
41161         doc/posix-functions/index.texi.
41162         * doc/pastposix-functions/makecontext.texi: Renamed from
41163         doc/posix-functions/makecontext.texi.
41164         * doc/pastposix-functions/mktemp.texi: Renamed from
41165         doc/posix-functions/mktemp.texi.
41166         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
41167         doc/posix-functions/pthread_attr_getstackaddr.texi.
41168         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
41169         doc/posix-functions/pthread_attr_setstackaddr.texi.
41170         * doc/pastposix-functions/rindex.texi: Renamed from
41171         doc/posix-functions/rindex.texi.
41172         * doc/pastposix-functions/scalb.texi: Renamed from
41173         doc/posix-functions/scalb.texi.
41174         * doc/pastposix-functions/setcontext.texi: Renamed from
41175         doc/posix-functions/setcontext.texi.
41176         * doc/pastposix-functions/swapcontext.texi: Renamed from
41177         doc/posix-functions/swapcontext.texi.
41178         * doc/pastposix-functions/ualarm.texi: Renamed from
41179         doc/posix-functions/ualarm.texi.
41180         * doc/pastposix-functions/usleep.texi: Renamed from
41181         doc/posix-functions/usleep.texi.
41182         * doc/pastposix-functions/vfork.texi: Renamed from
41183         doc/posix-functions/vfork.texi.
41184         * doc/pastposix-functions/wcswcs.texi: Renamed from
41185         doc/posix-functions/wcswcs.texi.
41186         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
41187         (Function Substitutes): Update.
41188
41189 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41190
41191         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
41192         m4/strerror.m4.
41193
41194 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41195             Bruno Haible  <bruno@clisp.org>
41196
41197         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
41198
41199 2008-12-13  Bruno Haible  <bruno@clisp.org>
41200
41201         * modules/strtoull (Depends-on): Remove unistd.
41202
41203 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41204
41205         * modules/strtoull (Depends-on): Add stdlib.
41206
41207 2008-12-11  Simon Josefsson  <simon@josefsson.org>
41208
41209         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
41210
41211 2008-12-10  Jim Meyering  <meyering@redhat.com>
41212
41213         gl_ASSERT: don't say assertions are disabled when they're not
41214         * m4/assert.m4 (gl_ASSERT): Do not make configure report
41215         "checking whether to enable assertions... no", when they are in
41216         fact enabled.  This is solely a bug in the output of configure.
41217         In spite of saying "no", NDEBUG was not defined in that case.
41218         Also, as noted by Eric Blake, leave assertions enabled upon
41219         --enable-assert=INVALID.
41220
41221 2008-12-10  Bruno Haible  <bruno@clisp.org>
41222
41223         Change MODULES.html to refer to POSIX:2008 where possible.
41224         * MODULES.html.sh (POSIX2008_URL): New variable.
41225         (posix_headers): Remove sys/timeb, ucontext.
41226         (posix2001_headers): New variable.
41227         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
41228         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
41229         index, makecontext, mktemp, pthread_attr_getstackaddr,
41230         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
41231         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
41232         (posix2001_functions): New variable.
41233         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
41234         otherwise.
41235
41236 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41237
41238         add missing include to parse-duration.c
41239         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
41240         * modules/parse-duration (Depends-on): Add xalloc.
41241
41242         fix sed script reading maint.mk
41243         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
41244         (syntax-check-rules): Use it.
41245
41246 2008-12-09  Bruno Haible  <bruno@clisp.org>
41247
41248         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
41249         MacOS X 10.4/PowerPC.
41250         Reported by Simon Josefsson.
41251
41252 2008-12-08  Jim Meyering  <meyering@redhat.com>
41253
41254         work around mingw's lack of some S_IF definitions
41255         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
41256         Reported by Simon Josefsson.
41257
41258 2008-12-08  Bruno Haible  <bruno@clisp.org>
41259
41260         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
41261         applied to variables. Needed on MacOS X 10.4/PowerPC.
41262         Reported by Simon Josefsson.
41263
41264 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
41265         and Eric Blake  <ebb9@byu.net>
41266
41267         assert: honor --enable-assert
41268         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
41269         order to honor --enable-assert, rather than treating it as a
41270         synonym for --disable-assert.
41271
41272 2008-12-08  Jim Meyering  <meyering@redhat.com>
41273
41274         * lib/posixtm.c: Remove now-useless declaration of mktime.
41275
41276         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
41277
41278 2008-12-07  Bruno Haible  <bruno@clisp.org>
41279
41280         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
41281         test_once): Mark functions as static.
41282         * tests/test-tls.c (test_tls): Likewise.
41283
41284 2008-12-07  Bruno Haible  <bruno@clisp.org>
41285
41286         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
41287         iconv_register_autodetect.
41288
41289 2008-12-07  Jim Meyering  <meyering@redhat.com>
41290
41291         posixtm.c: avoid a warning
41292         * lib/posixtm.c (posixtime): Don't initialize tm0.
41293         It's no longer needed to placate gcc4's -Wuninitialized,
41294         and the attempt to placate would elicit a new warning.
41295
41296         unicodeio.c: mark unused parameters
41297         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41298         (fallback_failure_callback): Likewise.
41299
41300 2008-12-07  Bruno Haible  <bruno@clisp.org>
41301
41302         * gnulib-tool (func_create_testdir): When building the tests
41303         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
41304         Reported by Simon Josefsson.
41305
41306 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41307
41308         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
41309
41310 2008-12-06  Bruno Haible  <bruno@clisp.org>
41311
41312         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
41313         Suggested by Eric Blake.
41314
41315 2008-12-06  Bruno Haible  <bruno@clisp.org>
41316
41317         Fix a c-stack test failure on MacOS X.
41318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
41319         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
41320         handler for SIGBUS as well.
41321         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
41322         install a signal handler for SIGBUS as well.
41323         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
41324
41325 2008-12-06  Bruno Haible  <bruno@clisp.org>
41326
41327         Advocacy documentation.
41328         * doc/gnulib-intro.texi (Benefits): New section.
41329         * doc/gnulib.texi: Update.
41330
41331 2008-12-06  Bruno Haible  <bruno@clisp.org>
41332
41333         Document the 'manywarnings' module.
41334         * doc/manywarnings.texi: New file.
41335         * doc/gnulib.texi: Include it.
41336
41337 2008-12-05  Eric Blake  <ebb9@byu.net>
41338
41339         tests: silence some gcc warnings
41340         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
41341         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
41342         type mismatches.
41343
41344 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41345             Bruno Haible  <bruno@clisp.org>
41346
41347         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
41348
41349 2008-11-29  Jim Meyering  <meyering@redhat.com>
41350
41351         unicodeio.c: mark unused parameters
41352         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
41353         (fallback_failure_callback): Likewise.
41354
41355         fts: fix a thinko
41356         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
41357         (set_stat_type): Return S_IF*-valued "type" directly.
41358         Prompted by James Youngman's spotting a related bug.
41359         Confirmed by further testing through find.
41360
41361         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
41362         * lib/fts.c (D_TYPE): Define.
41363         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
41364         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
41365         (s_ifmt_shift_bits): New function.
41366         (set_stat_type): New function.
41367         (fts_build): When not calling fts_stat, call set_stat_type
41368         to propagate dirent.d_type info to fts_read caller.
41369         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
41370         fts_statp->st_mode type information may be valid.
41371
41372 2008-11-28  Simon Josefsson  <simon@josefsson.org>
41373
41374         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
41375         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
41376         <sds@gnu.org>.
41377
41378 2008-11-20  Bruno Haible  <bruno@clisp.org>
41379
41380         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
41381         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
41382         INCLUDE_NEXT.
41383         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
41384         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
41385         * modules/math (Makefile.am): Substitute
41386         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
41387         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41388
41389 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
41390             Bruno Haible  <bruno@clisp.org>
41391
41392         * lib/stdint.in.h: Define all type macros so that their expansion is
41393         a single typedef'ed token. Fixes a compilation failure in Boost which
41394         does "using ::int8_t;".
41395
41396 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41397
41398         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
41399         gl_MANYWARN_ALL_GCC.
41400         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
41401         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
41402         * modules/manywarnings: New file.
41403         * MODULES.html.sh: Mention manywarnings module.
41404
41405 2008-11-18  Bruno Haible  <bruno@clisp.org>
41406
41407         * doc/gnulib-tool.texi (Unit tests): New section.
41408
41409 2008-11-18  Simon Josefsson  <simon@josefsson.org>
41410
41411         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
41412         paths like 'lib/po/foo.po'.
41413
41414 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41415
41416         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
41417         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
41418
41419 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41420
41421         * m4/warnings.m4: Use CPPFLAGS to really check whether the
41422         parameter works.
41423
41424 2008-11-17  Simon Josefsson  <simon@josefsson.org>
41425
41426         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
41427
41428 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41429
41430         * modules/parse-duration-tests: New file.
41431         * tests/test-parse-duration.sh: New file.
41432         * tests/test-parse-duration.c: New file.
41433
41434         New module 'parse-duration'.
41435         * lib/parse-duration.h: New file.
41436         * lib/parse-duration.c: New file.
41437         * modules/parse-duration: New file.
41438
41439 2008-11-17  Bruno Haible  <bruno@clisp.org>
41440
41441         * tests/test-select-out.sh: Comment out the first pipe test.
41442         Reported by Simon Josefsson.
41443
41444 2008-11-17  Bruno Haible  <bruno@clisp.org>
41445
41446         * modules/getaddrinfo (Depends-on): Add servent, hostent.
41447         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
41448         gl_HOSTENT.
41449
41450 2008-11-17  Bruno Haible  <bruno@clisp.org>
41451
41452         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
41453         -lnetwork and -lnet. Needed for Haiku and BeOS.
41454
41455 2008-11-16  Bruno Haible  <bruno@clisp.org>
41456
41457         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41458
41459 2008-11-16  Bruno Haible  <bruno@clisp.org>
41460
41461         Avoid test failure on Haiku.
41462         * tests/test-fsync.c: Include <errno.h>.
41463         (main): Don't require that fsync (0) fails.
41464
41465 2008-11-15  Bruno Haible  <bruno@clisp.org>
41466
41467         New module 'hostent'.
41468         * modules/hostent: New file.
41469         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
41470
41471 2008-11-15  Bruno Haible  <bruno@clisp.org>
41472
41473         New module 'servent'.
41474         * modules/servent: New file.
41475         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
41476
41477 2008-11-15  Bruno Haible  <bruno@clisp.org>
41478
41479         Avoid generating same test program with two different rules.
41480         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
41481         test-frexp to test-frexp-nolibm.
41482         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
41483         test-frexpl to test-frexpl-nolibm.
41484
41485 2008-11-15  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
41488         $(FREXPL_LIBM).
41489
41490 2008-11-15  Bruno Haible  <bruno@clisp.org>
41491
41492         * lib/netdb.in.h: Activate the definitions also when the system's
41493         <netdb.h> has 'struct addrinfo'.
41494         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
41495         EAI_OVERFLOW or AI_NUMERICSERV.
41496         * doc/posix-headers/netdb.texi: Document the problem.
41497
41498 2008-11-15  Bruno Haible  <bruno@clisp.org>
41499
41500         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
41501
41502         Make the 'sched' module work on platforms where <sched.h> exists but
41503         is incomplete (such as Haiku).
41504         * lib/sched.in.h; Include the system's <sched.h> if it exists.
41505         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
41506         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
41507         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
41508         HAVE_STRUCT_SCHED_PARAM.
41509         * modules/sched (Depends-on): Add include_next.
41510         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
41511         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
41512         * doc/posix-headers/sched.texi: Document the issue.
41513
41514 2008-11-13  Jim Meyering  <meyering@redhat.com>
41515
41516         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
41517         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
41518         test would fail due to the difference in the Report bugs to ...
41519         line.  The expected address is empty, "<>", while the actual
41520         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
41521
41522 2008-11-12  Bruno Haible  <bruno@clisp.org>
41523
41524         lstat: don't compile lstat.c on systems lacking lstat
41525         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
41526         which don't have lstat; this is handled by lib/sys_stat.in.h already.
41527         Reported by Daniel P. Berrange via Jim Meyering.
41528
41529 2008-11-12  Jim Meyering  <meyering@redhat.com>
41530
41531         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
41532
41533 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41534
41535         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
41536         instead.
41537
41538 2008-11-12  Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/unicodeio.c: Include unistr.h.
41541         (utf8_wctomb): Remove function.
41542         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
41543
41544 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41545
41546         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
41547         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
41548         <bruno@clisp.org>.
41549         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
41550
41551 2008-11-12  Simon Josefsson  <simon@josefsson.org>
41552
41553         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
41554         * doc/gnulib.texi: Add section for warnings.
41555
41556 2008-11-11  Bruno Haible  <bruno@clisp.org>
41557
41558         * lib/sockets.h: Add a comment.
41559
41560 2008-11-11  Karl Berry  <karl@gnu.org>
41561
41562         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41563
41564 2008-11-11  Eric Blake  <ebb9@byu.net>
41565
41566         fdl.texi: avoid git symlinks
41567         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41568
41569 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41570
41571         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41572
41573 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41574
41575         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41576         (gl_WARN_ADD): Substitute $2 if literal.
41577
41578 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41579
41580         * m4/warning.m4: Remove.
41581
41582 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41583
41584         * m4/warnings.m4: Almost complete rewrite. :-)
41585
41586 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41587
41588         * modules/warnings: New module.
41589         * m4/warnings.m4: New file.
41590         * MODULES.html.sh: Mention warnings module.
41591         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41592         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41593
41594 2008-11-10  Eric Blake  <ebb9@byu.net>
41595
41596         fdl.texi: make a symlink to the latest version
41597         * doc/standards.texi: Revert today's earlier change.
41598         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41599         * doc/fdl.texi: ...and replace this with a symlink to the newer
41600         fdl-1.3.texi.
41601
41602 2008-11-10  Bruno Haible  <bruno@clisp.org>
41603
41604         * tests/test-select-fd.c (main): Accept the result file name as fourth
41605         argument.
41606         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41607         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41608
41609 2008-11-10  Bruno Haible  <bruno@clisp.org>
41610
41611         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41612         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41613         as autoconf-substituted macros.
41614         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41615         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41616         gl_NETDB_H_DEFAULTS. Set these variables.
41617         * modules/netdb (Makefile.am): Substitute these variables.
41618
41619 2008-11-10  Eric Blake  <ebb9@byu.net>
41620
41621         standards.texi: include correct file for FDL 1.3
41622         * doc/standards.texi (GNU Free Documentation License): Change
41623         include file to pull in FDL 1.3, not 1.2.
41624
41625         fdl.texi: revert accidental change to license
41626         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41627
41628 2008-11-10  Bruno Haible  <bruno@clisp.org>
41629
41630         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41631         cross-compiling guesses also when the native compile gives no result.
41632
41633 2008-11-10  Bruno Haible  <bruno@clisp.org>
41634
41635         * lib/spawni.c (__spawni): Force variable into the stack.
41636
41637 2008-11-10  Bruno Haible  <bruno@clisp.org>
41638
41639         Add support for Haiku.
41640         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41641         glibc and BeOS, but also on Haiku.
41642         * lib/fpurge.c (fpurge): Likewise.
41643         * lib/freadable.c (freadable): Likewise.
41644         * lib/freadahead.c (freadahead): Likewise.
41645         * lib/freading.c (freading): Likewise.
41646         * lib/freadptr.c (freadptr): Likewise.
41647         * lib/freadseek.c (freadptrinc): Likewise.
41648         * lib/fseeko.c (rpl_fseeko): Likewise.
41649         * lib/fseterr.c (fseterr): Likewise.
41650         * lib/fwritable.c (fwritable): Likewise.
41651         * lib/fwriting.c (fwriting): Likewise.
41652         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41653
41654 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41655
41656         * lib/config.charset: Treat Haiku like BeOS.
41657
41658 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41659
41660         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41661         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41662
41663 2008-11-08  Bruno Haible  <bruno@clisp.org>
41664
41665         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41666         AC_CACHE_CHECK.
41667
41668 2008-11-08  Bruno Haible  <bruno@clisp.org>
41669
41670         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41671
41672 2008-11-08  Bruno Haible  <bruno@clisp.org>
41673
41674         * tests/test-select-fd.c: New file.
41675         * tests/test-select-in.sh: New file.
41676         * tests/test-select-out.sh: New file.
41677         * tests/test-select-stdin.c: New file.
41678         * modules/select-tests (Files): Add the new files.
41679         (Depends-on): Add gettimeofday.
41680         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41681         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41682         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41683
41684 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41685             Bruno Haible  <bruno@clisp.org>
41686
41687         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41688
41689 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41690
41691         * build-aux/pmccabe2html: Added support for C++ source files.
41692
41693 2008-11-05  Ben Pfaff  <blp@gnu.org>
41694
41695         Fix lib/close.c build on Windows.
41696         * modules/close (Files): Add lib/w32sock.h.
41697
41698 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41699
41700         Accept Bison's NEWS format.
41701         * build-aux/announce-gen (print_news_deltas): Tweak
41702         $re_prefix.
41703
41704 2008-11-04  Bruno Haible  <bruno@clisp.org>
41705
41706         * modules/random_r (Maintainer): Add glibc.
41707
41708 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41709
41710         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41711         by karl@freefriends.org (Karl Berry).
41712         * doc/alloca.texi: Likewise.
41713         * doc/c-ctype.texi: Likewise.
41714         * doc/c-strcase.texi: Likewise.
41715         * doc/c-strcaseeq.texi: Likewise.
41716         * doc/c-strcasestr.texi: Likewise.
41717         * doc/c-strstr.texi: Likewise.
41718         * doc/c-strtod.texi: Likewise.
41719         * doc/c-strtold.texi: Likewise.
41720         * doc/ctime.texi: Likewise.
41721         * doc/error.texi: Likewise.
41722         * doc/fdl.texi: Likewise.
41723         * doc/gcd.texi: Likewise.
41724         * doc/getdate.texi: Likewise.
41725         * doc/gnulib-intro.texi: Likewise.
41726         * doc/gnulib-tool.texi: Likewise.
41727         * doc/gnulib.texi: Likewise.
41728         * doc/inet_ntoa.texi: Likewise.
41729         * doc/maintain.texi: Likewise.
41730         * doc/make-stds.texi: Likewise.
41731         * doc/quote.texi: Likewise.
41732         * doc/regexprops-generic.texi: Likewise.
41733         * doc/standards.texi: Likewise.
41734         * doc/verify.texi: Likewise.
41735         * doc/visibility.texi: Likewise.
41736         * doc/gnulib.texi (GNU Free Documentation License): Include
41737         fdl-1.3.texi instead of fdl.texi.
41738
41739 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41740
41741         * doc/fdl-1.3.texi: New file, from
41742         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41743         * modules/fdl-1.3: Add.
41744         * MODULES.html.sh: Add fdl-1.3.
41745
41746 2008-11-03  Bruno Haible  <bruno@clisp.org>
41747
41748         Make determination of absolute name of header file work with AIX xlc.
41749         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41750         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41751         preprocessing.
41752         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41753         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41754
41755 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41756
41757         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41758         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41759         <ludo@gnu.org>.
41760
41761 2008-11-02  Bruno Haible  <bruno@clisp.org>
41762
41763         Mark 'strpbrk' obsolete.
41764         * modules/strpbrk (Status, Notice): New sections.
41765         * modules/strtok_r (Depends-on): Add strpbrk.
41766
41767 2008-11-02  Bruno Haible  <bruno@clisp.org>
41768
41769         Mark 'strdup' obsolete.
41770         * modules/strdup (Status, Notice): New sections.
41771         * modules/findprog (Depends-on): Add strdup.
41772         * modules/getaddrinfo (Depends-on): Likewise.
41773         * modules/localename (Depends-on): Likewise.
41774         * modules/relocatable-lib (Depends-on): Likewise.
41775         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41776         * modules/relocatable-prog (Depends-on): Likewise.
41777         * modules/trim (Depends-on): Likewise.
41778         * modules/unictype/gen-ctype (Depends-on): Likewise.
41779         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41780
41781 2008-11-02  Bruno Haible  <bruno@clisp.org>
41782
41783         Mark 'strcspn' obsolete.
41784         * modules/strcspn (Status, Notice): New sections.
41785
41786 2008-11-02  Bruno Haible  <bruno@clisp.org>
41787
41788         Mark 'rmdir' obsolete.
41789         * modules/rmdir (Status, Notice): New sections.
41790         * modules/clean-temp (Depends-on): Add rmdir.
41791         * modules/openat (Depends-on): Likewise.
41792
41793 2008-11-02  Bruno Haible  <bruno@clisp.org>
41794
41795         Mark 'raise' obsolete.
41796         * modules/raise (Status, Notice): New sections.
41797         (Include): Specify <signal.h>.
41798         * modules/stdio (Depends-on): Add raise.
41799         * modules/write (Depends-on): Likewise.
41800
41801 2008-11-02  Bruno Haible  <bruno@clisp.org>
41802
41803         Mark 'memset' obsolete.
41804         * modules/memset (Status, Notice): New sections.
41805
41806 2008-11-02  Bruno Haible  <bruno@clisp.org>
41807
41808         Mark 'memmove' obsolete.
41809         * modules/memmove (Status, Notice): New sections.
41810         * modules/argp (Depends-on): Add memmove.
41811         * modules/argz (Depends-on): Likewise.
41812         * modules/canonicalize (Depends-on): Likewise.
41813         * modules/canonicalize-lgpl (Depends-on): Likewise.
41814         * modules/fts (Depends-on): Likewise.
41815         * modules/getcwd (Depends-on): Likewise.
41816         * modules/human (Depends-on): Likewise.
41817         * modules/regex (Depends-on): Likewise.
41818         * modules/striconveh (Depends-on): Likewise.
41819         * modules/trim (Depends-on): Likewise.
41820         * modules/unistr/u8-move (Depends-on): Likewise.
41821         * modules/unistr/u16-move (Depends-on): Likewise.
41822         * modules/unistr/u32-move (Depends-on): Likewise.
41823
41824 2008-11-02  Bruno Haible  <bruno@clisp.org>
41825
41826         Mark 'memcpy' obsolete.
41827         * modules/memcpy (Status, Notice): New sections.
41828
41829 2008-11-02  Bruno Haible  <bruno@clisp.org>
41830
41831         Mark 'memcmp' obsolete.
41832         * modules/memcmp (Status, Notice): New sections.
41833         * modules/argmatch (Depends-on): Add memchr.
41834         * modules/backupfile (Depends-on): Likewise.
41835         * modules/c-strcasestr (Depends-on): Likewise.
41836         * modules/crypto/des (Depends-on): Likewise.
41837         * modules/csharpcomp (Depends-on): Likewise.
41838         * modules/fnmatch (Depends-on): Likewise.
41839         * modules/git-merge-changelog (Depends-on): Likewise.
41840         * modules/isnand (Depends-on): Likewise.
41841         * modules/isnand-nolibm (Depends-on): Likewise.
41842         * modules/isnanf (Depends-on): Likewise.
41843         * modules/isnanf-nolibm (Depends-on): Likewise.
41844         * modules/isnanl (Depends-on): Likewise.
41845         * modules/isnanl-nolibm (Depends-on): Likewise.
41846         * modules/mbchar (Depends-on): Likewise.
41847         * modules/memcoll (Depends-on): Likewise.
41848         * modules/quotearg (Depends-on): Likewise.
41849         * modules/regex (Depends-on): Likewise.
41850         * modules/relocatable-prog (Depends-on): Likewise.
41851         * modules/same (Depends-on): Likewise.
41852         * modules/signbit (Depends-on): Likewise.
41853         * modules/strcasestr-simple (Depends-on): Likewise.
41854         * modules/unictype/gen-ctype (Depends-on): Likewise.
41855         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41856         * modules/uniname/uniname (Depends-on): Likewise.
41857         * modules/unistr/u8-cmp (Depends-on): Likewise.
41858
41859 2008-11-02  Bruno Haible  <bruno@clisp.org>
41860
41861         Mark 'memchr' obsolete.
41862         * modules/memchr (Status, Notice): New sections.
41863         * modules/argp (Depends-on): Add memchr.
41864         * modules/base64 (Depends-on): Likewise.
41865         * modules/c-strcasestr (Depends-on): Likewise.
41866         * modules/chdir-long (Depends-on): Likewise.
41867         * modules/fnmatch (Depends-on): Likewise.
41868         * modules/getsubopt (Depends-on): Likewise.
41869         * modules/git-merge-changelog (Depends-on): Likewise.
41870         * modules/glob (Depends-on): Likewise.
41871         * modules/strcasestr-simple (Depends-on): Likewise.
41872         * modules/strnlen (Depends-on): Likewise.
41873
41874 2008-11-02  Bruno Haible  <bruno@clisp.org>
41875
41876         Mark 'atexit' obsolete.
41877         * modules/atexit (Status, Notice): New sections.
41878         * modules/chdir-long (Depends-on): Add atexit.
41879         * modules/wait-process (Depends-on): Likewise.
41880
41881 2008-11-02  Bruno Haible  <bruno@clisp.org>
41882
41883         * gnulib-tool: New option --with-obsolete.
41884         (func_usage): Document it.
41885         (func_modules_transitive_closure): Drop obsolete dependencies if
41886         incobsolete is not true.
41887         (func_import): Read and save the incobsolete variable to the cache.
41888
41889 2008-11-02  Bruno Haible  <bruno@clisp.org>
41890
41891         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41892         * gnulib-tool: New option --extract-status.
41893         (func_usage): Document it.
41894         (sed_extract_prog): Recognize it.
41895         (func_get_status): New function.
41896
41897 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41898
41899         * modules/sockets (License): Change from LGPL to LGPLv2+.
41900
41901 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41902
41903         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41904
41905 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41906
41907         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41908         Mention times and sys_times.
41909         * modules/sys_times, modules/sys_times-tests: New modules.
41910         * modules/times, modules/times-tests: Likewise
41911         * m4/sys_times_h.m4: New file.
41912         * lib/sys_times.in.h: Likewise
41913         * lib/times.c: Likewise.
41914         * tests/test-sys_times.c: Likewise.
41915         * tests/test-times.c: Likewise.
41916         * doc/posix-headers/sys_times.texi: Update.
41917         * doc/posix-functions/times.texi: Update.
41918
41919 2008-10-28  Jim Meyering  <meyering@redhat.com>
41920
41921         * modules/tempname (Depends-on): Add lstat.
41922
41923         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41924
41925 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41926
41927         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41928         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41929         using idiom used elsewhere in gnulib.
41930
41931 2008-10-27  Jim Meyering  <meyering@redhat.com>
41932
41933         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41934
41935 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41936
41937         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41938         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41939         programs.
41940         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41941
41942 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41943
41944         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41945
41946 2008-10-27  Bruno Haible  <bruno@clisp.org>
41947
41948         * tests/test-lstat.c: Include <stdio.h>.
41949
41950 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41951
41952         * modules/lstat-tests: New module.
41953         * tests/test-lstat.c: New file.
41954
41955 2008-10-26  Jim Meyering  <meyering@redhat.com>
41956
41957         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41958
41959 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41960             Bruno Haible  <bruno@clisp.org>
41961
41962         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41963         * modules/configmake (Include): Add a note that the include must come
41964         after all system headers.
41965         * lib/javaversion.c: Include configmake.h after all other includes.
41966
41967 2008-10-26  Bruno Haible  <bruno@clisp.org>
41968
41969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41970         HAVE_STRUCT_RANDOM_DATA to 1.
41971         (gl_STDLIB_H): Simplify.
41972
41973 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41974
41975         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41976         substitute HAVE_STRUCT_RANDOM_DATA.
41977         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41978         random_data.
41979         * modules/stdlib (Makefile.am): Substitute
41980         HAVE_STRUCT_RANDOM_DATA.
41981
41982 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41983
41984         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41985         * doc/gnulib-intro.texi (Copyright): Likewise.
41986
41987 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41988
41989         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41990         findings.
41991
41992 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41993             Bruno Haible  <bruno@clisp.org>
41994
41995         * lib/unistd.in.h: Include <winsock2.h>.
41996         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41997         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41998         Provide dummy declarations.
41999         (gethostname): Override.
42000         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42001         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42002         gl_PREREQ_SYS_H_WINSOCK2.
42003         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42004         * doc/posix-functions/gethostname.texi: More details.
42005
42006 2008-10-25  Bruno Haible  <bruno@clisp.org>
42007
42008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42009         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42010         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42011
42012         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42013         here ...
42014         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42015         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42016         gl_UNISTD_H_DEFAULTS.
42017
42018 2008-10-25  Eric Blake  <ebb9@byu.net>
42019
42020         signbit: avoid spurious compiler failure
42021         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
42022         declarations inside function.
42023
42024 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42025             Bruno Haible  <bruno@clisp.org>
42026
42027         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
42028         * modules/random_r (Depends-on): Add stdint.
42029
42030 2008-10-24  Bruno Haible  <bruno@clisp.org>
42031
42032         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
42033         Eggert.
42034         * modules/strerror (License): Likewise.
42035
42036 2008-10-24  Jim Meyering  <meyering@redhat.com>
42037
42038         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
42039         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
42040
42041 2008-10-24  Eric Blake  <ebb9@byu.net>
42042
42043         getgroups: fix compilation when getgroups is available
42044         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
42045         but with <config.h> override of getgroups disabled.
42046
42047 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42048
42049         * doc/gnulib.texi (Header files): Add note about C++ problems.
42050         Explained by Bruno Haible <bruno@clisp.org>.
42051
42052 2008-10-23  Bruno Haible  <bruno@clisp.org>
42053
42054         Define a dummy SA_NODEFER macro on Interix.
42055         * lib/signal.in.h (SA_NODEFER): Define fallback.
42056         Reported by Aleksey Cheusov <cheusov@tut.by> via
42057         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42058
42059 2008-10-23  Bruno Haible  <bruno@clisp.org>
42060
42061         * modules/freadahead (License): Change to LGPLv2+.
42062         Suggested by Simon Josefsson.
42063
42064 2008-10-23  Jim Meyering  <meyering@redhat.com>
42065
42066         random_r: new module
42067         * modules/random_r: New file.
42068         * m4/random_r.m4: New file.
42069         * lib/random_r.c: New file, from glibc.
42070         * modules/random_r-tests: New file.
42071         * tests/test-random_r.c: New file.
42072         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42073          Declare.
42074         (RAND_MAX): Define.
42075         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42076         * modules/stdlib: Substitute them, too.
42077         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42078         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42079         * doc/glibc-functions/random_r.texi: Likewise.
42080         * doc/glibc-functions/setstate_r.texi: Likewise.
42081         * doc/glibc-functions/srandom_r.texi: Likewise.
42082         * config/srclist.txt: Mention it.
42083
42084 2008-10-23  David Lutterkort  <lutter@redhat.com>
42085
42086         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42087         link requirement
42088
42089 2008-10-23  Jim Meyering  <meyering@redhat.com>
42090
42091         selinux-h: mark parameters of stub functions as intentionally unused
42092         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42093         * lib/se-context.in.h: Likewise.
42094
42095 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42096
42097         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42098
42099 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42100
42101         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42102
42103 2008-10-22  Eric Blake  <ebb9@byu.net>
42104
42105         glthread/thread: avoid compiler warning
42106         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42107         Add unreachable abort to silence compiler.
42108
42109 2008-10-22  Eric Blake  <ebb9@byu.net>
42110
42111         netdb: also supply struct addrinfo for cygwin 1.5.x
42112         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42113         older cygwin.
42114         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42115         cygwin.
42116         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42117
42118 2008-10-22  Bruno Haible  <bruno@clisp.org>
42119
42120         * users.txt: Update entry about pspp.
42121
42122 2008-10-21  Bruno Haible  <bruno@clisp.org>
42123
42124         Simplification.
42125         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
42126         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
42127
42128         Simplification.
42129         * lib/ioctl.c (ioctl): Don't undefine.
42130         * lib/socket.c (socket): Don't undefine.
42131
42132         Remove unused module indicator macros.
42133         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
42134         GNULIB_$1 as a C macro.
42135
42136         * doc/posix-functions/close.texi: Undo last change.
42137         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
42138         Windows platforms.
42139
42140 2008-10-21  Bruno Haible  <bruno@clisp.org>
42141
42142         Add gethostname() declaration to <unistd.h>.
42143         * lib/unistd.in.h (gethostname): New declaration.
42144         * lib/gethostname.c: Include <unistd.h>.
42145         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
42146         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
42147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
42148         and HAVE_GETHOSTNAME.
42149         * modules/gethostname (Depends-on): Add unistd.
42150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42151         (Include): Specify <unistd.h>.
42152         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
42153         HAVE_GETHOSTNAME.
42154         * tests/test-gethostname.c: Include <unistd.h> first.
42155
42156 2008-10-21  Bruno Haible  <bruno@clisp.org>
42157
42158         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
42159         * modules/select-tests (Depends-on): Likewise.
42160         Reported by Simon Josefsson.
42161
42162 2008-10-21  Simon Josefsson  <simon@josefsson.org>
42163
42164         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
42165         * lib/accept.c: New file, based on winsock.c.
42166         * lib/bind.c: New file, based on winsock.c.
42167         * lib/connect.c: New file, based on winsock.c.
42168         * lib/getpeername.c: New file, based on winsock.c.
42169         * lib/getsockname.c: New file, based on winsock.c.
42170         * lib/getsockopt.c: New file, based on winsock.c.
42171         * lib/ioctl.c: New file, based on winsock.c.
42172         * lib/listen.c: New file, based on winsock.c.
42173         * lib/recv.c: New file, based on winsock.c.
42174         * lib/recvfrom.c: New file, based on winsock.c.
42175         * lib/send.c: New file, based on winsock.c.
42176         * lib/sendto.c: New file, based on winsock.c.
42177         * lib/setsockopt.c: New file, based on winsock.c.
42178         * lib/shutdown.c: New file, based on winsock.c.
42179         * lib/socket.c: New file, based on winsock.c.
42180         * lib/w32sock.h: New file, based on winsock.c.
42181         * lib/winsock.c: Remove file.
42182         * modules/accept: Likewise.
42183         * modules/bind: Likewise.
42184         * modules/connect: Likewise.
42185         * modules/getpeername: Likewise.
42186         * modules/getsockname: Likewise.
42187         * modules/getsockopt: Likewise.
42188         * modules/ioctl: Likewise.
42189         * modules/listen: Likewise.
42190         * modules/recv: Likewise.
42191         * modules/recvfrom: Likewise.
42192         * modules/send: Likewise.
42193         * modules/sendto: Likewise.
42194         * modules/setsockopt: Likewise.
42195         * modules/shutdown: Likewise.
42196         * modules/socket: Use socket.c instead of winsock.c.
42197         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
42198         * doc/posix-functions/accept.texi: Doc fix.
42199         * doc/posix-functions/bind.texi: Doc fix.
42200         * doc/posix-functions/close.texi: Doc fix.
42201         * doc/posix-functions/connect.texi: Doc fix.
42202         * doc/posix-functions/getpeername.texi: Doc fix.
42203         * doc/posix-functions/getsockname.texi: Doc fix.
42204         * doc/posix-functions/getsockopt.texi: Doc fix.
42205         * doc/posix-functions/ioctl.texi: Doc fix.
42206         * doc/posix-functions/listen.texi: Doc fix.
42207         * doc/posix-functions/recv.texi: Doc fix.
42208         * doc/posix-functions/recvfrom.texi: Doc fix.
42209         * doc/posix-functions/send.texi: Doc fix.
42210         * doc/posix-functions/sendto.texi: Doc fix.
42211         * doc/posix-functions/setsockopt.texi: Doc fix.
42212         * doc/posix-functions/shutdown.texi: Doc fix.
42213         * doc/posix-functions/socket.texi: Doc fix.
42214
42215 2008-10-20  Bruno Haible  <bruno@clisp.org>
42216
42217         Take into account the role of SIGABRT_COMPAT on Windows 2008.
42218         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
42219         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
42220         as an alias for SIGABRT.
42221         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
42222         (sigaction): Map it to SIGABRT.
42223         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
42224
42225 2008-10-20  Bruno Haible  <bruno@clisp.org>
42226
42227         * lib/fts.c: Don't include lstat.h.
42228         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
42229
42230         Move the lstat() declaration to <sys/stat.h>.
42231         * lib/lstat.h: Remove file.
42232         * lib/sys_stat.in.h: Add special invocation convention.
42233         (lstat): New declaration.
42234         * lib/lstat.c (orig_lstat): New function.
42235         (rpl_lstat): Use orig_lstat instead of lstat.
42236         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
42237         AC_C_INLINE. Set REPLACE_LSTAT.
42238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
42239         and REPLACE_LSTAT.
42240         * modules/lstat (Files): Remove lib/lstat.h.
42241         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42242         (Include): Specify <sys/stat.h> instead of lstat.h.
42243         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
42244         REPLACE_LSTAT.
42245         * NEWS: Mention the change.
42246
42247 2008-10-20  Bruno Haible  <bruno@clisp.org>
42248
42249         * modules/posix_spawn-tests: New file.
42250         * tests/test-posix_spawn3.c: New file.
42251
42252 2008-10-20  Bruno Haible  <bruno@clisp.org>
42253
42254         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
42255         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42256         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
42257         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
42258         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
42259
42260 2008-10-20  Bruno Haible  <bruno@clisp.org>
42261
42262         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
42263         of posix_spawn on AIX 5.3.
42264
42265 2008-10-20  Bruno Haible  <bruno@clisp.org>
42266
42267         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
42268
42269 2008-10-20  Bruno Haible  <bruno@clisp.org>
42270
42271         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
42272         of AC_LANG_PROGRAM.
42273
42274 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42275
42276         * lib/netdb.in.h: Don't define GNU specific constants until they
42277         are supported or needed.  Reported by Bruno Haible
42278         <bruno@clisp.org>.
42279
42280 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42281
42282         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
42283
42284 2008-10-20  Simon Josefsson  <simon@josefsson.org>
42285
42286         * lib/getaddrinfo.h: Remove file.
42287         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
42288         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
42289         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
42290         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
42291         * modules/netdb: Substitute GNULIB_GETADDRINFO.
42292         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
42293         * tests/test-getaddrinfo.c: Likewise.
42294         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
42295         * NEWS: Mention change.
42296
42297 2008-10-19  Bruno Haible  <bruno@clisp.org>
42298
42299         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
42300
42301 2008-10-19  Bruno Haible  <bruno@clisp.org>
42302
42303         * lib/wait-process.c: Include simply <sys/wait.h>.
42304         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
42305         WIFSTOPPED): Remove fallback definitions.
42306         * modules/wait-process (Depends-on): Add sys_wait.
42307
42308         New module 'sys_wait'.
42309         * modules/sys_wait: New file.
42310         * lib/sys_wait.in.h: New file, partially copied from
42311         lib/wait-process.c.
42312         * m4/sys_wait_h.m4: New file.
42313         * doc/posix-headers/sys_wait.texi: Mention the new module.
42314
42315 2008-10-19  Bruno Haible  <bruno@clisp.org>
42316
42317         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
42318
42319 2008-10-19  Bruno Haible  <bruno@clisp.org>
42320
42321         Assume that waitpid() fills an 'int' status, not a 'union wait'.
42322         * lib/wait-process.c (WAIT_T): Remove type.
42323         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
42324         (wait_subprocess): Update.
42325
42326 2008-10-19  Bruno Haible  <bruno@clisp.org>
42327
42328         New module 'atoll'.
42329         * modules/atoll: New file.
42330         * lib/stdlib.in.h (atoll): New declaration.
42331         * lib/atoll.c: New file, from glibc with modifications.
42332         * m4/atoll.m4: New file.
42333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
42334         HAVE_ATOLL.
42335         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
42336         * doc/posix-functions/atoll.texi: Mention the new module.
42337
42338 2008-10-19  Bruno Haible  <bruno@clisp.org>
42339
42340         Add strtoull() declaration to <stdlib.h>.
42341         * lib/stdlib.in.h (strtoull): New declaration.
42342         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42343         Set HAVE_STRTOULL.
42344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
42345         HAVE_STRTOULL.
42346         * modules/strtoull (Depends-on): Add stdlib.
42347         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42348         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
42349         HAVE_STRTOULL.
42350
42351 2008-10-19  Bruno Haible  <bruno@clisp.org>
42352
42353         Add strtoll() declaration to <stdlib.h>.
42354         * lib/stdlib.in.h (strtoll): New declaration.
42355         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
42356         Set HAVE_STRTOLL.
42357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
42358         HAVE_STRTOLL.
42359         * modules/strtoll (Depends-on): Add stdlib.
42360         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42361         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
42362
42363 2008-10-19  Bruno Haible  <bruno@clisp.org>
42364
42365         * modules/bcopy (Depends-on): Add strings.
42366         (Include): Specify <strings.h>.
42367
42368 2008-10-19  Bruno Haible  <bruno@clisp.org>
42369
42370         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
42371
42372 2008-10-19  Bruno Haible  <bruno@clisp.org>
42373
42374         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
42375         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
42376         mingw.
42377
42378 2008-10-19  Bruno Haible  <bruno@clisp.org>
42379
42380         * lib/atanl.c: Don't include isnanl.h.
42381         * lib/cosl.c: Likewise.
42382         * lib/ldexpl.c: Likewise.
42383         * lib/logl.c: Likewise.
42384         * lib/sinl.c: Likewise.
42385         * lib/sqrtl.c: Likewise.
42386         * lib/tanl.c: Likewise.
42387
42388         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
42389         * lib/isnanf.h: Remove file.
42390         * lib/isnand.h: Remove file.
42391         * lib/isnanl.h: Remove file.
42392         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
42393         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
42394         macros.
42395         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
42396         HAVE_ISNANF, don't define it as a C macro.
42397         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
42398         HAVE_ISNAND, don't define it as a C macro.
42399         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
42400         HAVE_ISNANL, don't define it as a C macro.
42401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
42402         HAVE_ISNAN[FDL].
42403         * modules/isnanf (Files): Remove lib/isnanf.h.
42404         (Depends-on): Add math.
42405         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42406         (Include): Specify <math.h> instead of isnanf.h.
42407         * modules/isnand (Files): Remove lib/isnand.h.
42408         (Depends-on): Add math.
42409         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42410         (Include): Specify <math.h> instead of isnand.h.
42411         * modules/isnanl (Files): Remove lib/isnanl.h.
42412         (Depends-on): Add math.
42413         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42414         (Include): Specify <math.h> instead of isnanl.h.
42415         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
42416         HAVE_ISNAN[FDL].
42417         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
42418         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
42419         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
42420         * NEWS: Mention the change.
42421
42422 2008-10-18  Bruno Haible  <bruno@clisp.org>
42423
42424         Add getusershell(), setusershell(), endusershell() declarations to
42425         <unistd.h>.
42426         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
42427         declarations.
42428         * lib/getusershell.c: Include unistd.h.
42429         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
42430         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42431         HAVE_GETUSERSHELL.
42432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
42433         and HAVE_GETUSERSHELL.
42434         * modules/getusershell (Depends-on): Add unistd, extensions.
42435         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42436         (Include): Specify <unistd.h>.
42437         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
42438         HAVE_GETUSERSHELL.
42439
42440 2008-10-18  Bruno Haible  <bruno@clisp.org>
42441
42442         Add a getloadavg() declaration to <stdlib.h>.
42443         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
42444         getloadavg declaration.
42445         (getloadavg): New declaration.
42446         * lib/getloadavg.c: Include <stdlib.h> first.
42447         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
42448         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
42449         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
42450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
42451         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42452         * modules/getloadavg (Depends-on): Add stdlib, extensions.
42453         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42454         (Include): Specify <stdlib.h>.
42455         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
42456         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
42457
42458 2008-10-18  Bruno Haible  <bruno@clisp.org>
42459
42460         * lib/dirchownmod.c: Don't include lchmod.h.
42461
42462         Move the lchmod() declaration to <sys/stat.h>.
42463         * lib/lchmod.h: Remove file.
42464         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
42465         (lchmod): New declaration, moved here from lib/lchown.h.
42466         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
42467         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
42468         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
42469         and HAVE_LCHMOD.
42470         * modules/lchmod (Files): Remove lib/lchmod.h.
42471         (Depends-on): Add sys_stat, extensions.
42472         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
42473         (Include): Specify <sys/stat.h> instead of lchmod.h.
42474         * modules/sys_stat (Depends-on): Add link-warning.
42475         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
42476         definition of GL_LINK_WARNING.
42477         * NEWS: Mention the change.
42478
42479 2008-10-18  Bruno Haible  <bruno@clisp.org>
42480
42481         * lib/fchdir.c: Don't include dirfd.h.
42482         * lib/fts.c: Likewise.
42483         * lib/getcwd.c: Likewise.
42484         * lib/glob.c: Likewise.
42485
42486         Move the dirfd() declaration to <dirent.h>.
42487         * lib/dirfd.h: Remove file.
42488         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
42489         (dirfd): New declaration.
42490         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
42491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
42492         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
42493         HAVE_DECL_DIRFD.
42494         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
42495         HAVE_DECL_DIRFD.
42496         * modules/dirfd (Files): Remove lib/dirfd.h.
42497         (Depends-on): Add dirent, extensions.
42498         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
42499         (Include): Specify <dirent.h> instead of dirfd.h.
42500         * modules/dirent (Depends-on): Add link-warning.
42501         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
42502         definition of GL_LINK_WARNING.
42503         * NEWS: Mention the change.
42504
42505 2008-10-18  Bruno Haible  <bruno@clisp.org>
42506
42507         Move the euidaccess() declaration to <unistd.h>.
42508         * lib/euidaccess.h: Remove file.
42509         * lib/unistd.in.h (euidaccess): New declaration.
42510         * lib/euidaccess.c: Don't include euidaccess.h.
42511         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
42512         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
42513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
42514         and HAVE_EUIDACCESS.
42515         * modules/euidaccess (Files): Remove lib/euidaccess.h.
42516         (Depends-on): Add unistd.
42517         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42518         (Include): Specify <unistd.h> instead of euidaccess.h.
42519         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
42520         HAVE_EUIDACCESS.
42521         * NEWS: Mention the change.
42522
42523 2008-10-18  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
42526
42527         Move the getdomainname() declaration to <unistd.h>.
42528         * lib/getdomainname.h: Remove file.
42529         * lib/unistd.in.h (getdomainname): New declaration.
42530         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
42531         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42532         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
42533         HAVE_GETDOMAINNAME.
42534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42535         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
42536         * modules/getdomainname (Files): Remove lib/getdomainname.h.
42537         (Depends-on): Add unistd, extensions.
42538         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42539         (Includes): Specify <unistd.h> instead of getdomainname.h.
42540         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
42541         HAVE_GETDOMAINNAME.
42542         * NEWS: Mention the change.
42543
42544 2008-10-18  Bruno Haible  <bruno@clisp.org>
42545
42546         * modules/dirent: New file.
42547         * m4/dirent_h.m4: New file.
42548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
42549         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
42550         * modules/fchdir (Files): Remove lib/dirent.in.h.
42551         (Depends-on): Add dirent.
42552         (Makefile.am): Move rules to modules/dirent.
42553         * doc/posix-headers/dirent.texi: Mention the new module.
42554
42555 2008-10-18  Bruno Haible  <bruno@clisp.org>
42556
42557         Avoid -Wunused-parameter warnings in public gnulib header files.
42558         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42559         macro.
42560         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42561
42562 2008-10-18  Bruno Haible  <bruno@clisp.org>
42563
42564         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42565         * doc/glibc-functions/error.texi: Mention the module 'error'.
42566         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42567         * doc/glibc-functions/getdomainname.texi: Mention the module
42568         'getdomainname'.
42569         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42570         * doc/glibc-functions/getpagesize.texi: Mention the module
42571         'getpagesize'.
42572         * doc/glibc-functions/getusershell.texi: Mention the module
42573         'getusershell'.
42574         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42575         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42576         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42577         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42578         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42579         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42580         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42581         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42582         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42583         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42584         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42585         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42586         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42587         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42588
42589 2008-10-17  Bruno Haible  <bruno@clisp.org>
42590
42591         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42592         HP-UX and IRIX, use -0.0L.
42593         * tests/test-ceill.c (minus_zero): Likewise.
42594         * tests/test-floorl.c (minus_zero): Likewise.
42595         * tests/test-frexpl.c (minus_zero): Likewise.
42596         * tests/test-isnan.c (minus_zerol): Likewise.
42597         * tests/test-isnanl.h (minus_zero): Likewise.
42598         * tests/test-ldexpl.c (minus_zero): Likewise.
42599         * tests/test-roundl.c (minus_zero): Likewise.
42600         * tests/test-signbit.c (minus_zerol): Likewise.
42601         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42602         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42603         * tests/test-truncl.c (minus_zero): Likewise.
42604         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42605         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42606         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42607         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42608
42609 2008-10-17  Bruno Haible  <bruno@clisp.org>
42610
42611         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42612         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42613         that it gets activated only for gcc >= 3.0.
42614         * lib/dirent.in.h: Likewise.
42615         * lib/errno.in.h: Likewise.
42616         * lib/fcntl.in.h: Likewise.
42617         * lib/float.in.h: Likewise.
42618         * lib/iconv.in.h: Likewise.
42619         * lib/inttypes.in.h: Likewise.
42620         * lib/locale.in.h: Likewise.
42621         * lib/math.in.h: Likewise.
42622         * lib/netdb.in.h: Likewise.
42623         * lib/netinet_in.in.h: Likewise.
42624         * lib/search.in.h: Likewise.
42625         * lib/signal.in.h: Likewise.
42626         * lib/spawn.in.h: Likewise.
42627         * lib/stdarg.in.h: Likewise.
42628         * lib/stdint.in.h: Likewise.
42629         * lib/stdio.in.h: Likewise.
42630         * lib/stdlib.in.h: Likewise.
42631         * lib/string.in.h: Likewise.
42632         * lib/strings.in.h: Likewise.
42633         * lib/sys_file.in.h: Likewise.
42634         * lib/sys_ioctl.in.h: Likewise.
42635         * lib/sys_select.in.h: Likewise.
42636         * lib/sys_socket.in.h: Likewise.
42637         * lib/sys_stat.in.h: Likewise.
42638         * lib/sys_time.in.h: Likewise.
42639         * lib/sysexits.in.h: Likewise.
42640         * lib/time.in.h: Likewise.
42641         * lib/unistd.in.h: Likewise.
42642         * lib/wchar.in.h: Likewise.
42643         * lib/wctype.in.h: Likewise.
42644         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42645
42646 2008-10-17  Jim Meyering  <meyering@redhat.com>
42647
42648         ignore-value: don't depend on inline module
42649         * modules/ignore-value (Depends-on): Remove 'inline'.
42650         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42651         Suggestion from Bruno Haible.
42652
42653 2008-10-17  Bruno Haible  <bruno@clisp.org>
42654
42655         New implementation of condition variables for Win32.
42656         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42657         (gl_linked_waitqueue_t): New type.
42658         (gl_cond_t): Use it.
42659         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42660         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42661         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42662         (glthread_cond_init_func, glthread_cond_wait_func,
42663         glthread_cond_timedwait_func, glthread_cond_signal_func,
42664         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42665         Reimplemented on the basis of gl_linked_waitqueue_t.
42666         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42667         gl_waitqueue_t.
42668         (gl_rwlock_t): Update.
42669         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42670
42671 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42672
42673         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42674         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42675
42676 2008-10-17  Jim Meyering  <meyering@redhat.com>
42677
42678         ignore-value: new module
42679         * modules/ignore-value: New file.
42680         * lib/ignore-value.h: New file.
42681         * MODULES.html.sh (Compiler warning management): New section,
42682         just for this module.  More to come.
42683
42684 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42685
42686         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42687         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42688         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42689
42690 2008-10-16  Jim Meyering  <meyering@redhat.com>
42691
42692         openat-die.c: avoid 'no previous prototype' warning
42693         * lib/openat-die.c: Include "openat.h".
42694         Reported by Reuben Thomas <rrt@sc3d.org>.
42695
42696 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42697
42698         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42699         * lib/netdb.in.h: Fix typo.
42700         Reported by Bruno Haible  <bruno@clisp.org>
42701
42702         * lib/netdb.in.h: Include sys/socket.h for platforms without
42703         netdb.h, to get structures like hostent on MinGW.
42704         * modules/netdb (Depends-on): Add sys_socket.
42705
42706 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42707
42708         * modules/netdb, modules/netdb-tests: New file.
42709         * m4/netdb_h.m4: New file.
42710         * lib/netdb.in.h: Add, currently just an empty file pending
42711         definitions.
42712         * tests/test-netdb.c: New file.
42713         * doc/posix-headers/netdb.texi: Mention that we replace it if
42714         needed.
42715         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42716         netdb.
42717
42718 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42719
42720         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42721         with code.
42722
42723 2008-10-13  Bruno Haible  <bruno@clisp.org>
42724
42725         * lib/glthread/cond.c (glthread_cond_wait_func,
42726         glthread_cond_timedwait_func): Add a comment.
42727
42728 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42729
42730         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42731         * tests/test-select.c: Likewise,
42732
42733 2008-10-13  Bruno Haible  <bruno@clisp.org>
42734
42735         * lib/glthread/cond.c (glthread_cond_wait_func,
42736         glthread_cond_timedwait_func): Fix variable name.
42737         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42738
42739 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42740
42741         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42742         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42743         struct sockaddr.sa_len.
42744         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42745
42746 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42747
42748         * build-aux/pmccabe2html: Add css and css_url parameters.
42749
42750 2008-10-12  Bruno Haible  <bruno@clisp.org>
42751
42752         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42753         calling aclx_get.
42754         Reported by Rainer Tammer <tammer@tammer.net>.
42755
42756 2008-10-12  Bruno Haible  <bruno@clisp.org>
42757
42758         Use msvcrt aware primitives for creation/termination of Win32 threads.
42759         * lib/glthread/thread.c: Include <process.h>.
42760         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42761         (wrapper_func): Update signature.
42762         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42763
42764 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42765             Bruno Haible  <bruno@clisp.org>
42766
42767         Provide a Win32 implementation of the 'cond' module.
42768         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42769         * lib/glthread/cond.c (glthread_cond_init_func,
42770         glthread_cond_wait_func, glthread_cond_timedwait_func,
42771         glthread_cond_signal_func, glthread_cond_broadcast_func,
42772         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42773         * modules/cond (Dependencies): Add gettimeofday.
42774
42775 2008-10-11  Bruno Haible  <bruno@clisp.org>
42776
42777         Make sleep work on older versions of mingw.
42778         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42779         only whether it exists.
42780         * doc/posix-functions/sleep.texi: Mention the problem with older
42781         versions of mingw.
42782
42783 2008-10-11  Bruno Haible  <bruno@clisp.org>
42784
42785         New module 'shutdown'.
42786         * modules/shutdown: New file.
42787         * lib/sys_socket.in.h (shutdown): New declaration.
42788         * lib/winsock.c (shutdown): New function.
42789         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42790         GNULIB_SHUTDOWN.
42791         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42792         * doc/posix-functions/shutdown.texi: Document the new module.
42793
42794 2008-10-11  Jim Meyering  <meyering@redhat.com>
42795
42796         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42797
42798 2008-10-11  Bruno Haible  <bruno@clisp.org>
42799
42800         New module 'fclose'.
42801         * modules/fclose: New file.
42802         * lib/stdio.in.h (fclose): New declaration.
42803         * lib/fclose.c: New file.
42804         * m4/fclose.m4: New file.
42805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42806         REPLACE_FCLOSE.
42807         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42808         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42809         REPLACE_FCLOSE.
42810         * modules/close (Depends-on): fclose.
42811         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42812
42813 2008-10-11  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42816         set errno and don't call _close.
42817
42818 2008-10-10  Bruno Haible  <bruno@clisp.org>
42819
42820         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42821         ACL, not afterwards. Fixes test failure on Cygwin.
42822
42823 2008-10-09  Ben Pfaff  <blp@gnu.org>
42824
42825         * build-aux/announce-gen: Fix gnulib version related part of usage
42826         message.  Die with a useful error message if no tarballs are
42827         found.
42828
42829 2008-10-10  Jim Meyering  <meyering@redhat.com>
42830
42831         bootstrap: use git's --depth=N option only if it's supported
42832         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42833         recognize the --depth option.  Reported by Pádraig Brady.
42834
42835 2008-10-09  Bruno Haible  <bruno@clisp.org>
42836
42837         New module 'ioctl'.
42838         * modules/ioctl: New file.
42839         * lib/sys_socket.in.h (ioctl): Remove declaration.
42840         * lib/winsock.c: Include <sys/ioctl.h>.
42841         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42842         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42843         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42844         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42845         * doc/posix-functions/ioctl.texi: Mention the new module.
42846
42847 2008-10-09  Bruno Haible  <bruno@clisp.org>
42848
42849         New module 'sys_ioctl'.
42850         * lib/sys_ioctl.in.h: New file.
42851         * m4/sys_ioctl_h.m4: New file.
42852         * modules/sys_ioctl: New file.
42853         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42854
42855 2008-10-09  Bruno Haible  <bruno@clisp.org>
42856
42857         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42858         * lib/winsock.c: Include <stdarg.h>.
42859         (rpl_ioctl): Change to second argument 'int' and then varargs.
42860
42861 2008-10-09  Bruno Haible  <bruno@clisp.org>
42862
42863         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42864         when the sys_socket module is present and the system has <winsock2.h>.
42865
42866 2008-10-09  Bruno Haible  <bruno@clisp.org>
42867
42868         * doc/posix-functions/close.texi: Mention module 'close' instead of
42869         module 'sys_socket'.
42870
42871 2008-10-09  Bruno Haible  <bruno@clisp.org>
42872
42873         * doc/glibc-headers/sys_ioctl.texi: New file.
42874         * doc/gnulib.texi: Include it.
42875
42876 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42877             Bruno Haible  <bruno@clisp.org>
42878
42879         Combine the two replacements of 'close'.
42880         * lib/sys_socket.in.h (close): Define to a reminder to include
42881         <unistd.h>.
42882         (_gl_close_fd_maybe_socket): New declaration.
42883         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42884         * lib/winsock.c (close): Remove undefinition.
42885         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42886         needed for the gnulib module 'close'.
42887         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42888         define to an error symbol or to a warning, if suitable.
42889         * lib/close.c: Include <sys/socket.h>.
42890         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42891         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42892         UNISTD_H_HAVE_WINSOCK2_H.
42893         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42895         UNISTD_H_HAVE_WINSOCK2_H.
42896         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42897         (configure.ac): Set a module indicator.
42898         (Makefile.am): Substitute GNULIB_CLOSE.
42899         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42900         * modules/poll-tests (Depends-on): Add close.
42901         * modules/select-tests (Depends-on): Likewise.
42902
42903 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42904             Bruno Haible  <bruno@clisp.org>
42905
42906         New module 'close'.
42907         * modules/close: New file.
42908         * lib/unistd.in.h (close): Move declaration out of the
42909         FCHDIR_REPLACEMENT scope.
42910         (_gl_unregister_fd): New declaration.
42911         * lib/close.c: New file.
42912         * lib/fchdir.c (rpl_close): Remove function.
42913         * m4/close.m4: New file.
42914         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42915         close.
42916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42917         REPLACE_CLOSE.
42918         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42919         REPLACE_CLOSE.
42920         * modules/fchdir (Depends-on): Add close.
42921
42922 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42923             Bruno Haible  <bruno@clisp.org>
42924
42925         * lib/fcntl.in.h (open): Simplify conditionals.
42926         (_gl_register_fd): New declaration.
42927         * lib/fchdir.c (rpl_open): Remove function.
42928         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42929         also.
42930         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42931         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42932         open.
42933
42934 2008-10-09  Jim Meyering  <meyering@redhat.com>
42935
42936         GNUmakefile: use the more name-space-friendly "_version"
42937         * top/GNUmakefile (_dummy): Update.
42938         (_version): Rename from "version".
42939
42940 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42941             Bruno Haible  <bruno@clisp.org>
42942
42943         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42944         rpl_close.
42945         (_gl_register_fd): New function, extracted from rpl_open.
42946         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42947         (rpl_open, rpl_opendir): Use _gl_register_fd.
42948
42949 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42950
42951         Fix organization of 'open' replacement.
42952         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42953         (gl_FUNC_OPEN): Use it.
42954         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42955
42956 2008-10-08  Bruno Haible  <bruno@clisp.org>
42957
42958         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42959
42960 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42961
42962         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42963         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42964         listen).
42965
42966 2008-10-08  Eric Blake  <ebb9@byu.net>
42967
42968         GNUmakefile: add 'make version' target
42969         * top/GNUmakefile (_curr-ver): Split version update rules...
42970         (version): ...into a target.
42971
42972 2008-10-07  Bruno Haible  <bruno@clisp.org>
42973
42974         Use a more portable replacement expression for -0.0L.
42975         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42976         instead of -0.0L. Fix m4 quotation.
42977
42978         * tests/test-signbit.c: Include <float.h>.
42979         (minus_zero): New variable.
42980         (test_signbitl): Use minus_zero instead of -zero.
42981         * modules/signbit-tests (Depends-on): Add float.
42982
42983         * tests/test-ceill.c: Include <float.h>.
42984         (zero): Remove variable.
42985         (minus_zero): New variable.
42986         (main): Use minus_zero instead of -zero.
42987         * modules/ceill-tests (Depends-on): Add float.
42988
42989         * tests/test-floorl.c: Include <float.h>.
42990         (zero): Remove variable.
42991         (minus_zero): New variable.
42992         (main): Use minus_zero instead of -zero.
42993         * modules/floorl-tests (Depends-on): Add float.
42994
42995         * tests/test-roundl.c: Include <float.h>.
42996         (zero): Remove variable.
42997         (minus_zero): New variable.
42998         (main): Use minus_zero instead of -zero.
42999         * modules/roundl-tests (Depends-on): Add float.
43000
43001         * tests/test-truncl.c: Include <float.h>.
43002         (zero): Remove variable.
43003         (minus_zero): New variable.
43004         (main): Use minus_zero instead of -zero.
43005         * modules/truncl-tests (Depends-on): Add float.
43006
43007         * tests/test-frexpl.c (zero): Remove variable.
43008         (minus_zero): New variable.
43009         (main): Use minus_zero instead of -zero.
43010         * modules/frexpl-tests (Depends-on): Add float.
43011
43012         * tests/test-isnan.c (zerol): Remove variable.
43013         (minus_zerol): New variable.
43014         (test_long_double): Use minus_zerol instead of -zerol.
43015         * modules/isnan-tests (Depends-on): Add float.
43016
43017         * tests/test-isnanl.h (zero): Remove variable.
43018         (minus_zero): New variable.
43019         (main): Use minus_zero instead of -zero.
43020         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43021         * modules/isnanl-tests (Depends-on): Add float.
43022
43023         * tests/test-ldexpl.c (zero): Remove variable.
43024         (minus_zero): New variable.
43025         (main): Use minus_zero instead of -zero.
43026         * modules/ldexpl-tests (Depends-on): Add float.
43027
43028         * tests/test-snprintf-posix.h (zerol): Remove variable.
43029         (minus_zerol): New variable.
43030         (test_function): Use minus_zerol instead of -zerol.
43031         * modules/snprintf-posix-tests (Depends-on): Add float.
43032         * modules/vsnprintf-posix-tests (Depends-on): Add float.
43033
43034         * tests/test-sprintf-posix.h (zerol): Remove variable.
43035         (minus_zerol): New variable.
43036         (test_function): Use minus_zerol instead of -zerol.
43037         * modules/sprintf-posix-tests (Depends-on): Add float.
43038         * modules/vsprintf-posix-tests (Depends-on): Add float.
43039
43040         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
43041         (minus_zerol): New variable.
43042         (test_function): Use minus_zerol instead of -zerol.
43043         * modules/vasnprintf-posix-tests (Depends-on): Add float.
43044
43045         * tests/test-vasprintf-posix.c (zerol): Remove variable.
43046         (minus_zerol): New variable.
43047         (test_function): Use minus_zerol instead of -zerol.
43048         * modules/vasprintf-posix-tests (Depends-on): Add float.
43049
43050 2008-10-07  Simon Josefsson  <simon@josefsson.org>
43051
43052         * MODULES.html.sh (Support for building documentation): Mention
43053         pmccabe2html.  Sort entries.
43054
43055         Add pmccabe2html module, from gnupdf.
43056         * build-aux/pmccabe.css: New file.
43057         * build-aux/pmccabe2html: New file.
43058         * m4/pmccabe2html.m4: New file.
43059         * modules/pmccabe2html: New file.
43060
43061 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43062
43063         flock: new module
43064         * MODULES.html.sh: Add to list of modules.
43065         * lib/flock.c: flock implementation for Windows and Unix systems
43066         which have fcntl.
43067         * doc/glibc-functions/flock.texi: Update documentation.
43068         * lib/sys_file.in.h: <sys/file.h> header file.
43069         * m4/flock.m4: M4 macros.
43070         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43071         * modules/flock: flock module.
43072         * modules/flock-tests: flock tests module.
43073         * modules/sys_file: sys/file.h module.
43074         * tests/test-flock.c: test suite for flock.
43075
43076 2008-10-06  Jim Meyering  <meyering@redhat.com>
43077
43078         bootstrap: check for LT_INIT more portably still ;-)
43079         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43080         Spotted by Bruno Haible.
43081
43082 2008-10-06  Eric Blake  <ebb9@byu.net>
43083
43084         test-signbit: avoid tripping Irix cc bug on -0.0L
43085         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43086         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43087         entire testsuite consistent and avoids an Irix 6.2 bug.
43088
43089 2008-10-05  Bruno Haible  <bruno@clisp.org>
43090             Jim Meyering  <jim@meyering.net>
43091
43092         Add an option for ignoring EPIPE during close_stdout.
43093         * lib/closeout.h: Include <stdbool.h>.
43094         (close_stdout_set_ignore_EPIPE): New declaration.
43095         * lib/closeout.c: Include <stdbool.h>.
43096         (ignore_EPIPE): New variable.
43097         (close_stdout_set_ignore_EPIPE): New function.
43098         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43099         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43100         failure.
43101         * modules/closeout (Depends-on): Add stdbool.
43102
43103 2008-10-05  Bruno Haible  <bruno@clisp.org>
43104
43105         * modules/accept: New file.
43106         * modules/bind: New file.
43107         * modules/connect: New file.
43108         * modules/getpeername: New file.
43109         * modules/getsockname: New file.
43110         * modules/getsockopt: New file.
43111         * modules/listen: New file.
43112         * modules/recv: New file.
43113         * modules/recvfrom: New file.
43114         * modules/send: New file.
43115         * modules/sendto: New file.
43116         * modules/setsockopt: New file.
43117         * modules/socket: New file.
43118         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43119         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43120         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43121         the particular module is requested. Add a link warning when the
43122         particular module is not requested.
43123         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
43124         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
43125         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
43126         the particular module is requested.
43127         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
43128         gl_SYS_SOCKET_H_DEFAULTS): New macros.
43129         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
43130         * modules/sys_socket (Depends-on): Add link-warning.
43131         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
43132         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
43133         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
43134         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
43135         GL_LINK_WARNING.
43136         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
43137         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
43138         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
43139         * doc/posix-functions/getpeername.texi: Mention the new module
43140         'getpeername'.
43141         * doc/posix-functions/getsockname.texi: Mention the new module
43142         'getsockname'.
43143         * doc/posix-functions/getsockopt.texi: Mention the new module
43144         'getsockopt'.
43145         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
43146         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
43147         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
43148         * doc/posix-functions/send.texi: Mention the new module 'send'.
43149         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
43150         * doc/posix-functions/setsockopt.texi: Mention the new module
43151         'setsockopt'.
43152         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
43153         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
43154         listen, connect, accept.
43155         * modules/select-tests (Depends-on): Likewise.
43156
43157 2008-10-05  Bruno Haible  <bruno@clisp.org>
43158
43159         * lib/winsock.c (strerror): Remove unused #undef.
43160         (rpl_close): Remove unused local variable.
43161
43162         * modules/sys_socket (Depends-on); Add errno.
43163
43164 2008-10-05  Bruno Haible  <bruno@clisp.org>
43165
43166         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
43167         (select): Add a link warning when the 'select' module is not used.
43168         * modules/sys_select (Depends-on): Add link-warning.
43169         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
43170         Suggested by Paolo Bonzini.
43171
43172 2008-10-05  Jim Meyering  <meyering@redhat.com>
43173
43174         bootstrap: check for LT_INIT more portably
43175         * build-aux/bootstrap: Avoid using grep -E, since it's not
43176         portable enough.  Suggestion from Bruno Haible.
43177
43178 2008-10-05  Bruno Haible  <bruno@clisp.org>
43179
43180         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
43181         as being fixed by gnulib.
43182
43183 2008-10-05  Bruno Haible  <bruno@clisp.org>
43184
43185         * modules/select-tests: New file, mostly copied from
43186         modules/sys_select-tests.
43187         * tests/test-select.c: New file, mostly copied from
43188         tests/test-sys_select.c.
43189         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
43190         * modules/sys_select-tests (Depends-on): Remove all dependencies.
43191         (Makefile.am): Remove test_sys_select_LDADD.
43192
43193         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
43194         to an undefined symbol, for an error message.
43195         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
43196         (gl_SYS_SELECT_H_DEFAULTS): New macro.
43197         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
43198         winsock-select.c here.
43199         * modules/sys_select (Files): Remove lib/winsock-select.c.
43200         (Depends-on): Remove alloca.
43201         (Makefile.am): Substitute GNULIB_SELECT.
43202         * modules/select: New file.
43203         * doc/posix-functions/select.texi: Update.
43204
43205 2008-10-05  Bruno Haible  <bruno@clisp.org>
43206
43207         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
43208         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
43209         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
43210         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
43211         getdtablesize.
43212         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
43213         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
43214
43215 2008-10-05  Bruno Haible  <bruno@clisp.org>
43216
43217         * modules/getdtablesize-tests: New file.
43218         * tests/test-getdtablesize.c: New file.
43219
43220         New module 'getdtablesize'.
43221         * lib/unistd.in.h (getdtablesize): New declaration.
43222         * lib/getdtablesize.c: New file.
43223         * m4/getdtablesize.m4: New file.
43224         * modules/getdtablesize: New file.
43225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43226         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
43227         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
43228         HAVE_GETDTABLESIZE.
43229         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
43230
43231 2008-10-05  Bruno Haible  <bruno@clisp.org>
43232
43233         * modules/sched (Makefile.am): Fix typo.
43234         Reported by Simon Josefsson.
43235
43236 2008-10-05  Jim Meyering  <meyering@redhat.com>
43237
43238         bootstrap: check for LT_INIT, too
43239         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
43240         are deprecated.  Suggestion from Ralf Wildenhues.
43241
43242 2008-10-05  Bruno Haible  <bruno@clisp.org>
43243
43244         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
43245         overriding them by ours.
43246         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
43247
43248 2008-10-05  Jim Meyering  <meyering@redhat.com>
43249
43250         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
43251         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
43252         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
43253
43254 2008-10-04  Bruno Haible  <bruno@clisp.org>
43255
43256         * modules/dup2 (License): Change to LGPLv2+.
43257         * modules/sleep (License): Likewise.
43258         * modules/perror (License): Likewise.
43259         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
43260         Blake.
43261         * modules/signal (License): Likewise.
43262         * modules/sigprocmask (License): Likewise.
43263         * modules/raise (License): Change to LGPLv2+, with approval by Jim
43264         Meyering.
43265
43266 2008-10-04  Bruno Haible  <bruno@clisp.org>
43267
43268         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
43269         Reported by Rainer Tammer <tammer@tammer.net>.
43270
43271 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
43272             Bruno Haible  <bruno@clisp.org>
43273
43274         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
43275         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
43276         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
43277
43278 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
43279
43280         filevercmp: new module
43281         * lib/filevercmp.h: New function filevercmp comparing version strings.
43282         * lib/filevercmp.c: Implementation of filevercmp function.
43283         * modules/filevercmp: Module metadata.
43284         * tests/test-filevercmp.c: Unit test for new module.
43285         * modules/filevercmp-tests: Unit test metadata.
43286         * MODULES.html.sh: Add filevercmp module.
43287
43288 2008-10-03  Bruno Haible  <bruno@clisp.org>
43289
43290         * lib/c-ctype.h: Add comment.
43291         Reported by Jim Meyering.
43292
43293 2008-10-02  Bruno Haible  <bruno@clisp.org>
43294
43295         * modules/posix_spawn-internal (Depends-on): Add 'open'.
43296
43297 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43298
43299         * build-aux/bootstrap: Allow renaming bootstrap, and change the
43300         name of bootstrap.conf accordingly.
43301
43302 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43303
43304         * build-aux/bootstrap: Install git-merge-changelog configuration
43305         items into .gitconfig if needed.
43306
43307 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
43308
43309         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
43310         git repository, and initialize/update it accordingly.
43311
43312 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
43313
43314         * modules/fsync-tests: New file.
43315         * tests/test-fsync.c: New file.
43316
43317         New module 'fsync'.
43318         * lib/fsync.c: New file.
43319         * m4/fsync.m4: New file.
43320         * modules/fsync: New file.
43321         * lib/unistd.in.h (fsync): New declaration.
43322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
43323         GNULIB_FSYNC and HAVE_FSYNC.
43324         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
43325         * MODULES.html.sh (posix_functions): Add fsync.
43326         * doc/posix-functions/fsync.texi: Mention the new module.
43327
43328 2008-10-02  Jim Meyering  <meyering@redhat.com>
43329
43330         fts.c: sync with similar code from coreutils' remove.c
43331         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
43332         Guard also with "#if defined __linux__", since for now at least,
43333         this code is Linux-kernel-specific.
43334
43335 2008-10-02  Jim Meyering  <meyering@redhat.com>
43336
43337         fts: bug fixes
43338         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
43339         Include <sys/vfs.h>, not <sys/statfs.h>.
43340
43341         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
43342         Include <sys/vfs.h>, not <sys/statfs.h>.
43343
43344 2008-10-01  Bruno Haible  <bruno@clisp.org>
43345
43346         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
43347         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
43348         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
43349         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
43350         * doc/posix-functions/posix_spawnp.texi: Likewise.
43351         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
43352         whether posix_spawn actually works.
43353         * m4/pipe.m4 (gl_PIPE): Likewise.
43354         * modules/execute (Files): Add m4/posix_spawn.m4.
43355         * modules/pipe (Files): Add m4/posix_spawn.m4.
43356         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
43357
43358 2008-10-01  Jim Meyering  <meyering@redhat.com>
43359
43360         remove trailing spaces
43361         * NEWS: Likewise.
43362         * lib/poll.c (poll): Likewise.
43363         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
43364         * lib/winsock.c (rpl_close): Likewise.
43365         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
43366         * modules/yield: Likewise.
43367         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
43368         * tests/test-sys_select.c (connect_to_socket): Likewise.
43369
43370         fts.c: adjust a new interface to be more generally useful
43371         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
43372         (fts_build): Adjust caller.
43373
43374 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43375
43376         * modules/cond-tests: New file.
43377         * tests/test-cond.c: New file.
43378
43379 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43380             Bruno Haible  <bruno@clisp.org>
43381
43382         * modules/cond (Dependencies): Add errno, time.
43383         * lib/glthread/cond.h: Include <time.h>.
43384         (gl_cond_define, gl_cond_define_initialized): Use the same definition
43385         across platforms.
43386
43387 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43388             Bruno Haible  <bruno@clisp.org>
43389
43390         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
43391
43392 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43393             Bruno Haible  <bruno@clisp.org>
43394
43395         * modules/tls-tests (Depends-on): Add thread, yield.
43396         (configure.ac): Remove all checks.
43397         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
43398         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43399         gl_thread_self): Remove definitions. Include glthread/thread.h and
43400         glthread/yield.h instead.
43401         (test_tls): Pass an additional NULL argument to gl_thread_join.
43402
43403 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43404             Bruno Haible  <bruno@clisp.org>
43405
43406         * modules/lock-tests (Depends-on): Add thread, yield.
43407         (configure.ac): Remove all checks.
43408         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
43409         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
43410         gl_thread_self): Remove definitions. Include glthread/thread.h and
43411         glthread/yield.h instead.
43412         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
43413         additional NULL argument to gl_thread_join.
43414
43415 2008-09-30  Bruno Haible  <bruno@clisp.org>
43416
43417         Fix the Win32 implementation of the 'thread' module.
43418         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
43419         pointer type.
43420         (gl_thread_self): Invoke gl_thread_self_func.
43421         (gl_thread_self_func): New declaration.
43422         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
43423         (do_init_self_key, init_self_key): New functions.
43424         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
43425         Remove some fields.
43426         (running_threads, running_lock): Remove variables.
43427         (get_current_thread_handle): New function.
43428         (gl_thread_self_func, wrapper_func, glthread_create_func,
43429         glthread_join_func, gl_thread_exit_func): Largely rewritten and
43430         simplified.
43431
43432 2008-09-30  Bruno Haible  <bruno@clisp.org>
43433
43434         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
43435         files.
43436
43437 2008-09-30  Jim Meyering  <meyering@redhat.com>
43438
43439         fts.m4: correct the test for statfs.f_type
43440         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
43441         when checking for statfs.f_type.
43442
43443 2008-09-15  Simon Josefsson  <simon@josefsson.org>
43444
43445         tests: avoid some compiler warnings
43446         * tests/test-memchr.c (main): Pass NULL indirectly.
43447         * tests/test-getdate.c (main): Remove unused variable 'ret'.
43448
43449 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
43450
43451         getdate.y: disallow countable dayshifts like "4 yesterday ago"
43452         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
43453         exactly specified dayshifts.
43454         (dayshift): New rule.
43455         (rel): Add dayshift.
43456         (relative_time_table) [tomorrow, yesterday, today, now]:
43457         Use tDAY_SHIFT in place of tDAY_UNIT.
43458         * tests/test-getdate.c: Add tests for now-disallowed countable
43459         dayshifts, e.g., "4 yesterday ago".
43460
43461 2008-09-29  Bruno Haible  <bruno@clisp.org>
43462
43463         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
43464         * tests/test-posix_spawn1.in.sh: Renamed from
43465         tests/test-posix_spawn.in.sh.
43466         * tests/test-posix_spawn2.c: New file.
43467         * tests/test-posix_spawn2.in.sh: New file.
43468         * modules/posix_spawnp-tests (Files): Update.
43469         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
43470
43471 2008-09-29  Bruno Haible  <bruno@clisp.org>
43472
43473         Propagate effects of putenv/setenv/unsetenv to child processes.
43474         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
43475         * lib/pipe.c (create_pipe): Likewise.
43476
43477 2008-09-29  Bruno Haible  <bruno@clisp.org>
43478
43479         Enable use of shell scripts as executables in mingw.
43480         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
43481         run the program as a shell script.
43482         * lib/pipe.c (create_pipe): Likewise.
43483         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
43484         resulting array.
43485
43486 2008-09-29  Eric Blake  <ebb9@byu.net>
43487
43488         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
43489
43490 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
43491
43492         * doc/posix-functions/accept.texi: Update mingw problems.
43493         * doc/posix-functions/bind.texi: Update mingw problems.
43494         * doc/posix-functions/close.texi: Update mingw problems.
43495         * doc/posix-functions/connect.texi: Update mingw problems.
43496         * doc/posix-functions/getpeername.texi: Update mingw problems.
43497         * doc/posix-functions/getsockname.texi: Update mingw problems.
43498         * doc/posix-functions/getsockopt.texi: Update mingw problems.
43499         * doc/posix-functions/ioctl.texi: Update mingw problems.
43500         * doc/posix-functions/listen.texi: Update mingw problems.
43501         * doc/posix-functions/recv.texi: Update mingw problems.
43502         * doc/posix-functions/recvfrom.texi: Update mingw problems.
43503         * doc/posix-functions/select.texi: Update mingw problems.
43504         * doc/posix-functions/send.texi: Update mingw problems.
43505         * doc/posix-functions/sendto.texi: Update mingw problems.
43506         * doc/posix-functions/setsockopt.texi: Update mingw problems.
43507         * doc/posix-functions/socket.texi: Update mingw problems.
43508
43509 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
43510             Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/sys_select.in.h: Include sys/time.h.
43513         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
43514         * modules/sys_select: Depend on sys_time.
43515         * tests/test-sys_select.c: Test that sys/select.h defines struct
43516         timeval fully.
43517
43518 2008-09-29  Bruno Haible  <bruno@clisp.org>
43519
43520         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
43521         * lib/sys_select.in.h: Likewise.
43522
43523 2008-09-29  Bruno Haible  <bruno@clisp.org>
43524
43525         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
43526
43527 2008-09-29  Bruno Haible  <bruno@clisp.org>
43528
43529         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
43530         Set LIBSOCKET instead of augmenting LIBS.
43531         * modules/sockets (Link): New section.
43532         * modules/sockets-tests (test_sockets_LDADD): New variable.
43533         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
43534         * modules/poll-tests (test_poll_LDADD): New variable.
43535         * NEWS: Document the change.
43536
43537 2008-09-29  Bruno Haible  <bruno@clisp.org>
43538
43539         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
43540         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
43541         ARPA_INET_H directly.
43542         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43543
43544 2008-09-28  Bruno Haible  <bruno@clisp.org>
43545
43546         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
43547         from gl_HEADER_SYS_SOCKET.
43548         (gl_HEADER_SYS_SOCKET): Invoke it.
43549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43550
43551 2008-09-28  Bruno Haible  <bruno@clisp.org>
43552
43553         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
43554         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43555         Needed on OSF/1 4.0.
43556
43557 2008-09-28  Bruno Haible  <bruno@clisp.org>
43558
43559         Override open more carefully.
43560         * lib/open.c (orig_open): New function.
43561         (rpl_open): Use orig_open instead of open.
43562         * lib/fcntl.in.h: Add special invocation convention.
43563         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43564         (gl_FUNC_OPEN): Invoke it.
43565
43566         Override freopen more carefully.
43567         * lib/freopen.c (orig_freopen): New function.
43568         (rpl_freopen): Use orig_freopen instead of freopen.
43569         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43570         (gl_FUNC_FREOPEN): Invoke it.
43571
43572         Override fopen more carefully.
43573         * lib/fopen.c (orig_fopen): New function.
43574         (rpl_fopen): Use orig_fopen instead of fopen.
43575         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43576         (gl_FUNC_FOPEN): Invoke it.
43577         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43578
43579 2008-09-28  Bruno Haible  <bruno@clisp.org>
43580
43581         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43582         SIGPIPE.
43583
43584 2008-09-28  Bruno Haible  <bruno@clisp.org>
43585
43586         * tests/test-sigaction.c (handler, main): Disable the check whether
43587         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43588         glibc systems with LinuxThreads.
43589
43590 2008-09-28  Bruno Haible  <bruno@clisp.org>
43591
43592         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43593
43594         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43595         with AIX xlc.
43596         * lib/fcntl.in.h (open): Likewise.
43597         Reported by Rainer Tammer <tammer@tammer.net>.
43598
43599 2008-09-28  Bruno Haible  <bruno@clisp.org>
43600
43601         * modules/posix_spawnp-tests: New file.
43602         * tests/test-posix_spawn.c: New file.
43603         * tests/test-posix_spawn.in.sh: New file.
43604
43605         New module 'posix_spawnp'.
43606         * modules/posix_spawnp: New file.
43607         * lib/spawnp.c: New file, from GNU libc with modifications.
43608         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43609
43610         New module 'posix_spawn'.
43611         * modules/posix_spawn: New file.
43612         * lib/spawn.c: New file, from GNU libc with modifications.
43613         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43614
43615         New module 'posix_spawnattr_destroy'.
43616         * modules/posix_spawnattr_destroy: New file.
43617         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43618         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43619         module.
43620
43621         New module 'posix_spawnattr_setsigmask'.
43622         * modules/posix_spawnattr_setsigmask: New file.
43623         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43624         modifications.
43625         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43626         new module.
43627
43628         New module 'posix_spawnattr_getsigmask'.
43629         * modules/posix_spawnattr_getsigmask: New file.
43630         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43631         modifications.
43632         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43633         new module.
43634
43635         New module 'posix_spawnattr_setsigdefault'.
43636         * modules/posix_spawnattr_setsigdefault: New file.
43637         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43638         modifications.
43639         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43640         new module.
43641
43642         New module 'posix_spawnattr_getsigdefault'.
43643         * modules/posix_spawnattr_getsigdefault: New file.
43644         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43645         modifications.
43646         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43647         new module.
43648
43649         New module 'posix_spawnattr_setschedpolicy'.
43650         * modules/posix_spawnattr_setschedpolicy: New file.
43651         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43652         modifications.
43653         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43654         new module.
43655
43656         New module 'posix_spawnattr_getschedpolicy'.
43657         * modules/posix_spawnattr_getschedpolicy: New file.
43658         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43659         modifications.
43660         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43661         new module.
43662
43663         New module 'posix_spawnattr_setschedparam'.
43664         * modules/posix_spawnattr_setschedparam: New file.
43665         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43666         modifications.
43667         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43668         new module.
43669
43670         New module 'posix_spawnattr_getschedparam'.
43671         * modules/posix_spawnattr_getschedparam: New file.
43672         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43673         modifications.
43674         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43675         new module.
43676
43677         New module 'posix_spawnattr_setpgroup'.
43678         * modules/posix_spawnattr_setpgroup: New file.
43679         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43680         modifications.
43681         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43682         module.
43683
43684         New module 'posix_spawnattr_getpgroup'.
43685         * modules/posix_spawnattr_getpgroup: New file.
43686         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43687         modifications.
43688         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43689         module.
43690
43691         New module 'posix_spawnattr_setflags'.
43692         * modules/posix_spawnattr_setflags: New file.
43693         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43694         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43695         module.
43696
43697         New module 'posix_spawnattr_getflags'.
43698         * modules/posix_spawnattr_getflags: New file.
43699         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43700         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43701         module.
43702
43703         New module 'posix_spawnattr_init'.
43704         * modules/posix_spawnattr_init: New file.
43705         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43706         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43707         module.
43708
43709         New module 'posix_spawn_file_actions_destroy'.
43710         * modules/posix_spawn_file_actions_destroy: New file.
43711         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43712         modifications.
43713         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43714         the new module.
43715
43716         New module 'posix_spawn_file_actions_addopen'.
43717         * modules/posix_spawn_file_actions_addopen: New file.
43718         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43719         modifications.
43720         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43721         the new module.
43722
43723         New module 'posix_spawn_file_actions_adddup2'.
43724         * modules/posix_spawn_file_actions_adddup2: New file.
43725         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43726         modifications.
43727         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43728         the new module.
43729
43730         New module 'posix_spawn_file_actions_addclose'.
43731         * modules/posix_spawn_file_actions_addclose: New file.
43732         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43733         modifications.
43734         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43735         the new module.
43736
43737         New module 'posix_spawn_file_actions_init'.
43738         * modules/posix_spawn_file_actions_init: New file.
43739         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43740         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43741         new module.
43742
43743         New module 'posix_spawn-internal'.
43744         * modules/posix_spawn-internal: New file.
43745         * lib/spawn_int.h: New file, from GNU libc with modifications.
43746         * lib/spawni.c: New file, from GNU libc with modifications.
43747         * m4/posix_spawn.m4: New file.
43748
43749         New module 'spawn'.
43750         * modules/spawn: New file.
43751         * lib/spawn.in.h: New file, from GNU libc with modifications.
43752         * m4/spawn_h.m4: New file.
43753         * doc/posix-headers/spawn.texi: Mention the new module.
43754
43755 2008-09-28  Bruno Haible  <bruno@clisp.org>
43756
43757         * modules/sched-tests: New file.
43758         * tests/test-sched.c: New file.
43759
43760         New module 'sched'.
43761         * modules/sched: New file.
43762         * lib/sched.in.h: New file.
43763         * m4/sched_h.m4: New file.
43764         * doc/posix-headers/sched.texi: Mention the new module.
43765
43766 2008-09-27  Eric Blake  <ebb9@byu.net>
43767
43768         Fix previous patch, and tweak references to $0.
43769         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43770         (func_version, func_gnulib_dir): Don't call this program
43771         gnulib-tool.
43772         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43773         with using $0 in function.
43774         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43775         (func_fatal_error): Reuse the name the user invoked us with.
43776
43777 2008-09-27  Bruno Haible  <bruno@clisp.org>
43778
43779         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43780         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43781         (gl_ICONV_H): Not here.
43782         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43783         instead of assigning ICONV_H directly.
43784
43785         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43787         WCHAR_H directly.
43788
43789 2008-09-27  Bruno Haible  <bruno@clisp.org>
43790
43791         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43792         * modules/arpa_inet (Depends-on): Add link-warning.
43793         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43794         * modules/unistd (Makefile.am): Likewise.
43795
43796 2008-09-26  Bruno Haible  <bruno@clisp.org>
43797
43798         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43799         variables.
43800         (func_version): Essentially copied from gnulib-tool.
43801         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43802         func_readlink): Copied from gnulib-tool.
43803
43804 2008-09-26  Bruno Haible  <bruno@clisp.org>
43805
43806         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43807         invoking git-version-gen.
43808
43809 2008-09-26  Bruno Haible  <bruno@clisp.org>
43810
43811         * posix-modules: Update to directory names changed on 2008-01-19.
43812         Remove commas in output before splitting into words. No more need to
43813         avoid 'ftruncate' since 2007-02-19.
43814
43815 2008-09-26  Bruno Haible  <bruno@clisp.org>
43816
43817         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43818
43819 2008-09-26  Bruno Haible  <bruno@clisp.org>
43820
43821         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43822         * modules/fwriteerror (Depends-on): Add errno.
43823
43824 2008-09-26  Bruno Haible  <bruno@clisp.org>
43825
43826         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43827         * tests/test-vc-list-files-cvs.sh: Likewise.
43828
43829 2008-09-26  Bruno Haible  <bruno@clisp.org>
43830
43831         * doc/posix-headers/sys_resource.texi: Reorder items.
43832
43833 2008-09-26  Jim Meyering  <meyering@redhat.com>
43834
43835         fts: tweak inode comparison function
43836         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43837         inode numbers, as documented.
43838
43839         fts: sort dirent entries on inode number before traversing
43840         This avoids a quadratic, seek-related performance penalty when
43841         operating on a directory containing many entries (measurable at 10k;
43842         3.5 hours at 2 million entries with a cold cache) on certain types
43843         of file systems, including ext3 and ext4, but not tmpfs.
43844         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43845         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43846         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43847         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43848         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43849         (fts_build): Set the stat.st_ino member from D_INO.
43850         If it is likely to be useful, sort dirent entries on inode number.
43851
43852         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43853         and the struct statfs.f_type member.
43854         * modules/fts (Depends-on): Add d-ino.
43855
43856 2008-09-26  Bruno Haible  <bruno@clisp.org>
43857
43858         * modules/sigpipe-die (Depends-on): Add sigpipe.
43859
43860         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43861         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43862         and GNULIB_STDIO_H_SIGPIPE are set.
43863         * lib/stdio-write.c: New file.
43864         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43865         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43866         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43867         REPLACE_STDIO_WRITE_FUNCS.
43868         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43869         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43870         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43871         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43872         * modules/stdio (Files): Add lib/stdio-write.c.
43873         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43874         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43875         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43876         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43877         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43878         REPLACE_FPRINTF_POSIX.
43879         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43880         REPLACE_PRINTF_POSIX.
43881         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43882         REPLACE_VFPRINTF_POSIX.
43883         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43884         REPLACE_VPRINTF_POSIX.
43885         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43886         SIGPIPE issue.
43887         * doc/posix-functions/fputc.texi: Likewise.
43888         * doc/posix-functions/fputs.texi: Likewise.
43889         * doc/posix-functions/fwrite.texi: Likewise.
43890         * doc/posix-functions/printf.texi: Likewise.
43891         * doc/posix-functions/putc.texi: Likewise.
43892         * doc/posix-functions/putchar.texi: Likewise.
43893         * doc/posix-functions/puts.texi: Likewise.
43894         * doc/posix-functions/vfprintf.texi: Likewise.
43895         * doc/posix-functions/vprintf.texi: Likewise.
43896
43897         * modules/safe-write (Depends-on): Add write.
43898
43899         * modules/sigpipe-tests: New file.
43900         * tests/test-sigpipe.c: New file.
43901         * tests/test-sigpipe.sh: New file.
43902
43903         * modules/write: New file.
43904         * lib/unistd.in.h: Include <sys/types.h>.
43905         (write): New declaration.
43906         * lib/write.c: New file.
43907         * m4/write.m4: New file.
43908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43909         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43910         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43911         GNULIB_WRITE, REPLACE_WRITE.
43912         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43913         and the SIGPIPE issue.
43914
43915         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43916         (raise): New declaration.
43917         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43918         (ext_signal): New function.
43919         (rpl_raise): New function.
43920         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43921         GNULIB_SIGNAL_H_SIGPIPE.
43922         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43923         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43924
43925         * modules/sigpipe: New file.
43926         * m4/sigpipe.m4: New file.
43927
43928 2008-09-25  Derek Price  <derek@ximbiot.com>
43929             Bruno Haible  <bruno@clisp.org>
43930
43931         * gnulib-tool (func_import): Report all license incompatibilities, not
43932         just the first one.
43933
43934 2008-09-25  Bruno Haible  <bruno@clisp.org>
43935
43936         * gnulib-tool (func_import): When computing the edits, consider not
43937         only the Makefile.ams that exist but also those that will be generated.
43938
43939 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43940
43941         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43942         fixes gnulib-tool --test warning about duplicate dependency.
43943
43944 2008-09-25  Bruno Haible  <bruno@clisp.org>
43945
43946         * gnulib-tool: Don't ask the user to perform edits in the generated
43947         Makefile.ams.
43948         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43949         apply to the Makefile.am being generated.
43950         (func_emit_tests_Makefile_am): Execute edits that apply to the
43951         Makefile.am being generated.
43952         (func_import): Setup list of Makefile.am edits before emitting the
43953         Makefile.ams, not at the end.
43954         (func_create_testdir): Update.
43955         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43956
43957 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43958
43959         * gnulib-tool (func_import): Store the --tests-base option in the
43960         comment in gnulib-cache.m4.
43961
43962 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43963
43964         * NEWS: Document increased portability that sys_select now provides.
43965
43966         * lib/sys_select.in.h: Install select wrapper.
43967         * lib/sys_socket.in.h: Use more descriptive name when there is no
43968         select wrapper.
43969         * lib/winsock-select.c: New.
43970         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43971         Require gl_HEADER_SYS_SOCKET.
43972         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43973         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43974         * tests/test-sys_select.c: Add functional tests.
43975
43976 2008-09-24  Eric Blake  <ebb9@byu.net>
43977
43978         open, fopen: close fd leak in last patch
43979         * lib/open.c (rpl_open): Close fd before returning error.
43980         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43981         * doc/posix-functions/open.texi (open): Document that Irix also
43982         has the bug.
43983         * doc/posix-functions/fopen.texi (fopen): Likewise.
43984         Reported by Paolo Bonzini.
43985
43986 2008-09-24  Bruno Haible  <bruno@clisp.org>
43987
43988         Ensure that a filename ending in a slash cannot be used to access a
43989         non-directory.
43990         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43991         to check whether it's really a directory.
43992         * lib/fopen.c: Include fcntl.h, unistd.h.
43993         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43994         and fdopen().
43995         * modules/fopen (Depends-on): Add unistd.
43996         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43997         * tests/test-fopen.c (main): Likewise.
43998         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43999         * doc/posix-functions/fopen.texi: Likewise.
44000         Reported by Eric Blake.
44001
44002 2008-09-23  Eric Blake  <ebb9@byu.net>
44003
44004         c-stack: avoid compiler optimizations when provoking overflow
44005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44006         recursion harder to optimize, to ensure a stack overflow occurs.
44007         * tests/test-c-stack.c (recurse): Likewise.
44008         Borrowed from libsigsegv.
44009
44010         c-stack: work around Irix sigaltstack bug
44011         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44012         whether sigaltstack uses wrong end of stack_t (copied in part from
44013         libsigsegv).
44014         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44015         Irix bug, without requiring an over-allocation.
44016         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44017         bug.
44018
44019         fopen: document mingw bug on directories
44020         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44021         not allowing a stream visiting a directory, even though reading
44022         from such a stream is not portable.
44023
44024 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44025
44026         * lib/poll.c: Rewrite.
44027         * modules/poll: Depend on alloca.
44028
44029 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44030
44031         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
44032         instead define prototypes for a full set of wrappers.  Ensure
44033         that Cygwin does not use the compatibility code, which is only
44034         for MinGW.
44035         * lib/winsock.c: New.
44036         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
44037         * modules/sys_socket: Add lib/winsock.c.
44038
44039         * modules/poll-tests: Add errno and perror.
44040         * tests/test-poll.c: Use ioctl, not ioctlsocket.
44041
44042 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44043
44044         * tests/test-poll.c: Downgrade minimum needed Winsock version.
44045
44046 2008-09-23  Bruno Haible  <bruno@clisp.org>
44047
44048         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
44049         * doc/glibc-functions/*: Likewise.
44050
44051 2008-09-23  Simon Josefsson  <simon@josefsson.org>
44052
44053         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44054         success.
44055
44056 2008-09-22  Eric Blake  <ebb9@byu.net>
44057             Bruno Haible  <bruno@clisp.org>
44058
44059         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44060         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44061         supply %A but mishandle pseudo-NaN.
44062         Reported by Simon Josefsson.
44063
44064 2008-09-21  Bruno Haible  <bruno@clisp.org>
44065
44066         * tests/test-lock.c (main): Tweak skip message.
44067         * tests/test-tls.c (main): Likewise.
44068
44069 2008-09-21  Bruno Haible  <bruno@clisp.org>
44070
44071         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44072         whether 'struct sigaction' has sa_sigaction here...
44073         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44074         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44075
44076 2008-09-21  Bruno Haible  <bruno@clisp.org>
44077
44078         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44079         section.
44080         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44081         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44082         the new section.
44083         (Support for obsolete systems lacking POSIX:2001): New section.
44084         (String handling <string.h>): Move strdup to the new section.
44085         Suggested by Simon Josefsson and Paolo Bonzini.
44086
44087 2008-09-21  Bruno Haible  <bruno@clisp.org>
44088
44089         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44090         exponents in %e and %g results on 'long double'. Needed for mingw's
44091         improved *printf functions.
44092         * tests/test-vasprintf-posix.c (test_function): Likewise.
44093         * tests/test-snprintf-posix.h (test_function): Likewise.
44094         * tests/test-sprintf-posix.h (test_function): Likewise.
44095         Reported by Eric Blake.
44096
44097 2008-09-21  Bruno Haible  <bruno@clisp.org>
44098
44099         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44100         * tests/test-sprintf-posix.h (test_function): Likewise.
44101
44102 2008-09-21  Bruno Haible  <bruno@clisp.org>
44103
44104         * modules/getpass (Depends-on): Add strdup-posix.
44105
44106         New module 'strdup-posix'.
44107         * modules/strdup-posix: New file.
44108         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44109         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44111         REPLACE_STRDUP.
44112         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44113         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44115         strdup-posix.
44116
44117         * modules/strdup (Depends-on): Remove malloc-posix.
44118
44119 2008-09-20  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44122         Wildenhues.
44123
44124 2008-09-20  Bruno Haible  <bruno@clisp.org>
44125
44126         Ensure that wint_t gets defined on IRIX 5.3.
44127         * lib/wchar.in.h (wint_t): Define if not defined by the system.
44128         * lib/wctype.in.h (wint_t): Likewise.
44129         (__wctype_wint_t): Remove type.
44130         (isw*): Use wint_t instead of __wctype_wint_t.
44131         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
44132         * modules/wchar (Files): Add m4/wint_t.m4.
44133         (Makefile.am): Substitute HAVE_WINT_T.
44134         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
44135         * tests/test-wctype.c: Check that wint_t is defined.
44136         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
44137         * doc/posix-headers/wctype.texi: Likewise.
44138         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44139
44140 2008-09-18  Bruno Haible  <bruno@clisp.org>
44141
44142         * gnulib-tool (func_exit): Update comment.
44143
44144 2008-09-18  Simon Josefsson  <simon@josefsson.org>
44145
44146         * modules/getaddrinfo (Depends-on): Remove strdup, this module
44147         assumes strdup exists and does not depend on strdup to return
44148         ENOMEM on out of memory conditions.
44149
44150 2008-09-18  Bruno Haible  <bruno@clisp.org>
44151
44152         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
44153         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
44154         digits for the exponent.
44155
44156 2008-09-18  Jim Meyering  <meyering@redhat.com>
44157             Bruno Haible  <bruno@clisp.org>
44158
44159         * lib/vasnprintf.c (decimal_point_char): Define also if
44160         NEED_PRINTF_INFINITE_LONG_DOUBLE.
44161
44162 2008-09-16  Bruno Haible  <bruno@clisp.org>
44163         and Eric Blake  <ebb9@byu.net>
44164
44165         vasnprintf: support Irix 5.3
44166         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
44167         that mishandle long double infinity.
44168         Reported by Tom G. Christensen.
44169
44170 2008-09-16  Bruno Haible  <bruno@clisp.org>
44171
44172         * doc/glibc-functions/scandir.texi: Mention the function is missing on
44173         Solaris 9.
44174         * doc/glibc-functions/alphasort.texi: Likewise.
44175         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
44176
44177 2008-09-16  Jim Meyering  <meyering@redhat.com>
44178
44179         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
44180         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
44181         a umask modification leak out of a subshell.  Otherwise, the
44182         opensolaris /bin/sh would be accepted and thus cause unwarranted
44183         failures in the coreutils test suite.
44184
44185 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
44186
44187         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
44188         to succeed.
44189
44190 2008-09-16  Jim Meyering  <meyering@redhat.com>
44191
44192         avoid spurious test failure when library is built without ACL support
44193         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
44194         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
44195         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
44196         * tests/test-copy-acl.sh: Likewise.
44197
44198 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44199
44200         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
44201         based on character occurrence counts.
44202
44203 2008-09-15  Eric Blake  <ebb9@byu.net>
44204
44205         tests: avoid some compiler warnings
44206         * tests/test-memchr.c (main): Pass NULL indirectly.
44207         * tests/test-closein.c (main): Avoid unused variable.
44208
44209 2008-09-15  Bruno Haible  <bruno@clisp.org>
44210
44211         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
44212         are missing on OpenBSD 4.0 individually.
44213         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44214
44215 2008-09-15  Bruno Haible  <bruno@clisp.org>
44216
44217         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
44218         * doc/posix-functions/strerror.texi: Mention also Cygwin.
44219         * doc/posix-functions/perror.texi: Likewise.
44220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
44221         is missing.
44222         Reported by Eric Blake.
44223
44224         * lib/errno.in.h: Use replacement values >= 2000.
44225         Reported by Eric Blake.
44226
44227 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44228
44229         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
44230         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
44231         limit.
44232         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
44233         compareseq was aborted.
44234
44235 2008-09-14  Bruno Haible  <bruno@clisp.org>
44236
44237         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
44238         yvec_edit_count.
44239         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
44240         (fstrcmp_bounded): Simplify result computation accordingly.
44241
44242 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44243
44244         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
44245         (fstrcmp): Define in terms of fstrcmp_bounded.
44246         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
44247         lower_bound argument.
44248         Return quickly if the result is certainly < lower_bound.
44249         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
44250
44251 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44252
44253         * lib/diffseq.h (EARLY_ABORT): New macro.
44254         (compareseq): Change return type to bool. Return true when EARLY_ABORT
44255         evaluates to true.
44256
44257 2008-09-14  Bruno Haible  <bruno@clisp.org>
44258
44259         * modules/perror-tests: New file.
44260         * tests/test-perror.sh: New file.
44261         * tests/test-perror.c: New file.
44262
44263         New module 'perror'.
44264         * lib/stdio.in.h (perror): New declaration.
44265         * lib/perror.c: New file.
44266         * m4/perror.m4: New file.
44267         * modules/perror: New file.
44268         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
44269         * doc/posix-functions/perror.texi: Mention the perror module.
44270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
44271         REPLACE_PERROR.
44272         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
44273         REPLACE_PERROR.
44274
44275 2008-09-14  Bruno Haible  <bruno@clisp.org>
44276
44277         * modules/stdio (Makefile.am): Reorder to match the order in
44278         lib/stdio.in.h.
44279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44280
44281 2008-09-13  Bruno Haible  <bruno@clisp.org>
44282
44283         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
44284
44285 2008-09-13  Bruno Haible  <bruno@clisp.org>
44286
44287         Extend strerror to cover the added errno values.
44288         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
44289         (rpl_strerror): Provide error messages for the added errno values and
44290         for the WSA* values.
44291         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
44292         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
44293         strerror.
44294         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
44295         * modules/strerror (Depends-on): Add errno.
44296         * doc/posix-functions/strerror.texi: Document the change.
44297         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
44298         and EOVERFLOW.
44299
44300 2008-09-13  Bruno Haible  <bruno@clisp.org>
44301
44302         * modules/EOVERFLOW: Remove file.
44303         * m4/eoverflow.m4: Remove file.
44304         * modules/EOVERFLOW-tests: Remove file.
44305         * tests/test-EOVERFLOW.c: Remove file.
44306         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
44307         * modules/ftell (Depends-on): Likewise.
44308         * modules/getdelim (Depends-on): Likewise.
44309         * modules/getugroups (Depends-on): Likewise.
44310         * modules/poll (Depends-on): Likewise.
44311         * modules/snprintf (Depends-on): Likewise.
44312         * modules/sprintf-posix (Depends-on): Likewise.
44313         * modules/vasnprintf (Depends-on): Likewise.
44314         * modules/vasprintf (Depends-on): Likewise.
44315         * modules/vfprintf-posix (Depends-on): Likewise.
44316         * modules/vsnprintf (Depends-on): Likewise.
44317         * modules/vsprintf-posix (Depends-on): Likewise.
44318         * modules/xvasprintf (Depends-on): Likewise.
44319         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44320         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
44321         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
44322         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
44323         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44324         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
44325         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
44326         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
44327         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44328         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
44329         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
44330         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
44331         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44332         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
44333         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
44334         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
44335         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44336         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
44337         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
44338         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
44339         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44340         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
44341         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
44342         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
44343         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
44344         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44345         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
44346         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
44347         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
44348         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
44349         * MODULES.html.sh: Remove EOVERFLOW.
44350         * NEWS: Mention the change.
44351
44352 2008-09-13  Bruno Haible  <bruno@clisp.org>
44353
44354         * modules/errno-tests: New file.
44355         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
44356
44357         * lib/errno.in.h: New file.
44358         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
44359         * modules/errno: New file.
44360         * doc/posix-headers/errno.texi: Update documentation.
44361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
44362
44363 2008-09-13  Bruno Haible  <bruno@clisp.org>
44364
44365         * tests/test-poll.c: Use #if for native Windows, rather than testing
44366         __MSVCRT__.
44367
44368 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44369             Bruno Haible  <bruno@clisp.org>
44370
44371         * lib/glob.c: Don't include <pwd.h> on native Windows.
44372         (WINDOWS32): New macro.
44373         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
44374
44375 2008-09-13  Bruno Haible  <bruno@clisp.org>
44376
44377         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
44378         (ETIMEDOUT): Remove macro.
44379         (glthread_cond_timedwait_multithreaded): New declaration.
44380         (glthread_cond_timedwait): Use it.
44381         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
44382         (glthread_cond_timedwait_multithreaded): New function.
44383
44384 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44385
44386         * modules/poll-tests: Do not check for io.h.
44387         * tests/test-poll.c: Check for __MSVCRT__ instead.
44388
44389 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44390
44391         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
44392         * modules/poll-tests: Add inet_pton, stdbool, sockets.
44393         * tests/test-poll.c: Use them.  Use _pipe on Windows.
44394
44395 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
44396
44397         * modules/poll-tests: New.
44398         * tests/test-poll.c: New.
44399
44400 2008-09-12  Eric Blake  <ebb9@byu.net>
44401
44402         frexp: test for NetBSD failure on -0.0
44403         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
44404         not all, bugs from NetBSD 3.0 have been fixed.
44405         * doc/posix-functions/frexp.texi (frexp): Document bug.
44406         Reported by Thomas Klausner.
44407
44408         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
44409         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
44410         literal -0.0.
44411         Reported by Jonathan C. Patschke <jp@centtech.com>.
44412
44413 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44414
44415         * lib/glthread/cond.h: Use dummy implementation also if
44416         USE_WIN32_THREADS.
44417
44418 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44419
44420         * modules/fnmatch-posix (License): Change to LGPLv2+.
44421         * modules/fnmatch-gnu (License): Likewise.
44422
44423 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44424
44425         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
44426
44427 2008-09-11  Jim Meyering  <meyering@redhat.com>
44428
44429         * users.txt: Add gtk-vnc.
44430
44431 2008-09-08  Simon Josefsson  <simon@josefsson.org>
44432
44433         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
44434         rotate amounts.
44435
44436         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
44437         required for 16-bit and 8-bit rotates.
44438         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
44439         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
44440         UINT8_MAX instead of hard-coded constants.
44441         Suggested by Paul Eggert.
44442
44443 2008-09-07  Bruno Haible  <bruno@clisp.org>
44444
44445         * tests/test-striconveh.c (main): Check behaviour when converting from
44446         UTF-7.
44447
44448         Make striconveh work better with stateful encodings.
44449         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
44450         that iconv does not increment the inptr when returning -1/EINVAL.
44451
44452 2008-09-07  Bruno Haible  <bruno@clisp.org>
44453
44454         * build-aux/config.rpath: Update according to libtool-2.2.6.
44455         * build-aux/config.libpath: Likewise.
44456
44457 2008-09-06  Bruno Haible  <bruno@clisp.org>
44458
44459         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
44460         * lib/freadptr.c (freadptr): Likewise.
44461         * lib/freadseek.c (freadptrinc): Likewise.
44462         Reported by Simon Josefsson.
44463
44464 2008-09-06  Bruno Haible  <bruno@clisp.org>
44465
44466         * modules/freadptr (License): Change to LGPLv2+.
44467         * modules/freadseek (License): Likewise.
44468         Suggested by Eric Blake.
44469
44470         * modules/memchr2 (License): Change to LGPLv2+.
44471         Approved by Eric Blake.
44472
44473 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44474             Bruno Haible  <bruno@clisp.org>
44475
44476         Make gnulib-tool work with native 'sed' on AIX.
44477         * gnulib-tool (sed_noop): New variable.
44478         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
44479         func_add_or_update, func_create_testdir): Use it to initialize sed
44480         script variables.
44481         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44482
44483 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
44484             Bruno Haible  <bruno@clisp.org>
44485
44486         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
44487         also works after #include directives.
44488
44489 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
44490
44491         getdate.y: reject an out-of-range timezone value
44492         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
44493         the range [-24...+24].  When specified with only one or two digits,
44494         * tests/test-getdate.c: Tests for the fix.
44495         * doc/getdate.texi: Document this change.
44496
44497 2008-09-03  Bruno Haible  <bruno@clisp.org>
44498
44499         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
44500
44501 2008-09-02  Simon Josefsson  <simon@josefsson.org>
44502
44503         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
44504         <bruce.korb@gmail.com> with ideas from Ben Pfaff
44505         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
44506         Blake <ebb9@byu.net>.
44507
44508         * tests/test-bitrotate.c: Add more test vectors.
44509
44510 2008-09-02  Eric Blake  <ebb9@byu.net>
44511
44512         vasnprintf-posix: handle large precision via %.*d
44513         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
44514         when handling it ourselves.
44515         * tests/test-vasnprintf-posix.c (test_function): Add test.
44516         * tests/test-snprintf-posix.h (test_function): Likewise.
44517         * tests/test-sprintf-posix.h (test_function): Likewise.
44518         * tests/test-vasprintf-posix.c (test_function): Likewise.
44519         Reported by Alain Guibert.
44520
44521 2008-09-01  Eric Blake  <ebb9@byu.net>
44522
44523         c-stack: make configure-time check more robust
44524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
44525         successful sigaction call.
44526         Reported by Tom G. Christensen.
44527
44528 2008-09-01  Bruno Haible  <bruno@clisp.org>
44529
44530         New module 'findprog-lgpl'.
44531         * modules/findprog-lgpl: New file.
44532         * lib/findprog-lgpl.c: New file.
44533         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
44534         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
44535         to decide whether to use strdup or xstrdup, concatenated_filename or
44536         xconcatenated_filename.
44537
44538 2008-09-01  Bruno Haible  <bruno@clisp.org>
44539
44540         Split module 'concat-filename' into 'concat-filename' (LGPL) and
44541         'xconcat-filename' (GPL).
44542         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
44543         (License): Change to LGPLv2+.
44544         * modules/xconcat-filename: New file.
44545         * lib/concat-filename.h (concatenated_filename): Change specification.
44546         (xconcatenated_filename): New declaration.
44547         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
44548         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
44549         memory situations.
44550         * lib/xconcat-filename.c: New file.
44551         * NEWS: Mention the change.
44552         * lib/findprog.c: Include concat-filename.h, not filename.h.
44553         (find_in_path): Use xconcatenated_filename instead of
44554         concatenated_filename.
44555         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44556         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44557         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44558         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44559         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44560         instead of concatenated_filename.
44561         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44562         (execute_java_class): Use xconcatenated_filename instead of
44563         concatenated_filename.
44564         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44565         * modules/javacomp (Depends-on): Likewise.
44566         * modules/javaexec (Depends-on): Likewise.
44567
44568 2008-09-01  Bruno Haible  <bruno@clisp.org>
44569
44570         Split module 'filename' into 'filename' and 'concat-filename'.
44571         * modules/filename: Keep only lib/filename.h.
44572         (License): Change to LGPLv2+.
44573         * modules/concat-filename: New file, extracted from modules/filename.
44574         * lib/filename.h (concatenated_filename): Remove declaration.
44575         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44576         * lib/concat-filename.c: Include concat-filename.h.
44577         * NEWS: Mention the change.
44578
44579 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44580
44581         * lib/bitrotate.h (rotl8, rotr8): Add.
44582
44583         * modules/bitrotate (configure.ac): Need
44584         AC_REQUIRE([AC_C_INLINE]).
44585         (Description): Mention stdint.h.  Reported by Bruno Haible
44586         <bruno@clisp.org>.
44587
44588         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44589         Paolo Bonzini <bonzini@gnu.org>.
44590
44591 2008-08-31  Bruno Haible  <bruno@clisp.org>
44592
44593         Assume Solaris specific bi-arch conventions on Solaris systems.
44594         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44595         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44596         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44597         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44598         like acl_libdirstem.
44599         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44600         acl_libdirstem.
44601         * NEWS: Mention the change.
44602         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44603
44604 2008-08-31  Jim Meyering  <meyering@redhat.com>
44605
44606         * lib/strftime.h: Add comments describing the two added arguments.
44607
44608         remove duplicate #include directives
44609         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44610         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44611
44612 2008-08-31  Bruno Haible  <bruno@clisp.org>
44613
44614         New module 'sigpipe-die'.
44615         * modules/sigpipe-die: New file.
44616         * lib/sigpipe-die.h: New file.
44617         * lib/sigpipe-die.c: New file.
44618         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44619
44620 2008-08-31  Bruno Haible  <bruno@clisp.org>
44621
44622         Don't override previously installed signal handlers.
44623         * lib/fatal-signal.c (saved_sigactions): New variable.
44624         (uninstall_handlers): Reset the signal to the saved handler, not
44625         to SIG_DFL (except when ignored).
44626         (install_handlers): Save the previous handlers.
44627
44628 2008-08-30  Bruno Haible  <bruno@clisp.org>
44629
44630         * gnulib-tool (func_reset_sigpipe): New function.
44631         (func_get_automake_snippet, func_modules_transitive_closure,
44632         func_import): Invoke it before a join command that reads from stdin,
44633         to avoid "echo: write error: Broken pipe" error messages on stderr.
44634         Reported by Sam Steingold <sds@gnu.org>.
44635
44636 2008-08-30  Bruno Haible  <bruno@clisp.org>
44637
44638         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44639         Code copied from m4/open.m4.
44640         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44641         access and the filename ends in a slash. Code copied from lib/open.c.
44642         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44643         * tests/test-fopen.c (main): Check against bug with trailing slash.
44644
44645 2008-08-29  Bruno Haible  <bruno@clisp.org>
44646
44647         Avoid some "gcc -pedantic" warnings.
44648         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44649         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44650         * lib/dirent.in.h: Likewise.
44651         * lib/fcntl.in.h: Likewise.
44652         * lib/float.in.h: Likewise.
44653         * lib/iconv.in.h: Likewise.
44654         * lib/inttypes.in.h: Likewise.
44655         * lib/locale.in.h: Likewise.
44656         * lib/math.in.h: Likewise.
44657         * lib/netinet_in.in.h: Likewise.
44658         * lib/search.in.h: Likewise.
44659         * lib/signal.in.h: Likewise.
44660         * lib/stdarg.in.h: Likewise.
44661         * lib/stdint.in.h: Likewise.
44662         * lib/stdio.in.h: Likewise.
44663         * lib/stdlib.in.h: Likewise.
44664         * lib/string.in.h: Likewise.
44665         * lib/strings.in.h: Likewise.
44666         * lib/sys_select.in.h: Likewise.
44667         * lib/sys_socket.in.h: Likewise.
44668         * lib/sys_stat.in.h: Likewise.
44669         * lib/sys_time.in.h: Likewise.
44670         * lib/sysexits.in.h: Likewise.
44671         * lib/time.in.h: Likewise.
44672         * lib/unistd.in.h: Likewise.
44673         * lib/wchar.in.h: Likewise.
44674         * lib/wctype.in.h: Likewise.
44675         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44676         * modules/fchdir (Makefile.am): Likewise.
44677         * modules/fcntl (Makefile.am): Likewise.
44678         * modules/float (Makefile.am): Likewise.
44679         * modules/iconv_open (Makefile.am): Likewise.
44680         * modules/inttypes (Makefile.am): Likewise.
44681         * modules/locale (Makefile.am): Likewise.
44682         * modules/math (Makefile.am): Likewise.
44683         * modules/netinet_in (Makefile.am): Likewise.
44684         * modules/search (Makefile.am): Likewise.
44685         * modules/signal (Makefile.am): Likewise.
44686         * modules/stdarg (Makefile.am): Likewise.
44687         * modules/stdint (Makefile.am): Likewise.
44688         * modules/stdio (Makefile.am): Likewise.
44689         * modules/stdlib (Makefile.am): Likewise.
44690         * modules/string (Makefile.am): Likewise.
44691         * modules/strings (Makefile.am): Likewise.
44692         * modules/sys_select (Makefile.am): Likewise.
44693         * modules/sys_socket (Makefile.am): Likewise.
44694         * modules/sys_stat (Makefile.am): Likewise.
44695         * modules/sys_time (Makefile.am): Likewise.
44696         * modules/sysexits (Makefile.am): Likewise.
44697         * modules/time (Makefile.am): Likewise.
44698         * modules/unistd (Makefile.am): Likewise.
44699         * modules/wchar (Makefile.am): Likewise.
44700         * modules/wctype (Makefile.am): Likewise.
44701         Reported by Reuben Thomas <rrt@sc3d.org>.
44702
44703 2008-08-29  Bruno Haible  <bruno@clisp.org>
44704
44705         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44706         any more.
44707
44708 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44709
44710         * MODULES.html.sh (Misc): Add bitrotate.
44711
44712         * modules/bitrotate: New file.
44713
44714         * lib/bitrotate.h: New file.
44715
44716         * modules/bitrotate-tests: New file.
44717
44718         * tests/test-bitrotate.c: New file.
44719
44720         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44721         on the bitrotate module.
44722
44723         * lib/arctwo.c: Use new bitrotate module.
44724
44725 2008-08-29  Jim Meyering  <meyering@redhat.com>
44726
44727         bootstrap: merge changes from coreutils
44728         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44729         of copied files.  Remove a kludge, now that this is fixed.
44730         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44731         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44732         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44733
44734 2008-08-29  Bruno Haible  <bruno@clisp.org>
44735
44736         * MODULES.html.sh: Remove --cvs-urls option.
44737
44738 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44739
44740         maint.mk: adjust to file name change
44741         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44742
44743 2008-08-28  Jim Meyering  <meyering@redhat.com>
44744
44745         * modules/getndelim2 (License): Relicense to LGPLv2+.
44746         Approved by Richard Stallman for the version of 1995, and by
44747         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44748
44749 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44750
44751         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44752         dummy if one is not available.  Do not touch them if
44753         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44754         (getc_maybe_unlocked): New.
44755         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44756
44757 2008-08-26  Eric Blake  <ebb9@byu.net>
44758
44759         doc/INSTALL: resync from autoconf
44760         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44761         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44762         moving...
44763         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44764         * INSTALL: Regenerate.
44765         * INSTALL.ISO: New file.
44766         * INSTALL.UTF-8: Likewise.
44767
44768 2008-08-26  Jim Meyering  <meyering@redhat.com>
44769
44770         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44771         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44772         these definitions conditional, so that they may be overridden, too.
44773
44774 2008-08-26  Bruno Haible  <bruno@clisp.org>
44775
44776         Generate INSTALL file variants with prettier quotes.
44777         * doc/Makefile (INSTALL_PRELUDE): New macro.
44778         (INSTALL): Use it.
44779         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44780
44781 2008-08-26  Bruno Haible  <bruno@clisp.org>
44782
44783         Run makeinfo in an English locale.
44784         * doc/Makefile (MAKEINFO): New variable.
44785
44786 2008-08-26  Bruno Haible  <bruno@clisp.org>
44787
44788         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44789         Suggested by Eric Blake.
44790
44791 2008-08-25  Bruno Haible  <bruno@clisp.org>
44792
44793         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44794
44795 2008-08-25  Eric Blake  <ebb9@byu.net>
44796
44797         c-stack: test that stack overflow can be caught
44798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44799         that platform allows handling stack overflow; at least OS/2 EMX
44800         has sigaltstack, but crashes before transferring control to
44801         handler on stack overflow.
44802         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44803         check for HAVE_STACK_OVERFLOW_HANDLING.
44804         Reported by Elbert Pol.
44805
44806 2008-08-25  Bruno Haible  <bruno@clisp.org>
44807
44808         * doc/posix-functions/strftime.texi: Fix description of strftime
44809         module.
44810
44811 2008-08-24  Bruno Haible  <bruno@clisp.org>
44812
44813         * tests/uniwidth/test-uc_width2.c: New file.
44814         * tests/uniwidth/test-uc_width2.sh: New file.
44815         * modules/uniwidth/width-tests (Files): Add the new files.
44816         (TESTS): Add uniwidth/test-uc_width2.sh.
44817         (TESTS_ENVIRONMENT): New variable.
44818         (check_PROGRAMS): Add test-uc_width2.
44819         (test_uc_width2_SOURCES): New variable.
44820
44821         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44822         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44823         not 0x00AB.
44824         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44825
44826 2008-08-22  Eric Blake  <ebb9@byu.net>
44827
44828         test-lock, test-tls: mention why a test is skipped
44829         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44830         skipped.
44831         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44832
44833         count-one-bits: relax license
44834         * modules/count-one-bits (License): Relicense to LGPLv2+.
44835         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44836
44837 2008-08-22  Andreas Schwab  <schwab@suse.de>
44838
44839         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44840         Remove spurious space in assignment.
44841
44842 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44843
44844         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44845         Paul Eggert <eggert@CS.UCLA.EDU>.
44846
44847 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44848
44849         * modules/gettext: Add m4/threadlib.m4.
44850
44851 2008-08-19  Eric Blake  <ebb9@byu.net>
44852
44853         test-c-stack: fix compilation failure on FreeBSD 5.0
44854         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44855         headers before <sys/resource.h>.
44856         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44857         the bug.
44858         Reported by Nelson H. F. Beebe.
44859
44860         strverscmp: migrate from "strverscmp.h" to <string.h>
44861         * modules/string (Makefile.am): Add new hooks.
44862         * modules/strverscmp (Files): Remove strverscmp.h.
44863         (Depends-on): Add string.
44864         (configure.ac): Add indicator.
44865         (Include): Mention new header.
44866         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44867         defaults.
44868         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44869         results.
44870         * lib/strverscmp.h: Delete.
44871         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44872         * tests/test-strverscmp.c (includes): Adjust client.
44873         * lib/check-version.c (includes): Likewise.
44874         * NEWS: Document the change.
44875
44876         strverscmp: add unit test
44877         * modules/strverscmp-tests: New file.
44878         * tests/test-strverscmp.c: Likewise.
44879
44880 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44881
44882         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44883         regarding Windows crypto stuff, from Mono.
44884
44885 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44886
44887         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44888         if present, for intel RND.  Return error on failures.
44889
44890 2008-08-18  Ben Pfaff  <blp@gnu.org>
44891
44892         gitlog-to-changelog: give better diagnostic for failed pipe-open
44893         * build-aux/gitlog-to-changelog: Improve error message: suggest
44894         that the version of Git may be too old.
44895
44896 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44897
44898         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44899         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44900
44901 2008-08-18  Bruno Haible  <bruno@clisp.org>
44902
44903         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44904         pthread_in_use().
44905
44906 2008-08-18  Bruno Haible  <bruno@clisp.org>
44907
44908         * lib/glthread/threadlib.c: Include <pthread.h>.
44909
44910 2008-08-18  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44913         glthread_recursive_lock_* macros.
44914         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44915         Fix syntax error.
44916
44917 2008-08-18  Bruno Haible  <bruno@clisp.org>
44918
44919         * lib/glthread/thread.c: Avoid forcing a context switch right after
44920         thread creation.
44921
44922 2008-08-17  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44925         * lib/glthread/thread.h: Provide Win32 specific implementation.
44926         * modules/thread (Files): Add lib/glthread/thread.c.
44927         (Depends-on): Add lock.
44928         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44929
44930 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44931
44932         New module 'yield'.
44933         * modules/yield: New file.
44934         * lib/glthread/yield.h: New file.
44935         * m4/yield.m4: New file.
44936         * MODULES.html.sh (Multithreading): Add yield.
44937
44938 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44939
44940         New module 'thread'.
44941         * modules/thread: New file.
44942         * lib/glthread/thread.h: New file.
44943         * m4/thread.m4: New file.
44944         * MODULES.html.sh (Multithreading): Add thread.
44945
44946 2008-08-17  Bruno Haible  <bruno@clisp.org>
44947
44948         * lib/glthread/lock.h: Include <stdlib.h> always.
44949         * lib/glthread/tls.h: Likewise.
44950         * lib/glthread/cond.h: Likewise.
44951
44952 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44953
44954         New module 'cond'.
44955         * modules/cond: New file.
44956         * lib/glthread/cond.h: New file.
44957         * lib/glthread/cond.c: New file.
44958         * m4/cond.m4: New file.
44959         * MODULES.html.sh (Multithreading): Add cond.
44960
44961 2008-08-16  Eric Blake  <ebb9@byu.net>
44962
44963         c-stack: fix regression on Irix 5.3 from 2008-06-21
44964         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44965         sa_sigaction...
44966         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44967         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44968         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44969         * modules/signal (Makefile.am): Use the value.
44970         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44971         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44972         * doc/posix-headers/signal.texi (signal.h): Document this
44973         portability issue.
44974         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44975         Reported by Tom G. Christensen.
44976
44977 2008-08-17  Bruno Haible  <bruno@clisp.org>
44978
44979         New module 'threadlib'.
44980         * modules/threadlib: New file.
44981         * lib/glthread/threadlib.c: New file, extracted from
44982         lib/glthread/lock.c.
44983         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44984         functions.
44985         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44986         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44987         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44988         macros.
44989         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44990         (gl_DISABLE_THREADS): Remove macro.
44991         * modules/lock (Files): Remove build-aux/config.rpath.
44992         (Depends-on): Remove havelib. Add threadlib.
44993         (configure.ac-early): Remove section.
44994         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44995         * modules/tls (Depends-on): Remove lock. Add threadlib.
44996         (Link): New section, copied from threadlib.
44997         * MODULES.html.sh (Multithreading): Add threadlib.
44998
44999 2008-08-14  Bruno Haible  <bruno@clisp.org>
45000
45001         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45002         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45003         glthread_rwlock_unlock, glthread_rwlock_destroy,
45004         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45005         glthread_recursive_lock_destroy): Define as macros always.
45006         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45007         glthread_lock_lock.
45008         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45009         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45010         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45011         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45012         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45013         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45014         (glthread_recursive_lock_lock_func): Renamed from
45015         glthread_recursive_lock_lock.
45016         (glthread_recursive_lock_unlock_func): Renamed from
45017         glthread_recursive_lock_unlock.
45018         (glthread_recursive_lock_destroy_func): Renamed from
45019         glthread_recursive_lock_destroy.
45020
45021 2008-08-14  Bruno Haible  <bruno@clisp.org>
45022
45023         * lib/glthread/lock.h: Renamed from lib/lock.h.
45024         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
45025         * lib/glthread/tls.h: Renamed from lib/tls.h.
45026         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
45027         * lib/fstrcmp.c: Update includes.
45028         * lib/strsignal.c: Update includes.
45029         * modules/lock (Files, Makefile.am): Update.
45030         (Include): Change to "glthread/lock.h".
45031         * modules/tls (Files, Makefile.am): Update.
45032         (Include): Change to "glthread/tls.h".
45033         * tests/test-lock.c: Update includes.
45034         * tests/test-tls.c: Update includes.
45035         * NEWS: Mention the renamed header files.
45036
45037 2008-08-11  Jim Meyering  <meyering@redhat.com>
45038
45039         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
45040
45041 2008-08-11  Eric Blake  <ebb9@byu.net>
45042
45043         test-c-stack: avoid C99-ism
45044         * tests/test-c-stack.c (main): Fix whitespace, move declaration
45045         before statement.
45046         Reported by Alain Guibert.
45047
45048 2008-08-10  Jim Meyering  <meyering@redhat.com>
45049
45050         ensure that return value of uinttostr et al are not ignored
45051         * lib/inttostr.h (__GNUC_PREREQ): Define.
45052         (__attribute_warn_unused_result__): Define.
45053         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45054
45055 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45056
45057         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45058         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45059
45060 2008-08-07  Jim Meyering  <meyering@redhat.com>
45061
45062         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45063
45064         * modules/mkstemp (License): Relicense under LGPLv2+.
45065         * modules/tempname (License): Likewise.
45066
45067 2008-08-06  Bruno Haible  <bruno@clisp.org>
45068
45069         * lib/poll.c (poll): Further micro-optimization.
45070
45071 2008-08-06  Jim Meyering  <meyering@redhat.com>
45072
45073         inet_pton.c: use locale-independent tolower
45074         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45075         (inet_pton6): Use c_tolower rather than tolower.
45076         * modules/inet_pton (Depends-on): Add c-ctype.
45077
45078 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45079
45080         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45081         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45082
45083 2008-08-06  Jim Meyering  <meyering@redhat.com>
45084
45085         * modules/inet_pton (License): Relicense under LGPLv2+.
45086
45087 2008-08-03  Bruno Haible  <bruno@clisp.org>
45088
45089         Additional non-aborting API for lock and tls.
45090         * lib/lock.h: Include <errno.h>.
45091         (glthread_lock_init): New macro/function.
45092         (gl_lock_init): Define as wrapper around glthread_lock_init.
45093         (glthread_lock_lock): New macro/function.
45094         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45095         (glthread_lock_unlock): New macro/function.
45096         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45097         (glthread_lock_destroy): New macro/function.
45098         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45099         (glthread_rwlock_init): New macro/function.
45100         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45101         (glthread_rwlock_rdlock): New macro/function.
45102         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45103         (glthread_rwlock_wrlock): New macro/function.
45104         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45105         (glthread_rwlock_unlock): New macro/function.
45106         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45107         (glthread_rwlock_destroy): New macro/function.
45108         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45109         (glthread_recursive_lock_init): New macro/function.
45110         (gl_recursive_lock_init): Define as wrapper around
45111         glthread_recursive_lock_init.
45112         (glthread_recursive_lock_lock): New macro/function.
45113         (gl_recursive_lock_lock): Define as wrapper around
45114         glthread_recursive_lock_lock.
45115         (glthread_recursive_lock_unlock): New macro/function.
45116         (gl_recursive_lock_unlock): Define as wrapper around
45117         glthread_recursive_lock_unlock.
45118         (glthread_recursive_lock_destroy): New macro/function.
45119         (gl_recursive_lock_destroy): Define as wrapper around
45120         glthread_recursive_lock_destroy.
45121         (glthread_once): New macro/function.
45122         (gl_once): Define as wrapper around glthread_once.
45123         Update function declarations.
45124         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
45125         glthread_rwlock_init. Return error code.
45126         (glthread_rwlock_rdlock_multithreaded): Renamed from
45127         glthread_rwlock_rdlock. Return error code.
45128         (glthread_rwlock_wrlock_multithreaded): Renamed from
45129         glthread_rwlock_wrlock. Return error code.
45130         (glthread_rwlock_unlock_multithreaded): Renamed from
45131         glthread_rwlock_unlock. Return error code.
45132         (glthread_rwlock_destroy_multithreaded): Renamed from
45133         glthread_rwlock_destroy. Return error code.
45134         (glthread_recursive_lock_init_multithreaded): Renamed from
45135         glthread_recursive_lock_init. Return error code.
45136         (glthread_recursive_lock_lock_multithreaded): Renamed from
45137         glthread_recursive_lock_lock. Return error code.
45138         (glthread_recursive_lock_unlock_multithreaded): Renamed from
45139         glthread_recursive_lock_unlock. Return error code.
45140         (glthread_recursive_lock_destroy_multithreaded): Renamed from
45141         glthread_recursive_lock_destroy. Return error code.
45142         (glthread_once_call): Make static.
45143         (glthread_once_multithreaded): Renamed from glthread_once.
45144         * lib/tls.h: Include <errno.h>.
45145         (glthread_tls_key_init): New macro/function.
45146         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
45147         (glthread_tls_set): New macro/function.
45148         (gl_tls_set): Define as wrapper around glthread_tls_set.
45149         (glthread_tls_key_destroy): New macro/function.
45150         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
45151         Update function declarations.
45152         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
45153         glthread_tls_get.
45154         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45155
45156 2008-08-04  Eric Blake  <ebb9@byu.net>
45157
45158         gnumakefile: use space, not TAB, outside of targets
45159         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
45160
45161 2008-08-02  Jim Meyering  <meyering@redhat.com>
45162
45163         getdate.y: avoid locale-dependent date parsing failure
45164         In Turkish locales, getdate would fail to recognize keywords
45165         containing a lowercase "i".  The solution is not to rely on
45166         locale-sensitive case-conversion.
45167         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
45168         (lookup_word): Use c_toupper in place of toupper.
45169         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
45170         Reported by Vefa Bicakci <bicave@superonline.com> in
45171         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
45172         * modules/getdate (Depends-on): Add c-ctype.
45173
45174 2008-08-02  Bruno Haible  <bruno@clisp.org>
45175
45176         * gnulib-tool (func_import): When updating or creating a .gitignore
45177         file, prepend each added line with a slash, and ignore leading slashes
45178         from the existing lines.
45179         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45180
45181 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45182
45183         Portability fix for GNU make 3.79.1.
45184         * top/GNUmakefile: Avoid 'else COND', which older GNU make
45185         versions do not understand.
45186
45187 2008-08-01  Bruno Haible  <bruno@clisp.org>
45188
45189         Work around bug of HP-UX 10.20 cc with -0.0 literal.
45190         * tests/test-isnanf.h (zero): New variable.
45191         (main): Avoid literal -0.0f.
45192         * tests/test-isnand.h (zero): New variable.
45193         (main): Avoid literal -0.0.
45194         * tests/test-isnanl.h (zero): New variable.
45195         (main): Avoid literal -0.0L.
45196         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
45197         (test_float, test_double, test_long_double): Avoid literals -0.0f,
45198         -0.0, -0.0L.
45199         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
45200         (test_signbitd): Avoid literal -0.0.
45201         (test_signbitl): Avoid literal -0.0L.
45202         * tests/test-ceilf1.c (zero): New variable.
45203         (main): Avoid literal -0.0f.
45204         * tests/test-ceill.c (zero): New variable.
45205         (main): Avoid literal -0.0L.
45206         * tests/test-floorf1.c (zero): New variable.
45207         (main): Avoid literal -0.0f.
45208         * tests/test-floorl.c (zero): New variable.
45209         (main): Avoid literal -0.0L.
45210         * tests/test-roundf1.c (zero): New variable.
45211         (main): Avoid literal -0.0f.
45212         * tests/test-round1.c (zero): New variable.
45213         (main): Avoid literal -0.0.
45214         * tests/test-roundl.c (zero): New variable.
45215         (main): Avoid literal -0.0L.
45216         * tests/test-truncf1.c (zero): New variable.
45217         (main): Avoid literal -0.0f.
45218         * tests/test-trunc1.c (zero): New variable.
45219         (main): Avoid literal -0.0.
45220         * tests/test-truncl.c (zero): New variable.
45221         (main): Avoid literal -0.0L.
45222         * tests/test-frexp.c (zero): New variable.
45223         (main): Avoid literal -0.0.
45224         * tests/test-frexpl.c (zero): New variable.
45225         (main): Avoid literal -0.0L.
45226         * tests/test-ldexpl.c (zero): New variable.
45227         (main): Avoid literal -0.0L.
45228         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45229         (zerod, zerol): New variables.
45230         (test_function): Avoid literals -0.0, -0.0L.
45231         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
45232         (zerod, zerol): New variables.
45233         (test_function): Avoid literals -0.0, -0.0L.
45234         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45235         (zerod, zerol): New variables.
45236         (test_function): Avoid literals -0.0, -0.0L.
45237         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
45238         (zerod, zerol): New variables.
45239         (test_function): Avoid literals -0.0, -0.0L.
45240         * tests/test-strtod.c (zero): New variable.
45241         (main): Avoid literal -0.0.
45242         Reported by Jonathan C. Patschke <jp@centtech.com>.
45243
45244 2008-07-31  Jim Meyering  <meyering@redhat.com>
45245
45246         sha256.h: correct definition of SHA224_DIGEST_SIZE
45247         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
45248         Reported by Paulie Pena IV <paulie4@gmail.com>.
45249         Define as 224 / 8, rather than as a literal.
45250         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
45251         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
45252         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
45253
45254 2008-07-31  Bruno Haible  <bruno@clisp.org>
45255
45256         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
45257         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
45258         Reported by Jonathan Patschke <jp@centtech.com>.
45259
45260 2008-07-31  Bruno Haible  <bruno@clisp.org>
45261
45262         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
45263         Reported by Paolo Bonzini <bonzini@gnu.org>.
45264
45265 2008-07-30  Eric Blake  <ebb9@byu.net>
45266
45267         test-strtod: allow compilation without -lm
45268         * tests/test-strtod.c (main): Avoid link dependence on fabs.
45269         Reported by Dennis Clarke <blastwave@gmail.com>.
45270
45271 2008-07-28  Jim Meyering  <meyering@redhat.com>
45272
45273         bootstrap: work also when there are no .po files in po/
45274         * build-aux/bootstrap (update_po_files): Complete the change
45275         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
45276
45277 2008-07-27  Jim Meyering  <meyering@redhat.com>
45278
45279         * users.txt: Add zile.
45280
45281 2008-07-26  Ben Pfaff  <blp@gnu.org>
45282
45283         Add missing dependencies on new m4/exponent[fdl].m4 files.
45284         * modules/isnanf-nolibm: Add m4/exponentf.m4.
45285         * modules/isnand-nolibm: Add m4/exponentd.m4.
45286         * modules/isnanl-nolibm: Add m4/exponentl.m4.
45287         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
45288         m4/isnan[fdl].m4, because the macros actually used moved.
45289         Reported by Jim Meyering.
45290
45291 2008-07-14  Ben Pfaff  <blp@gnu.org>
45292
45293         Add isinf module.
45294         * lib/isinf.c: New file.
45295         * lib/math.in.h: Define isinf macro if we have decided to replace
45296         it.
45297         * m4/isinf.m4: New file.
45298         * m4/math_h.m4: Initialize and substitute variables for isinf
45299         module.
45300         * modules/isinf: New file.
45301         * modules/isinf-tests: New file.
45302         * modules/math: Add substitutions for new module.
45303         * tests/test-isinf.c: New file.
45304         * doc/posix-functions/isinf.texi: Mention new module.
45305         * MODULES.html.sh: Mention new module.
45306
45307 2008-07-14  Ben Pfaff  <blp@gnu.org>
45308
45309         Factor out some macros for use by additional modules.
45310         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
45311         exponentf.m4.
45312         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
45313         exponentd.m4.
45314         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
45315         file exponentl.m4.
45316         * m4/exponentf.m4: New file.
45317         * m4/exponentd.m4: New file.
45318         * m4/exponentl.m4: New file.
45319         * modules/isnanf: Use new file m4/exponentf.m4.
45320         * modules/isnand: Use new file m4/exponentd.m4.
45321         * modules/isnanl: Use new file m4/exponentl.m4.
45322
45323 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
45324
45325         mktime.c: normalize tp->tm_isdst value to -1/0/1.
45326         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
45327         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
45328         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
45329
45330         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
45331         readlink on platforms without PATH_MAX.
45332
45333 2008-07-21  Eric Blake  <ebb9@byu.net>
45334
45335         Warn, not fail, on stale version.
45336         * top/GNUmakefile (_curr-ver): Tone down previous patch.
45337
45338         Don't allow installation with stale devel version number.
45339         * top/GNUmakefile (_is-install-target): New macro.
45340         (_curr-ver): Forbid installation with stale version number.
45341
45342 2008-07-20  Bruno Haible  <bruno@clisp.org>
45343
45344         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
45345         TESTS_ENVIRONMENT.
45346         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
45347
45348 2008-07-20  Bruno Haible  <bruno@clisp.org>
45349
45350         * lib/c-stack.h (c_stack_action): Add documentation.
45351         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
45352
45353 2008-07-20  Bruno Haible  <bruno@clisp.org>
45354
45355         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
45356         * modules/readlink (License): Likewise.
45357
45358 2008-07-17  Eric Blake  <ebb9@byu.net>
45359
45360         * modules/c-stack (Link): Fix typo.
45361
45362         Make c-stack use libsigsegv, when available.
45363         * modules/c-stack (Depends-on): Add libsigsegv.
45364         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
45365         needed.
45366         * lib/c-stack.c (SIGSTKSZ): Define fallback.
45367         (segv_handler, overflow_handler, c_stack_action)
45368         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
45369         implementation when libsigsegv is available, but only when using
45370         the library is necessary.
45371         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
45372         comment, explaining why XSI check fails on Linux.
45373         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
45374         * tests/test-c-stack2.sh: Tweak skip message.
45375         * NEWS: Document new link-time requirements.
45376
45377 2008-07-16  Eric Blake  <ebb9@byu.net>
45378
45379         c-stack: Expose false positives when not using libsigsegv.
45380         * modules/c-stack-tests (Files): Expand test.
45381         * tests/test-c-stack.c (main): Add means to conditionally trigger
45382         non-overflow SIGSEGV.
45383         * tests/test-c-stack2.sh: New file.
45384
45385 2008-07-14  Bruno Haible  <bruno@clisp.org>
45386
45387         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
45388         Reported by Eric Blake.
45389
45390 2008-07-14  Sam Steingold  <sds@gnu.org>
45391             Bruno Haible  <bruno@clisp.org>
45392
45393         New module libsigsegv.
45394         * modules/libsigsegv: New file.
45395         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
45396         modifications.
45397         * MODULES.html.sh (Signal handling): New section.
45398
45399 2008-07-14  Bruno Haible  <bruno@clisp.org>
45400
45401         * modules/unictype/ctype-* (Description): Add the word "function".
45402         Improves the resulting doc in MODULES.html.
45403
45404 2008-07-12  Ben Pfaff  <blp@gnu.org>
45405
45406         Add longlong module.
45407         * modules/longlong: New file.
45408
45409 2008-07-12  Bruno Haible  <bruno@clisp.org>
45410
45411         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
45412         to empty.
45413
45414 2008-07-10  Ben Pfaff  <blp@gnu.org>
45415
45416         Add isnan module.
45417         * doc/posix-functions/isnan.texi: Mention new module.
45418         * lib/math.in.h: Define isnan macro if we have decided to replace
45419         it.
45420         * m4/isnan.m4: New file.
45421         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
45422         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
45423         also.
45424         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
45425         redundancy.
45426         * m4/math_h.m4: Initialize and substitute variables for isnan
45427         module.
45428         * modules/isnan: New file.
45429         * modules/isnan-tests: New file.
45430         * modules/math: Add substitutions for new module.
45431         * tests/test-isnan.c: New file.
45432         * MODULES.html.sh: Mention new module.
45433
45434 2008-07-10  Ben Pfaff  <blp@gnu.org>
45435
45436         Add isnanf module.
45437         * lib/isnanf.m4: New file.
45438         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
45439         (gl_HAVE_ISNANF_IN_LIBM): New macro.
45440         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
45441         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
45442         * modules/isnanf: New file.
45443         * modules/isnanf-tests: New file.
45444         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
45445         files.
45446         * tests/test-isnanf-nolibm.c: factored most of its contents into
45447         new file tests/test-isnanf.h.
45448         * tests/test-isnanf.h: New file.
45449         * tests/test-isnanf.c: New file.
45450         * MODULES.html.sh: Mention new module.
45451         * doc/glibc-functions/isnanf.texi: Mention new module.
45452
45453 2008-07-10  Ben Pfaff  <blp@gnu.org>
45454
45455         Add isnand module.
45456         * lib/isnand.h: New file.
45457         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
45458         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
45459         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
45460         functionality also.
45461         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
45462         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
45463         (gl_HAVE_ISNAND_IN_LIBM): New macro.
45464         * modules/isnand: New file.
45465         * modules/isnand-tests: New file.
45466         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
45467         files.
45468         * tests/test-isnand-nolibm.c: factored most of its contents into
45469         new file tests/test-isnand.h.
45470         * tests/test-isnand.h: New file.
45471         * tests/test-isnand.c: New file.
45472         * MODULES.html.sh: Mention new module.
45473
45474 2008-07-10  Ben Pfaff  <blp@gnu.org>
45475
45476         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
45477         * lib/isnand.h: Rename lib/isnand-nolibm.h.
45478         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
45479         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
45480         * modules/isnanf-nolibm: Update references to renamed files.
45481         * modules/isnand-nolibm: Likewise.
45482         * modules/isnanf-nolibm-tests: Likewise.
45483         * modules/isnand-nolibm-tests: Likewise.
45484         * lib/frexp.c: Likewise.
45485         * lib/isfinite.c: Likewise.
45486         * lib/signbitd.c: Likewise.
45487         * lib/signbitf.c: Likewise.
45488         * lib/vasnprintf.c: Likewise.
45489         * tests/test-ceilf1.c: Likewise.
45490         * tests/test-ceilf2.c: Likewise.
45491         * tests/test-floorf1.c: Likewise.
45492         * tests/test-floorf2.c: Likewise.
45493         * tests/test-frexp.c: Likewise.
45494         * tests/test-round1.c: Likewise.
45495         * tests/test-round2.c: Likewise.
45496         * tests/test-roundf1.c: Likewise.
45497         * tests/test-strtod.c: Likewise.
45498         * tests/test-trunc1.c: Likewise.
45499         * tests/test-trunc2.c: Likewise.
45500         * tests/test-truncf1.c: Likewise.
45501         * tests/test-truncf2.c: Likewise.
45502         * NEWS: Mention the renamed header files.
45503
45504 2008-07-11  Jim Meyering  <meyering@redhat.com>
45505
45506         vc-list-files: make the last-resort awk code more portable
45507         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
45508         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
45509         does not support it.
45510
45511 2008-07-10  Eric Blake  <ebb9@byu.net>
45512
45513         Work with tar's bootstrap.
45514         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
45515         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
45516         an m4 comment.
45517
45518 2008-07-09  Jim Meyering  <meyering@redhat.com>
45519
45520         posix-shell.m4: fix typo that made this test malfunction
45521         * m4/posix-shell.m4: Remove capitalization in variable name.
45522
45523 2008-07-08  Bruno Haible  <bruno@clisp.org>
45524
45525         * m4/onceonly.m4: Update comments.
45526         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45527
45528 2008-07-04  Jim Meyering  <meyering@redhat.com>
45529
45530         * users.txt: Add vc-dwim.
45531         (bison, coreutils): Use the gitweb URL.
45532
45533 2008-07-03  Jim Meyering  <meyering@redhat.com>
45534
45535         * users.txt: Add libffcall.  From Sam Steingold.
45536
45537 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
45538
45539         getdate.y: do not ignore TZ with relative day, month or year offset
45540         * lib/getdate.y (get_date): Move the tz-handling block to follow the
45541         relative-date-handling, since otherwise, the latter would clobber the
45542         sole output (an updated Start value) of the tz-handling block.
45543         * tests/test-getdate.c: Tests for the fix
45544
45545 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45546
45547         Recognize 'foo_LIBRARIES += libgnu.a'.
45548         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
45549         makefile snippet has already specified an installation location,
45550         also using '+='.
45551
45552 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
45553
45554         getdate.y: factor out common actions
45555         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45556         Use them in place of open-coded actions.
45557
45558 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45559
45560         Add self-test for getdate module.
45561         * modules/getdate-tests: New file.
45562         * tests/test-getdate.c: New file.
45563
45564 2008-06-29  Bruno Haible  <bruno@clisp.org>
45565
45566         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45567         .gitignore.
45568         Reported by Sylvain Beucler <beuc@beuc.net>.
45569
45570 2008-06-29  Bruno Haible  <bruno@clisp.org>
45571
45572         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45573         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45574
45575 2008-06-29  Bruno Haible  <bruno@clisp.org>
45576
45577         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45578         EXTRA_DIST.
45579         Reported by Sylvain Beucler <beuc@beuc.net>.
45580
45581 2008-06-26  Jim Meyering  <meyering@redhat.com>
45582
45583         make several modules depend on the "open" module
45584         This provides slightly increased consistency when opening-for-write
45585         the name of a non-directory spelled with a trailing slash.
45586         * modules/chdir-safer: Likewise.
45587         * modules/chown: Likewise.
45588         * modules/clean-temp: Likewise.
45589         * modules/copy-file: Likewise.
45590         * modules/fchdir: Likewise.
45591         * modules/fcntl-safer: Likewise.
45592         * modules/pipe: Likewise.
45593         * modules/utime: Likewise.
45594         Prompted by Eric Blake and Bruno Haible.
45595
45596 2008-06-24  Andreas Schwab  <schwab@suse.de>
45597
45598         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45599         literals can be used as initializers for global variables.
45600
45601 2008-06-23  Eric Blake  <ebb9@byu.net>
45602
45603         Make gnulib-cache.m4 easier to diff.
45604         * gnulib-tool (func_import): Allow newlines when reading cached
45605         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45606
45607 2008-06-23  Bruno Haible  <bruno@clisp.org>
45608
45609         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45610         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45611         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45612         m4/signalblocking.m4.
45613         (gl_PREREQ_SIGACTION): Don't invoke it.
45614         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45615         gl_PREREQ_SIG_HANDLER_H.
45616         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45617         Don't check for sigaction here.
45618
45619 2008-06-23  Bruno Haible  <bruno@clisp.org>
45620
45621         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45622         (install_handlers): Don't set the SA_RESETHAND flag.
45623
45624 2008-06-23  Bruno Haible  <bruno@clisp.org>
45625
45626         * m4/sigaction.m4: Comment fixes.
45627         * lib/signal.in.h: Likewise.
45628
45629 2008-06-23  Eric Blake  <ebb9@byu.net>
45630
45631         Fix typo.
45632         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45633
45634         Avoid SA_ namespace.
45635         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45636         Reported by Ralf Wildenhues.
45637
45638         Avoid test failure due to SA_RESTORER.
45639         * tests/test-sigaction.c (SA_MASK): New macro.
45640         (main): Avoid failing due to extension flags being set.
45641         Reported by Jim Meyering.
45642
45643         Revert use of sig-handler.h in sigprocmask.c.
45644         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45645         it requires the existence of struct sigaction.
45646         * lib/sigprocmask.c (handler_t): Restore typedef.
45647         (rpl_signal, old_handlers): Use local type.
45648
45649 2008-06-22  Bruno Haible  <bruno@clisp.org>
45650
45651         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45652         conditionally.
45653         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45654
45655 2008-06-22  Bruno Haible  <bruno@clisp.org>
45656
45657         * doc/posix-functions/siginterrupt.texi: Move note.
45658
45659         * lib/signal.in.h (SA_RESTART): New macro.
45660         * lib/sigaction.c: Update comment.
45661
45662         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45663
45664         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45665         (gl_PREREQ_SIGPROCMASK): Invoke it.
45666         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45667
45668         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45669
45670         * lib/sigprocmask.c: Update a comment.
45671
45672 2008-06-21  Eric Blake  <ebb9@byu.net>
45673
45674         Use sigaction module rather than signal().
45675         * modules/c-stack (Depends-on): Add sigaction.
45676         * modules/fatal-signal (Depends-on): Likewise.
45677         * modules/nanosleep (Depends-on): Likewise.
45678         * modules/sigprocmask (Files): Add sig-handler.h.
45679         * modules/sigaction (Files): Likewise.
45680         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45681         Eggert.
45682         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45683         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45684         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45685         (init_fatal_signals): Likewise.
45686         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45687         (siginterrupt): Delete fallback.
45688         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45689         instead.
45690         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45691         siginterrupt.
45692
45693         New module sigaction, for mingw.
45694         * modules/sigaction: New module...
45695         * modules/sigaction-tests: ...and its test.
45696         * m4/sigaction.m4: New file.
45697         * lib/sigaction.c: Likewise.
45698         * tests/test-sigaction.c: Likewise.
45699         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45700         * modules/signal (Makefile.am): Likewise.
45701         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45702         needed.
45703         * doc/posix-headers/signal.texi (signal.h): Mention provided
45704         types.
45705         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45706         that sigaction is preferable.
45707         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45708         module.
45709         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45710         sigaction.
45711
45712         Improve robustness of sigprocmask by overriding signal.
45713         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45714         is in use.
45715         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45716         (SIGKILL, SIGSTOP): Provide fallbacks.
45717         (rpl_signal): Implement.
45718         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45719         signal can be called inside handlers.
45720
45721         Fix nanosleep module on mingw.
45722         * modules/nanosleep (Depends-on): Add sys_select.
45723         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45724
45725         Fix licensing of sigprocmask.
45726         * modules/raise (License): Relicense as LGPL.
45727
45728 2008-06-21  Bruno Haible  <bruno@clisp.org>
45729
45730         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45731         result if it contains question marks.
45732         Reported by Michael Geng <linux@michaelgeng.de>.
45733
45734 2008-06-19  Bruno Haible  <bruno@clisp.org>
45735
45736         Fix CVS-ism.
45737         * doc/gnulib.texi: Include updated-stamp.texi.
45738         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45739         (updated-stamp.texi): New rule.
45740         (gnulib.info): Depend on it.
45741         * doc/.gitignore: Add updated-stamp.texi.
45742         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45743
45744 2008-06-19  Bruno Haible  <bruno@clisp.org>
45745
45746         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45747         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45748
45749 2008-06-19  Eric Blake  <ebb9@byu.net>
45750
45751         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45752         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45753         Reported by Stepan Kasal.
45754
45755 2008-06-18  Bruno Haible  <bruno@clisp.org>
45756
45757         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45758         Reported by Eric Blake.
45759
45760 2008-06-18  Eric Blake  <ebb9@byu.net>
45761
45762         Work around cygwin 1.5.25 strsignal bug.
45763         * tests/test-strsignal.c: Allow for const char *.
45764         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45765
45766 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45767
45768         * users.txt: Update URL to article and add author/date
45769         information.
45770
45771 2008-06-17  Bruno Haible  <bruno@clisp.org>
45772
45773         New macro gl_DISABLE_THREADS.
45774         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45775         if the user did not pass --enable-threads or --disable-threads option.
45776         (gl_DISABLE_THREADS): New macro.
45777         Reported by Eric Blake <ebb9@byu.net>.
45778
45779 2008-06-17  Bruno Haible  <bruno@clisp.org>
45780
45781         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45782         when the macro ignores it.
45783         Based on a patch by Eric Blake <ebb9@byu.net>.
45784
45785 2008-06-17  Bruno Haible  <bruno@clisp.org>
45786
45787         * modules/tls (License): Change to LGPLv2+.
45788         Reported by Eric Blake.
45789
45790 2008-06-17  Eric Blake  <ebb9@byu.net>
45791
45792         Simplify c-stack prerequisites.
45793         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45795         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45796         check.
45797         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45798         <sys/resource.h>.
45799
45800         Move c-stack test into testsuite.
45801         * modules/c-stack-tests: New file.
45802         * lib/c-stack.c [DEBUG]: Move test program...
45803         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45804         fail test if sigaltstack is lacking.
45805         * tests/test-c-stack.sh: New driver file.
45806
45807 2008-06-16  Eric Blake  <ebb9@byu.net>
45808
45809         Use raise module consistently.
45810         * modules/fatal-signal (Depends-on): Add raise.
45811         * modules/sigprocmask (Depends-on): Likewise.
45812         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45813         * lib/sigprocmask.c (sigprocmask): Likewise.
45814         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45815         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45816
45817         Fix compliance bug in sigpending.
45818         * lib/sigprocmask.c (sigpending): Return pending array via
45819         parameter, not return value.
45820
45821 2008-06-14  Eric Blake  <ebb9@byu.net>
45822
45823         Improve obstack-printf test code.
45824         * tests/test-obstack-printf.c (test_function): Fix comment, and
45825         simplify usage of obstack_* in macros.  Add a test for coverage.
45826         Reported by Bruno Haible.
45827
45828 2008-06-14  Bruno Haible  <bruno@clisp.org>
45829
45830         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45831         array size as a constant, not as a const variable.
45832         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45833         AC_USE_SYSTEM_EXTENSIONS.
45834         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45835         Test whether the obstack_printf function actually exists.
45836         * modules/obstack-printf (Depends-on): Add extensions.
45837         (Include): Remove obstack.h.
45838         * modules/obstack-printf-posix (Depends-on): Add extensions.
45839         (Include): Remove obstack.h.
45840
45841 2008-06-13  Eric Blake  <ebb9@byu.net>
45842
45843         Add obstack-printf and obstack-printf-posix modules.
45844         * modules/obstack-printf: New file.
45845         * modules/obstack-printf-posix: Likewise.
45846         * MODULES.html.sh (Misc): Mention them.
45847         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45848         Likewise.
45849         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45850         Likewise.
45851         * modules/stdio (Makefile.am): Accomodate new modules.
45852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45853         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45854         Declare.
45855         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45856         functions.
45857         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45858         (gl_REPLACE_OBSTACK_PRINTF): New macros
45859         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45860         * tests/test-obstack-printf.c: New file.
45861         * modules/obstack-printf-tests: Likewise.
45862         * modules/obstack-printf-posix-tests: Likewise.
45863
45864 2008-06-11  Bruno Haible  <bruno@clisp.org>
45865
45866         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45867         * lib/open.c: Include errno.h.
45868         (open): Fail when attempting to write to a file that has a trailing
45869         slash.
45870         * tests/test-open.c (main): Test against trailing slash bug.
45871         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45872
45873 2008-06-10  Bruno Haible  <bruno@clisp.org>
45874
45875         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45876         for $? to work inside the trap command, with various /bin/sh-s.
45877         * tests/test-vc-list-files-cvs.sh: Likewise.
45878
45879 2008-06-10  Bruno Haible  <bruno@clisp.org>
45880
45881         * lib/acl-internal.h: Don't include gettext.h here.
45882         * lib/set-mode-acl.c: Include gettext.h here.
45883         * lib/copy-acl.c: Likewise.
45884
45885 2008-06-10  Bruno Haible  <bruno@clisp.org>
45886
45887         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45888         * lib/wait-process.c (wait_subprocess): Likewise.
45889         * lib/execute.h (execute): Add termsigp argument.
45890         * lib/execute.c (execute): Likewise.
45891         * lib/csharpcomp.c (compile_csharp_using_pnet,
45892         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45893         * lib/csharpexec.c (execute_csharp_using_pnet,
45894         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45895         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45896         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45897         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45898         is_jikes_present): Update.
45899         * lib/javaexec.c (execute_java_class): Update.
45900         * lib/javaversion.c (execute_and_read_line): Update.
45901         * NEWS: Document the changes.
45902         Reported by Eric Blake.
45903
45904 2008-06-10  Eric Blake  <ebb9@byu.net>
45905
45906         Add missing include.
45907         * tests/test-strstr.c (includes): Add <signal.h>.
45908         * tests/test-strcasestr.c (includes): Likewise.
45909         * tests/test-memmem.c (includes): Likewise.
45910
45911 2008-06-10  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/wait-process.c (wait_subprocess): Add an assertion.
45914
45915 2008-06-10  Bruno Haible  <bruno@clisp.org>
45916
45917         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45918
45919 2008-06-10  Bruno Haible  <bruno@clisp.org>
45920
45921         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45922         using alarm().
45923         * tests/test-strcasestr.c (main): Likewise.
45924         * tests/test-strstr.c (main): Likewise.
45925
45926 2008-06-09  Bruno Haible  <bruno@clisp.org>
45927
45928         Work around the Solaris 10 ACE ACLs ABI change.
45929         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45930         declare if ACL_NO_TRIVIAL is present.
45931         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45932         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45933         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45934         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45935         define if ACL_NO_TRIVIAL is present.
45936         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45937         and use the current ABI.
45938         (file_has_acl): Use same #if condition as elsewhere.
45939         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45940         in use, and use the current ABI.
45941         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45942         Reported by Jim Meyering.
45943
45944 2008-06-09  Eric Blake  <ebb9@byu.net>
45945
45946         Work around environments that (stupidly) ignore SIGALRM.
45947         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45948         before using alarm().
45949         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45950         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45951         Reported by Ian Beckwith <ianb@erislabs.net>.
45952
45953         Produce autobuild blurb earlier in log.
45954         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45955
45956 2008-06-09  Jim Meyering  <meyering@redhat.com>
45957         and OndÅ™ej Vašík  <ovasik@redhat.com>
45958
45959         utimens.c: correct kernel bug work-around
45960         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45961         failure, not success, and the kernel bug we're trying to work
45962         around affects not just the utimensat call, but also the fallback
45963         futimens call.
45964         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45965         not success.
45966         [HAVE_FUTIMENS]: Use the same work-around, here.
45967
45968 2008-06-09  Jim Meyering  <meyering@redhat.com>
45969
45970         add more guards around definition of ACE_-related code
45971         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45972         ALLOW and ACE_OWNER are also defined.
45973
45974 2008-06-08  Bruno Haible  <bruno@clisp.org>
45975
45976         * lib/acl-internal.h: Add me as co-author.
45977         * lib/file-has-acl.c: Likewise.
45978         * lib/set-mode-acl.c: Likewise.
45979         * lib/copy-acl.c: Likewise.
45980
45981 2008-06-08  Bruno Haible  <bruno@clisp.org>
45982
45983         Add support for AIX ACLs.
45984         * lib/acl-internal.h (acl_nontrivial): New declaration.
45985         * lib/file-has-acl.c (acl_nontrivial): New function.
45986         (file_has_acl): Add implementation using AIX 4 ACL API.
45987         * lib/set-mode-acl.c (qset_acl): Likewise.
45988         * lib/copy-acl.c (qcopy_acl): Likewise.
45989
45990 2008-06-08  Bruno Haible  <bruno@clisp.org>
45991
45992         Add support for HP-UX ACLs.
45993         * lib/acl-internal.h (acl_nontrivial): New declaration.
45994         * lib/file-has-acl.c (acl_nontrivial): New function.
45995         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45996         * lib/set-mode-acl.c (qset_acl): Likewise.
45997         * lib/copy-acl.c (qcopy_acl): Likewise.
45998
45999 2008-06-08  Bruno Haible  <bruno@clisp.org>
46000
46001         Add support for Cygwin ACLs.
46002         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46003         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46004         the chmod_or_fchmod call.
46005         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46006
46007 2008-06-08  Bruno Haible  <bruno@clisp.org>
46008
46009         Fix bug with setuid modes in Solaris 10+ code.
46010         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46011         succeeded, when the mode contains some special bits.
46012
46013 2008-06-08  Bruno Haible  <bruno@clisp.org>
46014
46015         Add support for Solaris 7..10 ACLs.
46016         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46017         declarations.
46018         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46019         functions.
46020         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46021         * lib/set-mode-acl.c (qset_acl): Likewise.
46022         * lib/copy-acl.c (qcopy_acl): Likewise.
46023
46024 2008-06-08  Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
46027         declaration.
46028         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
46029         (acl_access_nontrivial): Remove MacOS X case.
46030         (file_has_acl): Use acl_extended_nontrivial.
46031         * lib/copy-acl.c (qcopy_acl): Likewise.
46032
46033 2008-06-08  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
46036
46037 2008-06-08  Jim Meyering  <meyering@redhat.com>
46038
46039         * modules/acl (Maintainer): Add Bruno Haible.
46040
46041 2008-06-07  Bruno Haible  <bruno@clisp.org>
46042
46043         Improve support for Tru64 ACLs.
46044         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
46045         ACL on OSF/1.
46046
46047 2008-06-07  Bruno Haible  <bruno@clisp.org>
46048
46049         Add support for MacOS X ACLs.
46050         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
46051         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
46052         * lib/set-mode-acl.c (qset_acl): Likewise.
46053         * lib/copy-acl.c (qcopy_acl): Likewise.
46054
46055 2008-06-07  Bruno Haible  <bruno@clisp.org>
46056
46057         Fix memory leak introduced on 2008-05-22.
46058         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46059         use.
46060
46061 2008-06-07  Bruno Haible  <bruno@clisp.org>
46062
46063         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46064         to construct an empty ACL.
46065
46066 2008-06-07  Bruno Haible  <bruno@clisp.org>
46067
46068         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46069         precisely.
46070         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46071
46072 2008-06-07  Bruno Haible  <bruno@clisp.org>
46073
46074         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46075         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46076
46077 2008-06-07  Bruno Haible  <bruno@clisp.org>
46078
46079         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46080         regardless of POSIX.
46081         * doc/posix-functions/_longjmp.texi: Likewise.
46082         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46083         SystemV platform in this case.
46084
46085 2008-06-06  Eric Blake  <ebb9@byu.net>
46086
46087         Document abort() bugs.
46088         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46089
46090         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46091         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46092         sigsetjmp.
46093         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46094         siglongjmp, but only as a macro.
46095         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46096         is obsolete.
46097         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46098
46099         Tweak documentation to cover cygwin argz bugs.
46100         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46101         argz bug fix; no code change needed since no cygwin releases
46102         occurred between the last fix and the bug being tested.
46103         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46104         module and recently fixed cygwin bugs.
46105         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46106         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46107         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46108         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46109         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46110         Likewise.
46111         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46112         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46113         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46114         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46115         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46116         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46117         Likewise.
46118
46119         Avoid gcc warning on cygwin.
46120         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46121         !ACL_NO_TRIVIAL]: Avoid unused variable.
46122
46123 2008-06-05  Eric Blake  <ebb9@byu.net>
46124
46125         Be tolerant of UNKNOWN version in gnulib-tool test dir.
46126         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
46127         git-version-gen fails to come up with a version.
46128         Reported by Simon Josefsson.
46129
46130 2008-06-05  Jim Meyering  <meyering@redhat.com>
46131             Paul Eggert  <eggert@cs.ucla.edu>
46132
46133         utimens.c: work around a probable Linux kernel bug
46134         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
46135         appears to be a kernel bug that causes utimensat to return 280
46136         instead of 0, indicating success.
46137
46138 2008-06-04  Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
46141         2008-06-01 commit.
46142
46143 2008-06-04  Bruno Haible  <bruno@clisp.org>
46144
46145         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
46146         * lib/file-has-acl.c (acl_access_nontrivial): New function.
46147         (file_has_acl): Use it. Save errno afterwards.
46148         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
46149
46150 2008-06-03  Bruno Haible  <bruno@clisp.org>
46151
46152         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
46153         draft code. Simplify #ifs.
46154         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
46155         Put Solaris code after POSIX-draft code. Fix comments regarding
46156         Solaris 10, HP-UX. Mention Cygwin.
46157         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
46158
46159 2008-06-03  Eric Blake  <ebb9@byu.net>
46160
46161         Provide fallback for older kernels.
46162         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
46163         Provide runtime fallback if kernel lacks support.
46164         Reported by Mike Frysinger.
46165
46166 2008-06-02  Bruno Haible  <bruno@clisp.org>
46167
46168         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
46169         it exists.
46170
46171 2008-06-02  Bruno Haible  <bruno@clisp.org>
46172
46173         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
46174         * lib/copy-acl.c (qcopy_acl): Update comment.
46175
46176 2008-06-02  Bruno Haible  <bruno@clisp.org>
46177
46178         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
46179         like ACL APIs.
46180
46181 2008-06-02  Bruno Haible  <bruno@clisp.org>
46182
46183         * tests/test-file-has-acl.sh: Use different code for Cygwin.
46184         * tests/test-set-mode-acl.sh: Likewise.
46185         * tests/test-copy-acl.sh: Likewise.
46186         * tests/test-copy-file.sh: Likewise.
46187
46188 2008-06-02  Bruno Haible  <bruno@clisp.org>
46189
46190         * tests/test-file-has-acl.sh: Remove unused code.
46191
46192 2008-06-01  Bruno Haible  <bruno@clisp.org>
46193
46194         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
46195         (copy_acl): Just a wrapper around qcopy_acl that emits the error
46196         messages.
46197         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
46198
46199 2008-06-01  Bruno Haible  <bruno@clisp.org>
46200
46201         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
46202         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
46203         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
46204         APIs.
46205         * modules/acl-tests (configure.ac): Remove tests now contained in
46206         m4/acl.m4.
46207
46208 2008-06-02  Jim Meyering  <meyering@redhat.com>
46209
46210         announce-gen: use a better key-server host name
46211         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
46212         it may be more consistently reliable.  Suggested by Werner Koch
46213         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
46214
46215 2008-06-01  Bruno Haible  <bruno@clisp.org>
46216
46217         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
46218         Reported by Voroskoi Andras <voroskoi@gmail.com>.
46219
46220 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
46221
46222         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
46223
46224 2008-06-01  Bruno Haible  <bruno@clisp.org>
46225
46226         New ACL tests.
46227         * tests/test-file-has-acl.sh: New file.
46228         * tests/test-file-has-acl.c: New file.
46229         * tests/test-set-mode-acl.sh: New file.
46230         * tests/test-set-mode-acl.c: New file.
46231         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
46232         * tests/test-copy-acl.c: New file.
46233         * modules/acl-tests: New file, based on modules/copy-file-tests.
46234         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
46235         (Depends-on): Add acl-tests.
46236         (configure.ac): Remove checks.
46237         (Makefile.am): Don't create test-sameacls program here any more.
46238
46239 2008-06-01  Bruno Haible  <bruno@clisp.org>
46240
46241         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
46242         * tests/test-sameacls.c: Include progname.h.
46243         (main): Invoke set_program_name. Portability fixes for MacOS X,
46244         Solaris, HP-UX.
46245
46246 2008-06-01  Bruno Haible  <bruno@clisp.org>
46247
46248         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
46249         function.
46250         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
46251
46252 2008-06-01  Bruno Haible  <bruno@clisp.org>
46253
46254         * modules/rpmatch (Depends-on): Add strdup.
46255
46256 2008-06-01  Bruno Haible  <bruno@clisp.org>
46257
46258         * lib/pipe.c: Include unistd-safer.h.
46259         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
46260         * modules/pipe (Depends-on): Add unistd-safer.
46261
46262 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46263
46264         * modules/autobuild (configure.ac): Call AB_INIT.
46265
46266 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46267
46268         * tests/test-getaddrinfo.c: Don't print debug messages by default.
46269         Suggested by Bruno Haible <bruno@clisp.org>.
46270
46271 2008-05-30  Simon Josefsson  <simon@josefsson.org>
46272
46273         * tests/test-base64.c: Cast size_t to unsigned long when invoking
46274         printf.  Use %lu instead of %d.  Reported by Bruno Haible
46275         <bruno@clisp.org>.
46276
46277 2008-05-29  Eric Blake  <ebb9@byu.net>
46278
46279         Prefer new POSIX 200x interfaces over futimesat.
46280         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
46281         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
46282         when available.
46283         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
46284
46285 2008-05-28  Bruno Haible  <bruno@clisp.org>
46286
46287         * modules/stpcpy (License): Change to LGPLv2+.
46288         Requested by David Lutterkort <dlutter@redhat.com>.
46289
46290 2008-05-27  Bruno Haible  <bruno@clisp.org>
46291
46292         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
46293         current mingw.
46294         Reported by Jose E. Marchesi <jemarch@gnu.org>.
46295
46296 2008-05-27  Bruno Haible  <bruno@clisp.org>
46297
46298         * modules/iconv_open (Link): New section, from module 'iconv'.
46299         * modules/striconv (Link): Likewise.
46300         * modules/striconveh (Link): Likewise.
46301         * modules/xstriconv (Link): Likewise.
46302         * modules/unicodeio (Link): Likewise.
46303         * modules/propername (Link): Likewise.
46304         Reported by Jim Meyering.
46305
46306 2008-05-26  Jim Meyering  <meyering@redhat.com>
46307
46308         sha256: do not artificially restrict buffer length to be < 2^32
46309         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
46310         uint32_t to size_t.
46311         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
46312         to match.
46313
46314         avoid unaligned access errors, e.g., on sparc
46315         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
46316         direct access through a possibly-unaligned uint64* pointer.
46317         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
46318         direct access through a possibly-unaligned uint32* pointer.
46319         Prompted by this patch from Tom "spot" Callaway:
46320         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
46321
46322         sha512.c: fix typo in comment
46323         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
46324
46325 2008-05-25  Bruno Haible  <bruno@clisp.org>
46326
46327         * lib/set-mode-acl.c: Renamed from lib/acl.c.
46328         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
46329         (Makefile.am): Update lib_SOURCES.
46330
46331 2008-05-25  Bruno Haible  <bruno@clisp.org>
46332
46333         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
46334
46335 2008-05-25  Jim Meyering  <meyering@redhat.com>
46336
46337         useless-if-before-free: freed expr may have white-space differences
46338         * build-aux/useless-if-before-free: Recognize cases in which the
46339         freed expression differs from the tested one in embedded white
46340         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
46341         $1 was used, so we can't make any regexp shy.  Improved tests now
46342         detect this.
46343
46344         useless-if-before-free: accept white space in the expression.
46345         * build-aux/useless-if-before-free: For now, any white space
46346         in the expression must be identical in the free argument.
46347
46348         useless-if-before-free: efficiency tweak
46349         * build-aux/useless-if-before-free: Make the expression-matching
46350         regexp "shy".
46351         Make the *outer* regexp shy, not the expr-matching one.
46352
46353         update code-in-comment to accept cast of free arg
46354         * build-aux/useless-if-before-free: Update regexp.
46355
46356 2008-05-25  Bruno Haible  <bruno@clisp.org>
46357
46358         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
46359         * modules/copy-file-tests (Files, Makefile.am): Update.
46360         * tests/test-copy-file.c (func_test_copy): Update.
46361
46362 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
46363
46364         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
46365
46366 2008-05-23  Bruno Haible  <bruno@clisp.org>
46367
46368         Improve support for ACLs on OSF/1.
46369         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
46370         Remove fallback for unknown flavors of ACLs.
46371
46372 2008-05-22  Bruno Haible  <bruno@clisp.org>
46373
46374         Add support for ACLs on OSF/1.
46375         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
46376         replacements.
46377         (acl_free_text): New macro fallback.
46378         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
46379         acl_free.
46380         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
46381         acl_free_text function. Require AC_C_INLINE.
46382
46383 2008-05-22  Bruno Haible  <bruno@clisp.org>
46384
46385         Make copy_acl work on MacOS X 10.5.
46386         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
46387         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
46388         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
46389         If MODE_INSIDE_ACL, don't assume that every system has the same text
46390         representation for ACLs as FreeBSD.
46391         * lib/copy-acl.c (copy_acl): Add support for platforms with
46392         !MODE_INSIDE_ACL.
46393         * lib/file-has-acl.c (file_has_acl): Likewise.
46394         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
46395         FreeBSD, MacOS X, or IRIX, respectively.
46396
46397 2008-05-22  Bruno Haible  <bruno@clisp.org>
46398
46399         * lib/acl.h: Don't include <sys/acl.h>.
46400         (GETACLCNT): Move fallback to lib/acl-internal.h.
46401         * lib/acl-internal.h: Include <sys/acl.h> here.
46402         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
46403
46404 2008-05-22  Bruno Haible  <bruno@clisp.org>
46405
46406         Split off copy_acl function to separate file.
46407         * lib/copy-acl.c: New file, extracted from lib/acl.c.
46408         * lib/acl.c (copy_acl): Moved function to separate file.
46409         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
46410         * modules/acl (Files): Add lib/copy-acl.c.
46411         (Makefiles.am): Augment lib_SOURCES.
46412
46413 2008-05-22  Bruno Haible  <bruno@clisp.org>
46414
46415         * modules/copy-file-tests: New file.
46416         * tests/test-copy-file.sh: New file.
46417         * tests/test-copy-file.c: New file.
46418         * tests/test-copy-file-sameacls.c: New file.
46419
46420 2008-05-22  Eric Blake  <ebb9@byu.net>
46421
46422         Avoid gcc warning.
46423         * tests/test-memcmp.c (main): Pass NULL indirectly.
46424
46425 2008-05-21  Bruno Haible  <bruno@clisp.org>
46426
46427         Add reference doc about ACLs.
46428         * doc/acl-resources.txt: New file.
46429         * doc/acl-cygwin.txt: New file.
46430
46431 2008-05-21  Bruno Haible  <bruno@clisp.org>
46432
46433         Avoid one more warning from gcc.
46434         * lib/vasnprintf.c (IF_LINT): Update comments.
46435         (VASNPRINTF): Use it also for the 'prefix' array initializer.
46436
46437 2008-05-21  Jim Meyering  <meyering@redhat.com>
46438
46439         avoid a warning from gcc
46440         * lib/vasnprintf.c (IF_LINT): Define.
46441         (scale10_round_decimal_long_double):
46442         Use it to avoid a "may be used uninitialized" warning.
46443         (scale10_round_decimal_double): Likewise.
46444
46445 2008-05-21  Simon Josefsson  <simon@josefsson.org>
46446
46447         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
46448         declared.
46449
46450 2008-05-20  Bruno Haible  <bruno@clisp.org>
46451
46452         * tests/test-memcmp.c (main): Test also the sign of the result. Test
46453         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
46454
46455 2008-05-20  Simon Josefsson  <simon@josefsson.org>
46456
46457         * modules/memcmp-tests: New file.
46458         * tests/test-memcmp.c: New file.
46459
46460 2008-05-19  Bruno Haible  <bruno@clisp.org>
46461
46462         * modules/propername (Notice, configure.ac): Put quoted "..." into
46463         --keyword option.
46464         * lib/propername.h: Update comments accordingly.
46465         Reported by Eric Blake.
46466
46467 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
46468
46469         * modules/getpass-gnu (Depends-on): Add fseeko.
46470
46471 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46472
46473         * modules/base64-tests: New file.
46474
46475 2008-05-19  Bo Borgerson <gigabo@gmail.com>
46476
46477         * lib/base64.c (base64_decode_ctx): If a decode context structure
46478         was passed in use it to ignore newlines.  If a context structure
46479         was _not_ passed in, continue to treat newlines as garbage (this
46480         is the historical behavior).  Formerly base64_decode.
46481         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46482         takes a decode context structure.
46483         * lib/base64.h (base64_decode): Macro for four-argument calls.
46484         (base64_decode_alloc): Likewise.
46485         * lib/base64.c (base64_decode_ctx): If a decode context structure
46486         was passed in use it to ignore newlines.  If a context structure
46487         was _not_ passed in, continue to treat newlines as garbage (this
46488         is the historical behavior).  Formerly base64_decode.
46489         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
46490         takes a decode context structure.
46491         * lib/base64.h (base64_decode): Macro for four-argument calls.
46492         (base64_decode_alloc): Likewise.
46493
46494 2008-05-19  Jim Meyering  <meyering@redhat.com>
46495
46496         avoid a warning from gcc
46497         * lib/trim.c (IF_LINT): Define.
46498         (trim2): Use it to avoid a "may be used uninitialized" warning.
46499
46500         Fix doc typo.
46501         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
46502
46503 2008-05-19  Bruno Haible  <bruno@clisp.org>
46504
46505         * doc/glibc-functions/getpass.texi: Document limits of other
46506         implementations.
46507
46508 2008-05-19  Simon Josefsson  <simon@josefsson.org>
46509             Bruno Haible <bruno@clisp.org>
46510
46511         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
46512
46513 2008-05-18  Bruno Haible  <bruno@clisp.org>
46514
46515         * modules/propername: New file, from GNU gettext.
46516         * lib/propername.h: New file, from GNU gettext.
46517         * lib/propername.c: New file, from GNU gettext.
46518         * MODULES.html.sh (Internationalization functions): Add propername.
46519
46520 2008-05-16  Jim Meyering  <meyering@redhat.com>
46521             Bruno Haible  <bruno@clisp.org>
46522
46523         Avoid some warnings from "gcc -Wshadow".
46524         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
46525
46526 2008-05-15  Eric Blake  <ebb9@byu.net>
46527
46528         Extend previous patch to cygwin 1.7.0.
46529         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
46530         fast implementation in cygwin >= 1.7.0.
46531         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46533
46534 2008-05-15  Bruno Haible  <bruno@clisp.org>
46535
46536         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
46537         implementation in glibc >= 2.9.
46538         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46540
46541 2008-05-15  Bruno Haible  <bruno@clisp.org>
46542
46543         * MODULES.html.sh (Internationalization functions): Remove linebreak.
46544         (Unicode string functions): Add unilbrk/*.
46545         Reported by Karl Berry.
46546
46547 2008-05-15  Eric Blake  <ebb9@byu.net>
46548
46549         Fix violation of <stdbool.h> replacement in regex.
46550         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
46551         * lib/regexec.c (re_search_internal): Likewise.
46552         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
46553
46554 2008-05-15  Jim Meyering  <meyering@redhat.com>
46555
46556         avoid distracting test output when git or cvs is not found
46557         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46558         * tests/test-vc-list-files-git.sh: Likewise.
46559
46560 2008-05-15  Eric Blake  <ebb9@byu.net>
46561
46562         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46563         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46564         glibc version.
46565         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46566         * doc/posix-functions/strstr.texi (strstr): Likewise.
46567         * lib/str-two-way.h (MAX): Sychronize with glibc.
46568
46569 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46570
46571         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46572         opr.ctx_type.
46573         (calc_first): Initialize constraint field.
46574         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46575         Fix grammar.
46576         (duplicate_node): Merge constraint field for all node types.
46577         (calc_eclosure_iter): Look at constraint field for all node types.
46578         * lib/regex_internal.c (create_cd_newstate): Don't look at
46579         opr.ctx_type.
46580
46581 2008-05-14  Bruno Haible  <bruno@clisp.org>
46582
46583         Help GCC to do better code generation.
46584         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46585         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46586         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46587         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46588         Declare with attribute 'malloc' if supported.
46589
46590 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46591
46592         use "echo STR|wc -c" rather than unportable "expr length STR"
46593         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46594         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46595
46596 2008-05-14  Jim Meyering  <meyering@redhat.com>
46597
46598         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46599         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46600         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46601         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46602         via Collin Lasse.
46603
46604 2008-05-14  Eric Blake  <ebb9@byu.net>
46605
46606         Avoid quadratic growth in gl_LIBSOURCES.
46607         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46608         Suggested by Bruno Haible.
46609
46610         Test xmemdup0.
46611         * modules/xmemdup0-tests: New file.
46612         * tests/test-xmemdup0.c: Likewise.
46613
46614 2008-05-13  Eric Blake  <ebb9@byu.net>
46615
46616         Split xmemdup0 into its own module.
46617         * modules/xmemdup0: New file.
46618         * lib/xmemdup0.h: Likewise.
46619         * lib/xmemdup0.c: Likewise.
46620         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46621         * lib/xalloc.h (xmemdup0): Remove.
46622         * lib/xmalloc.c (xmemdup0): Likewise.
46623
46624 2008-05-13  Eric Blake  <ebb9@byu.net>
46625             Bruno Haible  <bruno@clisp.org>
46626
46627         Reduce number of forks required during autoconf.
46628         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46629         and gl_LIBSOURCES_DIR.
46630         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46631         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46632         m4_syscmd per file.
46633         <m4_foreach_w>: Move...
46634         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46635
46636 2008-05-13  Eric Blake  <ebb9@byu.net>
46637
46638         * gnulib-tool: Fix various comment typos.
46639
46640 2008-05-12  Bruno Haible  <bruno@clisp.org>
46641
46642         Tailor the linebreaking algorithm.
46643         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46644
46645 2008-05-12  Bruno Haible  <bruno@clisp.org>
46646
46647         Update to Unicode 5.0.0.
46648         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46649         LBP_JV, LBP_JT. Redistribute values.
46650         (unilbrk_table): Change size.
46651         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46652         Unicode TR#14 rev. 22.
46653         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46654         LBP_JV, LBP_JT. Redistribute values.
46655         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46656         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46657         Update.
46658         * lib/unilbrk/lbrkprop1.h: Regenerated.
46659         * lib/unilbrk/lbrkprop2.h: Regenerated.
46660         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46661         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46662         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46663         Likewise.
46664         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46665         Likewise.
46666         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46667         result.
46668         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46669         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46670         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46671         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46672         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46673         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46674
46675 2008-05-11  Bruno Haible  <bruno@clisp.org>
46676
46677         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46678
46679 2008-05-11  Bruno Haible  <bruno@clisp.org>
46680
46681         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46682         * modules/unilbrk/gen-lbrk: New file.
46683
46684 2008-05-11  Bruno Haible  <bruno@clisp.org>
46685
46686         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46687         * m4/sha512.m4 (gl_SHA512): Likewise.
46688
46689 2008-05-11  Jim Meyering  <meyering@redhat.com>
46690
46691         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46692         * modules/crypto/sha256: New file.
46693         * modules/crypto/sha512: Likewise.
46694         * lib/sha256.c: Likewise.
46695         * lib/sha256.h: Likewise.
46696         * lib/sha512.c: Likewise.
46697         * lib/sha512.h: Likewise.
46698         * lib/u64.h: Likewise.
46699         * m4/sha256.m4: Likewise.
46700         * m4/sha512.m4: Likewise.
46701         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46702
46703 2008-05-10  Bruno Haible  <bruno@clisp.org>
46704
46705         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46706         (Input/Output <stdio.h>): Add xprintf.
46707         (Signal handling <signal.h>): Add strsignal.
46708         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46709         (Core language properties): Add func.
46710         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46711         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46712         strings.
46713         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46714         (Input/output): New section.
46715         (File system functions): Add openat-die, stat-macros.
46716         (Networking functions): Add sockets.
46717         (Unicode string functions): Add unictype/*.
46718         (Support for building libraries and executables): Add gperf.
46719         (Support for building documentation): Add agpl-3.0.
46720         (Misc): Add nocrash.
46721
46722 2008-05-10  Bruno Haible  <bruno@clisp.org>
46723
46724         * modules/unictype/gen-ctype: New file.
46725
46726 2008-05-10  Jim Meyering  <meyering@redhat.com>
46727
46728         Make chdir-safer.c more efficient on a system with no symlinks.
46729         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46730         also if ELOOP is zero.  Suggested by Bruno Haible.
46731
46732         Make chdir-safer.c slightly safer.
46733         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46734         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46735
46736         Avoid compile failure on systems without ELOOP (like mingw).
46737         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46738         Reported by Bruno Haible.
46739
46740 2008-05-10  Bruno Haible  <bruno@clisp.org>
46741
46742         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46743         (is_utf8_encoding): Use a case-insensitive comparison.
46744         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46745         streq.
46746
46747 2008-05-10  Bruno Haible  <bruno@clisp.org>
46748
46749         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46750         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46751         * lib/unilbrk/ulc-common.h (iconv_string_length,
46752         iconv_string_keeping_offsets): Remove declarations.
46753         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46754         Don't include <iconv.h>, streq.h, xsize.h.
46755         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46756         conversion.
46757         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46758         <iconv.h>, streq.h, xsize.h.
46759         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46760         conversion.
46761         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46762         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46763         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46764         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46765
46766 2008-05-10  Bruno Haible  <bruno@clisp.org>
46767
46768         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46769         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46770
46771         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46772         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46773
46774         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46775         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46776
46777         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46778         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46779
46780         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46781         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46782
46783         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46784         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46785
46786         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46787         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46788
46789         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46790         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46791
46792 2008-05-10  Bruno Haible  <bruno@clisp.org>
46793
46794         Split up 'linebreak' module.
46795         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46796         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46797         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46798         modifications.
46799         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46800         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46801         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46802         lib/linebreak.c.
46803         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46804         lib/linebreak.c.
46805         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46806         lib/linebreak.c.
46807         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46808         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46809         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46810         lib/linebreak.c.
46811         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46812         lib/linebreak.c.
46813         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46814         lib/linebreak.c.
46815         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46816         lib/linebreak.c.
46817         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46818         lib/linebreak.c.
46819         * modules/unilbrk/base: New file.
46820         * modules/unilbrk/tables: New file.
46821         * modules/unilbrk/u8-possible-linebreaks: New file.
46822         * modules/unilbrk/u16-possible-linebreaks: New file.
46823         * modules/unilbrk/u32-possible-linebreaks: New file.
46824         * modules/unilbrk/ulc-common: New file.
46825         * modules/unilbrk/ulc-possible-linebreaks: New file.
46826         * modules/unilbrk/u8-width-linebreaks: New file.
46827         * modules/unilbrk/u16-width-linebreaks: New file.
46828         * modules/unilbrk/u32-width-linebreaks: New file.
46829         * modules/unilbrk/ulc-width-linebreaks: New file.
46830         * lib/linebreak.h: Remove file.
46831         * lib/linebreak.c: Remove file.
46832         * m4/linebreak.m4: Remove file.
46833         * modules/linebreak: Remove file.
46834         * NEWS: Mention the changes.
46835
46836 2008-05-09  Eric Blake  <ebb9@byu.net>
46837
46838         Add xmemdup0.
46839         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46840         implementation.
46841         * lib/xmalloc.c (xmemdup0): New C implementation.
46842
46843 2008-05-08  Bruno Haible  <bruno@clisp.org>
46844
46845         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46846
46847 2008-05-07  Eric Blake  <ebb9@byu.net>
46848
46849         Support cross-compilation of <wctype.h>.
46850         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46851         AC_CACHE_CHECK.
46852
46853 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46854
46855         * build-aux/vc-list-files: Add support for bzr.
46856
46857 2008-05-03  Jim Meyering  <meyering@redhat.com>
46858
46859         avoid failed assertion with tight malloc
46860         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46861
46862 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46863
46864         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46865         are needed from arpa/inet.h.
46866         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46867         Reported by Bruno Haible.
46868
46869 2008-05-02  Jim Meyering  <meyering@redhat.com>
46870
46871         avoid compilation error on FreeBSD 6
46872         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46873
46874 2008-05-01  Jim Meyering  <meyering@redhat.com>
46875
46876         useless-if-before-free: correct --help's exit status description
46877         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46878         for one or more matches, etc.  Reported by Bruno Haible.
46879
46880         vc-list-files: make the stand-alone gnulib test work
46881         * modules/vc-list-files-tests (configure.ac):
46882         Define and AC_SUBST abs_aux_dir.
46883         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46884         $(abs_top_srcdir) to each script and having each of them
46885         duplicate the work of setting PATH, set PATH here, using
46886         the new variable, abs_aux_dir instead.
46887         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46888         * tests/test-vc-list-files-git.sh: Likewise.
46889         Reported by Bruno Haible.
46890
46891 2008-05-01  Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46894         reallocation. Rename 'done' to 'found_delimiter'.
46895
46896 2008-05-01  Jim Meyering  <meyering@redhat.com>
46897
46898         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46899         * build-aux/vc-list-files: Use `...`, not $(...).
46900
46901 2008-04-30  Jim Meyering  <meyering@redhat.com>
46902
46903         add tests for vc-list-files
46904         * modules/vc-list-files-tests: New module.
46905         * tests/test-vc-list-files-cvs.sh: New file.
46906         * tests/test-vc-list-files-git.sh: New file.
46907
46908         avoid a warning from gcc
46909         * lib/getndelim2.c (IF_LINT): Define.
46910         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46911
46912         vc-list-files: work properly with build-aux/cvsu, too
46913         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46914         to all cvs-based clauses.
46915
46916         vc-list-files: work properly in the CVS+awk case, too
46917         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46918
46919         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46920         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46921         take more than one file argument, so .  Add quotes, just in case $dir
46922         ever contains a shell meta-character.  Prompted by Soren Hansen in
46923         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46924
46925 2008-04-29  Eric Blake  <ebb9@byu.net>
46926
46927         Optimize getndelim2 to use block operations when possible.
46928         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46929         freadseek, and memchr2.
46930         * lib/getndelim2.c (getndelim2): Use them for block reads.
46931
46932 2008-04-29  Bruno Haible  <bruno@clisp.org>
46933
46934         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46935         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46936         * modules/inet_ntop (Depends-on): Add extensions.
46937         * modules/inet_pton (Depends-on): Likewise.
46938         Reported by Simon Josefsson.
46939
46940 2008-04-29  Jim Meyering  <meyering@redhat.com>
46941
46942         When the is more than one match in a block, match all of them.
46943         * build-aux/useless-if-before-free: Iterate through each block
46944         until there are no more matches.
46945
46946         Fix broken useless-if-before-free script.
46947         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46948         the expression to match cast of argument to free-like function.
46949
46950 2008-04-29  Eric Blake  <ebb9@byu.net>
46951
46952         Use new header.
46953         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46954
46955 2008-04-29  Jim Meyering  <meyering@redhat.com>
46956
46957         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46958         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46959         by gnulib to exist and to declare e.g., inet_ntop.
46960         Don't include "inet_ntop.h", now removed.
46961
46962         * m4/arpa_inet_h.m4: Remove trailing blanks.
46963
46964 2008-04-29  Eric Blake  <ebb9@byu.net>
46965
46966         Silence valgrind on safe reads beyond potential array bounds.
46967         * lib/rawmemchr.valgrind: New file.
46968         * lib/strchrnul.valgrind: Likewise.
46969         * modules/rawmemchr (Files): Distribute new file.
46970         * modules/strchrnul (Files): Likewise.
46971         Suggested by Bruno Haible.
46972
46973 2008-04-29  Bruno Haible  <bruno@clisp.org>
46974
46975         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46976         (inet_ntop, inet_pton): Change portability warning's wording.
46977         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46978         Invoke gl_CHECK_NEXT_HEADERS.
46979         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46980         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46981         set ARPA_INET_H.
46982         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46983         * modules/arpa_inet (Description): No longer only for systems that
46984         lack it.
46985         (Depends-on): Add include_next.
46986         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46987         HAVE_ARPA_INET_H.
46988
46989 2008-04-29  Jim Meyering  <meyering@redhat.com>
46990
46991         * modules/mkdir (License): Re-license as LGPLv2+.
46992
46993 2008-04-29  Bruno Haible  <bruno@clisp.org>
46994
46995         * modules/rawmemchr (Maintainer): Set to Eric.
46996         * modules/strchrnul (Maintainer): Likewise.
46997
46998 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46999
47000         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47001         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47002
47003         * modules/arpa_inet (arpa/inet.h): Use them.
47004
47005 2008-04-28  Eric Blake  <ebb9@byu.net>
47006
47007         Test getndelim2.
47008         * modules/getndelim2-tests: New file.
47009         * tests/test-getndelim2.c: Likewise.
47010         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47011         stream.
47012         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47013
47014         * MODULES.html.sh: Document new module.
47015
47016 2008-04-20  Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/c-stack.c (die): Use raise.
47019         * modules/c-stack (Depends-on): Add raise.
47020
47021 2008-04-28  Bruno Haible  <bruno@clisp.org>
47022
47023         Expect rpmatch to be declared.
47024         * lib/yesno.c (rpmatch): Remove declaration.
47025
47026         Declare rpmatch.
47027         * lib/stdlib.in.h (rpmatch): New declaration.
47028         * lib/rpmatch.c: Include <stdlib.h> first.
47029         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
47030         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
47031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
47032         HAVE_RPMATCH.
47033         * modules/rpmatch (Depends-on): Add stdlib, extensions.
47034         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47035         (Include): Set to <stdlib.h>.
47036         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
47037         HAVE_RPMATCH.
47038         * NEWS: Document the change.
47039
47040 2008-04-28  Bruno Haible  <bruno@clisp.org>
47041
47042         Change rpmatch to use nl_langinfo when appropriate.
47043         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
47044         (N_): New macro.
47045         (localized_pattern): New function/macro.
47046         (try): Remove match, nomatch arguments. Copy the pattern into safe
47047         memory before caching it.
47048         (rpmatch): Use localized_pattern. Add translator comments.
47049         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
47050         Suggested by Eric Blake.
47051         * modules/rpmatch (Depends-on): Add stdbool.
47052
47053 2008-04-28  Eric Blake  <ebb9@byu.net>
47054
47055         Add rawmemchr module, matching glibc.
47056         * modules/string (Makefile.am): New indicator.
47057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47058         * lib/string.in.h (rawmemchr): Declare when appropriate.
47059         * modules/rawmemchr: New file.
47060         * m4/rawmemchr.m4: Likewise.
47061         * lib/rawmemchr.c: Likewise.
47062         * modules/rawmemchr-tests: Likewise.
47063         * tests/test-rawmemchr.c: Likewise.
47064         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47065         module.
47066         * modules/strchrnul (Depends-on): Add rawmemchr.
47067         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47068
47069         Whitespace cleanup.
47070         * tests/test-strchrnul.c: Reindent.
47071         * lib/strchrnul.c: Likewise.
47072
47073         Optimize and test strchrnul.
47074         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47075         * modules/strchrnul-tests: New file.
47076         * tests/test-strchrnul.c: Likewise.
47077
47078         Remove intprops dependency.
47079         * modules/memchr (Depends-on): Remove intprops.
47080         * modules/memrchr (Depends-on): Likewise.
47081         * modules/memchr2 (Depends-on): Likewise.
47082         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47083         * lib/memrchr.c (__memrchr): Likewise.
47084         * lib/memrchr2.c (memchr2): Likewise.
47085         Reported by Simon Josefsson.
47086
47087 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47088
47089         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47090         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47091
47092 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47093
47094         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47095
47096         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47097
47098         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47099
47100         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47101         declarations.
47102         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47103
47104         * m4/inet_pton.m4: Don't check for header files.
47105
47106         * m4/inet_ntop.m4: Don't check for header files.
47107
47108 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47109
47110         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47111         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47112         trigger for cygwin).
47113         Reported by Bruno Haible  <bruno@clisp.org>.
47114
47115 2008-04-28  Bruno Haible  <bruno@clisp.org>
47116
47117         * doc/posix-functions/strdup.texi: Mention mingw problem.
47118
47119 2008-04-27  Bruno Haible  <bruno@clisp.org>
47120
47121         * modules/stat-time-tests (Depends-on): Add sleep.
47122         * tests/test-stat-time.c (force_unlink): New function.
47123         (cleanup): Use it.
47124         (test_mtime): Remove the ctime related tests.
47125         (test_ctime): New function, containing the ctime related tests.
47126         (main): Call test_ctime, except on native Windows platforms.
47127
47128 2008-04-27  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/rpmatch.c (rpmatch): Add some comments.
47131         Reported by James Youngman <jay@gnu.org>.
47132
47133 2008-04-27  Bruno Haible  <bruno@clisp.org>
47134
47135         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
47136         quiet NaNs.
47137
47138 2008-04-27  Bruno Haible  <bruno@clisp.org>
47139
47140         Make test-yesno.sh work on mingw.
47141         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
47142         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
47143         (main): Set stdin to binary mode.
47144         * modules/yesno-tests (Depends-on): Add binary-io.
47145
47146 2008-04-27  Bruno Haible  <bruno@clisp.org>
47147
47148         Fix 'isfinite' on x86, x86_64, ia64 platforms.
47149         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
47150         argument that lie outside the IEEE 854 domain.
47151         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
47152         (gl_ISFINITE): Use it.
47153         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
47154
47155 2008-04-27  Bruno Haible  <bruno@clisp.org>
47156
47157         Allow local renaming in config.h.
47158         * lib/memrchr.c (memrchr): Don't undefine outside libc.
47159
47160 2008-04-27  Bruno Haible  <bruno@clisp.org>
47161
47162         * lib/memchr.c (__memchr): Change type of 'i'.
47163         * lib/memchr2.c (memchr2): Likewise.
47164
47165 2008-04-26  Eric Blake  <ebb9@byu.net>
47166         and Bruno Haible  <bruno@clisp.org>
47167
47168         Optimize and test memrchr.
47169         * modules/memrchr (Depends-on): Add intprops.
47170         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
47171         * modules/memrchr-tests: New file.
47172         * tests/test-memrchr.c: New file.
47173
47174 2008-04-26  Bruno Haible  <bruno@clisp.org>
47175
47176         Add tentative support for DragonFly BSD.
47177         * lib/stdio-impl.h: Add macros for DragonFly BSD.
47178         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
47179         fp.
47180         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47181         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
47182         * lib/fpurge.c (fpurge): Likewise.
47183         * lib/freadable.c (freaadable): Likewise.
47184         * lib/freadahead.c (freadahead): Likewise.
47185         * lib/freading.c (freading): Likewise.
47186         * lib/freadptr.c (freadptr): Likewise.
47187         * lib/freadseek.c (freadptrinc): Likewise.
47188         * lib/fseeko.c (fseeko): Likewise.
47189         * lib/fseterr.c (fseterr): Likewise.
47190         * lib/fwritable.c (fwritable): Likewise.
47191         * lib/fwriting.c (fwriting): Likewise.
47192
47193 2008-04-26  Bruno Haible  <bruno@clisp.org>
47194
47195         * lib/stdio-impl.h: New file.
47196         * lib/fbufmode.c: Include stdio-impl.h.
47197         (fbufmode): Use fp_, remove redundant #defines.
47198         * lib/fflush.c: Include stdio-impl.h.
47199         (clear_ungetc_buffer): Remove redundant #defines.
47200         * lib/fpurge.c: Include stdio-impl.h.
47201         (fpurge): Remove redundant #defines.
47202         * lib/freadable.c: Include stdio-impl.h.
47203         (freadable): Remove redundant #defines.
47204         * lib/freadahead.c: Include stdio-impl.h.
47205         (freadahead): Remove redundant #defines.
47206         * lib/freading.c: Include stdio-impl.h.
47207         (freading): Remove redundant #defines.
47208         * lib/freadptr.c: Include stdio-impl.h.
47209         (freadptr): Remove redundant #defines.
47210         * lib/freadseek.c: Include stdio-impl.h.
47211         (freadptrinc): Remove redundant #defines.
47212         * lib/fseeko.c: Include stdio-impl.h.
47213         (rpl_fseeko): Remove redundant #defines.
47214         * lib/fseterr.c: Include stdio-impl.h.
47215         (fseterr): Remove redundant #defines.
47216         * lib/fwritable.c: Include stdio-impl.h.
47217         (fwritable: Remove redundant #defines.
47218         * lib/fwriting.c: Include stdio-impl.h.
47219         (fwriting): Remove redundant #defines.
47220         * modules/fbufmode (Files): Add lib/stdio-impl.h.
47221         * modules/fflush (Files): Likewise.
47222         * modules/fpurge (Files): Likewise.
47223         * modules/freadable (Files): Likewise.
47224         * modules/freadahead (Files): Likewise.
47225         * modules/freading (Files): Likewise.
47226         * modules/freadptr (Files): Likewise.
47227         * modules/freadseek (Files): Likewise.
47228         * modules/fseeko (Files): Likewise.
47229         * modules/fseterr (Files): Likewise.
47230         * modules/fwritable (Files): Likewise.
47231         * modules/fwriting (Files): Likewise.
47232
47233 2008-04-26  Bruno Haible  <bruno@clisp.org>
47234
47235         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
47236         restore_seek_optimization, update_fpos_cache): New functions, extracted
47237         from rpl_fflush.
47238         (rpl_fflush): Use them.
47239         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
47240         (gl_REPLACE_FFLUSH): Use it.
47241
47242 2008-04-26  Bruno Haible  <bruno@clisp.org>
47243
47244         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
47245         on Solaris.
47246         * tests/test-xstrtoimax.sh: Likewise.
47247         * tests/test-xstrtoumax.sh: Likewise.
47248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47249
47250 2008-04-26  Bruno Haible  <bruno@clisp.org>
47251
47252         * modules/memchr-tests: New file.
47253         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
47254
47255 2008-04-26  Eric Blake  <ebb9@byu.net>
47256             Bruno Haible  <bruno@clisp.org>
47257
47258         * lib/memchr.c: Include intprops.h.
47259         (__memchr): Optimize parallel detection of matching bytes. Rename local
47260         variables. Add explanatory comments.
47261
47262 2008-04-26  Bruno Haible  <bruno@clisp.org>
47263
47264         Fix module 'memchr', broken since 2000-10-28.
47265         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
47266
47267 2008-04-26  Bruno Haible  <bruno@clisp.org>
47268
47269         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
47270         comments.
47271
47272 2008-04-25  Eric Blake  <ebb9@byu.net>
47273
47274         Use native fstatat on cygwin 1.7.0.
47275         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
47276         first.
47277
47278 2008-04-23  Eric Blake  <ebb9@byu.net>
47279
47280         Improve memchr2 performance.
47281         * lib/memchr2.c (memchr2): Further optimize parallel detection of
47282         NUL bytes.
47283         * modules/memchr2 (Depends-on): Use intprops.h.
47284
47285 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47286
47287         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
47288         an inline function instead of a CPP macro.  Patch by Ben Pfaff
47289         <blp@cs.stanford.edu>.
47290
47291 2008-04-23  Simon Josefsson  <simon@josefsson.org>
47292
47293         * lib/arpa_inet.in.h: New file.
47294
47295         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
47296         (Makefile.am): Sed in substitute header file.
47297
47298         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
47299         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
47300
47301         * modules/inet_ntop (configure.ac): Use
47302         gl_ARPA_INET_MODULE_INDICATOR.
47303
47304         * modules/inet_pton (configure.ac): Use
47305         gl_ARPA_INET_MODULE_INDICATOR.
47306
47307 2008-04-22  Jim Meyering  <meyering@redhat.com>
47308
47309         * modules/verify (License): Re-license as LGPLv2+.
47310
47311 2008-04-22  Simon Josefsson  <simon@josefsson.org>
47312
47313         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
47314         parameter to void* as per POSIX standard (MinGW uses char*).
47315
47316 2008-04-21  Bruno Haible  <bruno@clisp.org>
47317
47318         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
47319         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
47320         Define to replacements if REPLACE_ISWCNTRL is 1.
47321         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
47322         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
47323         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
47324         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
47325         what it fixes.
47326         * doc/posix-functions/iswalpha.texi: Likewise.
47327         * doc/posix-functions/iswblank.texi: Likewise.
47328         * doc/posix-functions/iswcntrl.texi: Likewise.
47329         * doc/posix-functions/iswdigit.texi: Likewise.
47330         * doc/posix-functions/iswgraph.texi: Likewise.
47331         * doc/posix-functions/iswlower.texi: Likewise.
47332         * doc/posix-functions/iswprint.texi: Likewise.
47333         * doc/posix-functions/iswpunct.texi: Likewise.
47334         * doc/posix-functions/iswspace.texi: Likewise.
47335         * doc/posix-functions/iswupper.texi: Likewise.
47336         * doc/posix-functions/iswxdigit.texi: Likewise.
47337         Reported by Alain Guibert.
47338
47339 2008-04-21  Bruno Haible  <bruno@clisp.org>
47340
47341         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
47342         Patch by Alain Guibert.
47343
47344 2008-04-21  Bruno Haible  <bruno@clisp.org>
47345
47346         Fix test failures on mingw.
47347         * tests/test-xstrtol.c (print_no_progname): New function.
47348         (main): Install it in error_print_progname hook.
47349         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
47350         * tests/test-xstrtoimax.sh: Likewise.
47351         * tests/test-xstrtoumax.sh: Likewise.
47352
47353 2008-04-21  Bruno Haible  <bruno@clisp.org>
47354
47355         Fix test failure on mingw.
47356         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47357
47358 2008-04-21  Bruno Haible  <bruno@clisp.org>
47359
47360         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
47361         Actually assign a value.
47362
47363 2008-04-20  Bruno Haible  <bruno@clisp.org>
47364
47365         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
47366         take 2.
47367         * lib/canonicalize.c (canonicalize_file_name): Elide if the
47368         'canonicalize-lgpl' module is also used.
47369         * lib/canonicalize-lgpl.c: Undo last change.
47370         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
47371
47372 2008-04-20  Bruno Haible  <bruno@clisp.org>
47373
47374         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
47375         config.h. Provide _mkdir based fallback for mingw.
47376         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
47377         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
47378         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
47379         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
47380         rather than defining mkdir in config.h.
47381         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
47382         (gl_SYS_STAT_H_DEFAULTS): New macro.
47383         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
47384         HAVE_IO_H any more.
47385         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
47386         HAVE_DECL_MKDIR and HAVE_IO_H.
47387
47388 2008-04-20  Bruno Haible  <bruno@clisp.org>
47389
47390         * lib/isapipe.c: Port to native Windows platforms.
47391
47392 2008-04-20  Bruno Haible  <bruno@clisp.org>
47393
47394         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
47395
47396 2008-04-21  Eric Blake  <ebb9@byu.net>
47397
47398         Work around preprocessors that don't handle UINTMAX_MAX.
47399         * lib/memchr2.c (memchr2): Avoid embedded #if.
47400         Reported by Alain Guibert, fix suggested by Bruno Haible.
47401
47402 2008-04-21  Simon Josefsson  <simon@josefsson.org>
47403
47404         * doc/posix-functions/strftime.texi (strftime): Explain better
47405         Windows incompatibility.  Suggested by Micah Cowan
47406         <micah@cowan.name>.
47407
47408 2008-04-20  Bruno Haible  <bruno@clisp.org>
47409
47410         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
47411         unistr/u8-mblen.
47412
47413 2008-04-20  Bruno Haible  <bruno@clisp.org>
47414
47415         Fix test failure on platforms with non-GNU iconv.
47416         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
47417         (U_TO_U8): Use it, rather than u16_to_u8.
47418         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
47419         units at the end of the input string.
47420         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
47421
47422 2008-04-20  Bruno Haible  <bruno@clisp.org>
47423
47424         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
47425         when the resulting length is 0.
47426         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
47427
47428 2008-04-20  Bruno Haible  <bruno@clisp.org>
47429
47430         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
47431         works.
47432         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
47433
47434 2008-04-20  Bruno Haible  <bruno@clisp.org>
47435
47436         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
47437         * modules/tsearch-tests (configure.ac): Test for initstate function.
47438
47439 2008-04-20  Bruno Haible  <bruno@clisp.org>
47440
47441         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
47442         for nlink_t if missing.
47443         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
47444
47445 2008-04-19  Bruno Haible  <bruno@clisp.org>
47446
47447         Work around snprintf bug on Linux libc5.
47448         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
47449         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
47450         gl_SNPRINTF_SIZE1.
47451         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47452         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
47453         that test failed.
47454         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47455         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
47456         * modules/snprintf (Files): Add m4/printf.m4.
47457         * modules/vsnprintf (Files): Likewise.
47458         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
47459         * doc/posix-functions/vsnprintf.texi: Likewise.
47460
47461 2008-04-19  Bruno Haible  <bruno@clisp.org>
47462
47463         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
47464         from 0.0058 to less than 10^-7.
47465
47466 2008-04-19  Bruno Haible  <bruno@clisp.org>
47467
47468         Fix rounding when a precision is given.
47469         * lib/vasnprintf.c (is_borderline): New function.
47470         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
47471         9...9x.
47472         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
47473         %e, %g.
47474         * tests/test-vasprintf-posix.c (test_function): Likewise.
47475         * tests/test-snprintf-posix.h (test_function): Likewise.
47476         * tests/test-sprintf-posix.h (test_function): Likewise.
47477         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
47478         * tests/test-printf-posix.h (test_function): Likewise.
47479         * tests/test-printf-posix.output: Update.
47480         Reported by John Darrington <john@darrington.wattle.id.au> via
47481         Ben Pfaff <blp@cs.stanford.edu>.
47482
47483 2008-04-18  Simon Josefsson  <simon@josefsson.org>
47484
47485         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
47486         Suggested by Bruno Haible <bruno@clisp.org>.
47487
47488 2008-04-17  Bruno Haible  <bruno@clisp.org>
47489
47490         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
47491         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
47492         implementation.
47493         Patch by Bruce Merry <bmerry@gmail.com>.
47494
47495 2008-04-17  Simon Josefsson  <simon@josefsson.org>
47496
47497         * doc/posix-functions/strftime.texi (strftime): Mention that %e
47498         doesn't work under Windows.
47499
47500 2008-04-16  Bruno Haible  <bruno@clisp.org>
47501
47502         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
47503         New macros.
47504         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
47505         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
47506         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
47507         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
47508         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
47509         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
47510         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
47511         macros.
47512         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
47513         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
47514         Northern Sotho, Uighur.
47515
47516 2008-04-16  Bruno Haible  <bruno@clisp.org>
47517
47518         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
47519         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
47520         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
47521         Reported by Daniel Bergström <daniel@octocode.com>.
47522
47523 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
47524             Bruno Haible  <bruno@clisp.org>
47525
47526         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
47527         function.
47528         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
47529         New functions, mostly extracted from gl_locale_name_default.
47530         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
47531
47532 2008-04-16  Eric Blake  <ebb9@byu.net>
47533
47534         Adjust strtod detection to catch glibc 2.7 bug.
47535         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
47536         Reported by John Gatewood Ham.
47537
47538 2008-04-16  Bruno Haible  <bruno@clisp.org>
47539
47540         Add tentative support for Linux libc5.
47541         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
47542         * lib/fpurge.c (fpurge): Likewise.
47543         * lib/freadable.c (freadable): Likewise.
47544         * lib/freadahead.c (freadahead): Likewise.
47545         * lib/freading.c (freading): Likewise.
47546         * lib/freadptr.c (freadptr): Likewise.
47547         * lib/freadseek.c (freadptrinc): Likewise.
47548         * lib/fseeko.c (rpl_fseeko): Likewise.
47549         * lib/fseterr.c (fseterr): Likewise.
47550         * lib/fwritable.c (fwritable): Likewise.
47551         * lib/fwriting.c (fwriting): Likewise.
47552         Reported by Alain Guibert <alguibert+bts@free.fr>.
47553
47554 2008-04-15  Bruno Haible  <bruno@clisp.org>
47555
47556         * modules/mathl (configure.ac): Define module indicator.
47557
47558 2008-04-15  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/logl.c (logl): Remove unused variables.
47561
47562 2008-04-15  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47565         fails.
47566
47567 2008-04-15  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/trim.c (trim2): Fix argument of isspace() macro.
47570
47571 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47572
47573         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47574         to 0.
47575         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47576
47577 2008-04-14  Bruno Haible  <bruno@clisp.org>
47578
47579         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47580         AC_LANG_PROGRAM argument.
47581         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47582         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47584         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47585         * m4/math_h.m4 (gl_MATH_H): Likewise.
47586         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47588         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47589         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47590         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47591         * m4/regex.m4 (gl_REGEX): Likewise.
47592         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47593         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47595         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47597         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47598         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47600
47601 2008-04-14  Jim Meyering  <meyering@redhat.com>
47602
47603         test-strtod: fix typos: s/abs/fabs/
47604         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47605
47606 2008-04-13  Bruno Haible  <bruno@clisp.org>
47607
47608         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47609         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47610         module is also used and while not building the reloc-wrapper.
47611
47612 2008-04-13  Bruno Haible  <bruno@clisp.org>
47613
47614         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47615
47616 2008-04-13  Bruno Haible  <bruno@clisp.org>
47617
47618         Fix AIX compilation failure introduced on 2008-04-02.
47619         * tests/test-frexp.c (exp): Undefine before redefining.
47620         * tests/test-frexpl.c (exp): Likewise.
47621
47622 2008-04-13  Bruno Haible  <bruno@clisp.org>
47623
47624         Work around a HP-UX stdio bug.
47625         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47626         * tests/test-ftello.c (main): Likewise.
47627         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47628         * doc/posix-functions/ftello.texi: Likewise.
47629
47630 2008-04-13  Bruno Haible  <bruno@clisp.org>
47631
47632         Make test-signbit pass on HP-UX/hppa.
47633         * tests/test-signbit.c (minus_zerol): New variable.
47634         (test_signbitl): Use it.
47635
47636 2008-04-13  Bruno Haible  <bruno@clisp.org>
47637
47638         Make truncl work on OSF/1 4.0.
47639         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47640         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47641         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47643         HAVE_DECL_TRUNCL.
47644         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47645         HAVE_DECL_TRUNCL.
47646         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47647
47648 2008-04-13  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47651
47652 2008-04-13  Bruno Haible  <bruno@clisp.org>
47653
47654         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47655         expression, so as to avoid HP-UX 11 cc compiler bug.
47656
47657 2008-04-13  Bruno Haible  <bruno@clisp.org>
47658
47659         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47660
47661 2008-04-13  Bruno Haible  <bruno@clisp.org>
47662
47663         * lib/git-merge-changelog.c: Remove empty declaration outside of
47664         functions.
47665
47666 2008-04-13  Bruno Haible  <bruno@clisp.org>
47667
47668         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47669
47670 2008-04-13  Bruno Haible  <bruno@clisp.org>
47671
47672         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47673         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47675         also if it exists but lacks definitions of the SHUT_* macros.
47676         * modules/sys_socket (Description): Update.
47677         Reported by Elbert Pol <e.pol@chello.nl>.
47678
47679 2008-04-13  Bruno Haible  <bruno@clisp.org>
47680
47681         * lib/localcharset.c (OS2): Don't redefine if already defined.
47682         Reported by Elbert Pol <e.pol@chello.nl>.
47683
47684 2008-04-13  Bruno Haible  <bruno@clisp.org>
47685
47686         * lib/binary-io.h [__EMX__]: Include <io.h>.
47687         Reported by Elbert Pol <e.pol@chello.nl>.
47688
47689 2008-04-12  Bruno Haible  <bruno@clisp.org>
47690
47691         * lib/fpucw.h: Enable the definitions also for x86_64.
47692         Needed for NetBSD/x86_64.
47693         Reported by Thomas Klausner <tk@giga.or.at>.
47694
47695 2008-04-12  Bruno Haible  <bruno@clisp.org>
47696
47697         * tests/test-strtod.c: Include isnand.h.
47698         (main): Use isnand instead of isnan.
47699         Reported by Jim Meyering.
47700
47701 2008-04-12  Bruno Haible  <bruno@clisp.org>
47702
47703         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47704         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47705
47706 2008-04-12  Jim Meyering  <meyering@redhat.com>
47707
47708         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47709
47710 2008-04-12  Bruno Haible  <bruno@clisp.org>
47711
47712         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47713         Reported by Elbert Pol <e.pol@chello.nl>.
47714
47715 2008-04-12  Eric Blake  <ebb9@byu.net>
47716
47717         Work around Solaris 10 math.h bug.
47718         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47719         (gl_MATH_H_DEFAULTS): Set up default.
47720         * modules/math (Makefile.am): Replace new indicators.
47721         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47722         * tests/test-math.c (main): Test this.
47723         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47724         * doc/posix-headers/math.texi (math.h): Mention bug.
47725         Reported by Nelson H. F. Beebe and Jim Meyering.
47726
47727 2008-04-11  Bruno Haible  <bruno@clisp.org>
47728
47729         Adapt to future versions of Apple GCC.
47730         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47731         Reported by Peter O'Gorman <peter@pogma.com>.
47732
47733 2008-04-11  Bruno Haible  <bruno@clisp.org>
47734
47735         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47736
47737 2008-04-11  Bruno Haible  <bruno@clisp.org>
47738
47739         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47740
47741         * modules/getaddrinfo-tests (Makefile.am): Define
47742         test_getaddrinfo_LDADD.
47743
47744 2008-04-11  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47747         (init): Fix syntax error.
47748         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47749         is declared.
47750
47751 2008-04-11  Bruno Haible  <bruno@clisp.org>
47752
47753         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47754         * modules/glob (Depends-on): Add stdbool.
47755
47756 2008-04-11  Bruno Haible  <bruno@clisp.org>
47757
47758         * lib/trim.c: Include <string.h>.
47759
47760 2008-04-11  Eric Blake  <ebb9@byu.net>
47761
47762         Avoid compile failure on OS/2.
47763         * lib/regex_internal.h (internal_function): Disable optimization
47764         on OS/2 (__EMX__), where it caused compiler error.
47765         Reported by Elbert Pol.
47766
47767 2008-04-11  Bruno Haible  <bruno@clisp.org>
47768
47769         Flush the standard error stream before aborting. Needed on mingw.
47770         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47771         * tests/test-array_list.c (ASSERT): Likewise.
47772         * tests/test-array_oset.c (ASSERT): Likewise.
47773         * tests/test-avltree_list.c (ASSERT): Likewise.
47774         * tests/test-avltree_oset.c (ASSERT): Likewise.
47775         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47776         * tests/test-binary-io.c (ASSERT): Likewise.
47777         * tests/test-byteswap.c (ASSERT): Likewise.
47778         * tests/test-c-ctype.c (ASSERT): Likewise.
47779         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47780         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47781         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47782         * tests/test-c-strstr.c (ASSERT): Likewise.
47783         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47784         * tests/test-canonicalize.c (ASSERT): Likewise.
47785         * tests/test-carray_list.c (ASSERT): Likewise.
47786         * tests/test-ceilf1.c (ASSERT): Likewise.
47787         * tests/test-ceilf2.c (ASSERT): Likewise.
47788         * tests/test-ceill.c (ASSERT): Likewise.
47789         * tests/test-count-one-bits.c (ASSERT): Likewise.
47790         * tests/test-fbufmode.c (ASSERT): Likewise.
47791         * tests/test-fflush2.c (ASSERT): Likewise.
47792         * tests/test-floorf1.c (ASSERT): Likewise.
47793         * tests/test-floorf2.c (ASSERT): Likewise.
47794         * tests/test-floorl.c (ASSERT): Likewise.
47795         * tests/test-fopen.c (ASSERT): Likewise.
47796         * tests/test-fpending.c (ASSERT): Likewise.
47797         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47798         * tests/test-fpurge.c (ASSERT): Likewise.
47799         * tests/test-freadable.c (ASSERT): Likewise.
47800         * tests/test-freadahead.c (ASSERT): Likewise.
47801         * tests/test-freading.c (ASSERT): Likewise.
47802         * tests/test-freadptr.c (ASSERT): Likewise.
47803         * tests/test-freadptr2.c (ASSERT): Likewise.
47804         * tests/test-freadseek.c (ASSERT): Likewise.
47805         * tests/test-freopen.c (ASSERT): Likewise.
47806         * tests/test-frexp.c (ASSERT): Likewise.
47807         * tests/test-frexpl.c (ASSERT): Likewise.
47808         * tests/test-fseek.c (ASSERT): Likewise.
47809         * tests/test-fseeko.c (ASSERT): Likewise.
47810         * tests/test-fstrcmp.c (ASSERT): Likewise.
47811         * tests/test-ftell.c (ASSERT): Likewise.
47812         * tests/test-ftello.c (ASSERT): Likewise.
47813         * tests/test-func.c (ASSERT): Likewise.
47814         * tests/test-fwritable.c (ASSERT): Likewise.
47815         * tests/test-fwriting.c (ASSERT): Likewise.
47816         * tests/test-getdelim.c (ASSERT): Likewise.
47817         * tests/test-getline.c (ASSERT): Likewise.
47818         * tests/test-i-ring.c (ASSERT): Likewise.
47819         * tests/test-iconv-utf.c (ASSERT): Likewise.
47820         * tests/test-iconv.c (ASSERT): Likewise.
47821         * tests/test-isfinite.c (ASSERT): Likewise.
47822         * tests/test-isnand.c (ASSERT): Likewise.
47823         * tests/test-isnanf.c (ASSERT): Likewise.
47824         * tests/test-isnanl.h (ASSERT): Likewise.
47825         * tests/test-ldexpl.c (ASSERT): Likewise.
47826         * tests/test-linked_list.c (ASSERT): Likewise.
47827         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47828         * tests/test-localename.c (ASSERT): Likewise.
47829         * tests/test-lseek.c (ASSERT): Likewise.
47830         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47831         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47832         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47833         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47834         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47835         * tests/test-mbschr.c (ASSERT): Likewise.
47836         * tests/test-mbscspn.c (ASSERT): Likewise.
47837         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47838         * tests/test-mbspbrk.c (ASSERT): Likewise.
47839         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47840         * tests/test-mbsrchr.c (ASSERT): Likewise.
47841         * tests/test-mbsspn.c (ASSERT): Likewise.
47842         * tests/test-mbsstr1.c (ASSERT): Likewise.
47843         * tests/test-mbsstr2.c (ASSERT): Likewise.
47844         * tests/test-mbsstr3.c (ASSERT): Likewise.
47845         * tests/test-memchr2.c (ASSERT): Likewise.
47846         * tests/test-memmem.c (ASSERT): Likewise.
47847         * tests/test-open.c (ASSERT): Likewise.
47848         * tests/test-printf-frexp.c (ASSERT): Likewise.
47849         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47850         * tests/test-printf-posix.c (ASSERT): Likewise.
47851         * tests/test-quotearg.c (ASSERT): Likewise.
47852         * tests/test-rbtree_list.c (ASSERT): Likewise.
47853         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47854         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47855         * tests/test-round1.c (ASSERT): Likewise.
47856         * tests/test-roundf1.c (ASSERT): Likewise.
47857         * tests/test-roundl.c (ASSERT): Likewise.
47858         * tests/test-signbit.c (ASSERT): Likewise.
47859         * tests/test-sleep.c (ASSERT): Likewise.
47860         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47861         * tests/test-snprintf.c (ASSERT): Likewise.
47862         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47863         * tests/test-stat-time.c (ASSERT): Likewise.
47864         * tests/test-strcasestr.c (ASSERT): Likewise.
47865         * tests/test-strerror.c (ASSERT): Likewise.
47866         * tests/test-striconv.c (ASSERT): Likewise.
47867         * tests/test-striconveh.c (ASSERT): Likewise.
47868         * tests/test-striconveha.c (ASSERT): Likewise.
47869         * tests/test-strsignal.c (ASSERT): Likewise.
47870         * tests/test-strstr.c (ASSERT): Likewise.
47871         * tests/test-strtod.c (ASSERT): Likewise.
47872         * tests/test-trunc1.c (ASSERT): Likewise.
47873         * tests/test-trunc2.c (ASSERT): Likewise.
47874         * tests/test-truncf1.c (ASSERT): Likewise.
47875         * tests/test-truncf2.c (ASSERT): Likewise.
47876         * tests/test-truncl.c (ASSERT): Likewise.
47877         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47878         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47879         * tests/test-vasnprintf.c (ASSERT): Likewise.
47880         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47881         * tests/test-vasprintf.c (ASSERT): Likewise.
47882         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47883         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47884         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47885         * tests/test-vsnprintf.c (ASSERT): Likewise.
47886         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47887         * tests/test-wcwidth.c (ASSERT): Likewise.
47888         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47889         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47890         * tests/test-xvasprintf.c (ASSERT): Likewise.
47891         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47892         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47893         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47894         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47895         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47896         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47897         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47898         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47899         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47900         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47901         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47902         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47903         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47904         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47905         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47906         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47907         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47908         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47909         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47910         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47911         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47912         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47913         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47914         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47915         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47916         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47917         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47918         * tests/unictype/test-combining.c (ASSERT): Likewise.
47919         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47920         * tests/unictype/test-digit.c (ASSERT): Likewise.
47921         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47922         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47923         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47924         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47925         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47926         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47927         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47928         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47929         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47930         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47931         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47932         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47933         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47934         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47935         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47936         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47937         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47938         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47939         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47940         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47941         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47942         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47943         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47944         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47945         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47946         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47947         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47948         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47949         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47950         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47951         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47952         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47953         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47954         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47955         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47956         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47957         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47958         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47959         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47960         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47961         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47962         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47963         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47964         Reported by Eric Blake.
47965
47966 2008-04-11  Bruno Haible  <bruno@clisp.org>
47967
47968         * lib/wchar.in.h: Tweak comment.
47969
47970 2008-04-11  Bruno Haible  <bruno@clisp.org>
47971
47972         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47973         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47974         gl_COMMON.
47975         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47976
47977 2008-04-11  Bruno Haible  <bruno@clisp.org>
47978
47979         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47980
47981 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47982
47983         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47984         of attempting to use non-existing /dev/*random.  Based on patch
47985         from Adam Strzelecki <ono@java.pl> in
47986         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47987
47988 2008-04-08  Bruno Haible  <bruno@clisp.org>
47989
47990         Add tentative support for emx+gcc.
47991         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47992         * lib/fpurge.c (fpurge): Likewise.
47993         * lib/freadable.c (freadable): Likewise.
47994         * lib/freadahead.c (freadahead): Likewise.
47995         * lib/freading.c (freading): Likewise.
47996         * lib/freadptr.c (freadptr): Likewise.
47997         * lib/freadseek.c (freadptrinc): Likewise.
47998         * lib/fseeko.c (rpl_fseeko): Likewise.
47999         * lib/fseterr.c (fseterr): Likewise.
48000         * lib/fwritable.c (fwritable): Likewise.
48001         * lib/fwriting.c (fwriting): Likewise.
48002         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48003
48004 2008-04-09  Eric Blake  <ebb9@byu.net>
48005
48006         Avoid some autoconf warnings.
48007         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48008         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48009         * m4/afs.m4 (gl_AFS): Likewise.
48010         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48011         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48012         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48013         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48014         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48015         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48016         (AC_CHECK_DECLS_ONCE): Likewise.
48017         Rename file...
48018         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48019         gnulib-tool requires autoconf 2.59 or better.
48020         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48021
48022 2008-04-08  Eric Blake  <ebb9@byu.net>
48023
48024         Use 'git describe --match' if present (added in git 1.5.5).
48025         * build-aux/git-version-gen: Limit result to tags that match 'v*'
48026         if possible.
48027
48028 2008-04-08  Bruno Haible  <bruno@clisp.org>
48029
48030         Add tentative support for OpenServer.
48031         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
48032         _ptr, _cnt.
48033         * lib/fpurge.c (fpurge): Likewise.
48034         * lib/freadable.c (freadable): Likewise.
48035         * lib/freadahead.c (freadahead): Likewise.
48036         * lib/freading.c (freading): Likewise.
48037         * lib/freadptr.c (freadptr): Likewise.
48038         * lib/freadseek.c (freadptrinc): Likewise.
48039         * lib/fseeko.c (rpl_fseeko): Likewise.
48040         * lib/fseterr.c (fseterr): Likewise.
48041         * lib/fwritable.c (fwritable): Likewise.
48042         * lib/fwriting.c (fwriting): Likewise.
48043         Reported by Roger Cornelius <rac@tenzing.org> and
48044         Brian K. White <brian@aljex.com>.
48045
48046 2008-04-06  Jim Meyering  <meyering@redhat.com>
48047
48048         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
48049
48050 2008-04-06  Bruno Haible  <bruno@clisp.org>
48051
48052         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48053         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48054         * tests/test-printf-posix.sh: Likewise.
48055         * tests/test-vfprintf-posix.sh: Likewise.
48056         * tests/test-vprintf-posix.sh: Likewise.
48057         * tests/test-xprintf-posix.sh: Likewise.
48058
48059 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48060
48061         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48062         hide error from 'ls', needed on OS/2.
48063         Report by Elbert Pol <elbert.pol@gmail.com>.
48064
48065 2008-04-04  Eric Blake  <ebb9@byu.net>
48066
48067         Make test-fseeko.c failures meaningful.
48068         * tests/test-fseeko.c: Print line number on failure.
48069         * tests/test-fseek.c: Likewise.
48070         Reported by Nelson H. F. Beebe.
48071
48072         Improve strtod bug detection check.
48073         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48074         required for Solaris 10.
48075         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48076
48077 2008-04-04  Bruno Haible  <bruno@clisp.org>
48078
48079         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48080         by m4/setenv.m4.
48081
48082 2008-04-03  Eric Blake  <ebb9@byu.net>
48083
48084         Ensure sane .version contents.
48085         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48086         version string.
48087         * build-aux/git-version-gen: Improve documentation.
48088
48089         Make GNU make output nicer.
48090         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48091         MAKECMDGOALS to enforce message for all command line targets.  Set
48092         srcdir for use in maint.mk.
48093
48094         Another maintainer tweak.
48095         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48096         a target that regenerates version.
48097
48098 2008-04-03  Jim Meyering  <meyering@redhat.com>
48099
48100         vc-list-files: don't cause coreutils "make po-check" failure
48101         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48102
48103 2008-04-03  Eric Blake  <ebb9@byu.net>
48104
48105         Allow VPATH usage of vc-list-files.
48106         * build-aux/vc-list-files (scriptversion): Add timestamp.
48107         (options): Add --help, --version, -C.
48108         (CVS): Support installed cvsu.
48109
48110 2008-04-02  Bruno Haible  <bruno@clisp.org>
48111
48112         Avoid some "statement with no effect" warnings from gcc.
48113         * tests/test-wctype.c (main): Explicitly ignore unused values.
48114         Reported by Jim Meyering.
48115
48116 2008-04-02  Jim Meyering  <meyering@redhat.com>
48117
48118         Avoid some warnings from "gcc -Wshadow".
48119         * tests/test-frexp.c (exp): Define to a different identifier.
48120         * tests/test-frexpl.c (exp): Likewise.
48121
48122 2008-04-03  Jim Meyering  <meyering@redhat.com>
48123
48124         bootstrap: remove dangling *.[ch] symlinks from lib
48125         * build-aux/bootstrap [dangling symlink removal]: Move find's
48126         -depth option to precede all others, to avoid a warning.
48127         Remove *.[ch] files too, and from "$source_base" (usually lib/).
48128
48129 2008-04-02  Bruno Haible  <bruno@clisp.org>
48130
48131         Avoid some warnings from "gcc -Wshadow".
48132         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
48133         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
48134         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
48135         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
48136         Reported by Jim Meyering.
48137
48138 2008-04-01  Bruno Haible  <bruno@clisp.org>
48139
48140         Fix test to work on IRIX 6.5 with cc.
48141         * tests/test-math.c (numeric_equal): New function.
48142         (main): Use it.
48143
48144 2008-04-01  Bruno Haible  <bruno@clisp.org>
48145
48146         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
48147
48148 2008-04-01  Bruno Haible  <bruno@clisp.org>
48149
48150         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
48151         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48152         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
48153         (Depends-on): Remove math.
48154
48155         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
48156         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48157         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
48158         (Depends-on): Remove math.
48159
48160         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
48161         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48162         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
48163         (Depends-on): Remove math.
48164         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
48165         (Depends-on): Remove math.
48166
48167         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
48168         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
48169         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
48170         (Depends-on): Remove math.
48171         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
48172         (Depends-on): Remove math.
48173
48174         * tests/test-round1.c: Include nan.h.
48175         (main): Use NaNd instead of NAN.
48176         * modules/round-tests (Files): Add tests/nan.h.
48177
48178         * tests/test-trunc1.c: Include nan.h.
48179         (main): Use NaNd instead of NAN.
48180         * modules/trunc-tests (Files): Add tests/nan.h.
48181
48182         * tests/test-roundf1.c: Include nan.h.
48183         (main): Use NaNf instead of NAN.
48184         * modules/roundf-tests (Files): Add tests/nan.h.
48185
48186         * tests/test-truncf1.c: Include nan.h.
48187         (main): Use NaNf instead of NAN.
48188         * modules/truncf-tests (Files): Add tests/nan.h.
48189
48190         * tests/test-ceilf1.c: Include nan.h.
48191         (main): Use NaNf instead of NAN.
48192         * modules/ceilf-tests (Files): Add tests/nan.h.
48193
48194         * tests/test-floorf1.c: Include nan.h.
48195         (main): Use NaNf instead of NAN.
48196         * modules/floorf-tests (Files): Add tests/nan.h.
48197
48198         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
48199         (main): Use NaNf instead of NAN.
48200         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
48201
48202         * tests/test-isnand.c: Include nan.h instead of <math.h>.
48203         (main): Use NaNd instead of NAN.
48204         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
48205
48206         * tests/test-frexp.c: Include nan.h.
48207         (main): Use NaNd instead of NAN.
48208         * modules/frexp-tests (Files): Add tests/nan.h.
48209
48210         * lib/isnan.c: Don't include <math.h>.
48211         (FUNC): Don't use NAN macro.
48212         * modules/isnand-nolibm (Depends-on): Remove math.
48213         * modules/isnanf-nolibm (Depends-on): Remove math.
48214         * modules/isnanl (Depends-on): Remove math.
48215         * modules/isnanl-nolibm (Depends-on): Remove math.
48216
48217         * tests/nan.h: New file.
48218
48219 2008-04-01  Eric Blake  <ebb9@byu.net>
48220
48221         Fix typos.
48222         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
48223         values to be the right type.
48224
48225         For now, cater to gnulib strtod inaccuracies.
48226         * tests/test-strtod.c (main): Allow 1-ulp error on expected
48227         fractional results.  While not as nice from a QoI perspective, it
48228         is a quicker patch than correctly implementing decimal to binary
48229         rounding.
48230
48231 2008-03-31  Eric Blake  <ebb9@byu.net>
48232
48233         Guarantee a definition of NAN.
48234         * lib/math.in.h (NAN): Define if missing.
48235         * tests/test-math.c (main): Test it.
48236         * doc/posix-headers/math.texi (math.h): Document this.
48237         * lib/isnan.c (rpl_isnand): Use it.
48238         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
48239         * tests/test-floorf1.c (NaN): Likewise.
48240         * tests/test-frexp.c (NaN): Likewise.
48241         * tests/test-isnand.c (NaN): Likewise.
48242         * tests/test-isnanf.c (NaN): Likewise.
48243         * tests/test-round1.c (NaN): Likewise.
48244         * tests/test-roundf1.c (NaN): Likewise.
48245         * tests/test-snprintf-posix.h (NaN): Likewise.
48246         * tests/test-sprintf-posix.h (NaN): Likewise.
48247         * tests/test-trunc1.c (NaN): Likewise.
48248         * tests/test-truncf1.c (NaN): Likewise.
48249         * tests/test-vasnprintf-posix.c (NaN): Likewise.
48250         * tests/test-vasprintf-posix.c (NaN): Likewise.
48251         * modules/isnand-nolibm (Depends-on): Add math.
48252         * modules/isnanf-nolibm (Depends-on): Likewise.
48253         * modules/isnanl (Depends-on): Likewise.
48254         * modules/isnanl-nolibm (Depends-on): Likewise.
48255         * modules/snprintf-posix-tests (Depends-on): Likewise.
48256         * modules/sprintf-posix-tests (Depends-on): Likewise.
48257         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
48258         * modules/vsprintf-posix-tests (Depends-on): Likewise.
48259         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
48260         * modules/vasprintf-posix-tests (Depends-on): Likewise.
48261
48262 2008-03-31  Bruno Haible  <bruno@clisp.org>
48263
48264         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
48265         * doc/posix-functions/strtod.texi: Likewise.
48266
48267 2008-03-31  Bruno Haible  <bruno@clisp.org>
48268
48269         * tests/test-strtod.c (main): Don't use C99 syntax.
48270
48271 2008-03-31  Bruno Haible  <bruno@clisp.org>
48272
48273         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
48274         Reported by Eric Blake.
48275
48276 2008-03-31  Jim Meyering  <meyering@redhat.com>
48277
48278         Don't compare actual signbit return values.
48279         * tests/test-strtod.c (main): Rather, compare only their
48280         zero/non-zero nature.
48281
48282 2008-03-31  Eric Blake  <ebb9@byu.net>
48283
48284         More strtod documentation.
48285         * doc/posix-functions/strtod.texi (strtod): Interpret more test
48286         failures as distinct bugs.
48287
48288 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
48289
48290         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
48291         Problem reported by Erik Benada in
48292         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
48293
48294 2008-03-30  Bruno Haible  <bruno@clisp.org>
48295
48296         * tests/test-strtod.c: Add comments about which assertion fails on which
48297         platform.
48298         * doc/posix-functions/strtod.texi: Add info about many more platforms.
48299
48300 2008-03-30  Eric Blake  <ebb9@byu.net>
48301
48302         Test signbit behavior on zeros.
48303         * tests/test-signbit.c (test_signbitf): Add tests for zero.
48304         (test_signbitd, test_signbitl): Likewise.
48305
48306         More strtod touchups.
48307         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
48308         sign of negative underflow, for now.  Use .5, not .1.
48309         * doc/posix-functions/strtod.texi (strtod): Mention these
48310         limitations.
48311         Reported by Jim Meyering.
48312
48313 2008-03-30  Bruno Haible  <bruno@clisp.org>
48314
48315         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
48316         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
48317
48318 2008-03-30  Bruno Haible  <bruno@clisp.org>
48319
48320         Avoid failure when attempting to return empty iconv results on some
48321         platforms.
48322         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
48323         allocation, don't report ENOMEM when the resulting string is empty.
48324
48325 2008-03-30  Bruno Haible  <bruno@clisp.org>
48326
48327         Fix buffer overrun.
48328         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
48329         Don't consider the width for tmp_length. Check count against tmp_length
48330         before doing the padding. Ensure enough allocation during padding.
48331
48332 2008-03-30  Eric Blake  <ebb9@byu.net>
48333
48334         strtod touchups.
48335         * lib/strtod.c (strtod): Avoid compiler warnings.
48336         Reported by Jim Meyering.
48337
48338 2008-03-30  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
48341         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
48342         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
48343         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
48344         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
48345         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
48346         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
48347         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
48348
48349         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
48350         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
48351         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
48352         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
48353         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
48354         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
48355         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
48356         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
48357
48358         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
48359         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
48360         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
48361         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
48362         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
48363         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
48364         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
48365         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
48366
48367         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
48368         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
48369
48370         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
48371         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
48372
48373         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
48374         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
48375
48376         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
48377         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
48378         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
48379
48380         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
48381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
48382         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
48383
48384         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
48385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
48386         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
48387
48388         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
48389         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
48390         * modules/vasprintf (Depends-on): Add EOVERFLOW.
48391
48392         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
48393         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
48394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
48395         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
48396         (Depends-on): Add EOVERFLOW.
48397         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
48398         (Depends-on): Add EOVERFLOW.
48399         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48400         (Depends-on): Add EOVERFLOW.
48401         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
48402         (Depends-on): Add EOVERFLOW.
48403         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48404         (Depends-on): Add EOVERFLOW.
48405         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
48406         (Depends-on): Add EOVERFLOW.
48407         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48408         (Depends-on): Add EOVERFLOW.
48409         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
48410         (Depends-on): Add EOVERFLOW.
48411
48412         * lib/sprintf.c (EOVERFLOW): Remove fallback.
48413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
48414         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
48415
48416         * lib/snprintf.c (EOVERFLOW): Remove fallback.
48417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
48418         * modules/snprintf (Depends-on): Add EOVERFLOW.
48419
48420         * lib/poll.c (EOVERFLOW): Remove fallback.
48421         * modules/poll (Depends-on): Add EOVERFLOW.
48422
48423         * lib/getugroups.c (EOVERFLOW): Remove fallback.
48424         * modules/getugroups (Depends-on): Add EOVERFLOW.
48425
48426         * lib/getdelim.c (EOVERFLOW): Remove fallback.
48427         * modules/getdelim (Depends-on): Add EOVERFLOW.
48428
48429         * lib/ftell.c (EOVERFLOW): Remove fallback.
48430         * modules/ftell (Depends-on): Add EOVERFLOW.
48431
48432         * lib/fprintf.c (EOVERFLOW): Remove fallback.
48433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
48434         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
48435
48436         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
48437
48438         * modules/EOVERFLOW-tests: New file.
48439         * tests/test-EOVERFLOW.c: New file.
48440
48441         * modules/EOVERFLOW: New file.
48442         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
48443
48444 2008-03-30  Bruno Haible  <bruno@clisp.org>
48445
48446         Fix bug introduced on 2007-06-10.
48447         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
48448         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
48449
48450 2008-03-30  Bruno Haible  <bruno@clisp.org>
48451
48452         Improve freadseek's efficiency after ungetc.
48453         * lib/freadseek.c: Include freadahead.h.
48454         (freadptrinc): New function, extracted from freadseek.
48455         (freadseek): Use it in a loop. Use freadahead to determine the number
48456         of loop iterations.
48457         * modules/freadseek (Depends-on): Add freadahead.
48458         (configure.ac): Require AC_C_INLINE.
48459
48460 2008-03-30  Bruno Haible  <bruno@clisp.org>
48461
48462         * lib/freadseek.c (freadseek): Don't ignore the return value of
48463         freadptr.
48464
48465 2008-03-29  Eric Blake  <ebb9@byu.net>
48466
48467         Add hex float support.
48468         * modules/strtod (Depends-on): Add c-ctype.
48469         (Link): Mention POW_LIB.
48470         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
48471         whitespace between 'e' and exponent.
48472         * tests/test-strtod.c (main): Enable hex float tests.
48473         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
48474         now provides.
48475
48476         Document various strtod bugs, with some fixes.
48477         * doc/posix-functions/strtod.texi (strtod): Document bugs with
48478         "-0x", "inf", "nan", and hex constants.
48479         * doc/posix-functions/atof.texi (atof): Likewise.
48480         * modules/stdlib (Makefile.am): Support strtod.
48481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
48482         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
48483         detect additional strtod bugs.
48484         * lib/stdlib.in.h (rpl_strtod): Add declarations.
48485         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
48486         bool where appropriate.  Parse 'inf' and 'nan'.
48487         * tests/test-strtod.c: New file.
48488         * modules/strtod (Depends-on): Add stdbool, stdlib.
48489         (configure.ac): Turn on module indicator.
48490         * modules/strtod-tests: New module.
48491
48492 2008-03-29  Eric Blake  <ebb9@byu.net>
48493
48494         Fix ftell on mingw.
48495         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
48496         * modules/ftell-tests (Depends-on): Add binary-io.
48497         * modules/ftello-tests (Depends-on): Likewise.
48498         * tests/test-ftell.c (main): Enhance test to cover behavior after
48499         ungetc.  Enforce binary mode.
48500         * tests/test-ftello.c (main): Likewise.
48501
48502         Pass test-freadseek on cygwin.
48503         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
48504         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
48505         ungetc buffer.
48506
48507         * tests/test-fflush2.c (main): Fix typo.
48508
48509 2008-03-29  Bruno Haible  <bruno@clisp.org>
48510
48511         * tests/test-fflush2.c (main): Temporarily disable the contents of
48512         this test.
48513         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
48514         Reported by Eric Blake.
48515
48516 2008-03-28  Simon Josefsson  <simon@josefsson.org>
48517
48518         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
48519         (GC_SHA224_DIGEST_SIZE): Add.
48520
48521         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
48522         (gc_hash_digest_length): Likewise.
48523         (gc_hash_buffer): Likewise.
48524
48525 2008-03-25  Bruno Haible  <bruno@clisp.org>
48526
48527         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
48528         detail which gettext release to use.
48529         Reported by Simon Josefsson.
48530
48531 2008-03-26  Jim Meyering  <meyering@redhat.com>
48532
48533         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
48534         * modules/gnumakefile (clean-GNUmakefile): Also, use
48535         test ... && ... || : syntax rather than if-then ... fi.
48536
48537         gnumakefile: Don't double-quote-expand $(VPATH) value.
48538         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
48539
48540 2008-03-24  Eric Blake  <ebb9@byu.net>
48541
48542         Alter GNUmakefile to install into top directory.
48543         * modules/maintainer-makefile: Split, and add dependency...
48544         * modules/gnumakefile: to this new module.
48545         * build-aux/GNUmakefile: Move...
48546         * top/GNUmakefile: ...here.
48547         * build-aux/maint.mk: Move...
48548         * top/maint.mk: ...here.
48549         * MODULES.html.sh (Support for maintaining...): Document new
48550         module.
48551
48552 2008-03-23  Bruno Haible  <bruno@clisp.org>
48553
48554         * gnulib-tool: New options --vc-files, --no-vc-files.
48555         (func_usage): Document them.
48556         (vc_files): New variable.
48557         (func_import): Consider vc_files.
48558         (func_create_testdir): Set vc_files to empty.
48559         Suggested by Jim Meyering and Karl Berry.
48560
48561 2008-03-23  Bruno Haible  <bruno@clisp.org>
48562
48563         Fix regex compilation error on HP-UX 11.
48564         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48565         * modules/regex (Files): Add m4/mbstate_t.m4.
48566         Reported by Ton Voon <ton.voon@altinity.com>.
48567
48568 2008-03-23  Bruno Haible  <bruno@clisp.org>
48569
48570         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48571
48572 2008-03-23  Eric Blake  <ebb9@byu.net>
48573             Bruno Haible  <bruno@clisp.org>
48574
48575         Install files from top/ in the destination directory.
48576         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48577         augmentation also for the files from top/.
48578         (func_import, func_create_testdir): Rewrite file names:
48579         top/filename -> filename.
48580
48581 2008-03-23  Bruno Haible  <bruno@clisp.org>
48582
48583         Tweak "gnulib --version" output.
48584         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48585
48586 2008-03-23  Bruno Haible  <bruno@clisp.org>
48587
48588         Tweak "gnulib --version" output.
48589         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48590         rather than contents of ChangeLog, when possible.
48591
48592 2008-03-21  Eric Blake  <ebb9@byu.net>
48593
48594         More --version tweaks.
48595         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48596         date of last ChangeLog entry.
48597
48598 2008-03-21  Jim Meyering  <meyering@redhat.com>
48599
48600         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48601
48602 2008-03-20  Eric Blake  <ebb9@byu.net>
48603
48604         VPATH fix.
48605         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48606
48607 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48608
48609         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48610         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48611
48612 2008-03-20  Eric Blake  <ebb9@byu.net>
48613
48614         Sync GNUmakefile with coreutils.
48615         * build-aux/GNUmakefile (have-Makefile): Rename...
48616         (_have-Makefile): ...to this, for namespace consideration.
48617         (GNUmakefile.cfg): Include, if present.
48618         (_autoreconf): Define a default.
48619         (_is-dist-target): New rule for rebuilds to pick up intra-release
48620         version.
48621         (maint-cfg.mk): Rename...
48622         (cfg.mk): ...to this.
48623
48624 2008-03-18  Jim Meyering  <meyering@redhat.com>
48625
48626         New script and module: mktempd
48627         * MODULES.html.sh (maint+release support): Add mktempd.
48628         * build-aux/mktempd: New file.
48629         * modules/mktempd: New file.
48630
48631 2008-03-15  Jim Meyering  <meyering@redhat.com>
48632
48633         Undo last change.
48634         * lib/sha1.c, lib/md5.c: 63 != ~63.
48635         Reported by Andreas Schwab.
48636
48637         sha1.c, md5.c: Hoist a redundant expression.
48638         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48639         "ctx->buflen" only once, before calling *_process_block.
48640         * lib/md5.c (md5_process_bytes): Likewise.
48641
48642 2008-03-14  Eric Blake  <ebb9@byu.net>
48643
48644         Bump copyright year in files generated by gnulib-tool.
48645         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48646         gnulib-tool, rather than hard-coding it.
48647
48648         Fix 'gnulib-tool --version' output to work with git.
48649         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48650         (startup): ...here.
48651         (func_version): Use it to invoke git-version-gen, rather than
48652         relying on CVS keyword expansion.  Modernize wording.
48653         (cvsdatestamp, last_checkin_date, version): Kill unused
48654         variables.
48655
48656 2008-03-12  Jim Meyering  <meyering@redhat.com>
48657
48658         Recognize optional cast of the argument to free.
48659         * build-aux/useless-if-before-free: Update regexps.
48660
48661         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48662
48663 2008-03-11  Bruno Haible  <bruno@clisp.org>
48664
48665         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48666         by a single package.
48667         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48668         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48669         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48670         Reported by Sam Steingold <sds@gnu.org>.
48671
48672 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48673
48674         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48675         repositories.
48676
48677 2008-03-11  Bruno Haible  <bruno@clisp.org>
48678
48679         Avoid conflicts between local macro definitions.
48680         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48681         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48682
48683 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48684             Bruno Haible  <bruno@clisp.org>
48685
48686         Make va_copy work with some version of xlc on AIX 5.1.
48687         * lib/stdarg.in.h: New file.
48688         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48689         On AIX, use a <stdarg.h> file substitute.
48690         * modules/stdarg (Files): Add lib/stdarg.in.h.
48691         (Depends-on): Add include_next.
48692         (Makefile.am): Build a stdarg.h substitute if requested.
48693         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48694
48695 2008-03-10  Bruno Haible  <bruno@clisp.org>
48696
48697         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48698         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48699         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48700
48701 2008-03-10  Bruno Haible  <bruno@clisp.org>
48702
48703         * modules/stdlib (Depends-on): Add include_next, remove
48704         absolute-header.
48705
48706 2008-03-09  Bruno Haible  <bruno@clisp.org>
48707
48708         * lib/freadahead.h (freadahead): Document more precisely.
48709         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48710         the sum of both buffer sizes.
48711         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48712         * NEWS: Document the change.
48713
48714 2008-03-09  Bruno Haible  <bruno@clisp.org>
48715
48716         Extend freadptr to return also the buffer size.
48717         * lib/freadptr.h (freadptr): Add sizep argument.
48718         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48719         (freadptr): Add sizep argument. Determine buffer size like freadahead
48720         does.
48721         * tests/test-freadptr.c: Don't include freadahead.h.
48722         (main): Adapt for new calling convention of freadptr.
48723         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48724         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48725         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48726         tests/test-freadptr2.sh.
48727         (Depends): Remove freadahead.
48728         (TESTS): Add test-freadptr2.sh.
48729         (check_PROGRAMS): Add test-freadptr2.
48730
48731 2008-03-09  Bruno Haible  <bruno@clisp.org>
48732
48733         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48734         Report and solution by Simon Josefsson.
48735
48736 2008-03-06  Bruno Haible  <bruno@clisp.org>
48737
48738         Make fflush after ungetc work on BSD platforms.
48739         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48740         * tests/test-fflush2.c: New file.
48741         * tests/test-fflush2.sh: New file.
48742         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48743         tests/test-fflush2.c.
48744         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48745         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48746
48747 2008-03-06  Eric Blake  <ebb9@byu.net>
48748
48749         Likewise for ftello.
48750         * modules/ftello (Dependencies): Add extensions.
48751         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48752
48753 2008-03-06  Bruno Haible  <bruno@clisp.org>
48754
48755         * modules/fseeko (Dependencies): Add extensions.
48756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48757         Needed on glibc systems.
48758
48759 2008-03-06  Bruno Haible  <bruno@clisp.org>
48760
48761         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48762         email address.
48763         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48764
48765 2008-03-06  Bruno Haible  <bruno@clisp.org>
48766
48767         * users.txt: Add libgnupdf.
48768
48769 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48770
48771         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48772         (Header File Substitutes, Function Substitutes,
48773         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48774         (Build robot for gnulib): Fix typo.
48775
48776 2008-03-06  Bruno Haible  <bruno@clisp.org>
48777
48778         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48779         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48780
48781 2008-03-06  Bruno Haible  <bruno@clisp.org>
48782
48783         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48784         * doc/gnulib.texi: Include it.
48785
48786 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48787
48788         * modules/func (License): Change license to unlimited; there was
48789         no LGPL parts in the module anyway.
48790
48791 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48792
48793         * modules/__func__: Renamed to modules/func.
48794         * modules/__func__-tests: Renamed to modules/func-tests.
48795         * tests/test-__func__.c: Renamed to tests/test-func.c.
48796         * m4/__func__.m4: Renamed to m4/func.m4.
48797         * doc/gnulib.texi (__func__): Section renamed to func.
48798         Suggested by Eric Blake <ebb9@byu.net>.
48799
48800 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48801
48802         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48803         about __func__.  Make example self-contained.  Suggested by Eric
48804         Blake <ebb9@byu.net>.
48805
48806         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48807         Suggested by Eric Blake <ebb9@byu.net>.
48808
48809 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48810
48811         * modules/__func__: New file.
48812         * modules/__func__-tests: New file.
48813         * tests/test-__func__.c: New file.
48814         * m4/__func__.m4: New file.
48815         * doc/gnulib.texi (__func__): Document __func__ module.
48816
48817 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48818
48819         * modules/byteswap (License): Re-license as LGPLv2+.
48820
48821 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48822
48823         * doc/Makefile: Add pdf target.
48824
48825 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48826
48827         * modules/inline (License): Use 'unlimited', since there are only
48828         *.m4 files in this module.
48829
48830 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48831             Bruno Haible  <bruno@clisp.org>
48832
48833         Add support for HP C 7.1 on OpenVMS 8.3.
48834         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48835
48836 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48837
48838         Update VMS specifics.
48839         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48840
48841 2008-03-02  Jim Meyering  <meyering@redhat.com>
48842
48843         Remove the last dependency on the "free" module.
48844         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48845         Reported by Bob Proulx.
48846
48847         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48848
48849         Remove useless "if" tests before free.  Deprecate "free" module.
48850         * doc/posix-functions/free.texi: Mention that this
48851         module is no longer useful.
48852         * modules/free (Notice): Say this module is obsolete.
48853         * modules/readutmp (Depends-on): Remove free.
48854         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48855         * lib/putenv.c (putenv): Likewise.
48856         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48857         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48858         * tests/test-c-strcasestr.c (main): Likewise.
48859         * tests/test-c-strstr.c (main): Likewise.
48860         * tests/test-mbscasestr1.c (main): Likewise.
48861         * tests/test-mbscasestr2.c (main): Likewise.
48862         * tests/test-mbsstr1.c (main): Likewise.
48863         * tests/test-mbsstr2.c (main): Likewise.
48864         * tests/test-memmem.c (main): Likewise.
48865         * tests/test-strcasestr.c (main): Likewise.
48866         * tests/test-striconv.c (main): Likewise.
48867         * tests/test-striconveh.c (main): Likewise.
48868         * tests/test-striconveha.c (main): Likewise.
48869         * tests/test-strstr.c (main): Likewise.
48870
48871         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48872
48873         bootstrap: sync from coreutils again
48874         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48875
48876 2008-03-01  Jim Meyering  <meyering@redhat.com>
48877
48878         bootstrap: sync from coreutils
48879         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48880         also when the target doesn't exist.
48881
48882 2008-03-01  Eric Blake  <ebb9@byu.net>
48883
48884         Fix bugs in last patch.
48885         * lib/memchr2.c (memchr2): Fix typo.
48886         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48887         extension.
48888         Reported by Bruce Korb.
48889
48890         New module 'memchr2'.
48891         * modules/memchr2: New file.
48892         * modules/memchr2-tests: Likewise.
48893         * lib/memchr2.h: Likewise.
48894         * lib/memchr2.c: Likewise, based on memchr.c.
48895         * tests/test-memchr2.c: New test.
48896         * MODULES.html.sh (String handling): Add memchr2.
48897
48898 2008-02-29  Bruno Haible  <bruno@clisp.org>
48899
48900         * modules/freadseek-tests: New file.
48901         * tests/test-freadseek.sh: New file.
48902         * tests/test-freadseek.c: New file.
48903
48904         New module 'freadseek'.
48905         * modules/freadseek: New file.
48906         * lib/freadseek.h: New file.
48907         * lib/freadseek.c: New file.
48908         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48909
48910 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48911
48912         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48913         wydawca.
48914
48915         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48916         program_invocation_name and program_invocation_short_name are
48917         present.
48918
48919 2008-02-28  Bruno Haible  <bruno@clisp.org>
48920
48921         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48922         * tests/test-freadptr.sh: Also test non-seekable stdin.
48923
48924 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48925
48926         * build-aux/bootstrap (source_base, m4_base)
48927         (doc_base, tests_base): New variables.
48928         (gnulib_tool_options): Do not hardcode base directories, use
48929         the above variables instead.
48930
48931 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48932
48933         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48934
48935 2008-02-28  Bruno Haible  <bruno@clisp.org>
48936
48937         * modules/freadptr-tests: New file.
48938         * tests/test-freadptr.sh: New file.
48939         * tests/test-freadptr.c: New file.
48940
48941         New module 'freadptr'.
48942         * modules/freadptr: New file.
48943         * lib/freadptr.h: New file.
48944         * lib/freadptr.c: New file.
48945         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48946
48947 2008-02-26  Karl Berry  <karl@freefriends.org>
48948
48949         Sync from Libtool:
48950         * libltdl/argz.c (argz_add, argz_count): New functions.
48951         * libltdl/argz.in.h: Declare them.
48952         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48953
48954 2008-02-22  Bruno Haible  <bruno@clisp.org>
48955
48956         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48957         is a pointer type.  Needed for HP-UX 10.
48958         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48959         * doc/posix-functions/gmtime_r.texi: Likewise.
48960         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48961
48962 2008-02-24  Bruno Haible  <bruno@clisp.org>
48963
48964         * modules/environ-tests: New file.
48965         * tests/test-environ.c: New file.
48966
48967         New module 'environ'.
48968         * modules/environ: New file.
48969         * lib/unistd.in.h (environ): New declaration.
48970         * m4/environ.m4: New file.
48971         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48972         after use.
48973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48974         HAVE_DECL_ENVIRON.
48975         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48976         HAVE_DECL_ENVIRON.
48977         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48978         wrong claim that 'environ' is missing on some systems.
48979         * modules/execute (Depends-on): Add environ.
48980         * lib/execute.c (environ): Remove fallback declaration.
48981         * modules/pipe (Depends-on): Add environ.
48982         * lib/pipe.c (environ): Remove fallback declaration.
48983         * modules/setenv (Depends-on): Add environ.
48984         * lib/setenv.c (environ): Remove fallback declaration.
48985         * modules/unsetenv (Depends-on): Add environ.
48986         * lib/unsetenv.c (environ): Remove fallback declaration.
48987         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48988         m4/environ.m4.
48989         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48990         (gl_PREREQ_UNSETENV): Likewise.
48991
48992 2008-02-24  Bruno Haible  <bruno@clisp.org>
48993
48994         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48995
48996 2008-02-20  Bob Proulx  <bob@proulx.com>
48997
48998         Enable use of older two part flavor 'git describe'.
48999         * build-aux/git-version-gen: If using the older two part flavor of
49000         git version then recreate the third part now present in the
49001         newer three part flavor of git describe.
49002
49003 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49004
49005         * lib/fts.c (fts_build): Typo correction to comment.
49006
49007 2008-02-17  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49010         generating no-op conflicts.
49011
49012 2008-02-17  Bruno Haible  <bruno@clisp.org>
49013
49014         Speed up by 10%.
49015         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49016         result_entries, rather than an index-based loop.
49017
49018 2008-02-17  Bruno Haible  <bruno@clisp.org>
49019
49020         Speed up by 25%.
49021         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
49022         'hashcode_cached'.
49023         (entry_create): New function.
49024         (entry_hashcode): Use the cached hashcode if possible.
49025         (read_changelog_file, try_split_merged_entry): Use entry_create.
49026
49027 2008-02-17  Bruno Haible  <bruno@clisp.org>
49028
49029         Speed up from O(n^2) to O(n) for long ChangeLog files.
49030         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
49031         (read_changelog_file): Change implementation of entries_reversed list
49032         to rbtreehash.
49033         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
49034
49035 2008-02-17  Bruno Haible  <bruno@clisp.org>
49036
49037         New option --split-merged-entry.
49038         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
49039         (find_paragraph_end, try_split_merged_entry): New functions.
49040         (long_options): Add option --split-merged-entry.
49041         (usage): Document option --split-merged-entry.
49042         (main): Implement option --split-merged-entry.
49043         Reported by Eric Blake.
49044
49045 2008-02-17  Bruno Haible  <bruno@clisp.org>
49046
49047         * lib/git-merge-changelog.c: Include c-strstr.h.
49048         (main): Support the "git pull --rebase" situation.
49049         * modules/git-merge-changelog (Depends-on): Add c-strstr.
49050         Reported by Eric Blake.
49051
49052 2008-02-16  Eric Blake  <ebb9@byu.net>
49053
49054         Avoid doubling \ in common case of "c-maybe" quoting style.
49055         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49056         eliding outer quotes.
49057         * lib/quotearg.h: Document this.
49058         * tests/test-quotearg.c (result_strings, inputs, results_g)
49059         (flag_results, locale_results): Test it by adding a new string to
49060         each test group.
49061         (compare_strings): Test new string.
49062
49063 2008-02-13  Eric Blake  <ebb9@byu.net>
49064
49065         Avoid trigraph quoting in default output.
49066         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49067         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49068         unless explicitly requested.
49069         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49070
49071 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49072
49073         Don't rely on signed integer overflowing to negative value.
49074         * lib/getugroups.c (getugroups): Include <limits.h>.
49075         Instead, compare against INT_MAX, and increment only if the test passes.
49076
49077 2008-02-13  Jim Meyering  <meyering@redhat.com>
49078         and Eric Blake  <ebb9@byu.net>
49079
49080         Avoid shadowing warning and compile errors on Linux.
49081         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49082         forwarding macros on Linux.
49083         (dcgettext): Define a stub, for Linux.
49084         (results_g, main): Avoid warnings.
49085
49086 2008-02-12  Eric Blake  <ebb9@byu.net>
49087
49088         Silence warning in last patch.
49089         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49090
49091         Quotearg part 4: add tests, fix c-maybe colon quoting.
49092         * lib/quotearg.h: Improve documentation.
49093         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49094         escapes when adding outer quotes.  When quoting trigraphs, use
49095         valid C notation.  When quoting NUL, omit extra characters if next
49096         character is not digit.  Alter prototype.
49097         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49098         callers.
49099         * modules/quotearg-tests: New module.
49100         * tests/test-quotearg.c: New test.
49101
49102 2008-02-07  Eric Blake  <ebb9@byu.net>
49103
49104         Quotearg part 3: add flag to control outer quote elision.
49105         * lib/quotearg.h (c_maybe_quoting_style): New style.
49106         (enum quoting_flags): Better documentation of flags.
49107         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49108         c-maybe style.
49109         (quotearg_buffer_restyled): Handle new flag to elide outer
49110         quotes.
49111
49112         Quotearg part 2: add flag that can control NUL elision.
49113         * lib/quotearg.h (set_quoting_flags): New prototype.
49114         * lib/quotearg.c (struct quoting_options): Add flag field.
49115         (set_quoting_flags): New function.
49116         (quotearg_buffer_restyled): Add flags parameter.
49117         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49118         (quotearg_n_options): Set the flag, since length cannot be
49119         returned.
49120         (quoting_options_from_style): Default flags correctly.
49121
49122         Quotearg part 1: more wrappers, restore quotearg_char state.
49123         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
49124         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
49125         (quotearg_colon_mem): New wrappers.
49126         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
49127         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
49128         functions.
49129         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
49130         (quotearg_colon_mem): New functions.
49131
49132 2008-02-11  Bruno Haible  <bruno@clisp.org>
49133
49134         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
49135         library in the current directory: it does not work with parallel make.
49136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49137
49138 2008-02-11  Bruno Haible  <bruno@clisp.org>
49139
49140         * .gitattributes: New file.
49141
49142 2008-02-11  Jim Meyering  <meyering@redhat.com>
49143
49144         useless-if-before-free: Fix reversed exit values.
49145         * build-aux/useless-if-before-free: Use correct values
49146         for EXIT_MATCH and EXIT_NO_MATCH.
49147
49148         * build-aux/useless-if-before-free: Close stdout carefully.
49149
49150 2008-02-10  Bruno Haible  <bruno@clisp.org>
49151
49152         New module 'git-merge-changelog'.
49153         * modules/git-merge-changelog: New file.
49154         * lib/git-merge-changelog.c: New file.
49155
49156 2008-02-10  Jim Meyering  <meyering@redhat.com>
49157
49158         useless-if-before-free: New option: --list (-l).
49159
49160         useless-if-before-free: Don't exit immediately upon open failure.
49161         * build-aux/useless-if-before-free: Exit 2 for errors.
49162         Upon failure to open a file, don't exit immediately.
49163         Rather, just warn and continue with any remaining files.
49164
49165 2008-02-10  Bruno Haible  <bruno@clisp.org>
49166
49167         New abstract list operation 'node_set_value'.
49168         * lib/gl_list.h (gl_list_node_set_value): New function.
49169         (struct gl_list_implementation): New field node_set_value.
49170         * lib/gl_list.c (gl_list_node_set_value): New function.
49171         * lib/gl_array_list.c (gl_array_node_set_value): New function.
49172         (gl_array_list_implementation): Update.
49173         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
49174         (gl_carray_list_implementation): Update.
49175         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
49176         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49177         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49178         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
49179         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49180         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49181         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49182         Update.
49183         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49184         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
49185         (gl_sublist_list_implementation): Update.
49186
49187 2008-02-10  Bruno Haible  <bruno@clisp.org>
49188
49189         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
49190         Needed when ELEMENT is #defined to 'some_type *'.
49191
49192 2008-02-10  Jim Meyering  <meyering@redhat.com>
49193
49194         New script and module: useless-if-before-free
49195         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
49196         * build-aux/useless-if-before-free: New file.
49197         * modules/useless-if-before-free: New file.
49198
49199         * build-aux/gitlog-to-changelog: Use committer date, not author date.
49200
49201         xstrtol_error: Fix typo.
49202         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
49203         s/exit_failure/exit_status/.
49204
49205 2008-02-09  Jim Meyering  <meyering@redhat.com>
49206
49207         New script and module: gitlog-to-changelog
49208         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
49209         * modules/gitlog-to-changelog: New file.
49210         * build-aux/gitlog-to-changelog: New file.
49211
49212 2008-02-08  Jim Meyering  <meyering@redhat.com>
49213
49214         Avoid two "parameter unused" warnings.
49215         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
49216         Mark "st" as used.
49217
49218         Use "git COMMAND", not "git-COMMAND".
49219         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
49220         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
49221         * build-aux/git-version-gen: Use "git status", not "git-status".
49222
49223 2008-02-07  Bruno Haible  <bruno@clisp.org>
49224
49225         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
49226         Avoids a crash on Windows Vista.
49227         Reported by Adam Strzelecki <ono@java.pl> via
49228         Simon Josefsson <simon@josefsson.org>.
49229
49230 2008-02-06  Bruno Haible  <bruno@clisp.org>
49231
49232         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
49233         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
49234         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
49235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
49236         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49238         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
49239         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
49240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49241         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49242         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49243         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49244         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49246         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49247         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
49248         left-adjust flag.
49249         * tests/test-snprintf-posix.h (test_function): Likewise.
49250         * tests/test-sprintf-posix.h (test_function): Likewise.
49251         * tests/test-vasprintf-posix.c (test_function): Likewise.
49252         * doc/posix-functions/fprintf.texi: Update.
49253         * doc/posix-functions/printf.texi: Update.
49254         * doc/posix-functions/snprintf.texi: Update.
49255         * doc/posix-functions/sprintf.texi: Update.
49256         * doc/posix-functions/vfprintf.texi: Update.
49257         * doc/posix-functions/vprintf.texi: Update.
49258         * doc/posix-functions/vsnprintf.texi: Update.
49259         * doc/posix-functions/vsprintf.texi: Update.
49260         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49261
49262 2008-02-06  Bruno Haible  <bruno@clisp.org>
49263
49264         Fix bug introduced on 2008-01-26.
49265         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
49266
49267 2008-02-06  Bruno Haible  <bruno@clisp.org>
49268
49269         Fix bug introduced on 2007-06-10.
49270         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
49271         !NEED_PRINTF_FLAG_ZERO.
49272
49273 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
49274
49275         getloadavg: use libperfstat on AIX5
49276         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
49277
49278 2008-02-03  Bruno Haible  <bruno@clisp.org>
49279
49280         * lib/diffseq.h: Add comments about required #includes.
49281         Reported by Michael Biggs <gnulib@doubleplum.net>.
49282
49283 2008-02-01  Bruno Haible  <bruno@clisp.org>
49284
49285         * users.txt: Add gnuit.
49286
49287 2008-01-31  Bruno Haible  <bruno@clisp.org>
49288
49289         * lib/md4.c (set_uint32): Mark as inline.
49290         * lib/md5.c (set_uint32): Likewise.
49291         * lib/sha1.c (set_uint32): Likewise.
49292         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
49293         * m4/md5.m4 (gl_MD5): Likewise.
49294         * m4/sha1.m4 (gl_SHA1): Likewise.
49295
49296 2008-01-31  Jim Meyering  <meyering@redhat.com>
49297
49298         Use "sizeof VAR", rather than a literal "4".
49299         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
49300         * lib/md4.c (md4_read_ctx): Likewise.
49301         * lib/sha1.c (sha1_read_ctx): Likewise.
49302
49303 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49304
49305         * tests/test-sha1.c: New file, based on test-md5.c.
49306
49307         * modules/crypto/sha1-tests: New file.
49308
49309 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49310
49311         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
49312
49313 2008-01-31  Jim Meyering  <meyering@redhat.com>
49314
49315         Prefer "sizeof v" over the equivalent "4".
49316         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
49317         * lib/md5.c (set_uint32): Likewise.
49318         * lib/sha1.c (set_uint32): Likewise.
49319
49320 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49321
49322         * lib/sha1.c (set_uint32): Mark function as static.
49323
49324 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49325
49326         md2: clarify comments to say that alignment is not required.
49327         * lib/md2.h: Remove warning about alignment in comment.
49328         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
49329         never been required.
49330
49331 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49332
49333         md4: adapt alignment constraint fix from sha1.
49334         * lib/md4.c (set_uint32): New function, from sha1.c
49335         (md4_read_ctx): Use it.
49336         (md4_finish_ctx): Doc fix.
49337         * lib/md4.h: Doc fix.
49338
49339 2008-01-31  Simon Josefsson  <simon@josefsson.org>
49340
49341         md5: adapt alignment constraint fix from sha1.
49342         * lib/md5.c (set_uint32): New function, from sha1.c
49343         (md5_read_ctx): Use it.
49344         (md5_finish_ctx): Doc fix.
49345         * lib/md5.h: Doc fix.
49346
49347 2008-01-30  Peter Palfrader  <weasel@debian.org>
49348
49349         sha1: remove the result buffer alignment constraint
49350         * lib/sha1.c (set_uint32): New function.
49351         (sha1_read_ctx): Rewrite to remove the result buffer alignment
49352         constraint.
49353         (sha1_finish_ctx): Remove comment warning about alignment constraint.
49354         * lib/sha1.h: Likewise.
49355
49356 2008-01-30  Andreas Schwab  <schwab@suse.de>
49357             Bruno Haible  <bruno@clisp.org>
49358
49359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
49360         correct definition of LDBL_MIN_EXP.
49361
49362 2008-01-30  Karl Berry  <karl@gnu.org>
49363
49364         * config/srclist-update: try to preserve x bit on updates.
49365         * config/srclistvars.sh: update for karl.
49366
49367 2008-01-29  Jim Meyering  <meyering@redhat.com>
49368
49369         vasnprintf.c: Avoid warning about unused label
49370         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
49371         "overflow" label definition and associated code with the
49372         same cpp condition that guards the sole use of that label.
49373
49374 2008-01-26  Bruno Haible  <bruno@clisp.org>
49375
49376         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
49377         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
49378         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
49379         * lib/isnanl-nolibm.h (isnanl): Likewise.
49380         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49381
49382 2008-01-26  Bruno Haible  <bruno@clisp.org>
49383
49384         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
49385         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
49386
49387 2008-01-26  Bruno Haible  <bruno@clisp.org>
49388
49389         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
49390         GCC >= 4.0 built-in.
49391         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
49392
49393 2008-01-26  Bruno Haible  <bruno@clisp.org>
49394
49395         Rename isnan, applicable to 'double' only, to isnand.
49396         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
49397         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
49398         (configure.ac): Update.
49399         (Include): Replace "isnan.h" with "isnand.h".
49400         * m4/isnand.m4: Renamed from m4/isnan.m4.
49401         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
49402         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
49403         instead of isnan.c.
49404         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
49405         instead of HAVE_ISNAN_IN_LIBC.
49406         (isnand): Renamed from isnan.
49407         * lib/isnand.c: New file.
49408         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
49409         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
49410         (Makefile.am): Update.
49411         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
49412         Include isnand.h instead of isnan.h.
49413         (main): Test isnand instead of isnan.
49414         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
49415         isnan-nolibm.
49416         * modules/frexp (Depends-on): Likewise.
49417         * modules/frexp-tests (Depends-on): Likewise.
49418         * modules/frexp-nolibm (Depends-on): Likewise.
49419         * modules/frexp-nolibm-tests (Depends-on): Likewise.
49420         * modules/isfinite (Depends-on): Likewise.
49421         * modules/round-tests (Depends-on): Likewise.
49422         * modules/signbit (Depends-on): Likewise.
49423         * modules/signbit-tests (Depends-on): Likewise.
49424         * modules/snprintf-posix (Depends-on): Likewise.
49425         * modules/sprintf-posix (Depends-on): Likewise.
49426         * modules/trunc-tests (Depends-on): Likewise.
49427         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49428         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49429         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49430         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49431         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49432         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49433         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49434         * modules/vasnprintf-posix (Depends-on): Likewise.
49435         * modules/vasprintf-posix (Depends-on): Likewise.
49436         * modules/vfprintf-posix (Depends-on): Likewise.
49437         * modules/vsnprintf-posix (Depends-on): Likewise.
49438         * modules/vsprintf-posix (Depends-on): Likewise.
49439         * lib/frexp.c: Include isnand.h instead of isnan.h.
49440         (ISNAN): Set to isnand instead of isnan.
49441         * lib/isfinite.c: Include isnand.h instead of isnan.h.
49442         (gl_isfinited): Use isnand instead of isnan.
49443         * lib/signbitd.c: Include isnand.h instead of isnan.h.
49444         (gl_signbitd): Use isnand instead of isnan.
49445         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
49446         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
49447         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
49448         (main): Use isnand instead of isnan.
49449         * tests/test-round1.c: Include isnand.h.
49450         (main): Use isnand instead of isnan.
49451         * tests/test-round2.c: Include isnand.h instead of isnan.h.
49452         (ISNAN): Set to isnand instead of isnan.
49453         * tests/test-trunc1.c: Include isnand.h.
49454         (main): Use isnand instead of isnan.
49455         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
49456         (equal): Use isnand instead of isnan.
49457         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
49458         isnand-nolibm.
49459         * NEWS: Mention the change.
49460
49461 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
49462             Bruno Haible  <bruno@clisp.org>
49463
49464         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
49465         the GCC builtins for signbits are present and set
49466         REPLACE_SIGNBIT_USING_GCC if so.
49467         * lib/math.in.h (signbit): Define using GCC builtins if
49468         REPLACE_SIGNBIT_USING_GCC is set.
49469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
49470         REPLACE_SIGNBIT_USING_GCC.
49471         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
49472
49473 2008-01-25  Jim Meyering  <meyering@redhat.com>
49474
49475         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
49476         * lib/poll.c: Include <config.h>, not "config.h".
49477         * tests/test-getaddrinfo.c: Likewise.
49478
49479 2008-01-25  Simon Josefsson  <simon@josefsson.org>
49480
49481         * modules/sockets-tests: New file.
49482
49483 2008-01-24  Simon Josefsson  <simon@josefsson.org>
49484
49485         * modules/sockets: New module, can be used to call WSA_Startup and
49486         WSA_Cleanup when needed.
49487
49488         * lib/sockets.h, lib/sockets.c: New files.
49489
49490         * m4/sockets.m4: New file.
49491
49492         * tests/test-sockets.c: New file.
49493
49494 2008-01-19  Bruno Haible  <bruno@clisp.org>
49495
49496         * doc/posix-headers: Renamed from doc/headers.
49497         * doc/posix-functions: Renamed from doc/functions.
49498         * doc/gnulib.texi: Update.
49499
49500 2008-01-19  Bruno Haible  <bruno@clisp.org>
49501
49502         * doc/glibc-functions/strcasestr.texi: Include contents of
49503         doc/functions/strcasestr.texi, fixing the list of platforms.
49504         * doc/functions/strcasestr.texi: Remove file.
49505
49506 2008-01-19  Bruno Haible  <bruno@clisp.org>
49507
49508         * doc/glibc-functions/memmem.texi: Include contents of
49509         doc/functions/memmem.texi.
49510         * doc/functions/memmem.texi: Remove file.
49511
49512 2008-01-18  Bruno Haible  <bruno@clisp.org>
49513
49514         * doc/glibc-functions/*.texi: New files.
49515         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
49516         to use the new files.
49517
49518 2008-01-17  Bruno Haible  <bruno@clisp.org>
49519
49520         * tests/test-gethostname.c (main): Fix printf statement.
49521
49522 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49523
49524         * modules/gethostname-tests: New file.
49525
49526         * tests/test-gethostname.c: New file.
49527
49528 2008-01-17  Simon Josefsson  <simon@josefsson.org>
49529
49530         * lib/gethostname.c: Include string.h unconditionally, strncpy is
49531         used by the UNAME case.  Reported by Bruno Haible
49532         <bruno@clisp.org>.
49533
49534 2008-01-17  Eric Blake  <ebb9@byu.net>
49535
49536         Convert c-strcasestr to be more efficient.
49537         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
49538         (Depends-on): Add c-strcase, remove malloca, strnlen.
49539         * tests/test-c-strcasestr.c (main): Enhance test.
49540         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
49541
49542 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
49543
49544         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
49545         Use it in creating po/Makevars.
49546
49547 2008-01-15  Simon Josefsson  <simon@josefsson.org>
49548
49549         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
49550         Applications that requires it should initialize libgcrypt
49551         manually.
49552
49553 2008-01-16  Simon Josefsson  <simon@josefsson.org>
49554
49555         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49556
49557 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49558
49559         Fix problem with getdate on mingw32 reported by Simon Josefsson
49560         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49561         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49562         tzname", when deciding whether to declare tzname.
49563         * lib/strftime.c (tzname): Likewise.
49564
49565 2008-01-15  Bruno Haible  <bruno@clisp.org>
49566
49567         Work around a MacOS X 10.5 bug in frexpl().
49568         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49569         * doc/functions/frexpl.texi: Document the bug.
49570         Reported by Elias Pipping <pipping@gentoo.org>.
49571
49572 2008-01-14  Eric Blake  <ebb9@byu.net>
49573
49574         Touch up previous patch.
49575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49576         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49577
49578         Convert strcasestr module to use Two-Way algorithm.
49579         * modules/strcasestr-simple: New module, based on the old
49580         strcasestr, but with Two-Way rather than KMP.
49581         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49582         * lib/string.in.h (rpl_strcasestr): Declare.
49583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49584         performance.
49585         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49586         * modules/string (Makefile.am): Support strcasestr.
49587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49588         * modules/strcasestr-tests (Depends-on): Check for alarm.
49589         * tests/test-strcasestr.c: Augment test.
49590         * lib/str-two-way.h: Clean up stray macro.
49591         * NEWS: Document new module.
49592         * MODULES.html.sh (string handling): Likewise.
49593         * doc/functions/strcasestr.texi: New file.
49594         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49595         here, since it is not a POSIX function.
49596
49597 2008-01-14  Colin Watson  <cjwatson@debian.org>
49598             Bruno Haible  <bruno@clisp.org>
49599
49600         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49601         works fine; if not, set REPLACE_STRSIGNAL.
49602         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49604         REPLACE_STRSIGNAL.
49605         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49606         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49607         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49608
49609 2008-01-14  Bruno Haible  <bruno@clisp.org>
49610
49611         * modules/strsignal (Include): Change to <string.h>.
49612
49613 2008-01-14  Colin Watson  <cjwatson@debian.org>
49614
49615         * modules/argp (Notice): Add a notice recommending to change
49616         XGETTEXT_OPTIONS.
49617         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49618
49619 2008-01-13  Colin Watson  <cjwatson@debian.org>
49620
49621         * modules/strsignal-tests: New file.
49622         * tests/test-strsignal.c: New file.
49623
49624         * lib/strsignal.c: New file, from glibc with modifications.
49625         * lib/siglist.h: New file, from glibc with modifications.
49626         * lib/string.in.h (strsignal): New declaration.
49627         * m4/strsignal.m4: New file.
49628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49629         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49630         * modules/strsignal: New file.
49631         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49632         HAVE_DECL_STRSIGNAL.
49633
49634 2008-01-13  Bruno Haible  <bruno@clisp.org>
49635
49636         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49637         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49638         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49639         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49640
49641 2008-01-13  Bruno Haible  <bruno@clisp.org>
49642
49643         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49644         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49645         * lib/argp.h (__attribute__): Likewise.
49646         * lib/c-stack.c (__attribute__): Likewise.
49647         * lib/error.h (__attribute__): Likewise.
49648         * lib/fts.c (__attribute__): Likewise.
49649         * lib/openat.h (__attribute__): Likewise.
49650         * lib/stdio.in.h (__attribute__): Likewise.
49651         * lib/string.in.h (__attribute__): Likewise.
49652         * lib/utimens.c (__attribute__): Likewise.
49653         * lib/vasnprintf.h (__attribute__): Likewise.
49654         * lib/xalloc.h (__attribute__): Likewise.
49655         * lib/xprintf.h (__attribute__): Likewise.
49656         * lib/xstrtol.h (__attribute__): Likewise.
49657         * lib/xvasprintf.h (__attribute__): Likewise.
49658
49659 2008-01-12  Bruno Haible  <bruno@clisp.org>
49660
49661         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49662         * doc/glibc-headers/a.out.texi: New file.
49663         * doc/glibc-headers/aliases.texi: New file.
49664         * doc/glibc-headers/alloca.texi: New file.
49665         * doc/glibc-headers/ar.texi: New file.
49666         * doc/glibc-headers/argp.texi: New file.
49667         * doc/glibc-headers/argz.texi: New file.
49668         * doc/glibc-headers/byteswap.texi: New file.
49669         * doc/glibc-headers/crypt.texi: New file.
49670         * doc/glibc-headers/endian.texi: New file.
49671         * doc/glibc-headers/envz.texi: New file.
49672         * doc/glibc-headers/err.texi: New file.
49673         * doc/glibc-headers/error.texi: New file.
49674         * doc/glibc-headers/execinfo.texi: New file.
49675         * doc/glibc-headers/fpu_control.texi: New file.
49676         * doc/glibc-headers/fstab.texi: New file.
49677         * doc/glibc-headers/fts.texi: New file.
49678         * doc/glibc-headers/getopt.texi: New file.
49679         * doc/glibc-headers/ieee754.texi: New file.
49680         * doc/glibc-headers/ifaddrs.texi: New file.
49681         * doc/glibc-headers/libintl.texi: New file.
49682         * doc/glibc-headers/mcheck.texi: New file.
49683         * doc/glibc-headers/mntent.texi: New file.
49684         * doc/glibc-headers/obstack.texi: New file.
49685         * doc/glibc-headers/paths.texi: New file.
49686         * doc/glibc-headers/printf.texi: New file.
49687         * doc/glibc-headers/pty.texi: New file.
49688         * doc/glibc-headers/resolv.texi: New file.
49689         * doc/glibc-headers/shadow.texi: New file.
49690         * doc/glibc-headers/sysexits.texi: New file.
49691         * doc/glibc-headers/ttyent.texi: New file.
49692
49693 2008-01-12  Jim Meyering  <meyering@redhat.com>
49694
49695         announce-gen: emit Gnulib's git-based version string.
49696         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49697         New option --gnulib-version=V, where V is expected to be
49698         the output of running git describe in the gnulib directory.
49699         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49700         not useful, and plan to stop publishing an xdelta file with each
49701         coreutils release.
49702
49703         * build-aux/announce-gen: Also check for lzma-compressed files.
49704
49705 2008-01-11  Bruno Haible  <bruno@clisp.org>
49706
49707         * tests/test-memmem.c (main): Increase maximum allowed time.
49708         * tests/test-strstr.c (main): Likewise.
49709
49710 2008-01-11  Bruno Haible  <bruno@clisp.org>
49711
49712         * doc/functions/memmem.texi: Add more precisions about platforms.
49713         * doc/functions/strstr.texi: Likewise.
49714
49715 2008-01-10  Eric Blake  <ebb9@byu.net>
49716
49717         * m4/strstr.m4: Delete cruft from copy-n-paste.
49718         Reported by Bruno Haible.
49719
49720 2008-01-10  Bruno Haible  <bruno@clisp.org>
49721
49722         Make c-strstr rely on strstr.
49723         * lib/c-strstr.c: Don't include str-kmp.h.
49724         (c_strstr): Define in terms of strstr.
49725         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49726         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49727
49728 2008-01-10  Bruno Haible  <bruno@clisp.org>
49729
49730         * doc/gnulib.texi (String Functions in C Locale): New section.
49731         * doc/c-ctype.texi: New file.
49732         * doc/c-strcase.texi: New file.
49733         * doc/c-strcaseeq.texi: New file.
49734         * doc/c-strcasestr.texi: New file.
49735         * doc/c-strstr.texi: New file.
49736         * doc/c-strtod.texi: New file.
49737         * doc/c-strtold.texi: New file.
49738
49739 2008-01-10  Eric Blake  <ebb9@byu.net>
49740
49741         * lib/relocatable.h: Fix a comment.
49742
49743 2008-01-10  Eric Blake  <ebb9@byu.net>
49744
49745         Share two-way algorithm.
49746         * lib/str-two-way.h: New file, merged from...
49747         * lib/memmem.c: ...here...
49748         * lib/strstr.c: ...and here.
49749         * modules/memmem (Files): Use it.
49750         * modules/strstr (Files): Likewise.
49751
49752         Avoid quadratic strstr implementations.
49753         * lib/strstr.c: New file.
49754         * m4/strstr.m4: Likewise.
49755         * modules/strstr: Likewise.
49756         * modules/strstr-tests: Likewise.
49757         * tests/test-strstr.c: Likewise.
49758         * lib/string.in.h (rpl_strstr): Declare.
49759         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49761         * modules/string (Makefile.am): Likewise.
49762         * MODULES.html.sh (string handling): Mention new module.
49763         * doc/functions/strstr.texi (strstr): Document the bug.
49764
49765 2008-01-10  Bruno Haible  <bruno@clisp.org>
49766
49767         * lib/relocatable.h (relocate): State whether result is freshly
49768         allocated or not.
49769         * lib/relocatable.c (relocate): Return a freshly allocated string
49770         instead of a pointer to a privately held string.
49771         Reported by Sylvain Beucler <beuc@gnu.org>.
49772
49773 2008-01-10  Colin Watson  <cjwatson@debian.org>
49774
49775         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49776         s/S_ISNLK/S_ISLNK/.
49777
49778 2008-01-09  Bruno Haible  <bruno@clisp.org>
49779
49780         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49781         and other files.
49782         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49783         if it's only a guess.
49784         * modules/memmem: Simplify by depending on memmem-simple.
49785
49786 2008-01-09  Bruno Haible  <bruno@clisp.org>
49787
49788         Work around OpenBSD 4.0 tdelete() bug.
49789         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49790         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49791         macros and don't redefine the enum values.
49792         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49793         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49794         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49795
49796 2008-01-09  Bruno Haible  <bruno@clisp.org>
49797
49798         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49799         (main): Don't perform the tests if setlocale did not install a UTF-8
49800         locale. Needed on OpenBSD 4.0.
49801         * modules/wcwidth-tests (Depends-on): Add localcharset.
49802
49803 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49806         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49807         * NEWS: announce this.
49808         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49809
49810 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49811         and Eric Blake  <ebb9@byu.net>
49812
49813         Add memmem-simple module.
49814         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49815         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49816         * modules/memmem-simple: New file.
49817         * modules/memmem (Description): Tweak.
49818         * MODULES.html.sh (string handling): Mention new module.
49819         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49820         addressed by memmem-simple.
49821         * NEWS: Document the difference.
49822
49823 2008-01-09  Eric Blake  <ebb9@byu.net>
49824
49825         Give gcc some memmem optimization hints.
49826         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49827         (strcasestr): Declare as pure.
49828         * modules/memmem (Maintainer): Claim my implementation.
49829
49830 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49831
49832         Support AIX 6.1 and higher.
49833         * build-aux/config.libpath: Likewise.
49834         * build-aux/config.rpath: Likewise.
49835
49836 2008-01-08  Jim Meyering  <meyering@redhat.com>
49837             Bruno Haible  <bruno@clisp.org>
49838
49839         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49840         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49841         Reported by Peter Fales in
49842         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49843
49844 2008-01-08  Bruno Haible  <bruno@clisp.org>
49845
49846         * modules/unictype/category-of (Depends-on): Add
49847         unictype/category-none.
49848         * modules/unictype/category-and-tests (Depends-on): Add
49849         unictype/category-{L,N,Lu,Nd}.
49850         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49851         * modules/unictype/category-or-tests (Depends-on): Add
49852         unictype/category-{L,N}.
49853         * modules/unictype/category-name-tests (Depends-on): Add
49854         unictype/category-{Z,Nl}.
49855         Reported by Simon Josefsson.
49856
49857 2008-01-08  Bruno Haible  <bruno@clisp.org>
49858
49859         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49860         convention better.
49861         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49862         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49863         Reported by Peter Miller <millerp@canb.auug.org.au>.
49864
49865 2008-01-08  Eric Blake  <ebb9@byu.net>
49866
49867         Rewrite memmem to guarantee linear complexity without malloc.
49868         * lib/memmem.c (memmem): Use Two-Way rather than
49869         Knuth-Morris-Pratt, to allow O(1) space usage.
49870         (critical_factorization, two_way_short_needle)
49871         (two_way_long_needle): New functions.
49872         (knuth_morris_pratt): Delete.
49873         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49874         Add stdint.
49875         * tests/test-memmem.c (main): Add tests for periodic needle and
49876         sublinear performance.
49877         * doc/functions/memmem.texi (memmem): Document other deficiencies
49878         in cygwin and older glibc.
49879
49880 2008-01-08  Bruno Haible  <bruno@clisp.org>
49881
49882         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49883         augmentation.
49884
49885 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49886
49887         Add a configure time option: --disable-acl.
49888         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49889         AC_ARG_ENABLE(acl).
49890
49891 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49892
49893         * tests/test-localename.c: Don't include obsolete "setenv.h".
49894
49895         * modules/localename-tests (Depends-on): Need unsetenv.
49896
49897 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49898
49899         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49900
49901 2008-01-06  Colin Watson  <cjwatson@debian.org>
49902
49903         * users.txt: Add man-db.
49904
49905 2008-01-07  Bruno Haible  <bruno@clisp.org>
49906
49907         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49908         previous section name.
49909
49910 2008-01-07  Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/progname.c (set_program_name): Don't strip off a leading
49913         "lt-" prefix outside a .libs directory.
49914         Suggested by Paul Eggert.
49915
49916 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49917             Bruno Haible  <bruno@clisp.org>
49918
49919         Improve memory cleanup in 'relocatable' module.
49920         * lib/relocatable.h (compute_curr_prefix): Change return type to
49921         'char *'.
49922         * lib/relocatable.c (compute_curr_prefix): Change return type to
49923         'char *'. Free curr_installdir after use.
49924         (relocate): Free curr_prefix_better after use.
49925         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49926
49927 2008-01-01  Bruno Haible  <bruno@clisp.org>
49928
49929         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49930         failure on older glibc systems.
49931         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49932
49933 2008-01-05  Eric Blake  <ebb9@byu.net>
49934
49935         Avoid quadratic system memmem.
49936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49937         Reported by Ralf Wildenhues.
49938
49939         Fix memmem test for mingw.
49940         * modules/memmem-tests (configure.ac): Check for alarm.
49941         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49942         it.
49943         * doc/functions/memmem.texi: New file.
49944         * doc/gnulib.texi (Function Substitutes): Add memmem.
49945         Reported by Bruno Haible.
49946
49947 2008-01-04  Bruno Haible  <bruno@clisp.org>
49948
49949         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49950         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49951         gl_HEADER_STRING_H_DEFAULTS.
49952
49953 2008-01-04  Eric Blake  <ebb9@byu.net>
49954
49955         Shorten duration of memmem test.
49956         * tests/test-memmem.c (main): Use alarm to declare failure if test
49957         is taking too long.
49958         Reported by Ralf Wildenhues.
49959
49960 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49961
49962         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49963         string, needed by strerror.
49964
49965 2008-01-03  Colin Watson  <cjwatson@debian.org>
49966             Bruno Haible  <bruno@clisp.org>
49967
49968         * doc/gnulib-tool.texi (Localization): New section.
49969
49970 2008-01-02  Bruno Haible  <bruno@clisp.org>
49971
49972         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49973         variables to 'unsigned char *' type.
49974         Reported by Paul Eggert.
49975
49976 2008-01-02  Jim Meyering  <jim@meyering.net>
49977
49978         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49979
49980 2007-12-31  Jim Meyering  <jim@meyering.net>
49981
49982         Avoid use of private FTS type name.
49983         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49984
49985 2007-12-30  Karl Berry  <karl@gnu.org>
49986
49987         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49988         work around defect in Texinfo and/or the standalone Info browser.
49989
49990 2007-12-30  Bruno Haible  <bruno@clisp.org>
49991
49992         Unify 5 copies of the KMP code.
49993         * lib/str-kmp.h: New file.
49994         * lib/c-strcasestr.c: Include str-kmp.h.
49995         (knuth_morris_pratt): Remove function.
49996         (c_strcasestr): Update.
49997         * lib/c-strstr.c: Include str-kmp.h.
49998         (knuth_morris_pratt): Remove function.
49999         (c_strcasestr): Update.
50000         * lib/mbscasestr.c: Include str-kmp.h.
50001         (knuth_morris_pratt_unibyte): Remove function.
50002         * lib/mbsstr.c: Include str-kmp.h.
50003         (knuth_morris_pratt_unibyte): Remove function.
50004         * lib/strcasestr.c: Include str-kmp.h.
50005         (knuth_morris_pratt): Remove function.
50006         (strcasestr): Update.
50007         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50008         * modules/c-strstr (Files): Likewise.
50009         * modules/mbscasestr (Files): Likewise.
50010         * modules/mbsstr (Files): Likewise.
50011         * modules/strcasestr (Files): Likewise.
50012         Suggested by Paul Eggert.
50013
50014 2007-12-30  Bruno Haible  <bruno@clisp.org>
50015
50016         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50017         defined.
50018
50019 2007-12-30  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/xmalloca.h: Include xalloc.h.
50022         (xnmalloca): New macro.
50023
50024 2007-12-30  Bruno Haible  <bruno@clisp.org>
50025
50026         * lib/malloca.h (nmalloca): New macro.
50027         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
50028         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
50029         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
50030         knuth_morris_pratt_multibyte): Likewise.
50031         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
50032         knuth_morris_pratt_multibyte): Likewise.
50033         * lib/memmem.c (knuth_morris_pratt): Likewise.
50034         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
50035
50036 2007-12-25  Bruno Haible  <bruno@clisp.org>
50037
50038         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
50039         * lib/glob.c: Don't include openat.h.
50040         (link_exists2_p): Add back the code that deals with the
50041         !GLOB_ALTDIRFUNC case.
50042         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
50043         let it do the filename concatenation.
50044         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
50045         * modules/glob (Depends-on): Remove openat.
50046
50047 2007-12-31  Bruno Haible  <bruno@clisp.org>
50048
50049         * modules/dirfd (License): Change to LGPLv2+.
50050         Approved by Jim Meyering.
50051
50052 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50053
50054         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50055         when multiplying M by sizeof (size_t).
50056
50057 2007-12-10  Martin Lambers  <marlam@marlam.de>
50058
50059         Override getpagesize on mingw.
50060         * lib/getpagesize.c: New file.
50061         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50062         * modules/getpagesize (Files): Add lib/getpagesize.c.
50063         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50065         REPLACE_GETPAGESIZE.
50066         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50067
50068 2007-12-25  Bruno Haible  <bruno@clisp.org>
50069
50070         * modules/localcharset (Notice): New field.
50071         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50072         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50073
50074 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50075             Bruno Haible  <bruno@clisp.org>
50076
50077         Avoid using the syntax symbol() in formatted documentation.
50078         * MODULES.html.sh (func_module): When replacing symbol() with a
50079         hyperlink, remove the parentheses. Show an error if some remain.
50080         Recognize and render the '...' syntax.
50081         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50082         Rework. Add paragraph about GCC's inlining.
50083         * doc/alloca.texi: Likewise.
50084         * doc/error.texi: Remove parentheses from symbol reference.
50085         * doc/gnulib-intro.texi: Likewise.
50086         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50087         * modules/fnmatch (Description): Reword to say "the ... function".
50088         * modules/full-read (Description): Likewise.
50089         * modules/full-write (Description): Likewise.
50090         * modules/safe-read (Description): Likewise.
50091         * modules/safe-write (Description): Likewise.
50092         * modules/strchrnul (Description): Likewise.
50093         * modules/trim (Description): Likewise.
50094         * modules/error (Description): Remove parentheses from symbol
50095         references.
50096         * modules/verror (Description): Likewise.
50097         Reported by Karl Berry.
50098
50099 2007-12-25  Bruno Haible  <bruno@clisp.org>
50100
50101         Fixup after 2007-10-16 commit.
50102         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50103
50104 2007-12-24  Bruno Haible  <bruno@clisp.org>
50105
50106         Make --enable-relocatable work with DESTDIR.
50107         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50108         to compute installdir from destprog.
50109         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50110         also set the RELOC_DESTDIR variable.
50111         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50112
50113 2007-12-24  Bruno Haible  <bruno@clisp.org>
50114
50115         Fix link error due to xalloc_die().
50116         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50117         of xreadlink.
50118         * lib/relocwrapper.c: Update comments.
50119         * build-aux/install-reloc: Remove xreadlink.c from file list.
50120         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50121         xreadlink.c.
50122         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50123
50124 2007-12-24  Bruno Haible  <bruno@clisp.org>
50125
50126         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
50127         * lib/setenv.h: Remove file.
50128         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
50129         lib/setenv.h.
50130         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
50131         (Depends-on): Add stdlib.
50132         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
50133         gl_FUNC_UNSETENV.
50134         (Include): Replace setenv.h with <stdlib.h>.
50135         * modules/unsetenv: New file.
50136         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
50137         * lib/unsetenv.c: Include <stdlib.h> first.
50138         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
50139         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
50140         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
50141         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
50142         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
50143         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
50145         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
50146         * doc/functions/unsetenv.texi: Update.
50147         * modules/xsetenv (Depends-on): Add unsetenv.
50148         * modules/getdate (Depends-on): Likewise.
50149         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
50150         * lib/xsetenv.c: Don't include setenv.h.
50151         * lib/getdate.y: Likewise.
50152         * lib/relocwrapper.c: Likewise.
50153         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
50154         (Depends-on): Add stdlib.
50155         * NEWS: Mention the changes.
50156         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50157
50158 2007-12-23  Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/memmem.c (memmem): Use lowercase variable names. Tab
50161         indentation.
50162
50163 2007-12-23  Bruno Haible  <bruno@clisp.org>
50164
50165         * lib/c-strcasestr.c: Add more comments.
50166         * lib/c-strstr.c: Likewise.
50167         * lib/mbscasestr.c: Likewise.
50168         * lib/mbsstr.c: Likewise.
50169         * lib/strcasestr.c: Likewise.
50170         * lib/memmem.c: Likewise.
50171
50172 2007-12-23  Bruno Haible  <bruno@clisp.org>
50173
50174         * tests/test-memmem.c: Include <string.h> first.
50175
50176 2007-12-22  Bruno Haible  <bruno@clisp.org>
50177
50178         * gnulib-tool (func_create_testdir): Change $auxdir while generating
50179         the contents of $testsbase.
50180         Reported by Ralf Wildenhues.
50181
50182 2007-12-22  Bruno Haible  <bruno@clisp.org>
50183
50184         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
50185         two variables local_ldadd_before, local_ldadd_last.
50186
50187 2007-12-20  Eric Blake  <ebb9@byu.net>
50188
50189         Work around circular library issue when cross-compiling.
50190         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
50191         that progname.o does not need to pull in rpl_memcmp.
50192
50193 2007-12-19  Eric Blake  <ebb9@byu.net>
50194
50195         Fix memmem to avoid O(n^2) worst-case complexity.
50196         * lib/memmem.c (knuth_morris_pratt): New function.
50197         (memmem): Use it if first few naive iterations fail.
50198         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
50199         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
50200         * modules/memchr (License): Likewise.
50201         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
50202         malloca.
50203         * tests/test-memmem.c: Rewrite, borrowing ideas from
50204         test-mbsstr1.c; the old version wouldn't even compile!
50205         * modules/memmem-tests: New file.
50206         * lib/string.in.h (rpl_memmem): Add declaration.
50207         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
50208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
50209         REPLACE_MEMMEM.
50210
50211 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
50212
50213         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
50214         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
50215         before any system include files, and undef after them all.  This
50216         should fix a problem on VMS reported by John E. Malmberg in
50217         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
50218
50219 2007-12-17  Eric Blake  <ebb9@byu.net>
50220
50221         Revert addition of verify, for BSD/OS.
50222         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
50223         can't handle large files, for the sake of obsolete platforms.
50224         * modules/fseeko (Depends-on): Remove verify.
50225         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
50226         * doc/functions/ftello.texi (ftello): Likewise.
50227         * doc/functions/fgetpos.texi (fgetpos): Likewise.
50228         Reported by Larry Jones.
50229
50230 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
50231
50232         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
50233         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
50234
50235 2007-12-17  Jim Meyering  <meyering@redhat.com>
50236
50237         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
50238         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
50239         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
50240         * modules/getcwd (Depends-on): Add openat.
50241         Reported by Petr Salinger.
50242
50243 2007-12-17  Bruno Haible  <bruno@clisp.org>
50244
50245         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
50246         avoid a segmentation fault of the configure test on x86_64 systems.
50247
50248 2007-12-15  Jim Meyering  <meyering@redhat.com>
50249
50250         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
50251
50252 2007-12-13  Eric Blake  <ebb9@byu.net>
50253
50254         Another fseek test.
50255         * tests/test-fseek.c (main): Also test ungetc handling.
50256         * tests/test-fseeko.c (main): Likewise.
50257         * modules/fseeko (Depends-on): Add verify.
50258         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
50259         large.
50260         Reported by Larry Jones.
50261
50262         Fix fseeko on mingw.
50263         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
50264         seek.
50265
50266         Beef up fseek tests.
50267         * tests/test-fseek.c (main): Also test eof handling.
50268         * tests/test-fseeko.c (main): Likewise.
50269         Reported by Larry Jones.
50270
50271 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
50272
50273         Fix fseeko on BSD-based platforms.
50274         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
50275         successful seek.
50276
50277 2007-12-12  Eric Blake  <ebb9@byu.net>
50278
50279         Allow circular dependency of separate libtests.a
50280         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
50281         when use_libtests.
50282
50283 2007-12-11  Eric Blake  <ebb9@byu.net>
50284
50285         Fix bug with -0.0L in previous patch.
50286         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
50287         * tests/test-isnan.c (main): Also test on zeroes.
50288         * tests/test-isnanf.c (main): Likewise.
50289         * tests/test-isnanl.h (main): Likewise.
50290
50291         Detect pseudo-denormals on x86 even when cross-compiling.
50292         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
50293         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
50294         invalid bit patterns that happen to satisfy ==.
50295
50296         Avoid link failures with separate libtests.a.
50297         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
50298         last, to satisfy circular dependencies.
50299
50300 2007-12-11  Eric Blake  <ebb9@byu.net>
50301         and Bruno Haible  <bruno@clisp.org>
50302
50303         Fix OpenBSD 4.0 <float.h> handling of long double.
50304         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
50305         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
50306         * doc/headers/float.texi (float.h): Document OpenBSD bug.
50307
50308 2007-12-11  Jim Meyering  <meyering@redhat.com>
50309
50310         * users.txt: Add libvirt.
50311
50312         Support versions of autoconf prior to 2.59c.
50313         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
50314         if it is not already defined.
50315
50316 2007-12-09  Bruno Haible  <bruno@clisp.org>
50317
50318         Let 'gnulib-tool --import' collect sources needed for the tests in
50319         tests/ rather than in lib/.
50320         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
50321         argument. If true, add rules to generate libtests.a, and put libtests.a
50322         into $(LDADD). Consider source files in subdirectories and set
50323         uses_subdirs.
50324         (func_emit_initmacro_start, func_emit_initmacro_end,
50325         func_emit_initmacro_done): Pass all arguments explicitly.
50326         (func_import): Determine two module lists main_modules,
50327         testsrelated_modules. Determine use_libtests. Determine two variables
50328         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
50329         instead of just sed_transform_lib_file. Determine two variables
50330         main_files and testsrelated_files. Compute 'files' as the union of
50331         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
50332         func_add_or_update. In the generated gnulib-comp.m4, collect the
50333         object files for tests/ in different variables than those for lib/.
50334         Substitute LIBTESTS_LIBDEPS.
50335         (func_create_testdir): Combine the uses_subdirs results from
50336         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
50337
50338 2007-12-09  Bruno Haible  <bruno@clisp.org>
50339
50340         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
50341         the build-aux directory.
50342
50343 2007-12-09  Bruno Haible  <bruno@clisp.org>
50344
50345         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
50346         introduced on 2006-09-09.
50347
50348 2007-12-07  Jim Meyering  <meyering@redhat.com>
50349
50350         Let these macros work also with autoconf-2.59.
50351         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
50352         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
50353         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50354
50355 2007-12-06  Jim Meyering  <meyering@redhat.com>
50356
50357         Avoid a configure-time syntax error in gl_FUNC_ACL.
50358         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
50359         function in each branch, before testing the cache variable.
50360
50361 2007-12-04  Eric Blake  <ebb9@byu.net>
50362
50363         Make scripts executable.
50364         * build-aux/config.guess: Add execute permissions.
50365         * build-aux/config.sub: Likewise.
50366         * build-aux/gendocs.sh: Likewise.
50367
50368         Fix frexp on mingw.
50369         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
50370         cross-compiling.
50371         * doc/functions/frexp.texi (frexp): Document the bug.
50372
50373         Make cygwin fseeko check more reliable.
50374         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
50375         version numbers, rather than unrelated feature check.
50376         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
50377         * doc/functions/ftello.texi (ftello): Likewise.
50378         Reported by Bruno Haible.
50379
50380         * m4/strerror.m4: Bump version number.
50381
50382 2007-12-03  Bruno Haible  <bruno@clisp.org>
50383
50384         * doc/functions/mprotect.texi: Mention the mingw problem.
50385
50386 2007-12-03  Eric Blake  <ebb9@byu.net>
50387
50388         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
50389         REPLACE_STRERROR is initialized before this macro.
50390
50391 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
50392
50393         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
50394         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
50395         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
50396         put -lsec in even for programs other than 'ls'.  This fixes a problem
50397         for gettext reported by Bruno Haible in
50398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
50399         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
50400         Add support for Solaris 10.  This isn't efficient, but should get the
50401         job done for now.
50402
50403 2007-12-03  James Youngman  <jay@gnu.org>
50404
50405         * doc/regexprops-generic.texi: change "an close-group" to "a
50406         close-group" and "illegal" to "not allowed".
50407
50408 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50409
50410         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
50411         pr_byname.h. Needed for the rare case when the maintainer has done
50412         "make maintainer-clean" in the source directory and then attempts a
50413         build outside the source directory.
50414         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
50415         scripts_byname.h.
50416
50417 2007-12-02  Martin Lambers <marlam@marlam.de>
50418             Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/getpagesize.h: Remove file.
50421         * lib/unistd.in.h: Include declaration of getpagesize here.
50422         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
50423         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
50424         HAVE_SYS_PARAM_H.
50425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
50426         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50427         * modules/getpagesize (Files): Remove lib/getpagesize.h.
50428         (Depends-on): Add unistd.
50429         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50430         (Include): Use <unistd.h> instead of getpagesize.h.
50431         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
50432         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
50433         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
50434         gl_GETPAGESIZE invocation, already handled by module dependency.
50435         * lib/pagealign_alloc.c: Don't include getpagesize.h.
50436
50437 2007-12-02  Bruno Haible  <bruno@clisp.org>
50438
50439         * modules/strings-tests: New file.
50440         * tests/test-strings.c: New file.
50441
50442         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
50443         * lib/strings.in.h: New file.
50444         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
50445         * m4/strings_h.m4: New file.
50446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
50447         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
50448         * modules/strings: New file.
50449         * modules/string (Makefile.am): Update.
50450         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
50451         Reported by Karl Berry.
50452
50453 2007-12-01  Eric Blake  <ebb9@byu.net>
50454
50455         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
50456         accomodate fix in cygwin 1.5.25.
50457
50458 2007-12-01  Jim Meyering  <meyering@redhat.com>
50459
50460         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
50461         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
50462         that would inhibit utf8-optimization of a regexp containing line-
50463         or buffer-anchors, e.g., `^', `$'.
50464
50465 2007-11-30  Bruno Haible  <bruno@clisp.org>
50466
50467         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
50468         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
50469         glthread_recursive_lock_init.
50470         * lib/lock.c (glthread_recursive_lock_init)
50471         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
50472         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50473
50474 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
50475
50476         New function qset_acl, like set_acl but with syscall semantics.
50477         * lib/acl.h (qset_acl): New decl.
50478         * lib/acl.c (qset_acl): New function.
50479         (set_acl): Use new function.  Use more-consistent diagnostics.
50480
50481 2007-11-28  Jim Meyering  <meyering@redhat.com>
50482
50483         * modules/physmem (License): Change from GPL to LGPLv2+.
50484
50485 2007-11-26  Bruno Haible  <bruno@clisp.org>
50486
50487         * lib/vasnprintf.c (decode_long_double): Don't abort if the
50488         'long double' type has excess precision.
50489         Reported by Jim Meyering in
50490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
50491
50492 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50493
50494         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
50495         Sync from <http://gnu.org/licenses>.
50496         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
50497         with license text from same location.
50498         * doc/maintain.texi, doc/standards.texi:  Sync from
50499         <http://savannah.gnu.org/projects/gnustandards>.
50500
50501 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
50502         and Jim Meyering  <meyering@redhat.com>
50503
50504         Adjust getdate' grammar to accept a slightly more regular language.
50505         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
50506         Before, the former was rejected.
50507         * lib/getdate.y (digits_to_date_time): New function, factored
50508         out of ...
50509         (number): ...here.  Just call digits_to_date_time.
50510         (hybrid): New non-terminal to handle an <unsigned number,
50511         signed relative offset> sequence consistently.
50512
50513 2007-11-18  Jim Meyering  <meyering@redhat.com>
50514
50515         Pull my changes from coreutils:
50516         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
50517         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
50518         use of $gnulib_tool_option_extras, so that it's separated from the
50519         preceding argument.
50520
50521         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
50522         * build-aux/bootstrap (cp_mark_as_generated): Create any required
50523         parent destination directories before copying a file into place.
50524
50525 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
50526
50527         bootstrap: work also with 4-argument variant of AC_INIT
50528         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
50529
50530 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50531
50532         Port test-getaddrinfo to Solaris.
50533         Problem reported by Bruno Haible in
50534         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
50535         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
50536         explanation of setting 'hints'.
50537         Don't reject an implementation merely because it returns EAI_SERVICE.
50538         (EAI_SERVICE): Define to 0 if not defined.
50539
50540 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         The license of gnu-make and posix-shell is now "GPLed build tool".
50543         * modules/gnu-make (License): Likewise.
50544         * modules/posix-shell (License): Likewise.
50545
50546         New module posix-shell, for determining a POSIX shell
50547         or perhaps something that is close enough to a POSIX shell.
50548         * m4/posix-shell.m4: New file.
50549         * modules/posix-shell: New file.
50550
50551         * MODULES.html.sh: Mention new module.
50552
50553         New module gnu-make, for determining whether we're using GNU Make.
50554         * m4/gnu-make.m4: New file.
50555         * modules/gnu-make: New file.
50556         * MODULES.html.sh: Mention new module.
50557
50558 2007-11-14  Jim Meyering  <meyering@redhat.com>
50559
50560         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50561         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50562         use this macro to create a function _definition_.
50563         Remove useless "#undef ARGMATCH_DIE".
50564
50565 2007-11-14  Bruno Haible  <bruno@clisp.org>
50566
50567         * lib/config.charset: Update for OpenBSD 4.1.
50568         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50569
50570 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50571
50572         Document 64-bit #if problems in stdint.texi.
50573         * doc/headers/stdint.texi (stdint.h): Mention problems with
50574         64-bit-#if, and how to work around them.
50575
50576         Don't insist on 'long long int' support in the preprocessor.  It
50577         breaks too many things.  For example, PRIdMAX still uses a 'long
50578         long int' format with the latest Sun compiler, even though
50579         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50580         preprocessor problem.  This causes the latest coreutils to dump
50581         core on Solaris 10 sparc with the Sun C compiler.
50582         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50583         the troublesome expressions at configure-time, not at #if-time.
50584         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50585         preprocessor.
50586         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50587         compile-time C checks, done at 'configure'-time.
50588         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50589         * modules/inttypes (Makefile): Substitute the new symbols that
50590         gl_INTTYPES_H now generates.
50591         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50592
50593 2007-11-12  Bruno Haible  <bruno@clisp.org>
50594
50595         Tests for Unicode character classification functions.
50596
50597         * modules/unictype/bidicategory-byname-tests: New file.
50598         * modules/unictype/bidicategory-name-tests: New file.
50599         * modules/unictype/bidicategory-of-tests: New file.
50600         * modules/unictype/bidicategory-test-tests: New file.
50601         * modules/unictype/block-list-tests: New file.
50602         * modules/unictype/block-of-tests: New file.
50603         * modules/unictype/block-test-tests: New file.
50604         * modules/unictype/category-C-tests: New file.
50605         * modules/unictype/category-Cc-tests: New file.
50606         * modules/unictype/category-Cf-tests: New file.
50607         * modules/unictype/category-Cn-tests: New file.
50608         * modules/unictype/category-Co-tests: New file.
50609         * modules/unictype/category-Cs-tests: New file.
50610         * modules/unictype/category-L-tests: New file.
50611         * modules/unictype/category-Ll-tests: New file.
50612         * modules/unictype/category-Lm-tests: New file.
50613         * modules/unictype/category-Lo-tests: New file.
50614         * modules/unictype/category-Lt-tests: New file.
50615         * modules/unictype/category-Lu-tests: New file.
50616         * modules/unictype/category-M-tests: New file.
50617         * modules/unictype/category-Mc-tests: New file.
50618         * modules/unictype/category-Me-tests: New file.
50619         * modules/unictype/category-Mn-tests: New file.
50620         * modules/unictype/category-N-tests: New file.
50621         * modules/unictype/category-Nd-tests: New file.
50622         * modules/unictype/category-Nl-tests: New file.
50623         * modules/unictype/category-No-tests: New file.
50624         * modules/unictype/category-P-tests: New file.
50625         * modules/unictype/category-Pc-tests: New file.
50626         * modules/unictype/category-Pd-tests: New file.
50627         * modules/unictype/category-Pe-tests: New file.
50628         * modules/unictype/category-Pf-tests: New file.
50629         * modules/unictype/category-Pi-tests: New file.
50630         * modules/unictype/category-Po-tests: New file.
50631         * modules/unictype/category-Ps-tests: New file.
50632         * modules/unictype/category-S-tests: New file.
50633         * modules/unictype/category-Sc-tests: New file.
50634         * modules/unictype/category-Sk-tests: New file.
50635         * modules/unictype/category-Sm-tests: New file.
50636         * modules/unictype/category-So-tests: New file.
50637         * modules/unictype/category-Z-tests: New file.
50638         * modules/unictype/category-Zl-tests: New file.
50639         * modules/unictype/category-Zp-tests: New file.
50640         * modules/unictype/category-Zs-tests: New file.
50641         * modules/unictype/category-and-not-tests: New file.
50642         * modules/unictype/category-and-tests: New file.
50643         * modules/unictype/category-byname-tests: New file.
50644         * modules/unictype/category-name-tests: New file.
50645         * modules/unictype/category-none-tests: New file.
50646         * modules/unictype/category-of-tests: New file.
50647         * modules/unictype/category-or-tests: New file.
50648         * modules/unictype/category-test-withtable-tests: New file.
50649         * modules/unictype/combining-class-tests: New file.
50650         * modules/unictype/ctype-alnum-tests: New file.
50651         * modules/unictype/ctype-alpha-tests: New file.
50652         * modules/unictype/ctype-blank-tests: New file.
50653         * modules/unictype/ctype-cntrl-tests: New file.
50654         * modules/unictype/ctype-digit-tests: New file.
50655         * modules/unictype/ctype-graph-tests: New file.
50656         * modules/unictype/ctype-lower-tests: New file.
50657         * modules/unictype/ctype-print-tests: New file.
50658         * modules/unictype/ctype-punct-tests: New file.
50659         * modules/unictype/ctype-space-tests: New file.
50660         * modules/unictype/ctype-upper-tests: New file.
50661         * modules/unictype/ctype-xdigit-tests: New file.
50662         * modules/unictype/decimal-digit-tests: New file.
50663         * modules/unictype/digit-tests: New file.
50664         * modules/unictype/mirror-tests: New file.
50665         * modules/unictype/numeric-tests: New file.
50666         * modules/unictype/property-alphabetic-tests: New file.
50667         * modules/unictype/property-ascii-hex-digit-tests: New file.
50668         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50669         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50670         * modules/unictype/property-bidi-block-separator-tests: New file.
50671         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50672         * modules/unictype/property-bidi-common-separator-tests: New file.
50673         * modules/unictype/property-bidi-control-tests: New file.
50674         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50675         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50676         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50677         * modules/unictype/property-bidi-european-digit-tests: New file.
50678         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50679         * modules/unictype/property-bidi-left-to-right-tests: New file.
50680         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50681         * modules/unictype/property-bidi-other-neutral-tests: New file.
50682         * modules/unictype/property-bidi-pdf-tests: New file.
50683         * modules/unictype/property-bidi-segment-separator-tests: New file.
50684         * modules/unictype/property-bidi-whitespace-tests: New file.
50685         * modules/unictype/property-byname-tests: New file.
50686         * modules/unictype/property-combining-tests: New file.
50687         * modules/unictype/property-composite-tests: New file.
50688         * modules/unictype/property-currency-symbol-tests: New file.
50689         * modules/unictype/property-dash-tests: New file.
50690         * modules/unictype/property-decimal-digit-tests: New file.
50691         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50692         * modules/unictype/property-deprecated-tests: New file.
50693         * modules/unictype/property-diacritic-tests: New file.
50694         * modules/unictype/property-extender-tests: New file.
50695         * modules/unictype/property-format-control-tests: New file.
50696         * modules/unictype/property-grapheme-base-tests: New file.
50697         * modules/unictype/property-grapheme-extend-tests: New file.
50698         * modules/unictype/property-grapheme-link-tests: New file.
50699         * modules/unictype/property-hex-digit-tests: New file.
50700         * modules/unictype/property-hyphen-tests: New file.
50701         * modules/unictype/property-id-continue-tests: New file.
50702         * modules/unictype/property-id-start-tests: New file.
50703         * modules/unictype/property-ideographic-tests: New file.
50704         * modules/unictype/property-ids-binary-operator-tests: New file.
50705         * modules/unictype/property-ids-trinary-operator-tests: New file.
50706         * modules/unictype/property-ignorable-control-tests: New file.
50707         * modules/unictype/property-iso-control-tests: New file.
50708         * modules/unictype/property-join-control-tests: New file.
50709         * modules/unictype/property-left-of-pair-tests: New file.
50710         * modules/unictype/property-line-separator-tests: New file.
50711         * modules/unictype/property-logical-order-exception-tests: New file.
50712         * modules/unictype/property-lowercase-tests: New file.
50713         * modules/unictype/property-math-tests: New file.
50714         * modules/unictype/property-non-break-tests: New file.
50715         * modules/unictype/property-not-a-character-tests: New file.
50716         * modules/unictype/property-numeric-tests: New file.
50717         * modules/unictype/property-other-alphabetic-tests: New file.
50718         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50719         * modules/unictype/property-other-grapheme-extend-tests: New file.
50720         * modules/unictype/property-other-id-continue-tests: New file.
50721         * modules/unictype/property-other-id-start-tests: New file.
50722         * modules/unictype/property-other-lowercase-tests: New file.
50723         * modules/unictype/property-other-math-tests: New file.
50724         * modules/unictype/property-other-uppercase-tests: New file.
50725         * modules/unictype/property-paired-punctuation-tests: New file.
50726         * modules/unictype/property-paragraph-separator-tests: New file.
50727         * modules/unictype/property-pattern-syntax-tests: New file.
50728         * modules/unictype/property-pattern-white-space-tests: New file.
50729         * modules/unictype/property-private-use-tests: New file.
50730         * modules/unictype/property-punctuation-tests: New file.
50731         * modules/unictype/property-quotation-mark-tests: New file.
50732         * modules/unictype/property-radical-tests: New file.
50733         * modules/unictype/property-sentence-terminal-tests: New file.
50734         * modules/unictype/property-soft-dotted-tests: New file.
50735         * modules/unictype/property-space-tests: New file.
50736         * modules/unictype/property-terminal-punctuation-tests: New file.
50737         * modules/unictype/property-test-tests: New file.
50738         * modules/unictype/property-titlecase-tests: New file.
50739         * modules/unictype/property-unassigned-code-value-tests: New file.
50740         * modules/unictype/property-unified-ideograph-tests: New file.
50741         * modules/unictype/property-uppercase-tests: New file.
50742         * modules/unictype/property-variation-selector-tests: New file.
50743         * modules/unictype/property-white-space-tests: New file.
50744         * modules/unictype/property-xid-continue-tests: New file.
50745         * modules/unictype/property-xid-start-tests: New file.
50746         * modules/unictype/property-zero-width-tests: New file.
50747         * modules/unictype/scripts-tests: New file.
50748         * modules/unictype/syntax-c-ident-tests: New file.
50749         * modules/unictype/syntax-c-whitespace-tests: New file.
50750         * modules/unictype/syntax-java-ident-tests: New file.
50751         * modules/unictype/syntax-java-whitespace-tests: New file.
50752         * tests/unictype/test-bidi_byname.c: New file.
50753         * tests/unictype/test-bidi_name.c: New file.
50754         * tests/unictype/test-bidi_of.c: New file.
50755         * tests/unictype/test-bidi_test.c: New file.
50756         * tests/unictype/test-block_list.c: New file.
50757         * tests/unictype/test-block_of.c: New file.
50758         * tests/unictype/test-block_test.c: New file.
50759         * tests/unictype/test-categ_and.c: New file.
50760         * tests/unictype/test-categ_and_not.c: New file.
50761         * tests/unictype/test-categ_byname.c: New file.
50762         * tests/unictype/test-categ_name.c: New file.
50763         * tests/unictype/test-categ_none.c: New file.
50764         * tests/unictype/test-categ_of.c: New file.
50765         * tests/unictype/test-categ_or.c: New file.
50766         * tests/unictype/test-categ_test_withtable.c: New file.
50767         * tests/unictype/test-combining.c: New file.
50768         * tests/unictype/test-decdigit.c: New file.
50769         * tests/unictype/test-digit.c: New file.
50770         * tests/unictype/test-mirror.c: New file.
50771         * tests/unictype/test-numeric.c: New file.
50772         * tests/unictype/test-pr_byname.c: New file.
50773         * tests/unictype/test-pr_test.c: New file.
50774         * tests/unictype/test-predicate-part1.h: New file.
50775         * tests/unictype/test-predicate-part2.h: New file.
50776         * tests/unictype/test-scripts.c: New file.
50777         * tests/unictype/test-sy_c_ident.c: New file.
50778         * tests/unictype/test-sy_java_ident.c: New file.
50779
50780         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50781         for Unicode 5.0.0.
50782         * tests/unictype/test-categ_Cc.c: Likewise.
50783         * tests/unictype/test-categ_Cf.c: Likewise.
50784         * tests/unictype/test-categ_Cn.c: Likewise.
50785         * tests/unictype/test-categ_Co.c: Likewise.
50786         * tests/unictype/test-categ_Cs.c: Likewise.
50787         * tests/unictype/test-categ_L.c: Likewise.
50788         * tests/unictype/test-categ_Ll.c: Likewise.
50789         * tests/unictype/test-categ_Lm.c: Likewise.
50790         * tests/unictype/test-categ_Lo.c: Likewise.
50791         * tests/unictype/test-categ_Lt.c: Likewise.
50792         * tests/unictype/test-categ_Lu.c: Likewise.
50793         * tests/unictype/test-categ_M.c: Likewise.
50794         * tests/unictype/test-categ_Mc.c: Likewise.
50795         * tests/unictype/test-categ_Me.c: Likewise.
50796         * tests/unictype/test-categ_Mn.c: Likewise.
50797         * tests/unictype/test-categ_N.c: Likewise.
50798         * tests/unictype/test-categ_Nd.c: Likewise.
50799         * tests/unictype/test-categ_Nl.c: Likewise.
50800         * tests/unictype/test-categ_No.c: Likewise.
50801         * tests/unictype/test-categ_P.c: Likewise.
50802         * tests/unictype/test-categ_Pc.c: Likewise.
50803         * tests/unictype/test-categ_Pd.c: Likewise.
50804         * tests/unictype/test-categ_Pe.c: Likewise.
50805         * tests/unictype/test-categ_Pf.c: Likewise.
50806         * tests/unictype/test-categ_Pi.c: Likewise.
50807         * tests/unictype/test-categ_Po.c: Likewise.
50808         * tests/unictype/test-categ_Ps.c: Likewise.
50809         * tests/unictype/test-categ_S.c: Likewise.
50810         * tests/unictype/test-categ_Sc.c: Likewise.
50811         * tests/unictype/test-categ_Sk.c: Likewise.
50812         * tests/unictype/test-categ_Sm.c: Likewise.
50813         * tests/unictype/test-categ_So.c: Likewise.
50814         * tests/unictype/test-categ_Z.c: Likewise.
50815         * tests/unictype/test-categ_Zl.c: Likewise.
50816         * tests/unictype/test-categ_Zp.c: Likewise.
50817         * tests/unictype/test-categ_Zs.c: Likewise.
50818         * tests/unictype/test-ctype_alnum.c: Likewise.
50819         * tests/unictype/test-ctype_alpha.c: Likewise.
50820         * tests/unictype/test-ctype_blank.c: Likewise.
50821         * tests/unictype/test-ctype_cntrl.c: Likewise.
50822         * tests/unictype/test-ctype_digit.c: Likewise.
50823         * tests/unictype/test-ctype_graph.c: Likewise.
50824         * tests/unictype/test-ctype_lower.c: Likewise.
50825         * tests/unictype/test-ctype_print.c: Likewise.
50826         * tests/unictype/test-ctype_punct.c: Likewise.
50827         * tests/unictype/test-ctype_space.c: Likewise.
50828         * tests/unictype/test-ctype_upper.c: Likewise.
50829         * tests/unictype/test-ctype_xdigit.c: Likewise.
50830         * tests/unictype/test-decdigit.h: Likewise.
50831         * tests/unictype/test-digit.h: Likewise.
50832         * tests/unictype/test-numeric.h: Likewise.
50833         * tests/unictype/test-pr_alphabetic.c: Likewise.
50834         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50835         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50836         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50837         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50838         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50839         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50840         * tests/unictype/test-pr_bidi_control.c: Likewise.
50841         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50842         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50843         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50844         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50845         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50846         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50847         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50848         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50849         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50850         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50851         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50852         * tests/unictype/test-pr_combining.c: Likewise.
50853         * tests/unictype/test-pr_composite.c: Likewise.
50854         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50855         * tests/unictype/test-pr_dash.c: Likewise.
50856         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50857         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50858         * tests/unictype/test-pr_deprecated.c: Likewise.
50859         * tests/unictype/test-pr_diacritic.c: Likewise.
50860         * tests/unictype/test-pr_extender.c: Likewise.
50861         * tests/unictype/test-pr_format_control.c: Likewise.
50862         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50863         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50864         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50865         * tests/unictype/test-pr_hex_digit.c: Likewise.
50866         * tests/unictype/test-pr_hyphen.c: Likewise.
50867         * tests/unictype/test-pr_id_continue.c: Likewise.
50868         * tests/unictype/test-pr_id_start.c: Likewise.
50869         * tests/unictype/test-pr_ideographic.c: Likewise.
50870         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50871         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50872         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50873         * tests/unictype/test-pr_iso_control.c: Likewise.
50874         * tests/unictype/test-pr_join_control.c: Likewise.
50875         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50876         * tests/unictype/test-pr_line_separator.c: Likewise.
50877         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50878         * tests/unictype/test-pr_lowercase.c: Likewise.
50879         * tests/unictype/test-pr_math.c: Likewise.
50880         * tests/unictype/test-pr_non_break.c: Likewise.
50881         * tests/unictype/test-pr_not_a_character.c: Likewise.
50882         * tests/unictype/test-pr_numeric.c: Likewise.
50883         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50884         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50885         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50886         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50887         * tests/unictype/test-pr_other_id_start.c: Likewise.
50888         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50889         * tests/unictype/test-pr_other_math.c: Likewise.
50890         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50891         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50892         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50893         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50894         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50895         * tests/unictype/test-pr_private_use.c: Likewise.
50896         * tests/unictype/test-pr_punctuation.c: Likewise.
50897         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50898         * tests/unictype/test-pr_radical.c: Likewise.
50899         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50900         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50901         * tests/unictype/test-pr_space.c: Likewise.
50902         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50903         * tests/unictype/test-pr_titlecase.c: Likewise.
50904         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50905         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50906         * tests/unictype/test-pr_uppercase.c: Likewise.
50907         * tests/unictype/test-pr_variation_selector.c: Likewise.
50908         * tests/unictype/test-pr_white_space.c: Likewise.
50909         * tests/unictype/test-pr_xid_continue.c: Likewise.
50910         * tests/unictype/test-pr_xid_start.c: Likewise.
50911         * tests/unictype/test-pr_zero_width.c: Likewise.
50912         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50913         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50914
50915 2007-11-12  Bruno Haible  <bruno@clisp.org>
50916
50917         Unicode character classification functions.
50918         * lib/unictype.h: New file.
50919         * modules/unictype/base: New file.
50920         * modules/unictype/category-L: New file.
50921         * modules/unictype/category-Lu: New file.
50922         * modules/unictype/category-Ll: New file.
50923         * modules/unictype/category-Lt: New file.
50924         * modules/unictype/category-Lm: New file.
50925         * modules/unictype/category-Lo: New file.
50926         * modules/unictype/category-M: New file.
50927         * modules/unictype/category-Mn: New file.
50928         * modules/unictype/category-Mc: New file.
50929         * modules/unictype/category-Me: New file.
50930         * modules/unictype/category-N: New file.
50931         * modules/unictype/category-Nd: New file.
50932         * modules/unictype/category-Nl: New file.
50933         * modules/unictype/category-No: New file.
50934         * modules/unictype/category-P: New file.
50935         * modules/unictype/category-Pc: New file.
50936         * modules/unictype/category-Pd: New file.
50937         * modules/unictype/category-Ps: New file.
50938         * modules/unictype/category-Pe: New file.
50939         * modules/unictype/category-Pi: New file.
50940         * modules/unictype/category-Pf: New file.
50941         * modules/unictype/category-Po: New file.
50942         * modules/unictype/category-S: New file.
50943         * modules/unictype/category-Sm: New file.
50944         * modules/unictype/category-Sc: New file.
50945         * modules/unictype/category-Sk: New file.
50946         * modules/unictype/category-So: New file.
50947         * modules/unictype/category-Z: New file.
50948         * modules/unictype/category-Zs: New file.
50949         * modules/unictype/category-Zl: New file.
50950         * modules/unictype/category-Zp: New file.
50951         * modules/unictype/category-C: New file.
50952         * modules/unictype/category-Cc: New file.
50953         * modules/unictype/category-Cf: New file.
50954         * modules/unictype/category-Cs: New file.
50955         * modules/unictype/category-Co: New file.
50956         * modules/unictype/category-Cn: New file.
50957         * modules/unictype/category-or: New file.
50958         * modules/unictype/category-of: New file.
50959         * modules/unictype/category-test: New file.
50960         * modules/unictype/category-test-withtable: New file.
50961         * modules/unictype/category-byname: New file.
50962         * modules/unictype/category-none: New file.
50963         * modules/unictype/category-and: New file.
50964         * modules/unictype/category-and-not: New file.
50965         * modules/unictype/category-name: New file.
50966         * modules/unictype/combining-class: New file.
50967         * modules/unictype/category-all: New file.
50968         * modules/unictype/bidicategory-all: New file.
50969         * modules/unictype/bidicategory-byname: New file.
50970         * modules/unictype/bidicategory-name: New file.
50971         * modules/unictype/bidicategory-of: New file.
50972         * modules/unictype/bidicategory-test: New file.
50973         * modules/unictype/decimal-digit: New file.
50974         * modules/unictype/digit: New file.
50975         * modules/unictype/numeric: New file.
50976         * modules/unictype/mirror: New file.
50977         * modules/unictype/property-white-space: New file.
50978         * modules/unictype/property-alphabetic: New file.
50979         * modules/unictype/property-other-alphabetic: New file.
50980         * modules/unictype/property-not-a-character: New file.
50981         * modules/unictype/property-default-ignorable-code-point: New file.
50982         * modules/unictype/property-other-default-ignorable-code-point: New
50983         file.
50984         * modules/unictype/property-deprecated: New file.
50985         * modules/unictype/property-logical-order-exception: New file.
50986         * modules/unictype/property-variation-selector: New file.
50987         * modules/unictype/property-private-use: New file.
50988         * modules/unictype/property-unassigned-code-value: New file.
50989         * modules/unictype/property-uppercase: New file.
50990         * modules/unictype/property-other-uppercase: New file.
50991         * modules/unictype/property-lowercase: New file.
50992         * modules/unictype/property-other-lowercase: New file.
50993         * modules/unictype/property-titlecase: New file.
50994         * modules/unictype/property-soft-dotted: New file.
50995         * modules/unictype/property-id-start: New file.
50996         * modules/unictype/property-other-id-start: New file.
50997         * modules/unictype/property-id-continue: New file.
50998         * modules/unictype/property-other-id-continue: New file.
50999         * modules/unictype/property-xid-start: New file.
51000         * modules/unictype/property-xid-continue: New file.
51001         * modules/unictype/property-pattern-white-space: New file.
51002         * modules/unictype/property-pattern-syntax: New file.
51003         * modules/unictype/property-join-control: New file.
51004         * modules/unictype/property-grapheme-base: New file.
51005         * modules/unictype/property-grapheme-extend: New file.
51006         * modules/unictype/property-other-grapheme-extend: New file.
51007         * modules/unictype/property-grapheme-link: New file.
51008         * modules/unictype/property-bidi-control: New file.
51009         * modules/unictype/property-bidi-left-to-right: New file.
51010         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51011         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51012         * modules/unictype/property-bidi-european-digit: New file.
51013         * modules/unictype/property-bidi-eur-num-separator: New file.
51014         * modules/unictype/property-bidi-eur-num-terminator: New file.
51015         * modules/unictype/property-bidi-arabic-digit: New file.
51016         * modules/unictype/property-bidi-common-separator: New file.
51017         * modules/unictype/property-bidi-block-separator: New file.
51018         * modules/unictype/property-bidi-segment-separator: New file.
51019         * modules/unictype/property-bidi-whitespace: New file.
51020         * modules/unictype/property-bidi-non-spacing-mark: New file.
51021         * modules/unictype/property-bidi-boundary-neutral: New file.
51022         * modules/unictype/property-bidi-pdf: New file.
51023         * modules/unictype/property-bidi-embedding-or-override: New file.
51024         * modules/unictype/property-bidi-other-neutral: New file.
51025         * modules/unictype/property-hex-digit: New file.
51026         * modules/unictype/property-ascii-hex-digit: New file.
51027         * modules/unictype/property-ideographic: New file.
51028         * modules/unictype/property-unified-ideograph: New file.
51029         * modules/unictype/property-radical: New file.
51030         * modules/unictype/property-ids-binary-operator: New file.
51031         * modules/unictype/property-ids-trinary-operator: New file.
51032         * modules/unictype/property-zero-width: New file.
51033         * modules/unictype/property-space: New file.
51034         * modules/unictype/property-non-break: New file.
51035         * modules/unictype/property-iso-control: New file.
51036         * modules/unictype/property-format-control: New file.
51037         * modules/unictype/property-dash: New file.
51038         * modules/unictype/property-hyphen: New file.
51039         * modules/unictype/property-punctuation: New file.
51040         * modules/unictype/property-line-separator: New file.
51041         * modules/unictype/property-paragraph-separator: New file.
51042         * modules/unictype/property-quotation-mark: New file.
51043         * modules/unictype/property-sentence-terminal: New file.
51044         * modules/unictype/property-terminal-punctuation: New file.
51045         * modules/unictype/property-currency-symbol: New file.
51046         * modules/unictype/property-math: New file.
51047         * modules/unictype/property-other-math: New file.
51048         * modules/unictype/property-paired-punctuation: New file.
51049         * modules/unictype/property-left-of-pair: New file.
51050         * modules/unictype/property-combining: New file.
51051         * modules/unictype/property-composite: New file.
51052         * modules/unictype/property-decimal-digit: New file.
51053         * modules/unictype/property-numeric: New file.
51054         * modules/unictype/property-diacritic: New file.
51055         * modules/unictype/property-extender: New file.
51056         * modules/unictype/property-ignorable-control: New file.
51057         * modules/unictype/property-test: New file.
51058         * modules/unictype/property-byname: New file.
51059         * modules/unictype/property-all: New file.
51060         * modules/unictype/scripts: New file.
51061         * modules/unictype/scripts-all: New file.
51062         * modules/unictype/block-of: New file.
51063         * modules/unictype/block-test: New file.
51064         * modules/unictype/block-list: New file.
51065         * modules/unictype/block-all: New file.
51066         * modules/unictype/syntax-c-whitespace: New file.
51067         * modules/unictype/syntax-java-whitespace: New file.
51068         * modules/unictype/syntax-c-ident: New file.
51069         * modules/unictype/syntax-java-ident: New file.
51070         * modules/unictype/ctype-alnum: New file.
51071         * modules/unictype/ctype-alpha: New file.
51072         * modules/unictype/ctype-cntrl: New file.
51073         * modules/unictype/ctype-digit: New file.
51074         * modules/unictype/ctype-graph: New file.
51075         * modules/unictype/ctype-lower: New file.
51076         * modules/unictype/ctype-print: New file.
51077         * modules/unictype/ctype-punct: New file.
51078         * modules/unictype/ctype-space: New file.
51079         * modules/unictype/ctype-upper: New file.
51080         * modules/unictype/ctype-xdigit: New file.
51081         * modules/unictype/ctype-blank: New file.
51082         * lib/unictype/bidi_byname.c: New file.
51083         * lib/unictype/bidi_name.c: New file.
51084         * lib/unictype/bidi_of.c: New file.
51085         * lib/unictype/bidi_test.c: New file.
51086         * lib/unictype/bitmap.h: New file.
51087         * lib/unictype/block_test.c: New file.
51088         * lib/unictype/blocks.c: New file.
51089         * lib/unictype/categ_C.c: New file.
51090         * lib/unictype/categ_Cc.c: New file.
51091         * lib/unictype/categ_Cf.c: New file.
51092         * lib/unictype/categ_Cn.c: New file.
51093         * lib/unictype/categ_Co.c: New file.
51094         * lib/unictype/categ_Cs.c: New file.
51095         * lib/unictype/categ_L.c: New file.
51096         * lib/unictype/categ_Ll.c: New file.
51097         * lib/unictype/categ_Lm.c: New file.
51098         * lib/unictype/categ_Lo.c: New file.
51099         * lib/unictype/categ_Lt.c: New file.
51100         * lib/unictype/categ_Lu.c: New file.
51101         * lib/unictype/categ_M.c: New file.
51102         * lib/unictype/categ_Mc.c: New file.
51103         * lib/unictype/categ_Me.c: New file.
51104         * lib/unictype/categ_Mn.c: New file.
51105         * lib/unictype/categ_N.c: New file.
51106         * lib/unictype/categ_Nd.c: New file.
51107         * lib/unictype/categ_Nl.c: New file.
51108         * lib/unictype/categ_No.c: New file.
51109         * lib/unictype/categ_P.c: New file.
51110         * lib/unictype/categ_Pc.c: New file.
51111         * lib/unictype/categ_Pd.c: New file.
51112         * lib/unictype/categ_Pe.c: New file.
51113         * lib/unictype/categ_Pf.c: New file.
51114         * lib/unictype/categ_Pi.c: New file.
51115         * lib/unictype/categ_Po.c: New file.
51116         * lib/unictype/categ_Ps.c: New file.
51117         * lib/unictype/categ_S.c: New file.
51118         * lib/unictype/categ_Sc.c: New file.
51119         * lib/unictype/categ_Sk.c: New file.
51120         * lib/unictype/categ_Sm.c: New file.
51121         * lib/unictype/categ_So.c: New file.
51122         * lib/unictype/categ_Z.c: New file.
51123         * lib/unictype/categ_Zl.c: New file.
51124         * lib/unictype/categ_Zp.c: New file.
51125         * lib/unictype/categ_Zs.c: New file.
51126         * lib/unictype/categ_and.c: New file.
51127         * lib/unictype/categ_and_not.c: New file.
51128         * lib/unictype/categ_byname.c: New file.
51129         * lib/unictype/categ_name.c: New file.
51130         * lib/unictype/categ_none.c: New file.
51131         * lib/unictype/categ_of.c: New file.
51132         * lib/unictype/categ_or.c: New file.
51133         * lib/unictype/categ_test.c: New file.
51134         * lib/unictype/combining.c: New file.
51135         * lib/unictype/ctype_alnum.c: New file.
51136         * lib/unictype/ctype_alpha.c: New file.
51137         * lib/unictype/ctype_blank.c: New file.
51138         * lib/unictype/ctype_cntrl.c: New file.
51139         * lib/unictype/ctype_digit.c: New file.
51140         * lib/unictype/ctype_graph.c: New file.
51141         * lib/unictype/ctype_lower.c: New file.
51142         * lib/unictype/ctype_print.c: New file.
51143         * lib/unictype/ctype_punct.c: New file.
51144         * lib/unictype/ctype_space.c: New file.
51145         * lib/unictype/ctype_upper.c: New file.
51146         * lib/unictype/ctype_xdigit.c: New file.
51147         * lib/unictype/decdigit.c: New file.
51148         * lib/unictype/digit.c: New file.
51149         * lib/unictype/identsyntaxmap.h: New file.
51150         * lib/unictype/mirror.c: New file.
51151         * lib/unictype/numeric.c: New file.
51152         * lib/unictype/pr_alphabetic.c: New file.
51153         * lib/unictype/pr_ascii_hex_digit.c: New file.
51154         * lib/unictype/pr_bidi_arabic_digit.c: New file.
51155         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
51156         * lib/unictype/pr_bidi_block_separator.c: New file.
51157         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
51158         * lib/unictype/pr_bidi_common_separator.c: New file.
51159         * lib/unictype/pr_bidi_control.c: New file.
51160         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
51161         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
51162         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
51163         * lib/unictype/pr_bidi_european_digit.c: New file.
51164         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
51165         * lib/unictype/pr_bidi_left_to_right.c: New file.
51166         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
51167         * lib/unictype/pr_bidi_other_neutral.c: New file.
51168         * lib/unictype/pr_bidi_pdf.c: New file.
51169         * lib/unictype/pr_bidi_segment_separator.c: New file.
51170         * lib/unictype/pr_bidi_whitespace.c: New file.
51171         * lib/unictype/pr_byname.c: New file.
51172         * lib/unictype/pr_byname.gperf: New file.
51173         * lib/unictype/pr_combining.c: New file.
51174         * lib/unictype/pr_composite.c: New file.
51175         * lib/unictype/pr_currency_symbol.c: New file.
51176         * lib/unictype/pr_dash.c: New file.
51177         * lib/unictype/pr_decimal_digit.c: New file.
51178         * lib/unictype/pr_default_ignorable_code_point.c: New file.
51179         * lib/unictype/pr_deprecated.c: New file.
51180         * lib/unictype/pr_diacritic.c: New file.
51181         * lib/unictype/pr_extender.c: New file.
51182         * lib/unictype/pr_format_control.c: New file.
51183         * lib/unictype/pr_grapheme_base.c: New file.
51184         * lib/unictype/pr_grapheme_extend.c: New file.
51185         * lib/unictype/pr_grapheme_link.c: New file.
51186         * lib/unictype/pr_hex_digit.c: New file.
51187         * lib/unictype/pr_hyphen.c: New file.
51188         * lib/unictype/pr_id_continue.c: New file.
51189         * lib/unictype/pr_id_start.c: New file.
51190         * lib/unictype/pr_ideographic.c: New file.
51191         * lib/unictype/pr_ids_binary_operator.c: New file.
51192         * lib/unictype/pr_ids_trinary_operator.c: New file.
51193         * lib/unictype/pr_ignorable_control.c: New file.
51194         * lib/unictype/pr_iso_control.c: New file.
51195         * lib/unictype/pr_join_control.c: New file.
51196         * lib/unictype/pr_left_of_pair.c: New file.
51197         * lib/unictype/pr_line_separator.c: New file.
51198         * lib/unictype/pr_logical_order_exception.c: New file.
51199         * lib/unictype/pr_lowercase.c: New file.
51200         * lib/unictype/pr_math.c: New file.
51201         * lib/unictype/pr_non_break.c: New file.
51202         * lib/unictype/pr_not_a_character.c: New file.
51203         * lib/unictype/pr_numeric.c: New file.
51204         * lib/unictype/pr_other_alphabetic.c: New file.
51205         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
51206         * lib/unictype/pr_other_grapheme_extend.c: New file.
51207         * lib/unictype/pr_other_id_continue.c: New file.
51208         * lib/unictype/pr_other_id_start.c: New file.
51209         * lib/unictype/pr_other_lowercase.c: New file.
51210         * lib/unictype/pr_other_math.c: New file.
51211         * lib/unictype/pr_other_uppercase.c: New file.
51212         * lib/unictype/pr_paired_punctuation.c: New file.
51213         * lib/unictype/pr_paragraph_separator.c: New file.
51214         * lib/unictype/pr_pattern_syntax.c: New file.
51215         * lib/unictype/pr_pattern_white_space.c: New file.
51216         * lib/unictype/pr_private_use.c: New file.
51217         * lib/unictype/pr_punctuation.c: New file.
51218         * lib/unictype/pr_quotation_mark.c: New file.
51219         * lib/unictype/pr_radical.c: New file.
51220         * lib/unictype/pr_sentence_terminal.c: New file.
51221         * lib/unictype/pr_soft_dotted.c: New file.
51222         * lib/unictype/pr_space.c: New file.
51223         * lib/unictype/pr_terminal_punctuation.c: New file.
51224         * lib/unictype/pr_test.c: New file.
51225         * lib/unictype/pr_titlecase.c: New file.
51226         * lib/unictype/pr_unassigned_code_value.c: New file.
51227         * lib/unictype/pr_unified_ideograph.c: New file.
51228         * lib/unictype/pr_uppercase.c: New file.
51229         * lib/unictype/pr_variation_selector.c: New file.
51230         * lib/unictype/pr_white_space.c: New file.
51231         * lib/unictype/pr_xid_continue.c: New file.
51232         * lib/unictype/pr_xid_start.c: New file.
51233         * lib/unictype/pr_zero_width.c: New file.
51234         * lib/unictype/scripts.c: New file.
51235         * lib/unictype/sy_c_ident.c: New file.
51236         * lib/unictype/sy_c_whitespace.c: New file.
51237         * lib/unictype/sy_java_ident.c: New file.
51238         * lib/unictype/sy_java_whitespace.c: New file.
51239
51240         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
51241         Unicode 5.0.0.
51242         * lib/unictype/blocks.h: Likewise.
51243         * lib/unictype/categ_C.h: Likewise.
51244         * lib/unictype/categ_Cc.h: Likewise.
51245         * lib/unictype/categ_Cf.h: Likewise.
51246         * lib/unictype/categ_Cn.h: Likewise.
51247         * lib/unictype/categ_Co.h: Likewise.
51248         * lib/unictype/categ_Cs.h: Likewise.
51249         * lib/unictype/categ_L.h: Likewise.
51250         * lib/unictype/categ_Ll.h: Likewise.
51251         * lib/unictype/categ_Lm.h: Likewise.
51252         * lib/unictype/categ_Lo.h: Likewise.
51253         * lib/unictype/categ_Lt.h: Likewise.
51254         * lib/unictype/categ_Lu.h: Likewise.
51255         * lib/unictype/categ_M.h: Likewise.
51256         * lib/unictype/categ_Mc.h: Likewise.
51257         * lib/unictype/categ_Me.h: Likewise.
51258         * lib/unictype/categ_Mn.h: Likewise.
51259         * lib/unictype/categ_N.h: Likewise.
51260         * lib/unictype/categ_Nd.h: Likewise.
51261         * lib/unictype/categ_Nl.h: Likewise.
51262         * lib/unictype/categ_No.h: Likewise.
51263         * lib/unictype/categ_P.h: Likewise.
51264         * lib/unictype/categ_Pc.h: Likewise.
51265         * lib/unictype/categ_Pd.h: Likewise.
51266         * lib/unictype/categ_Pe.h: Likewise.
51267         * lib/unictype/categ_Pf.h: Likewise.
51268         * lib/unictype/categ_Pi.h: Likewise.
51269         * lib/unictype/categ_Po.h: Likewise.
51270         * lib/unictype/categ_Ps.h: Likewise.
51271         * lib/unictype/categ_S.h: Likewise.
51272         * lib/unictype/categ_Sc.h: Likewise.
51273         * lib/unictype/categ_Sk.h: Likewise.
51274         * lib/unictype/categ_Sm.h: Likewise.
51275         * lib/unictype/categ_So.h: Likewise.
51276         * lib/unictype/categ_Z.h: Likewise.
51277         * lib/unictype/categ_Zl.h: Likewise.
51278         * lib/unictype/categ_Zp.h: Likewise.
51279         * lib/unictype/categ_Zs.h: Likewise.
51280         * lib/unictype/categ_of.h: Likewise.
51281         * lib/unictype/combining.h: Likewise.
51282         * lib/unictype/ctype_alnum.h: Likewise.
51283         * lib/unictype/ctype_alpha.h: Likewise.
51284         * lib/unictype/ctype_blank.h: Likewise.
51285         * lib/unictype/ctype_cntrl.h: Likewise.
51286         * lib/unictype/ctype_digit.h: Likewise.
51287         * lib/unictype/ctype_graph.h: Likewise.
51288         * lib/unictype/ctype_lower.h: Likewise.
51289         * lib/unictype/ctype_print.h: Likewise.
51290         * lib/unictype/ctype_punct.h: Likewise.
51291         * lib/unictype/ctype_space.h: Likewise.
51292         * lib/unictype/ctype_upper.h: Likewise.
51293         * lib/unictype/ctype_xdigit.h: Likewise.
51294         * lib/unictype/decdigit.h: Likewise.
51295         * lib/unictype/digit.h: Likewise.
51296         * lib/unictype/mirror.h: Likewise.
51297         * lib/unictype/numeric.h: Likewise.
51298         * lib/unictype/pr_alphabetic.h: Likewise.
51299         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51300         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51301         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51302         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51303         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51304         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51305         * lib/unictype/pr_bidi_control.h: Likewise.
51306         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51307         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51308         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51309         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51310         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51311         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51312         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51313         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51314         * lib/unictype/pr_bidi_pdf.h: Likewise.
51315         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51316         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51317         * lib/unictype/pr_combining.h: Likewise.
51318         * lib/unictype/pr_composite.h: Likewise.
51319         * lib/unictype/pr_currency_symbol.h: Likewise.
51320         * lib/unictype/pr_dash.h: Likewise.
51321         * lib/unictype/pr_decimal_digit.h: Likewise.
51322         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51323         * lib/unictype/pr_deprecated.h: Likewise.
51324         * lib/unictype/pr_diacritic.h: Likewise.
51325         * lib/unictype/pr_extender.h: Likewise.
51326         * lib/unictype/pr_format_control.h: Likewise.
51327         * lib/unictype/pr_grapheme_base.h: Likewise.
51328         * lib/unictype/pr_grapheme_extend.h: Likewise.
51329         * lib/unictype/pr_grapheme_link.h: Likewise.
51330         * lib/unictype/pr_hex_digit.h: Likewise.
51331         * lib/unictype/pr_hyphen.h: Likewise.
51332         * lib/unictype/pr_id_continue.h: Likewise.
51333         * lib/unictype/pr_id_start.h: Likewise.
51334         * lib/unictype/pr_ideographic.h: Likewise.
51335         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51336         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51337         * lib/unictype/pr_ignorable_control.h: Likewise.
51338         * lib/unictype/pr_iso_control.h: Likewise.
51339         * lib/unictype/pr_join_control.h: Likewise.
51340         * lib/unictype/pr_left_of_pair.h: Likewise.
51341         * lib/unictype/pr_line_separator.h: Likewise.
51342         * lib/unictype/pr_logical_order_exception.h: Likewise.
51343         * lib/unictype/pr_lowercase.h: Likewise.
51344         * lib/unictype/pr_math.h: Likewise.
51345         * lib/unictype/pr_non_break.h: Likewise.
51346         * lib/unictype/pr_not_a_character.h: Likewise.
51347         * lib/unictype/pr_numeric.h: Likewise.
51348         * lib/unictype/pr_other_alphabetic.h: Likewise.
51349         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51350         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51351         * lib/unictype/pr_other_id_continue.h: Likewise.
51352         * lib/unictype/pr_other_id_start.h: Likewise.
51353         * lib/unictype/pr_other_lowercase.h: Likewise.
51354         * lib/unictype/pr_other_math.h: Likewise.
51355         * lib/unictype/pr_other_uppercase.h: Likewise.
51356         * lib/unictype/pr_paired_punctuation.h: Likewise.
51357         * lib/unictype/pr_paragraph_separator.h: Likewise.
51358         * lib/unictype/pr_pattern_syntax.h: Likewise.
51359         * lib/unictype/pr_pattern_white_space.h: Likewise.
51360         * lib/unictype/pr_private_use.h: Likewise.
51361         * lib/unictype/pr_punctuation.h: Likewise.
51362         * lib/unictype/pr_quotation_mark.h: Likewise.
51363         * lib/unictype/pr_radical.h: Likewise.
51364         * lib/unictype/pr_sentence_terminal.h: Likewise.
51365         * lib/unictype/pr_soft_dotted.h: Likewise.
51366         * lib/unictype/pr_space.h: Likewise.
51367         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51368         * lib/unictype/pr_titlecase.h: Likewise.
51369         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51370         * lib/unictype/pr_unified_ideograph.h: Likewise.
51371         * lib/unictype/pr_uppercase.h: Likewise.
51372         * lib/unictype/pr_variation_selector.h: Likewise.
51373         * lib/unictype/pr_white_space.h: Likewise.
51374         * lib/unictype/pr_xid_continue.h: Likewise.
51375         * lib/unictype/pr_xid_start.h: Likewise.
51376         * lib/unictype/pr_zero_width.h: Likewise.
51377         * lib/unictype/scripts.h: Likewise.
51378         * lib/unictype/scripts_byname.gperf: Likewise.
51379         * lib/unictype/sy_c_ident.h: Likewise.
51380         * lib/unictype/sy_c_whitespace.h: Likewise.
51381         * lib/unictype/sy_java_ident.h: Likewise.
51382         * lib/unictype/sy_java_whitespace.h: Likewise.
51383
51384         * lib/unictype/Makefile: New file.
51385         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
51386         glibc.
51387         * lib/unictype/3level.h: New file, copied from glibc.
51388         * lib/unictype/3levelbit.h: New file.
51389
51390 2007-11-11  Bruno Haible  <bruno@clisp.org>
51391
51392         * modules/gperf: New file.
51393         * modules/iconv_open (Depends-on): Add it.
51394         (Makefile.am): Remove the GPERF definition.
51395
51396 2007-11-11  Bruno Haible  <bruno@clisp.org>
51397
51398         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
51399         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
51400
51401 2007-11-11  Bruno Haible  <bruno@clisp.org>
51402
51403         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
51404         (usage): Remove function.
51405
51406 2007-11-11  Bruno Haible  <bruno@clisp.org>
51407
51408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
51409         gl_FUNC_CEILF_LIBS.
51410         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
51411         gl_FUNC_CEIL_LIBS.
51412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
51413         gl_FUNC_CEILL_LIBS.
51414         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
51415         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
51416         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
51417
51418 2007-11-11  Bruno Haible  <bruno@clisp.org>
51419
51420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
51421         roundf were declared but do not exist on functions.
51422         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
51423         roundl were declared but do not exist on functions.
51424         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
51425         HAVE_FLOORL_AND_CEILL, respectively.
51426         Needed for Sun C on Solaris 10.
51427
51428 2007-11-11  Bruno Haible  <bruno@clisp.org>
51429
51430         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
51431         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
51432         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
51433         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
51434         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
51435         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
51436         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
51437         HAVE_DECL_ROUNDF.
51438         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
51439         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
51441         of HAVE_DECL_ROUND*.
51442         * modules/math (Makefile.am): Update.
51443
51444 2007-11-10  Bruno Haible  <bruno@clisp.org>
51445
51446         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
51447         ptrdiff_t as m4/intl.m4.
51448
51449 2007-11-10  Jim Meyering  <meyering@redhat.com>
51450
51451         Avoid link failure for the argmatch test.
51452         * tests/test-argmatch.c (usage): Define function to avoid a link
51453         failure: argmatch_die requires a usage function.
51454
51455 2007-11-09  Bruno Haible  <bruno@clisp.org>
51456
51457         * doc/functions/snprintf.texi: Mention BeOS deficiency.
51458         * doc/functions/vsnprintf.texi: Likewise.
51459         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
51460         with a size argument < 2.
51461
51462 2007-11-09  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
51465         buffer. Fixes an inefficiency introduced on 2007-11-03.
51466
51467 2007-11-09  Bruno Haible  <bruno@clisp.org>
51468
51469         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
51470         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
51471
51472 2007-11-08  Jim Meyering  <meyering@redhat.com>
51473
51474         Change cache variable name prefix "jm_" to "gl_" everywhere.
51475         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
51476         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
51477         * m4/uptime.m4: s/gl_/jm_/
51478
51479 2007-11-07  Bruno Haible  <bruno@clisp.org>
51480
51481         Update to GNU gettext 0.17.
51482         * m4/intl.m4: Update to GNU gettext 0.17.
51483         * m4/po.m4: Likewise.
51484         * modules/gettext (Files): Remove m4/ulonglong.m4.
51485         (configure.ac): Require gettext infrastructure from version 0.17.
51486
51487 2007-11-06  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
51490         symbolic values are not defined in a public header.
51491         * lib/freadable.c (freadable) [QNX]: Likewise.
51492         * lib/freadahead.c (freadahead) [QNX]: Likewise.
51493         * lib/freading.c (freading) [QNX]: Likewise.
51494         * lib/fseterr.c (fseterr) [QNX]: Likewise.
51495         * lib/fwritable.c (fwritable) [QNX]: Likewise.
51496         * lib/fwriting.c (fwriting) [QNX]: Likewise.
51497         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
51498         Reported by Alain Magloire.
51499
51500         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
51501
51502 2007-11-05  Bruno Haible  <bruno@clisp.org>
51503
51504         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
51505         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
51506         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
51507         Reported by Eric Blake.
51508
51509 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51510             Bruno Haible  <bruno@clisp.org>
51511
51512         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
51513         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
51514         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
51515         (malloc): Undefine also before including <stdlib.h>.
51516         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
51517         Needed on OSF/1 4.0.
51518
51519 2007-11-05  Jim Meyering  <meyering@redhat.com>
51520
51521         git-version-gen: sync from coreutils.
51522         * build-aux/git-version-gen: Add comments.
51523         Change the first '-' to '.' in the snapshot version string,
51524         e.g., 6.9-377-08144 -> 6.9.377-08144
51525         Remove first parameter.
51526         Don't declare a version "-dirty" merely because a time
51527         stamp has changed.
51528
51529 2007-11-04  Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/lock.h: Protect all macro definitions containing an 'if'
51532         statement through a "do { ... } while (0)".
51533         * lib/tls.h: Likewise.
51534
51535 2007-11-04  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
51538
51539 2007-11-04  Bruno Haible  <bruno@clisp.org>
51540
51541         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
51542         * modules/fprintf-posix (Depends-on): Add nocrash.
51543         * modules/snprintf-posix (Depends-on): Likewise.
51544         * modules/sprintf-posix (Depends-on): Likewise.
51545         * modules/vasnprintf-posix (Depends-on): Likewise.
51546         * modules/vasprintf-posix (Depends-on): Likewise.
51547         * modules/vfprintf-posix (Depends-on): Likewise.
51548         * modules/vsnprintf-posix (Depends-on): Likewise.
51549         * modules/vsprintf-posix (Depends-on): Likewise.
51550         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51551         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51552         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51553         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51554         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51555         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51556         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51557
51558 2007-11-04  Bruno Haible  <bruno@clisp.org>
51559
51560         * modules/nocrash: New file.
51561         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51562         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51563
51564 2007-11-04  Bruno Haible  <bruno@clisp.org>
51565
51566         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51567         precision handling.
51568         * tests/test-vasprintf-posix.c (test_function): Likewise.
51569         * tests/test-snprintf-posix.h (test_function): Likewise.
51570         * tests/test-sprintf-posix.h (test_function): Likewise.
51571
51572         Fix *printf behaviour for large precisions on mingw and BeOS.
51573         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51574         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51576         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51577         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51578         gl_PRINTF_PRECISION and test its result. Invoke
51579         gl_PREREQ_VASNPRINTF_PRECISION.
51580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51587         * doc/functions/fprintf.texi: Update.
51588         * doc/functions/printf.texi: Update.
51589         * doc/functions/snprintf.texi: Update.
51590         * doc/functions/sprintf.texi: Update.
51591         * doc/functions/vfprintf.texi: Update.
51592         * doc/functions/vprintf.texi: Update.
51593         * doc/functions/vsnprintf.texi: Update.
51594         * doc/functions/vsprintf.texi: Update.
51595
51596 2007-11-04  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51599
51600 2007-11-04  Bruno Haible  <bruno@clisp.org>
51601
51602         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51603         Reported by Sylvain Beucler <beuc@gnu.org>.
51604
51605 2007-11-03  Bruno Haible  <bruno@clisp.org>
51606
51607         * tests/test-fprintf-posix2.sh: New file.
51608         * tests/test-fprintf-posix2.c: New file.
51609         * modules/fprintf-posix-tests (Files): Add them.
51610         (TESTS): Add test-fprintf-posix2.sh.
51611         (configure.ac): Check for getrlimit and setrlimit.
51612         (check_PROGRAMS): Add test-fprintf-posix2.
51613
51614         * tests/test-printf-posix2.sh: New file.
51615         * tests/test-printf-posix2.c: New file.
51616         * modules/printf-posix-tests (Files): Add them.
51617         (TESTS): Add test-printf-posix2.sh.
51618         (configure.ac): Check for getrlimit and setrlimit.
51619         (check_PROGRAMS): Add test-printf-posix2.
51620
51621         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51622         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51623         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51624         (decode_double): New function, copied from decode_long_double.
51625         (scale10_round_decimal_decoded): New function, extracted from
51626         scale10_round_decimal_long_double.
51627         (scale10_round_decimal_long_double): Use it.
51628         (scale10_round_decimal_double): New function.
51629         (floorlog10): New function.
51630         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51631         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51632         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51633         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51634         gl_PRINTF_ENOMEM and test its result. Invoke
51635         gl_PREREQ_VASNPRINTF_ENOMEM.
51636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51637         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51640         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51643         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51644         * modules/snprintf-posix (Depends-on): Likewise.
51645         * modules/sprintf-posix (Depends-on): Likewise.
51646         * modules/vasnprintf-posix (Depends-on): Likewise.
51647         * modules/vasprintf-posix (Depends-on): Likewise.
51648         * modules/vfprintf-posix (Depends-on): Likewise.
51649         * modules/vsnprintf-posix (Depends-on): Likewise.
51650         * modules/vsprintf-posix (Depends-on): Likewise.
51651         * doc/functions/fprintf.texi: Update.
51652         * doc/functions/printf.texi: Update.
51653         * doc/functions/snprintf.texi: Update.
51654         * doc/functions/sprintf.texi: Update.
51655         * doc/functions/vfprintf.texi: Update.
51656         * doc/functions/vprintf.texi: Update.
51657         * doc/functions/vsnprintf.texi: Update.
51658         * doc/functions/vsprintf.texi: Update.
51659
51660 2007-11-03  Bruno Haible  <bruno@clisp.org>
51661
51662         * modules/frexp-nolibm-tests: New file.
51663
51664         * modules/frexp-nolibm: New file.
51665         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51666
51667 2007-11-03  Bruno Haible  <bruno@clisp.org>
51668
51669         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51670         value is C99 compliant.
51671         Needed for OSF/1 5.1.
51672
51673 2007-11-03  Bruno Haible  <bruno@clisp.org>
51674
51675         Fix out-of-memory handling of vasnprintf.
51676         * lib/printf-parse.c: Include <errno.h>.
51677         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51678         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51679         is already set.
51680
51681 2007-11-02  Eric Blake  <ebb9@byu.net>
51682
51683         Fix tests on cygwin.
51684         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51685
51686 2007-11-01  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51689         warning.
51690         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51691         needed for POSIX compatibility.
51692
51693 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51694
51695         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51696         for compatibility with GNU.
51697
51698 2007-11-01  Bruno Haible  <bruno@clisp.org>
51699
51700         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51701         (putenv): Renamed from rpl_putenv. Change argument type from
51702         'const char *' to 'char *'.
51703         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51704         of defining putenv in config.h, just set REPLACE_PUTENV.
51705         * modules/putenv (Depends-on): Add stdlib.
51706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51707         (Include): Use <stdlib.h>.
51708         * lib/stdlib.in.h (putenv): New declaration.
51709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51710         REPLACE_PUTENV.
51711         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51712         REPLACE_PUTENV.
51713         Needed for MacOS X 10.5.0.
51714         Reported by Peter O'Gorman <peter@pogma.com>.
51715
51716 2007-11-01  Jim Meyering  <meyering@redhat.com>
51717
51718         Treat an empty date string exactly like "0".
51719         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51720         if the remaining date string (to be parsed) is empty, use "0".
51721         Reported by Mischa Molhoek and discussed in this thread:
51722         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51723
51724 2007-10-31  Bruno Haible  <bruno@clisp.org>
51725
51726         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51727         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51728         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51729         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51730         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51731         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51732
51733 2007-10-31  Bruno Haible  <bruno@clisp.org>
51734
51735         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51736         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51737         (AC_TYPE_LONG_LONG_INT): Use it.
51738         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51739         it as well.
51740         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51741         to m4/longlong.m4.
51742         * modules/stdint (Files): Remove m4/ulonglong.m4.
51743         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51744         m4/ulonglong.m4.
51745         * modules/strtoumax (Files): Likewise.
51746
51747 2007-10-30  Bruno Haible  <bruno@clisp.org>
51748
51749         * modules/xvasprintf-posix: New file.
51750         Suggested by Eric Blake.
51751
51752 2007-10-30  Bruno Haible  <bruno@clisp.org>
51753
51754         * modules/xprintf-posix-tests: New file.
51755         * tests/test-xprintf-posix.sh: New file.
51756         * tests/test-xprintf-posix.c: New file.
51757         * tests/test-xfprintf-posix.c: New file.
51758
51759         * modules/xprintf-posix: New file.
51760
51761 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51762
51763         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51764         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51765         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51766
51767 2007-10-29  Bruno Haible  <bruno@clisp.org>
51768
51769         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51770         contain the special marker '_cv_'.
51771         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51772         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51773         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51774         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51775         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51776         Reported by Ralf Wildenhues.
51777
51778 2007-10-29  Bruno Haible  <bruno@clisp.org>
51779
51780         * gnulib-tool (func_import): When --lgpl is not specified, set
51781         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51782         GPLv3.
51783         Reported by Simon Josefsson.
51784
51785 2007-10-28  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51788         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51789         HAVE_DECL_ISFINITE.
51790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51791         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51792         HAVE_DECL_ISFINITE.
51793
51794 2007-10-28  Bruno Haible  <bruno@clisp.org>
51795
51796         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51797         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51798
51799 2007-10-28  Bruno Haible  <bruno@clisp.org>
51800
51801         Fix link errors with Sun C 5.0 on Solaris 10.
51802         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51803         function is declared but not present in the compiler's libm.
51804         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51805         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51806         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51807         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51808         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51809         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51810         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51812         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51813         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51814         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51815         HAVE_DECL_FLOORL.
51816
51817 2007-10-28  Bruno Haible  <bruno@clisp.org>
51818
51819         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51820         gl_FUNC_FLOORL. Cache the result.
51821         (gl_FUNC_FLOORL): Use it.
51822         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51823         gl_FUNC_CEILL. Cache the result.
51824         (gl_FUNC_CEILL): Use it.
51825
51826         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51827         gl_FUNC_FLOOR. Cache the result.
51828         (gl_FUNC_FLOOR): Use it.
51829         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51830         gl_FUNC_CEIL. Cache the result.
51831         (gl_FUNC_CEIL): Use it.
51832
51833         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51834         gl_FUNC_FLOORF. Cache the result.
51835         (gl_FUNC_FLOORF): Use it.
51836         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51837         gl_FUNC_CEILF. Cache the result.
51838         (gl_FUNC_CEILF): Use it.
51839
51840 2007-10-28  Bruno Haible  <bruno@clisp.org>
51841
51842         * gnulib-tool: Allow specifying the LGPL version number through
51843         --lgpl=2 or --lgpl=3.
51844         (func_usage): Document --lgpl with argument.
51845         Handle --lgpl=... arguments.
51846         (func_import): Recognize also gl_LGPL calls with an argument. When
51847         --lgpl=2 is used and the module's license is just LGPL, report an
51848         error. Set sed_transform_lib_file according to the lgpl variable. In
51849         the generated files, use --lgpl or gl_LGPL invocations with argument,
51850         if necessary.
51851         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51852         an LGPv2+ license.
51853         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51854         gl_LGPL macro.
51855
51856 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51857             Bruno Haible  <bruno@clisp.org>
51858
51859         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51860         (u16_uctomb_aux): Likewise.
51861         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51862         !HAVE_INLINE.
51863         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51864
51865 2007-10-28  Bruno Haible  <bruno@clisp.org>
51866
51867         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51868         Invoke AM_GETTEXT_OPTION if it exists.
51869         * modules/vasprintf: Likewise.
51870         * modules/verror: Likewise.
51871         * modules/xprintf: Likewise.
51872         * modules/xvasprintf: Likewise.
51873
51874 2007-10-27  Ben Pfaff  <blp@gnu.org>
51875
51876         * lib/math.in.h: Define isfinite macro and prototypes for
51877         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51878         implementations.
51879         * m4/math_h.m4: New substitutions for isfinite module.
51880         * lib/isfinite.c: New file.
51881         * m4/isfinite.m4: New file.
51882         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51883         * modules/isfinite: New file.
51884         * modules/isfinite-tests: New file.
51885         * tests/tests-isfinite.c: New file.
51886         * doc/functions/isfinite.texi: Mention isfinite module.
51887         * MODULES.html.sh: Mention new module.
51888
51889 2007-10-27  Ben Pfaff  <blp@gnu.org>
51890
51891         Ralf Wildenhues reported that Tru64 4.0D declares the round
51892         functions but does not have definitions.
51893         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51894         cannot be found in any library, set the output variable to
51895         "missing" instead of "".
51896         * m4/round.m4: Also use our substitute if we cannot find round in
51897         any library, even if it is declared.
51898         * m4/roundf.m4: Likewise for roundf.
51899         * m4/roundl.m4: Likewise for roundl.
51900         * lib/math.in.h: Undefine roundf, round, roundl before defining
51901         their replacements, to allow for hypothetical systems where these
51902         may be defined as macros but not available in libraries.
51903
51904 2007-10-27  Bruno Haible  <bruno@clisp.org>
51905
51906         * doc/gnulib.texi: Invoke @firstparagraphindent.
51907         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51908         changes in gnulib.
51909         (Source changes): New section.
51910
51911 2007-10-26  Bruno Haible  <bruno@clisp.org>
51912
51913         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51914         borrowed from autoconf.
51915
51916 2007-10-26  Bruno Haible  <bruno@clisp.org>
51917
51918         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51919         strerror returned the empty string. Needed on HP-UX 11.00.
51920
51921 2007-10-24  Micah Cowan  <micah@cowan.name>
51922
51923         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51924         * build-aux/bootstrap: Remove support for now-unnecessary option,
51925         --cvs-user, and envvars CVS_USER, CVS_RSH.
51926
51927 2007-10-24  Jim Meyering  <meyering@redhat.com>
51928
51929         Avoid diagnostics from sha1sum when there is no cached checksum.
51930         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51931         if the po.s1 file hasn't been created yet.
51932
51933         * build-aux/bootstrap: Sync from coreutils:
51934         2007-10-24  Jim Meyering  <meyering@redhat.com>
51935         Get gnulib from the git repository, not from an obsolete cvs one.
51936         * build-aux/bootstrap: Suggestion from Micah Cowan.
51937         2007-10-04  Jim Meyering  <jim@meyering.net>
51938         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51939         (update_po_files): Work also when there are no .po files in po/.
51940
51941 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51942
51943         * README: Append ".git" to git and cg examples.
51944         Problem reported by Benoit Sigoure.
51945
51946 2007-10-23  Micah Cowan  <micah@cowan.name>
51947
51948         * users.txt: Add wget.
51949
51950 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51951
51952         Fix linking of some unistdio tests on FreeBSD.
51953         * modules/unistdio/u16-vsnprintf-tests
51954         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51955         * modules/unistdio/u16-vsprintf-tests
51956         (test_u16_vsnprintf1_LDADD): Likewise.
51957         * modules/unistdio/u32-vsnprintf-tests
51958         (test_u32_vsnprintf1_LDADD): Likewise.
51959         * modules/unistdio/u32-vsprintf-tests
51960         (test_u32_vsprintf1_LDADD): Likewise.
51961         * modules/unistdio/u8-vsnprintf-tests
51962         (test_u8_vsnprintf1_LDADD): Likewise.
51963         * modules/unistdio/u8-vsprintf-tests
51964         (test_u8_vsprintf1_LDADD): Likewise.
51965         * modules/unistdio/ulc-vsnprintf-tests
51966         (test_ulc_vsnprintf1_LDADD): Likewise.
51967         * modules/unistdio/ulc-vsprintf-tests
51968         (test_ulc_vsprintf1_LDADD): Likewise.
51969
51970         Fix linking of some uniconv tests on FreeBSD.
51971         * modules/uniconv/u16-conv-from-enc-tests
51972         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51973         * modules/uniconv/u16-conv-to-enc-tests
51974         (test_u16_conv_to_enc_LDADD): Likewise.
51975         * modules/uniconv/u16-strconv-from-enc-tests
51976         (test_u16_strconv_from_enc_LDADD): Likewise.
51977         * modules/uniconv/u16-strconv-to-enc-tests
51978         (test_u16_strconv_to_enc_LDADD): Likewise.
51979         * modules/uniconv/u32-conv-from-enc-tests
51980         (test_u32_conv_from_enc_LDADD): Likewise.
51981         * modules/uniconv/u32-conv-to-enc-tests
51982         (test_u32_conv_to_enc_LDADD): Likewise.
51983         * modules/uniconv/u32-strconv-from-enc-tests
51984         (test_u32_strconv_from_enc_LDADD): Likewise.
51985         * modules/uniconv/u32-strconv-to-enc-tests
51986         (test_u32_strconv_to_enc_LDADD): Likewise.
51987         * modules/uniconv/u8-conv-from-enc-tests
51988         (test_u8_conv_from_enc_LDADD): Likewise.
51989         * modules/uniconv/u8-conv-to-enc-tests
51990         (test_u8_conv_to_enc_LDADD): Likewise.
51991         * modules/uniconv/u8-strconv-from-enc-tests
51992         (test_u8_strconv_from_enc_LDADD): Likewise.
51993         * modules/uniconv/u8-strconv-to-enc-tests
51994         (test_u8_strconv_to_enc_LDADD): Likewise.
51995
51996 2007-10-22  Bruno Haible  <bruno@clisp.org>
51997
51998         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51999         size.
52000
52001 2007-10-22  Eric Blake  <ebb9@byu.net>
52002
52003         Tweak x*printf documentation.
52004         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52005         variable name and comments.
52006         Suggested by Bruno Haible.
52007
52008 2007-10-22  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/acl.c (copy_acl): Fix file name in comment.
52011
52012 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52013
52014         Fix Tru64 problem with stdbool.h.
52015         * lib/stdbool.in.h (false, true):
52016         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52017         Don't declare as an enum in this situation; it runs afoul of Tru64.
52018         Problem reported by Steven M. Schweda in
52019         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52020
52021 2007-10-22  Eric Blake  <ebb9@byu.net>
52022
52023         Also wrap vf?printf.
52024         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
52025         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
52026         (xvprintf, xvfprintf): New functions.
52027
52028 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52029
52030         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
52031         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
52032
52033         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
52034         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
52035
52036 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52037
52038         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
52039         by Bruno Haible.
52040
52041 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52042
52043         * lib/getloadavg.c
52044         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
52045         Undef `sys' after including sys/table.h, for Tru64 4.0D.
52046
52047         * tests/test-i-ring.c: Work for C89.
52048
52049 2007-10-22  Bruno Haible  <bruno@clisp.org>
52050
52051         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
52052         -1u, in preprocessor expression, so that we don't test for the bug
52053         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52055
52056 2007-10-22  Eric Blake  <ebb9@byu.net>
52057
52058         * tests/test-yesno.sh: Silence stderr during test.
52059
52060 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52061
52062         * modules/crypto/gc-camellia: New file.
52063
52064         * m4/gc-camellia.m4: New file.
52065
52066         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52067
52068         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52069
52070 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52071
52072         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52073         --help to stdout.  Reported by sms@antinode.org (Steven
52074         M. Schweda).
52075
52076 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52077
52078         * users.txt: Fix link to libksba.
52079
52080 2007-10-21  Ben Pfaff  <blp@gnu.org>
52081
52082         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52083         round.c roundf implementation that depends on floorf and ceilf to
52084         be tested unconditionally.
52085
52086 2007-10-21  Ben Pfaff  <blp@gnu.org>
52087
52088         * m4/check-libm-func.m4: Removed.
52089         * m4/check-math-lib.m4: New file.
52090         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52091         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52092         definition and lack of AC_LIBOBJ([roundf]).
52093         * m4/roundl.m4: Ditto, and similarly for roundl.
52094         * modules/round: Reference new m4 file.
52095         * modules/roundf: Ditto.
52096         * modules/roundl: Ditto.
52097         * tests/test-round2.c (main): Use ROUND instead of round.
52098         Bug report from Bruno Haible.
52099
52100 2007-10-21  Bruno Haible  <bruno@clisp.org>
52101
52102         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52103         context.
52104
52105 2007-10-21  Bruno Haible  <bruno@clisp.org>
52106
52107         * tests/test-wcwidth.c (main): Allow negative result for some control
52108         characters.
52109
52110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52111         Needed on OSF/1 5.1.
52112
52113 2007-10-21  Bruno Haible  <bruno@clisp.org>
52114
52115         * tests/test-floorf1.c: Include isnanf.h.
52116         (main): Use isnanf() instead of isnan().
52117         * tests/test-ceilf1.c: Include isnanf.h.
52118         (main): Use isnanf() instead of isnan().
52119         * tests/test-truncf1.c: Include isnanf.h.
52120         (main): Use isnanf() instead of isnan().
52121         * tests/test-roundf1.c: Include isnanf.h.
52122         (main): Use isnanf() instead of isnan().
52123
52124 2007-10-21  Eric Blake  <ebb9@byu.net>
52125
52126         * users.txt: Update URL for m4.
52127
52128 2007-10-21  Bruno Haible  <bruno@clisp.org>
52129
52130         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
52131
52132 2007-10-21  Bruno Haible  <bruno@clisp.org>
52133
52134         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
52135         Git's management files if the CVS files are not present.
52136
52137 2007-10-20  Bruno Haible  <bruno@clisp.org>
52138
52139         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
52140         gcc-3.4.x.
52141
52142 2007-10-20  Ben Pfaff  <blp@gnu.org>
52143
52144         * lib/math.in.h: Declare round, roundf, roundl if we are providing
52145         implementations.
52146         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
52147         * lib/round.c: New file.
52148         * lib/roundf.c: New file.
52149         * lib/roundl.c: New file.
52150         * m4/round.m4: New file.
52151         * m4/roundf.m4: New file.
52152         * m4/roundl.m4: New file.
52153         * m4/check-libm-func-m4: New file.
52154         * modules/math: Replace round, roundf, roundl related @VARS@ in
52155         math.in.h.
52156         * modules/round: New file.
52157         * modules/round-tests: New file.
52158         * modules/roundf: New file.
52159         * modules/roundf-tests: New file.
52160         * modules/roundl: New file.
52161         * modules/roundl-tests: New file.
52162         * tests/test-round1.c: New file.
52163         * tests/test-round2.c: New file.
52164         * tests/test-roundf1.c: New file.
52165         * tests/test-roundf2.c: New file.
52166         * tests/test-roundl.c: New file.
52167         * doc/functions/round.texi: Mention round module.
52168         * doc/functions/roundf.texi: Mention roundf module.
52169         * doc/functions/roundl.texi: Mention roundl module.
52170         * MODULES.html.sh: Mention new modules.
52171         Thanks to Bruno Haible for suggestions.
52172
52173 2007-10-20  Jim Meyering  <meyering@redhat.com>
52174
52175         * lib/xprintf.c: Include <config.h> unconditionally.
52176
52177         Change xprintf's license to GPL.
52178         * modules/xprintf (License): s/LGPL/GPL/, since this module
52179         depends on modules (exit and exitfail) which are GPL.
52180         Suggestion from Bruno Haible.
52181
52182         xprintf fixes.
52183         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
52184         Use a clearer diagnostic.
52185         Patch from Bruno Haible.
52186
52187 2007-10-20  Bruno Haible  <bruno@clisp.org>
52188
52189         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
52190         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
52191         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52192
52193 2007-10-20  Bruno Haible  <bruno@clisp.org>
52194
52195         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
52196         precision in the comparison result > x - 1 or similar.
52197         * tests/test-ceilf2.c (correct_result_p): Likewise.
52198         * tests/test-truncf2.c (correct_result_p): Likewise.
52199         * tests/test-trunc2.c (correct_result_p): Likewise.
52200         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52201
52202 2007-10-20  Bruno Haible  <bruno@clisp.org>
52203
52204         * modules/ceil: New file.
52205         * m4/ceil.m4: New file.
52206         * doc/functions/ceil.texi: Mention the 'ceil' module.
52207
52208 2007-10-20  Bruno Haible  <bruno@clisp.org>
52209
52210         * modules/floor: New file.
52211         * m4/floor.m4: New file.
52212         * doc/functions/floor.texi: Mention the 'floor' module.
52213
52214 2007-10-20  Bruno Haible  <bruno@clisp.org>
52215
52216         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
52217         of %a.
52218         * modules/floorf-tests (Depends-on): Likewise.
52219         * modules/truncf-tests (Depends-on): Likewise.
52220         * modules/trunc-tests (Depends-on): Likewise.
52221         Reported by Ben Pfaff.
52222
52223 2007-10-19  Jim Meyering  <meyering@redhat.com>
52224
52225         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
52226         Don't bother testing specific errno values.  Just test ferror.
52227
52228         New module: xprintf
52229         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
52230
52231 2007-10-19  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
52234         syntax.
52235         * modules/javaexec (Makefile.am): Likewise.
52236         * modules/relocatable-prog (Makefile.am): Likewise.
52237         Suggested by Jim Meyering.
52238
52239 2007-10-18  Bruno Haible  <bruno@clisp.org>
52240
52241         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
52242         Reported by Jim Meyering.
52243
52244 2007-10-18  Eric Blake  <ebb9@byu.net>
52245
52246         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
52247
52248 2007-10-18  Bruno Haible  <bruno@clisp.org>
52249
52250         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
52251         the format string into writable memory. Needed in Fortify conditions.
52252
52253 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
52254             Bruno Haible  <bruno@clisp.org>
52255
52256         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
52257         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
52258         * modules/trim (Depends-on): Add mbchar.
52259         (configure.ac): Add gl_FUNC_MBRTOWC.
52260         (Makefile.am): Augment lib_SOURCES.
52261
52262 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52263
52264         Modify glob.c to use fstatat and dirfd, to simplify it.
52265         Suggested by Eric Blake.
52266         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
52267         Don't include <stdbool.h>; not used.
52268         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
52269         (link_exists_p): Simplify implementation, since we can now assume
52270         dirfd and fstatat.
52271         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
52272
52273 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52274
52275         * gnulib-tool (func_get_dependencies): Fix sed script to
52276         match only tests.
52277
52278 2007-10-17  Bruno Haible  <bruno@clisp.org>
52279
52280         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
52281         allow locale names without encoding suffix.
52282         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52283         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52284
52285 2007-10-16  Bruno Haible  <bruno@clisp.org>
52286
52287         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
52288         * lib/getgroups.c (getgroups): Likewise.
52289         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
52290
52291 2007-10-16  Bruno Haible  <bruno@clisp.org>
52292
52293         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
52294         * modules/malloc-posix (License): Likewise.
52295         * modules/realloc-posix (License): Likewise.
52296         * modules/calloc-posix (License): Likewise.
52297         * modules/intprops (License): Change from GPL to LGPL, with
52298         Paul Eggert's approval.
52299
52300 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52301
52302         Merge glibc changes into lib/glob.c.
52303
52304         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
52305         2007-10-15 04:59:03 UTC.  Here are the changes:
52306
52307         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
52308
52309         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
52310
52311         * lib/glob.c: Add some branch prediction throughout.
52312
52313         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
52314
52315         [BZ #5103]
52316         * lib/glob.c (glob): Recognize patterns starting \/.
52317
52318         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
52319
52320         [BZ #3996]
52321         * lib/glob.c (attribute_hidden): Define if not defined.
52322         (glob): Unescape dirname, filename or username when needed and not
52323         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
52324         is NULL.  Handle unescaped [ in pattern without closing ].
52325         Don't pass GLOB_CHECK down to recursive glob for directories.
52326         (__glob_pattern_type): New function.
52327         (__glob_pattern_p): Implement using __glob_pattern_type.
52328         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
52329         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
52330         Remove unreachable code.
52331
52332         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
52333
52334         * lib/glob.c (glob_in_dir): Add some comments and asserts to
52335         explain why there are no leaks.
52336
52337         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
52338
52339         [BZ #3253]
52340         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
52341         time, rather allocate increasingly bigger arrays of pointers, if
52342         possible with alloca, if too large with malloc.
52343
52344 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52345
52346         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
52347         Problem reported by H.Merijn Brand in
52348         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
52349         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
52350         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52351
52352 2007-10-15  Bruno Haible  <bruno@clisp.org>
52353
52354         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
52355         with explicit rpl_ prefix.
52356         * lib/fopen.c (fopen): Likewise.
52357         * lib/freopen.c (freopen): Likewise.
52358         * lib/iconv.c (iconv): Likewise.
52359         * lib/iconv_close.c (iconv_close): Likewise.
52360
52361 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52362
52363         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
52364
52365 2007-10-15  Bruno Haible  <bruno@clisp.org>
52366
52367         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
52368         <stddef.h> instead of <stdlib.h> since we only need NULL.
52369         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52370
52371 2007-10-15  Bruno Haible  <bruno@clisp.org>
52372
52373         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
52374         Replace paragraph talking about LIBOBJS.
52375         Reported by Colin Watson <cjwatson@debian.org>.
52376
52377 2007-10-15  Bruno Haible  <bruno@clisp.org>
52378
52379         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
52380         <stdlib.h> before using NULL.
52381
52382 2007-10-15  Simon Josefsson  <simon@josefsson.org>
52383
52384         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
52385         Reported by Albert Chin <china@thewrittenword.com>.
52386
52387 2007-10-14  Bruno Haible  <bruno@clisp.org>
52388
52389         * modules/iconv_open-utf-tests: New file.
52390         * tests/test-iconv-utf.c: New file.
52391
52392         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
52393         * modules/iconv_open-utf: New file.
52394         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
52395         (iconv, iconv_close): New declarations.
52396         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
52397         be defined.
52398         (iconv_open): Add special handling of conversion between UTF-8 and
52399         UTF-{16,32}{BE,LE}.
52400         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
52401         * lib/iconv_close.c: New file.
52402         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
52403         gl_FUNC_ICONV_OPEN.
52404         (gl_FUNC_ICONV_OPEN): Use it.
52405         (gl_FUNC_ICONV_OPEN_UTF): New macro.
52406         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
52407         and REPLACE_ICONV_UTF.
52408         * modules/iconv_open (Depends-on): Add c-strcase.
52409         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
52410         ICONV_CONST.
52411         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
52412
52413 2007-10-13  Albert Chin  <china@thewrittenword.com>
52414             Bruno Haible  <bruno@clisp.org>
52415
52416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
52417         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
52418
52419 2007-10-13  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
52422         defined, use the ISO C99 inline semantics.
52423         * lib/argp.h (ARGP_EI): Likewise.
52424
52425 2007-10-13  Bruno Haible  <bruno@clisp.org>
52426
52427         Handle 'inline' change in gcc 4.3.0.
52428         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
52429         argp_fmtstream_write, argp_fmtstream_set_lmargin,
52430         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
52431         argp_fmtstream_point): Disable 'extern' declaration if the function
52432         definition is going to be provided inline.
52433         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
52434         semantics, not the ISO C99 inline semantics.
52435         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
52436         'extern' declaration if the function definition is going to be provided
52437         inline.
52438         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
52439         the GNU C inline semantics, not the ISO C99 inline semantics. With
52440         GCC 4.2, avoid a warning.
52441
52442 2007-10-13  Bruno Haible  <bruno@clisp.org>
52443
52444         * lib/freading.h (freading): Enable the use of __freading for
52445         glibc >= 2.7.
52446         * lib/freading.c (freading): Likewise.
52447
52448 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
52449
52450         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
52451         "warning: C99 inline functions are not supported; using GNU89".
52452
52453 2007-10-12  Bruno Haible  <bruno@clisp.org>
52454
52455         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
52456         of 2.
52457         * tests/test-ceilf2.c: New file.
52458         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
52459
52460         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
52461         * modules/ceilf-tests: Update.
52462
52463 2007-10-12  Bruno Haible  <bruno@clisp.org>
52464
52465         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
52466         of 2.
52467         * tests/test-floorf2.c: New file.
52468         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
52469
52470         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
52471         * modules/floorf-tests: Update.
52472
52473 2007-10-12  Bruno Haible  <bruno@clisp.org>
52474
52475         * tests/test-trunc2.c: New file.
52476         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
52477
52478         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
52479         * modules/trunc-tests: Update.
52480
52481 2007-10-12  Bruno Haible  <bruno@clisp.org>
52482
52483         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
52484         of 2.
52485         * tests/test-truncf2.c: New file.
52486         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
52487
52488         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
52489         * modules/truncf-tests: Update.
52490
52491 2007-10-11  Eric Blake  <ebb9@byu.net>
52492
52493         Don't claim strerror is broken on Interix.
52494         * doc/functions/strerror.texi (strerror): Known broken systems are
52495         now Solaris 8, and not Interix.
52496         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
52497         Interix on cross-compile.
52498         Reported by Martin Koeppe in
52499         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
52500
52501 2007-10-11  Bruno Haible  <bruno@clisp.org>
52502
52503         * modules/i-ring-tests: New file.
52504         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
52505         instead of assert.
52506
52507 2007-10-11  Bruno Haible  <bruno@clisp.org>
52508
52509         * modules/filenamecat-tests: New file.
52510         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
52511         * lib/filenamecat.c: Remove test code.
52512
52513 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
52516
52517         * lib/strerror.c: Include <string.h> always, to test interface,
52518         and to remove the need for the dummy.
52519         Include intprops.h to compute width instead of doing it ourselves
52520         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
52521         (strerror): Define it to return NULL if there's no system strerror.
52522         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
52523         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
52524         ancient pre-strerror Unix systems well any more.  Saying "unknown
52525         system error" is enough.
52526         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
52527         simpler strerror.c implementation.
52528         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
52529         Simplify the tests to reflect the simpler strerror implementation.
52530         * modules/strerror (Depends-on): Add intprops.
52531
52532 2007-10-09  Eric Blake  <ebb9@byu.net>
52533
52534         Silence test-fpending.
52535         * modules/fpending-tests (Files): Add wrapper script.
52536         * tests/test-fpending.sh: New file.
52537
52538 2007-10-09  Bruno Haible  <bruno@clisp.org>
52539
52540         * MODULES.html.sh (func_module): Don't create a hyperlink for
52541         function names like 'printf_frexp'.
52542         (Misc): Add crc, memxor.
52543         (Characteristics of floating types): New section.
52544         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
52545         isnanf-nolibm, signbit, trunc, truncf, truncl.
52546         (Enhancements for ISO C 99 functions): New subsection Input/output.
52547         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
52548         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
52549         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
52550         (Compatibility checks for POSIX:2001 functions): Add clock-time.
52551         (Enhancements for POSIX:2001 functions): Add chdir-long.
52552         (File system functions): Add areadlink, chdir-safer, read-file.
52553         Remove cycle-check.
52554         (File system as inode set): New section.
52555         (Date and time): Add gethrxtime.
52556         (Multithreading): Add openmp.
52557         (Internationalization functions): Add localename.
52558         (Unicode string functions): Add unistr/u*-mbsnlen.
52559         (Support for maintaining and releasing projects): Add git-version-gen.
52560         (Lone files): Remove directories.
52561
52562 2007-10-08  Ben Pfaff  <blp@gnu.org>
52563
52564         * lib/xmalloca.h: Fix typo in comment.
52565
52566 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52567
52568         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52569         when avoiding problems with integer overflow.  Use a portable test
52570         instead.
52571
52572 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52573
52574         * modules/dummy (License): Change to LGPLv2+.
52575         * modules/float (License): Likewise
52576         * modules/realloc (License): Likewise
52577         * modules/stdlib (License): Likewise
52578
52579 2007-10-07  Bruno Haible  <bruno@clisp.org>
52580
52581         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52582         * floor.c (TWO_MANT_DIG): Likewise.
52583         * ceil.c (TWO_MANT_DIG): Likewise.
52584         Reported by Ben Pfaff.
52585
52586 2007-10-07  Bruno Haible  <bruno@clisp.org>
52587
52588         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52589         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52590         * lib/frexp.c (FUNC): Likewise.
52591         * lib/printf-frexp.h (printf_frexp): Likewise.
52592         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52593         * lib/printf-frexp.c (FUNC): Likewise.
52594         Suggested by Jim Meyering.
52595
52596 2007-10-07  Jim Meyering  <meyering@redhat.com>
52597
52598         Make xnanosleep's integer overflow test more robust.
52599         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52600         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52601
52602 2007-10-07  Bruno Haible  <bruno@clisp.org>
52603
52604         * NEWS: Mention the license change.
52605
52606         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52607         abbreviations in the modules files.
52608
52609         Change copyright notice from GPLv2+ to GPLv3+.
52610         * README: Change copyright notice.
52611         * MODULES.html.sh: Likewise.
52612         * build-aux/bootstrap.conf: Likewise.
52613         * build-aux/config.libpath: Likewise.
52614         * build-aux/csharpcomp.sh.in: Likewise.
52615         * build-aux/csharpexec.sh.in: Likewise.
52616         * build-aux/install-reloc: Likewise.
52617         * build-aux/javacomp.sh.in: Likewise.
52618         * build-aux/javaexec.sh.in: Likewise.
52619         * build-aux/ldd.sh.in: Likewise.
52620         * build-aux/reloc-ldflags: Likewise.
52621         * build-aux/relocatable.sh.in: Likewise.
52622         * build-aux/x-to-1.in: Likewise.
52623         * check-module: Likewise.
52624         * config/srclistvars.sh: Likewise.
52625         * gnulib-tool: Likewise.
52626         * lib/acl-internal.h: Likewise.
52627         * lib/acl.c: Likewise.
52628         * lib/acl.h: Likewise.
52629         * lib/acl_entries.c: Likewise.
52630         * lib/areadlink-with-size.c: Likewise.
52631         * lib/areadlink.c: Likewise.
52632         * lib/areadlink.h: Likewise.
52633         * lib/argmatch.c: Likewise.
52634         * lib/argmatch.h: Likewise.
52635         * lib/argp-ba.c: Likewise.
52636         * lib/argp-eexst.c: Likewise.
52637         * lib/argp-fmtstream.c: Likewise.
52638         * lib/argp-fmtstream.h: Likewise.
52639         * lib/argp-fs-xinl.c: Likewise.
52640         * lib/argp-help.c: Likewise.
52641         * lib/argp-namefrob.h: Likewise.
52642         * lib/argp-parse.c: Likewise.
52643         * lib/argp-pin.c: Likewise.
52644         * lib/argp-pv.c: Likewise.
52645         * lib/argp-pvh.c: Likewise.
52646         * lib/argp-xinl.c: Likewise.
52647         * lib/argp.h: Likewise.
52648         * lib/at-func.c: Likewise.
52649         * lib/atanl.c: Likewise.
52650         * lib/backupfile.c: Likewise.
52651         * lib/backupfile.h: Likewise.
52652         * lib/basename.c: Likewise.
52653         * lib/binary-io.h: Likewise.
52654         * lib/byteswap.in.h: Likewise.
52655         * lib/c-stack.c: Likewise.
52656         * lib/c-stack.h: Likewise.
52657         * lib/c-strcasestr.c: Likewise.
52658         * lib/c-strcasestr.h: Likewise.
52659         * lib/c-strstr.c: Likewise.
52660         * lib/c-strstr.h: Likewise.
52661         * lib/c-strtod.c: Likewise.
52662         * lib/calloc.c: Likewise.
52663         * lib/canon-host.c: Likewise.
52664         * lib/canon-host.h: Likewise.
52665         * lib/canonicalize-lgpl.c: Likewise.
52666         * lib/canonicalize.c: Likewise.
52667         * lib/canonicalize.h: Likewise.
52668         * lib/ceil.c: Likewise.
52669         * lib/ceilf.c: Likewise.
52670         * lib/ceill.c: Likewise.
52671         * lib/chdir-long.c: Likewise.
52672         * lib/chdir-long.h: Likewise.
52673         * lib/chdir-safer.c: Likewise.
52674         * lib/chdir-safer.h: Likewise.
52675         * lib/chown.c: Likewise.
52676         * lib/classpath.c: Likewise.
52677         * lib/classpath.h: Likewise.
52678         * lib/clean-temp.c: Likewise.
52679         * lib/clean-temp.h: Likewise.
52680         * lib/cloexec.c: Likewise.
52681         * lib/close-stream.c: Likewise.
52682         * lib/closein.c: Likewise.
52683         * lib/closein.h: Likewise.
52684         * lib/closeout.c: Likewise.
52685         * lib/closeout.h: Likewise.
52686         * lib/concat-filename.c: Likewise.
52687         * lib/copy-file.c: Likewise.
52688         * lib/copy-file.h: Likewise.
52689         * lib/count-one-bits.h: Likewise.
52690         * lib/crc.c: Likewise.
52691         * lib/crc.h: Likewise.
52692         * lib/creat-safer.c: Likewise.
52693         * lib/csharpcomp.c: Likewise.
52694         * lib/csharpcomp.h: Likewise.
52695         * lib/csharpexec.c: Likewise.
52696         * lib/csharpexec.h: Likewise.
52697         * lib/cycle-check.c: Likewise.
52698         * lib/cycle-check.h: Likewise.
52699         * lib/diacrit.c: Likewise.
52700         * lib/diacrit.h: Likewise.
52701         * lib/diffseq.h: Likewise.
52702         * lib/dirchownmod.c: Likewise.
52703         * lib/dirent.in.h: Likewise.
52704         * lib/dirfd.c: Likewise.
52705         * lib/dirfd.h: Likewise.
52706         * lib/dirname.c: Likewise.
52707         * lib/dirname.h: Likewise.
52708         * lib/dummy.c: Likewise.
52709         * lib/dup-safer.c: Likewise.
52710         * lib/dup2.c: Likewise.
52711         * lib/eealloc.h: Likewise.
52712         * lib/error.c: Likewise.
52713         * lib/error.h: Likewise.
52714         * lib/euidaccess.c: Likewise.
52715         * lib/exclude.c: Likewise.
52716         * lib/exclude.h: Likewise.
52717         * lib/execute.c: Likewise.
52718         * lib/execute.h: Likewise.
52719         * lib/exitfail.c: Likewise.
52720         * lib/exitfail.h: Likewise.
52721         * lib/expl.c: Likewise.
52722         * lib/fatal-signal.c: Likewise.
52723         * lib/fatal-signal.h: Likewise.
52724         * lib/fbufmode.c: Likewise.
52725         * lib/fbufmode.h: Likewise.
52726         * lib/fchdir.c: Likewise.
52727         * lib/fchmodat.c: Likewise.
52728         * lib/fchownat.c: Likewise.
52729         * lib/fcntl--.h: Likewise.
52730         * lib/fcntl-safer.h: Likewise.
52731         * lib/fcntl.in.h: Likewise.
52732         * lib/fd-safer.c: Likewise.
52733         * lib/fflush.c: Likewise.
52734         * lib/file-has-acl.c: Likewise.
52735         * lib/file-set.c: Likewise.
52736         * lib/file-type.c: Likewise.
52737         * lib/file-type.h: Likewise.
52738         * lib/fileblocks.c: Likewise.
52739         * lib/filemode.c: Likewise.
52740         * lib/filemode.h: Likewise.
52741         * lib/filename.h: Likewise.
52742         * lib/filenamecat.c: Likewise.
52743         * lib/filenamecat.h: Likewise.
52744         * lib/findprog.c: Likewise.
52745         * lib/findprog.h: Likewise.
52746         * lib/float.in.h: Likewise.
52747         * lib/floor.c: Likewise.
52748         * lib/floorf.c: Likewise.
52749         * lib/floorl.c: Likewise.
52750         * lib/fopen-safer.c: Likewise.
52751         * lib/fopen.c: Likewise.
52752         * lib/fpending.c: Likewise.
52753         * lib/fpending.h: Likewise.
52754         * lib/fprintf.c: Likewise.
52755         * lib/fprintftime.h: Likewise.
52756         * lib/fpucw.h: Likewise.
52757         * lib/fpurge.c: Likewise.
52758         * lib/fpurge.h: Likewise.
52759         * lib/freadable.c: Likewise.
52760         * lib/freadable.h: Likewise.
52761         * lib/freadahead.c: Likewise.
52762         * lib/freadahead.h: Likewise.
52763         * lib/freading.c: Likewise.
52764         * lib/freading.h: Likewise.
52765         * lib/free.c: Likewise.
52766         * lib/freopen.c: Likewise.
52767         * lib/frexp.c: Likewise.
52768         * lib/frexpl.c: Likewise.
52769         * lib/fseek.c: Likewise.
52770         * lib/fseterr.c: Likewise.
52771         * lib/fseterr.h: Likewise.
52772         * lib/fstatat.c: Likewise.
52773         * lib/fstrcmp.c: Likewise.
52774         * lib/fstrcmp.h: Likewise.
52775         * lib/fsusage.c: Likewise.
52776         * lib/fsusage.h: Likewise.
52777         * lib/ftell.c: Likewise.
52778         * lib/ftello.c: Likewise.
52779         * lib/fts-cycle.c: Likewise.
52780         * lib/fts.c: Likewise.
52781         * lib/fts_.h: Likewise.
52782         * lib/full-read.c: Likewise.
52783         * lib/full-read.h: Likewise.
52784         * lib/full-write.c: Likewise.
52785         * lib/full-write.h: Likewise.
52786         * lib/fwritable.c: Likewise.
52787         * lib/fwritable.h: Likewise.
52788         * lib/fwriteerror.c: Likewise.
52789         * lib/fwriteerror.h: Likewise.
52790         * lib/fwriting.c: Likewise.
52791         * lib/fwriting.h: Likewise.
52792         * lib/gcd.c: Likewise.
52793         * lib/gcd.h: Likewise.
52794         * lib/getcwd.c: Likewise.
52795         * lib/getdate.h: Likewise.
52796         * lib/getdate.y: Likewise.
52797         * lib/getdomainname.c: Likewise.
52798         * lib/getdomainname.h: Likewise.
52799         * lib/getgroups.c: Likewise.
52800         * lib/gethostname.c: Likewise.
52801         * lib/gethrxtime.c: Likewise.
52802         * lib/gethrxtime.h: Likewise.
52803         * lib/getloadavg.c: Likewise.
52804         * lib/getndelim2.c: Likewise.
52805         * lib/getndelim2.h: Likewise.
52806         * lib/getnline.c: Likewise.
52807         * lib/getnline.h: Likewise.
52808         * lib/getopt.c: Likewise.
52809         * lib/getopt.in.h: Likewise.
52810         * lib/getopt1.c: Likewise.
52811         * lib/getopt_int.h: Likewise.
52812         * lib/getpagesize.h: Likewise.
52813         * lib/getsubopt.c: Likewise.
52814         * lib/gettime.c: Likewise.
52815         * lib/getugroups.c: Likewise.
52816         * lib/getugroups.h: Likewise.
52817         * lib/getusershell.c: Likewise.
52818         * lib/gl_anyavltree_list1.h: Likewise.
52819         * lib/gl_anyavltree_list2.h: Likewise.
52820         * lib/gl_anyhash_list1.h: Likewise.
52821         * lib/gl_anyhash_list2.h: Likewise.
52822         * lib/gl_anylinked_list1.h: Likewise.
52823         * lib/gl_anylinked_list2.h: Likewise.
52824         * lib/gl_anyrbtree_list1.h: Likewise.
52825         * lib/gl_anyrbtree_list2.h: Likewise.
52826         * lib/gl_anytree_list1.h: Likewise.
52827         * lib/gl_anytree_list2.h: Likewise.
52828         * lib/gl_anytree_oset.h: Likewise.
52829         * lib/gl_anytreehash_list1.h: Likewise.
52830         * lib/gl_anytreehash_list2.h: Likewise.
52831         * lib/gl_array_list.c: Likewise.
52832         * lib/gl_array_list.h: Likewise.
52833         * lib/gl_array_oset.c: Likewise.
52834         * lib/gl_array_oset.h: Likewise.
52835         * lib/gl_avltree_list.c: Likewise.
52836         * lib/gl_avltree_list.h: Likewise.
52837         * lib/gl_avltree_oset.c: Likewise.
52838         * lib/gl_avltree_oset.h: Likewise.
52839         * lib/gl_avltreehash_list.c: Likewise.
52840         * lib/gl_avltreehash_list.h: Likewise.
52841         * lib/gl_carray_list.c: Likewise.
52842         * lib/gl_carray_list.h: Likewise.
52843         * lib/gl_linked_list.c: Likewise.
52844         * lib/gl_linked_list.h: Likewise.
52845         * lib/gl_linkedhash_list.c: Likewise.
52846         * lib/gl_linkedhash_list.h: Likewise.
52847         * lib/gl_list.c: Likewise.
52848         * lib/gl_list.h: Likewise.
52849         * lib/gl_oset.c: Likewise.
52850         * lib/gl_oset.h: Likewise.
52851         * lib/gl_rbtree_list.c: Likewise.
52852         * lib/gl_rbtree_list.h: Likewise.
52853         * lib/gl_rbtree_oset.c: Likewise.
52854         * lib/gl_rbtree_oset.h: Likewise.
52855         * lib/gl_rbtreehash_list.c: Likewise.
52856         * lib/gl_rbtreehash_list.h: Likewise.
52857         * lib/gl_sublist.c: Likewise.
52858         * lib/gl_sublist.h: Likewise.
52859         * lib/group-member.c: Likewise.
52860         * lib/group-member.h: Likewise.
52861         * lib/hard-locale.c: Likewise.
52862         * lib/hard-locale.h: Likewise.
52863         * lib/hash-pjw.c: Likewise.
52864         * lib/hash-pjw.h: Likewise.
52865         * lib/hash-triple.c: Likewise.
52866         * lib/hash.c: Likewise.
52867         * lib/hash.h: Likewise.
52868         * lib/human.c: Likewise.
52869         * lib/human.h: Likewise.
52870         * lib/i-ring.c: Likewise.
52871         * lib/i-ring.h: Likewise.
52872         * lib/idcache.c: Likewise.
52873         * lib/imaxabs.c: Likewise.
52874         * lib/imaxdiv.c: Likewise.
52875         * lib/inet_pton.c: Likewise.
52876         * lib/inet_pton.h: Likewise.
52877         * lib/intprops.h: Likewise.
52878         * lib/inttostr.c: Likewise.
52879         * lib/inttostr.h: Likewise.
52880         * lib/inttypes.in.h: Likewise.
52881         * lib/isapipe.c: Likewise.
52882         * lib/isdir.c: Likewise.
52883         * lib/isnan.c: Likewise.
52884         * lib/isnan.h: Likewise.
52885         * lib/isnanf.c: Likewise.
52886         * lib/isnanf.h: Likewise.
52887         * lib/isnanl-nolibm.h: Likewise.
52888         * lib/isnanl.c: Likewise.
52889         * lib/isnanl.h: Likewise.
52890         * lib/javacomp.c: Likewise.
52891         * lib/javacomp.h: Likewise.
52892         * lib/javaexec.c: Likewise.
52893         * lib/javaexec.h: Likewise.
52894         * lib/javaversion.c: Likewise.
52895         * lib/javaversion.h: Likewise.
52896         * lib/javaversion.java: Likewise.
52897         * lib/lbrkprop.h: Likewise.
52898         * lib/lchmod.h: Likewise.
52899         * lib/lchown.c: Likewise.
52900         * lib/ldexpl.c: Likewise.
52901         * lib/linebreak.c: Likewise.
52902         * lib/linebreak.h: Likewise.
52903         * lib/linebuffer.c: Likewise.
52904         * lib/linebuffer.h: Likewise.
52905         * lib/locale.in.h: Likewise.
52906         * lib/logl.c: Likewise.
52907         * lib/long-options.c: Likewise.
52908         * lib/long-options.h: Likewise.
52909         * lib/lstat.c: Likewise.
52910         * lib/lstat.h: Likewise.
52911         * lib/math.in.h: Likewise.
52912         * lib/mbchar.c: Likewise.
52913         * lib/mbchar.h: Likewise.
52914         * lib/mbfile.h: Likewise.
52915         * lib/mbiter.h: Likewise.
52916         * lib/mbscasecmp.c: Likewise.
52917         * lib/mbscasestr.c: Likewise.
52918         * lib/mbschr.c: Likewise.
52919         * lib/mbscspn.c: Likewise.
52920         * lib/mbslen.c: Likewise.
52921         * lib/mbsncasecmp.c: Likewise.
52922         * lib/mbsnlen.c: Likewise.
52923         * lib/mbspbrk.c: Likewise.
52924         * lib/mbspcasecmp.c: Likewise.
52925         * lib/mbsrchr.c: Likewise.
52926         * lib/mbssep.c: Likewise.
52927         * lib/mbsspn.c: Likewise.
52928         * lib/mbsstr.c: Likewise.
52929         * lib/mbstok_r.c: Likewise.
52930         * lib/mbswidth.c: Likewise.
52931         * lib/mbswidth.h: Likewise.
52932         * lib/mbuiter.h: Likewise.
52933         * lib/memcasecmp.c: Likewise.
52934         * lib/memcasecmp.h: Likewise.
52935         * lib/memchr.c: Likewise.
52936         * lib/memcmp.c: Likewise.
52937         * lib/memcoll.c: Likewise.
52938         * lib/memcoll.h: Likewise.
52939         * lib/memcpy.c: Likewise.
52940         * lib/memrchr.c: Likewise.
52941         * lib/mkancesdirs.c: Likewise.
52942         * lib/mkdir-p.c: Likewise.
52943         * lib/mkdir-p.h: Likewise.
52944         * lib/mkdir.c: Likewise.
52945         * lib/mkdirat.c: Likewise.
52946         * lib/mkdtemp.c: Likewise.
52947         * lib/mkstemp-safer.c: Likewise.
52948         * lib/mkstemp.c: Likewise.
52949         * lib/modechange.c: Likewise.
52950         * lib/modechange.h: Likewise.
52951         * lib/mountlist.c: Likewise.
52952         * lib/mountlist.h: Likewise.
52953         * lib/mpsort.c: Likewise.
52954         * lib/nanosleep.c: Likewise.
52955         * lib/obstack.c: Likewise.
52956         * lib/obstack.h: Likewise.
52957         * lib/open-safer.c: Likewise.
52958         * lib/open.c: Likewise.
52959         * lib/openat-die.c: Likewise.
52960         * lib/openat-priv.h: Likewise.
52961         * lib/openat-proc.c: Likewise.
52962         * lib/openat.c: Likewise.
52963         * lib/openat.h: Likewise.
52964         * lib/pagealign_alloc.c: Likewise.
52965         * lib/pagealign_alloc.h: Likewise.
52966         * lib/physmem.c: Likewise.
52967         * lib/physmem.h: Likewise.
52968         * lib/pipe-safer.c: Likewise.
52969         * lib/pipe.c: Likewise.
52970         * lib/pipe.h: Likewise.
52971         * lib/posixtm.c: Likewise.
52972         * lib/posixtm.h: Likewise.
52973         * lib/posixver.c: Likewise.
52974         * lib/printf-frexp.c: Likewise.
52975         * lib/printf-frexp.h: Likewise.
52976         * lib/printf-frexpl.c: Likewise.
52977         * lib/printf-frexpl.h: Likewise.
52978         * lib/printf.c: Likewise.
52979         * lib/progname.c: Likewise.
52980         * lib/progname.h: Likewise.
52981         * lib/progreloc.c: Likewise.
52982         * lib/putenv.c: Likewise.
52983         * lib/quote.c: Likewise.
52984         * lib/quote.h: Likewise.
52985         * lib/quotearg.c: Likewise.
52986         * lib/quotearg.h: Likewise.
52987         * lib/raise.c: Likewise.
52988         * lib/readline.c: Likewise.
52989         * lib/readline.h: Likewise.
52990         * lib/readlink.c: Likewise.
52991         * lib/readtokens.c: Likewise.
52992         * lib/readtokens.h: Likewise.
52993         * lib/readtokens0.c: Likewise.
52994         * lib/readtokens0.h: Likewise.
52995         * lib/readutmp.c: Likewise.
52996         * lib/readutmp.h: Likewise.
52997         * lib/realloc.c: Likewise.
52998         * lib/relocwrapper.c: Likewise.
52999         * lib/rename-dest-slash.c: Likewise.
53000         * lib/rename.c: Likewise.
53001         * lib/rmdir.c: Likewise.
53002         * lib/rpmatch.c: Likewise.
53003         * lib/safe-read.c: Likewise.
53004         * lib/safe-read.h: Likewise.
53005         * lib/safe-write.c: Likewise.
53006         * lib/safe-write.h: Likewise.
53007         * lib/same-inode.h: Likewise.
53008         * lib/same.c: Likewise.
53009         * lib/same.h: Likewise.
53010         * lib/save-cwd.c: Likewise.
53011         * lib/save-cwd.h: Likewise.
53012         * lib/savedir.c: Likewise.
53013         * lib/savedir.h: Likewise.
53014         * lib/savewd.c: Likewise.
53015         * lib/savewd.h: Likewise.
53016         * lib/search.in.h: Likewise.
53017         * lib/setenv.c: Likewise.
53018         * lib/setenv.h: Likewise.
53019         * lib/settime.c: Likewise.
53020         * lib/sh-quote.c: Likewise.
53021         * lib/sh-quote.h: Likewise.
53022         * lib/sig2str.c: Likewise.
53023         * lib/sig2str.h: Likewise.
53024         * lib/signal.in.h: Likewise.
53025         * lib/signbitd.c: Likewise.
53026         * lib/signbitf.c: Likewise.
53027         * lib/signbitl.c: Likewise.
53028         * lib/sigprocmask.c: Likewise.
53029         * lib/sincosl.c: Likewise.
53030         * lib/sleep.c: Likewise.
53031         * lib/sprintf.c: Likewise.
53032         * lib/sqrtl.c: Likewise.
53033         * lib/stat-time.h: Likewise.
53034         * lib/stdio--.h: Likewise.
53035         * lib/stdio-safer.h: Likewise.
53036         * lib/stdlib--.h: Likewise.
53037         * lib/stdlib-safer.h: Likewise.
53038         * lib/stdlib.in.h: Likewise.
53039         * lib/stpcpy.c: Likewise.
53040         * lib/stpncpy.c: Likewise.
53041         * lib/strchrnul.c: Likewise.
53042         * lib/strcspn.c: Likewise.
53043         * lib/strerror.c: Likewise.
53044         * lib/strftime.c: Likewise.
53045         * lib/strftime.h: Likewise.
53046         * lib/striconveh.c: Likewise.
53047         * lib/striconveh.h: Likewise.
53048         * lib/striconveha.c: Likewise.
53049         * lib/striconveha.h: Likewise.
53050         * lib/stripslash.c: Likewise.
53051         * lib/strnlen1.c: Likewise.
53052         * lib/strnlen1.h: Likewise.
53053         * lib/strtod.c: Likewise.
53054         * lib/strtoimax.c: Likewise.
53055         * lib/strtok_r.c: Likewise.
53056         * lib/strtol.c: Likewise.
53057         * lib/strtoll.c: Likewise.
53058         * lib/strtoul.c: Likewise.
53059         * lib/strtoull.c: Likewise.
53060         * lib/sysexits.in.h: Likewise.
53061         * lib/tempname.c: Likewise.
53062         * lib/tempname.h: Likewise.
53063         * lib/timespec.h: Likewise.
53064         * lib/tls.c: Likewise.
53065         * lib/tls.h: Likewise.
53066         * lib/tmpdir.c: Likewise.
53067         * lib/tmpdir.h: Likewise.
53068         * lib/tmpfile-safer.c: Likewise.
53069         * lib/tmpfile.c: Likewise.
53070         * lib/trigl.c: Likewise.
53071         * lib/trigl.h: Likewise.
53072         * lib/trim.c: Likewise.
53073         * lib/trim.h: Likewise.
53074         * lib/trunc.c: Likewise.
53075         * lib/truncf.c: Likewise.
53076         * lib/truncl.c: Likewise.
53077         * lib/tsearch.c: Likewise.
53078         * lib/unicodeio.c: Likewise.
53079         * lib/unicodeio.h: Likewise.
53080         * lib/unistd--.h: Likewise.
53081         * lib/unistd-safer.h: Likewise.
53082         * lib/unistdio/ulc-fprintf.c: Likewise.
53083         * lib/unistdio/ulc-vfprintf.c: Likewise.
53084         * lib/unlinkdir.c: Likewise.
53085         * lib/unlinkdir.h: Likewise.
53086         * lib/unlocked-io.h: Likewise.
53087         * lib/unsetenv.c: Likewise.
53088         * lib/userspec.c: Likewise.
53089         * lib/utime.c: Likewise.
53090         * lib/utimecmp.c: Likewise.
53091         * lib/utimecmp.h: Likewise.
53092         * lib/utimens.c: Likewise.
53093         * lib/verify.h: Likewise.
53094         * lib/verror.c: Likewise.
53095         * lib/verror.h: Likewise.
53096         * lib/version-etc-fsf.c: Likewise.
53097         * lib/version-etc.c: Likewise.
53098         * lib/version-etc.h: Likewise.
53099         * lib/vfprintf.c: Likewise.
53100         * lib/vprintf.c: Likewise.
53101         * lib/vsprintf.c: Likewise.
53102         * lib/w32spawn.h: Likewise.
53103         * lib/wait-process.c: Likewise.
53104         * lib/wait-process.h: Likewise.
53105         * lib/wcwidth.c: Likewise.
53106         * lib/write-any-file.c: Likewise.
53107         * lib/xalloc-die.c: Likewise.
53108         * lib/xalloc.h: Likewise.
53109         * lib/xasprintf.c: Likewise.
53110         * lib/xgetcwd.c: Likewise.
53111         * lib/xgetcwd.h: Likewise.
53112         * lib/xgetdomainname.c: Likewise.
53113         * lib/xgetdomainname.h: Likewise.
53114         * lib/xgethostname.c: Likewise.
53115         * lib/xmalloc.c: Likewise.
53116         * lib/xmalloca.c: Likewise.
53117         * lib/xmalloca.h: Likewise.
53118         * lib/xmemcoll.c: Likewise.
53119         * lib/xnanosleep.c: Likewise.
53120         * lib/xreadlink.c: Likewise.
53121         * lib/xreadlink.h: Likewise.
53122         * lib/xsetenv.c: Likewise.
53123         * lib/xsetenv.h: Likewise.
53124         * lib/xstriconv.c: Likewise.
53125         * lib/xstriconv.h: Likewise.
53126         * lib/xstrndup.c: Likewise.
53127         * lib/xstrndup.h: Likewise.
53128         * lib/xstrtod.c: Likewise.
53129         * lib/xstrtod.h: Likewise.
53130         * lib/xstrtol-error.c: Likewise.
53131         * lib/xstrtol.c: Likewise.
53132         * lib/xstrtol.h: Likewise.
53133         * lib/xtime.h: Likewise.
53134         * lib/xvasprintf.c: Likewise.
53135         * lib/xvasprintf.h: Likewise.
53136         * lib/yesno.c: Likewise.
53137         * lib/yesno.h: Likewise.
53138         * posix-modules: Likewise.
53139         * tests/test-alloca-opt.c: Likewise.
53140         * tests/test-arcfour.c: Likewise.
53141         * tests/test-arctwo.c: Likewise.
53142         * tests/test-argmatch.c: Likewise.
53143         * tests/test-argp-2.sh: Likewise.
53144         * tests/test-argp.c: Likewise.
53145         * tests/test-arpa_inet.c: Likewise.
53146         * tests/test-array_list.c: Likewise.
53147         * tests/test-array_oset.c: Likewise.
53148         * tests/test-atexit.c: Likewise.
53149         * tests/test-avltree_list.c: Likewise.
53150         * tests/test-avltree_oset.c: Likewise.
53151         * tests/test-avltreehash_list.c: Likewise.
53152         * tests/test-base64.c: Likewise.
53153         * tests/test-binary-io.c: Likewise.
53154         * tests/test-byteswap.c: Likewise.
53155         * tests/test-c-ctype.c: Likewise.
53156         * tests/test-c-strcasecmp.c: Likewise.
53157         * tests/test-c-strcasestr.c: Likewise.
53158         * tests/test-c-strncasecmp.c: Likewise.
53159         * tests/test-c-strstr.c: Likewise.
53160         * tests/test-canonicalize-lgpl.c: Likewise.
53161         * tests/test-canonicalize.c: Likewise.
53162         * tests/test-carray_list.c: Likewise.
53163         * tests/test-ceilf.c: Likewise.
53164         * tests/test-ceill.c: Likewise.
53165         * tests/test-count-one-bits.c: Likewise.
53166         * tests/test-crc.c: Likewise.
53167         * tests/test-dirname.c: Likewise.
53168         * tests/test-fbufmode.c: Likewise.
53169         * tests/test-fcntl.c: Likewise.
53170         * tests/test-fflush.c: Likewise.
53171         * tests/test-floorf.c: Likewise.
53172         * tests/test-floorl.c: Likewise.
53173         * tests/test-fopen.c: Likewise.
53174         * tests/test-fprintf-posix.c: Likewise.
53175         * tests/test-fprintf-posix.h: Likewise.
53176         * tests/test-fpurge.c: Likewise.
53177         * tests/test-freadable.c: Likewise.
53178         * tests/test-freadahead.c: Likewise.
53179         * tests/test-freading.c: Likewise.
53180         * tests/test-freopen.c: Likewise.
53181         * tests/test-frexp.c: Likewise.
53182         * tests/test-frexpl.c: Likewise.
53183         * tests/test-fseek.c: Likewise.
53184         * tests/test-fseeko.c: Likewise.
53185         * tests/test-fseterr.c: Likewise.
53186         * tests/test-fstrcmp.c: Likewise.
53187         * tests/test-ftell.c: Likewise.
53188         * tests/test-ftello.c: Likewise.
53189         * tests/test-fwritable.c: Likewise.
53190         * tests/test-fwriting.c: Likewise.
53191         * tests/test-getaddrinfo.c: Likewise.
53192         * tests/test-getpass.c: Likewise.
53193         * tests/test-gettimeofday.c: Likewise.
53194         * tests/test-hmac-md5.c: Likewise.
53195         * tests/test-hmac-sha1.c: Likewise.
53196         * tests/test-iconv.c: Likewise.
53197         * tests/test-iconvme.c: Likewise.
53198         * tests/test-inttypes.c: Likewise.
53199         * tests/test-isnan.c: Likewise.
53200         * tests/test-isnanf.c: Likewise.
53201         * tests/test-isnanl-nolibm.c: Likewise.
53202         * tests/test-isnanl.c: Likewise.
53203         * tests/test-isnanl.h: Likewise.
53204         * tests/test-ldexpl.c: Likewise.
53205         * tests/test-linked_list.c: Likewise.
53206         * tests/test-linkedhash_list.c: Likewise.
53207         * tests/test-locale.c: Likewise.
53208         * tests/test-localename.c: Likewise.
53209         * tests/test-lock.c: Likewise.
53210         * tests/test-lseek.c: Likewise.
53211         * tests/test-malloca.c: Likewise.
53212         * tests/test-math.c: Likewise.
53213         * tests/test-mbscasecmp.c: Likewise.
53214         * tests/test-mbscasestr1.c: Likewise.
53215         * tests/test-mbscasestr2.c: Likewise.
53216         * tests/test-mbscasestr3.c: Likewise.
53217         * tests/test-mbscasestr4.c: Likewise.
53218         * tests/test-mbschr.c: Likewise.
53219         * tests/test-mbscspn.c: Likewise.
53220         * tests/test-mbsncasecmp.c: Likewise.
53221         * tests/test-mbspbrk.c: Likewise.
53222         * tests/test-mbspcasecmp.c: Likewise.
53223         * tests/test-mbsrchr.c: Likewise.
53224         * tests/test-mbsspn.c: Likewise.
53225         * tests/test-mbsstr1.c: Likewise.
53226         * tests/test-mbsstr2.c: Likewise.
53227         * tests/test-mbsstr3.c: Likewise.
53228         * tests/test-md5.c: Likewise.
53229         * tests/test-memmem.c: Likewise.
53230         * tests/test-netinet_in.c: Likewise.
53231         * tests/test-open.c: Likewise.
53232         * tests/test-printf-frexp.c: Likewise.
53233         * tests/test-printf-frexpl.c: Likewise.
53234         * tests/test-printf-posix.c: Likewise.
53235         * tests/test-printf-posix.h: Likewise.
53236         * tests/test-rbtree_list.c: Likewise.
53237         * tests/test-rbtree_oset.c: Likewise.
53238         * tests/test-rbtreehash_list.c: Likewise.
53239         * tests/test-read-file.c: Likewise.
53240         * tests/test-rijndael.c: Likewise.
53241         * tests/test-search.c: Likewise.
53242         * tests/test-signbit.c: Likewise.
53243         * tests/test-sleep.c: Likewise.
53244         * tests/test-snprintf-posix.c: Likewise.
53245         * tests/test-snprintf-posix.h: Likewise.
53246         * tests/test-snprintf.c: Likewise.
53247         * tests/test-sprintf-posix.c: Likewise.
53248         * tests/test-sprintf-posix.h: Likewise.
53249         * tests/test-stat-time.c: Likewise.
53250         * tests/test-stdbool.c: Likewise.
53251         * tests/test-stdint.c: Likewise.
53252         * tests/test-stdio.c: Likewise.
53253         * tests/test-stdlib.c: Likewise.
53254         * tests/test-stpncpy.c: Likewise.
53255         * tests/test-strcasestr.c: Likewise.
53256         * tests/test-striconv.c: Likewise.
53257         * tests/test-striconveh.c: Likewise.
53258         * tests/test-striconveha.c: Likewise.
53259         * tests/test-string.c: Likewise.
53260         * tests/test-sys_select.c: Likewise.
53261         * tests/test-sys_socket.c: Likewise.
53262         * tests/test-sys_stat.c: Likewise.
53263         * tests/test-sys_time.c: Likewise.
53264         * tests/test-sysexits.c: Likewise.
53265         * tests/test-time.c: Likewise.
53266         * tests/test-tls.c: Likewise.
53267         * tests/test-trunc.c: Likewise.
53268         * tests/test-truncf.c: Likewise.
53269         * tests/test-truncl.c: Likewise.
53270         * tests/test-unistd.c: Likewise.
53271         * tests/test-vasnprintf-posix.c: Likewise.
53272         * tests/test-vasnprintf-posix2.c: Likewise.
53273         * tests/test-vasnprintf.c: Likewise.
53274         * tests/test-vasprintf-posix.c: Likewise.
53275         * tests/test-vasprintf.c: Likewise.
53276         * tests/test-verify.c: Likewise.
53277         * tests/test-vfprintf-posix.c: Likewise.
53278         * tests/test-vprintf-posix.c: Likewise.
53279         * tests/test-vsnprintf-posix.c: Likewise.
53280         * tests/test-vsnprintf.c: Likewise.
53281         * tests/test-vsprintf-posix.c: Likewise.
53282         * tests/test-wchar.c: Likewise.
53283         * tests/test-wctype.c: Likewise.
53284         * tests/test-wcwidth.c: Likewise.
53285         * tests/test-xstrtol.c: Likewise.
53286         * tests/test-xvasprintf.c: Likewise.
53287         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53288         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53289         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53290         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53291         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53292         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53293         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53294         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53295         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53296         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53297         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53298         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53299         * tests/uniname/test-uninames.c: Likewise.
53300         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53301         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
53302         * tests/unistdio/test-u16-printf1.h: Likewise.
53303         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53304         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53305         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53306         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53307         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53308         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53309         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53310         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
53311         * tests/unistdio/test-u32-printf1.h: Likewise.
53312         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53313         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53314         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53315         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53316         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53317         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53318         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53319         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
53320         * tests/unistdio/test-u8-printf1.h: Likewise.
53321         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53322         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53323         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53324         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53325         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53326         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53327         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53328         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
53329         * tests/unistdio/test-ulc-printf1.h: Likewise.
53330         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53331         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53332         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53333         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53334         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53335         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53336         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53337         * tests/uniwidth/test-u16-width.c: Likewise.
53338         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53339         * tests/uniwidth/test-u32-width.c: Likewise.
53340         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53341         * tests/uniwidth/test-u8-width.c: Likewise.
53342         * tests/uniwidth/test-uc_width.c: Likewise.
53343         * config/srclist-update: Likewise.
53344         (fixlicense): Update to GPLv3+.
53345
53346         Change copyright notice from LGPLv2.1+ to LGPLv3+.
53347         * tests/test-tsearch.c: Change copyright notice.
53348
53349         Change copyright notice from LGPLv2.0+ to LGPLv3+.
53350         * lib/c-strcaseeq.h: Change copyright notice.
53351         * lib/streq.h: Likewise.
53352         * lib/uniconv.h: Likewise.
53353         * lib/uniconv/u-conv-from-enc.h: Likewise.
53354         * lib/uniconv/u-conv-to-enc.h: Likewise.
53355         * lib/uniconv/u-strconv-from-enc.h: Likewise.
53356         * lib/uniconv/u-strconv-to-enc.h: Likewise.
53357         * lib/uniconv/u16-conv-from-enc.c: Likewise.
53358         * lib/uniconv/u16-conv-to-enc.c: Likewise.
53359         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
53360         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
53361         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
53362         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
53363         * lib/uniconv/u32-conv-from-enc.c: Likewise.
53364         * lib/uniconv/u32-conv-to-enc.c: Likewise.
53365         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
53366         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
53367         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
53368         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
53369         * lib/uniconv/u8-conv-from-enc.c: Likewise.
53370         * lib/uniconv/u8-conv-to-enc.c: Likewise.
53371         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
53372         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
53373         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
53374         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
53375         * lib/uniname.h: Likewise.
53376         * lib/uniname/uniname.c: Likewise.
53377         * lib/unistdio.h: Likewise.
53378         * lib/unistdio/u-asnprintf.h: Likewise.
53379         * lib/unistdio/u-asprintf.h: Likewise.
53380         * lib/unistdio/u-printf-args.c: Likewise.
53381         * lib/unistdio/u-printf-args.h: Likewise.
53382         * lib/unistdio/u-printf-parse.h: Likewise.
53383         * lib/unistdio/u-snprintf.h: Likewise.
53384         * lib/unistdio/u-sprintf.h: Likewise.
53385         * lib/unistdio/u-vasprintf.h: Likewise.
53386         * lib/unistdio/u-vsnprintf.h: Likewise.
53387         * lib/unistdio/u-vsprintf.h: Likewise.
53388         * lib/unistdio/u16-asnprintf.c: Likewise.
53389         * lib/unistdio/u16-asprintf.c: Likewise.
53390         * lib/unistdio/u16-printf-parse.c: Likewise.
53391         * lib/unistdio/u16-snprintf.c: Likewise.
53392         * lib/unistdio/u16-sprintf.c: Likewise.
53393         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
53394         * lib/unistdio/u16-u16-asprintf.c: Likewise.
53395         * lib/unistdio/u16-u16-snprintf.c: Likewise.
53396         * lib/unistdio/u16-u16-sprintf.c: Likewise.
53397         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
53398         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53399         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
53400         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
53401         * lib/unistdio/u16-vasnprintf.c: Likewise.
53402         * lib/unistdio/u16-vasprintf.c: Likewise.
53403         * lib/unistdio/u16-vsnprintf.c: Likewise.
53404         * lib/unistdio/u16-vsprintf.c: Likewise.
53405         * lib/unistdio/u32-asnprintf.c: Likewise.
53406         * lib/unistdio/u32-asprintf.c: Likewise.
53407         * lib/unistdio/u32-printf-parse.c: Likewise.
53408         * lib/unistdio/u32-snprintf.c: Likewise.
53409         * lib/unistdio/u32-sprintf.c: Likewise.
53410         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
53411         * lib/unistdio/u32-u32-asprintf.c: Likewise.
53412         * lib/unistdio/u32-u32-snprintf.c: Likewise.
53413         * lib/unistdio/u32-u32-sprintf.c: Likewise.
53414         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
53415         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
53416         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
53417         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
53418         * lib/unistdio/u32-vasnprintf.c: Likewise.
53419         * lib/unistdio/u32-vasprintf.c: Likewise.
53420         * lib/unistdio/u32-vsnprintf.c: Likewise.
53421         * lib/unistdio/u32-vsprintf.c: Likewise.
53422         * lib/unistdio/u8-asnprintf.c: Likewise.
53423         * lib/unistdio/u8-asprintf.c: Likewise.
53424         * lib/unistdio/u8-printf-parse.c: Likewise.
53425         * lib/unistdio/u8-snprintf.c: Likewise.
53426         * lib/unistdio/u8-sprintf.c: Likewise.
53427         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
53428         * lib/unistdio/u8-u8-asprintf.c: Likewise.
53429         * lib/unistdio/u8-u8-snprintf.c: Likewise.
53430         * lib/unistdio/u8-u8-sprintf.c: Likewise.
53431         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
53432         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
53433         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
53434         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
53435         * lib/unistdio/u8-vasnprintf.c: Likewise.
53436         * lib/unistdio/u8-vasprintf.c: Likewise.
53437         * lib/unistdio/u8-vsnprintf.c: Likewise.
53438         * lib/unistdio/u8-vsprintf.c: Likewise.
53439         * lib/unistdio/ulc-asnprintf.c: Likewise.
53440         * lib/unistdio/ulc-asprintf.c: Likewise.
53441         * lib/unistdio/ulc-printf-parse.c: Likewise.
53442         * lib/unistdio/ulc-snprintf.c: Likewise.
53443         * lib/unistdio/ulc-sprintf.c: Likewise.
53444         * lib/unistdio/ulc-vasnprintf.c: Likewise.
53445         * lib/unistdio/ulc-vasprintf.c: Likewise.
53446         * lib/unistdio/ulc-vsnprintf.c: Likewise.
53447         * lib/unistdio/ulc-vsprintf.c: Likewise.
53448         * lib/unistr.h: Likewise.
53449         * lib/unistr/u-cpy-alloc.h: Likewise.
53450         * lib/unistr/u-cpy.h: Likewise.
53451         * lib/unistr/u-endswith.h: Likewise.
53452         * lib/unistr/u-move.h: Likewise.
53453         * lib/unistr/u-set.h: Likewise.
53454         * lib/unistr/u-startswith.h: Likewise.
53455         * lib/unistr/u-stpcpy.h: Likewise.
53456         * lib/unistr/u-stpncpy.h: Likewise.
53457         * lib/unistr/u-strcat.h: Likewise.
53458         * lib/unistr/u-strcpy.h: Likewise.
53459         * lib/unistr/u-strcspn.h: Likewise.
53460         * lib/unistr/u-strdup.h: Likewise.
53461         * lib/unistr/u-strlen.h: Likewise.
53462         * lib/unistr/u-strncat.h: Likewise.
53463         * lib/unistr/u-strncpy.h: Likewise.
53464         * lib/unistr/u-strnlen.h: Likewise.
53465         * lib/unistr/u-strpbrk.h: Likewise.
53466         * lib/unistr/u-strspn.h: Likewise.
53467         * lib/unistr/u-strstr.h: Likewise.
53468         * lib/unistr/u-strtok.h: Likewise.
53469         * lib/unistr/u16-check.c: Likewise.
53470         * lib/unistr/u16-chr.c: Likewise.
53471         * lib/unistr/u16-cmp.c: Likewise.
53472         * lib/unistr/u16-cpy-alloc.c: Likewise.
53473         * lib/unistr/u16-cpy.c: Likewise.
53474         * lib/unistr/u16-endswith.c: Likewise.
53475         * lib/unistr/u16-mblen.c: Likewise.
53476         * lib/unistr/u16-mbsnlen.c: Likewise.
53477         * lib/unistr/u16-mbtouc-aux.c: Likewise.
53478         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
53479         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
53480         * lib/unistr/u16-mbtouc.c: Likewise.
53481         * lib/unistr/u16-mbtoucr.c: Likewise.
53482         * lib/unistr/u16-move.c: Likewise.
53483         * lib/unistr/u16-next.c: Likewise.
53484         * lib/unistr/u16-prev.c: Likewise.
53485         * lib/unistr/u16-set.c: Likewise.
53486         * lib/unistr/u16-startswith.c: Likewise.
53487         * lib/unistr/u16-stpcpy.c: Likewise.
53488         * lib/unistr/u16-stpncpy.c: Likewise.
53489         * lib/unistr/u16-strcat.c: Likewise.
53490         * lib/unistr/u16-strchr.c: Likewise.
53491         * lib/unistr/u16-strcmp.c: Likewise.
53492         * lib/unistr/u16-strcpy.c: Likewise.
53493         * lib/unistr/u16-strcspn.c: Likewise.
53494         * lib/unistr/u16-strdup.c: Likewise.
53495         * lib/unistr/u16-strlen.c: Likewise.
53496         * lib/unistr/u16-strmblen.c: Likewise.
53497         * lib/unistr/u16-strmbtouc.c: Likewise.
53498         * lib/unistr/u16-strncat.c: Likewise.
53499         * lib/unistr/u16-strncmp.c: Likewise.
53500         * lib/unistr/u16-strncpy.c: Likewise.
53501         * lib/unistr/u16-strnlen.c: Likewise.
53502         * lib/unistr/u16-strpbrk.c: Likewise.
53503         * lib/unistr/u16-strrchr.c: Likewise.
53504         * lib/unistr/u16-strspn.c: Likewise.
53505         * lib/unistr/u16-strstr.c: Likewise.
53506         * lib/unistr/u16-strtok.c: Likewise.
53507         * lib/unistr/u16-to-u32.c: Likewise.
53508         * lib/unistr/u16-to-u8.c: Likewise.
53509         * lib/unistr/u16-uctomb-aux.c: Likewise.
53510         * lib/unistr/u16-uctomb.c: Likewise.
53511         * lib/unistr/u32-check.c: Likewise.
53512         * lib/unistr/u32-chr.c: Likewise.
53513         * lib/unistr/u32-cmp.c: Likewise.
53514         * lib/unistr/u32-cpy-alloc.c: Likewise.
53515         * lib/unistr/u32-cpy.c: Likewise.
53516         * lib/unistr/u32-endswith.c: Likewise.
53517         * lib/unistr/u32-mblen.c: Likewise.
53518         * lib/unistr/u32-mbsnlen.c: Likewise.
53519         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53520         * lib/unistr/u32-mbtouc.c: Likewise.
53521         * lib/unistr/u32-mbtoucr.c: Likewise.
53522         * lib/unistr/u32-move.c: Likewise.
53523         * lib/unistr/u32-next.c: Likewise.
53524         * lib/unistr/u32-prev.c: Likewise.
53525         * lib/unistr/u32-set.c: Likewise.
53526         * lib/unistr/u32-startswith.c: Likewise.
53527         * lib/unistr/u32-stpcpy.c: Likewise.
53528         * lib/unistr/u32-stpncpy.c: Likewise.
53529         * lib/unistr/u32-strcat.c: Likewise.
53530         * lib/unistr/u32-strchr.c: Likewise.
53531         * lib/unistr/u32-strcmp.c: Likewise.
53532         * lib/unistr/u32-strcpy.c: Likewise.
53533         * lib/unistr/u32-strcspn.c: Likewise.
53534         * lib/unistr/u32-strdup.c: Likewise.
53535         * lib/unistr/u32-strlen.c: Likewise.
53536         * lib/unistr/u32-strmblen.c: Likewise.
53537         * lib/unistr/u32-strmbtouc.c: Likewise.
53538         * lib/unistr/u32-strncat.c: Likewise.
53539         * lib/unistr/u32-strncmp.c: Likewise.
53540         * lib/unistr/u32-strncpy.c: Likewise.
53541         * lib/unistr/u32-strnlen.c: Likewise.
53542         * lib/unistr/u32-strpbrk.c: Likewise.
53543         * lib/unistr/u32-strrchr.c: Likewise.
53544         * lib/unistr/u32-strspn.c: Likewise.
53545         * lib/unistr/u32-strstr.c: Likewise.
53546         * lib/unistr/u32-strtok.c: Likewise.
53547         * lib/unistr/u32-to-u16.c: Likewise.
53548         * lib/unistr/u32-to-u8.c: Likewise.
53549         * lib/unistr/u32-uctomb.c: Likewise.
53550         * lib/unistr/u8-check.c: Likewise.
53551         * lib/unistr/u8-chr.c: Likewise.
53552         * lib/unistr/u8-cmp.c: Likewise.
53553         * lib/unistr/u8-cpy-alloc.c: Likewise.
53554         * lib/unistr/u8-cpy.c: Likewise.
53555         * lib/unistr/u8-endswith.c: Likewise.
53556         * lib/unistr/u8-mblen.c: Likewise.
53557         * lib/unistr/u8-mbsnlen.c: Likewise.
53558         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53559         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53560         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53561         * lib/unistr/u8-mbtouc.c: Likewise.
53562         * lib/unistr/u8-mbtoucr.c: Likewise.
53563         * lib/unistr/u8-move.c: Likewise.
53564         * lib/unistr/u8-next.c: Likewise.
53565         * lib/unistr/u8-prev.c: Likewise.
53566         * lib/unistr/u8-set.c: Likewise.
53567         * lib/unistr/u8-startswith.c: Likewise.
53568         * lib/unistr/u8-stpcpy.c: Likewise.
53569         * lib/unistr/u8-stpncpy.c: Likewise.
53570         * lib/unistr/u8-strcat.c: Likewise.
53571         * lib/unistr/u8-strchr.c: Likewise.
53572         * lib/unistr/u8-strcmp.c: Likewise.
53573         * lib/unistr/u8-strcpy.c: Likewise.
53574         * lib/unistr/u8-strcspn.c: Likewise.
53575         * lib/unistr/u8-strdup.c: Likewise.
53576         * lib/unistr/u8-strlen.c: Likewise.
53577         * lib/unistr/u8-strmblen.c: Likewise.
53578         * lib/unistr/u8-strmbtouc.c: Likewise.
53579         * lib/unistr/u8-strncat.c: Likewise.
53580         * lib/unistr/u8-strncmp.c: Likewise.
53581         * lib/unistr/u8-strncpy.c: Likewise.
53582         * lib/unistr/u8-strnlen.c: Likewise.
53583         * lib/unistr/u8-strpbrk.c: Likewise.
53584         * lib/unistr/u8-strrchr.c: Likewise.
53585         * lib/unistr/u8-strspn.c: Likewise.
53586         * lib/unistr/u8-strstr.c: Likewise.
53587         * lib/unistr/u8-strtok.c: Likewise.
53588         * lib/unistr/u8-to-u16.c: Likewise.
53589         * lib/unistr/u8-to-u32.c: Likewise.
53590         * lib/unistr/u8-uctomb-aux.c: Likewise.
53591         * lib/unistr/u8-uctomb.c: Likewise.
53592         * lib/unitypes.h: Likewise.
53593         * lib/uniwidth.h: Likewise.
53594         * lib/uniwidth/cjk.h: Likewise.
53595         * lib/uniwidth/u16-strwidth.c: Likewise.
53596         * lib/uniwidth/u16-width.c: Likewise.
53597         * lib/uniwidth/u32-strwidth.c: Likewise.
53598         * lib/uniwidth/u32-width.c: Likewise.
53599         * lib/uniwidth/u8-strwidth.c: Likewise.
53600         * lib/uniwidth/u8-width.c: Likewise.
53601         * lib/uniwidth/width.c: Likewise.
53602
53603 2007-10-07  Bruno Haible  <bruno@clisp.org>
53604
53605         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53606         The file is still under LGPL (see modules/inttypes).
53607
53608 2007-10-06  Bruno Haible  <bruno@clisp.org>
53609
53610         * modules/trunc (Dependencies): Add 'extensions'.
53611         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53612         Reported by Ben Pfaff <blp@gnu.org>.
53613
53614 2007-10-06  Bruno Haible  <bruno@clisp.org>
53615
53616         * modules/freopen-tests: New file.
53617         * tests/test-freopen.c: New file.
53618
53619         * modules/fopen-tests: New file.
53620         * tests/test-fopen.c: New file.
53621
53622         * modules/fopen: New file.
53623         * lib/fopen.c: New file.
53624         * m4/fopen.m4: New file.
53625         * modules/freopen: New file.
53626         * lib/freopen.c: New file.
53627         * m4/freopen.m4: New file.
53628         * lib/stdio.in.h (fopen, freopen): New declarations.
53629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53630         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53631         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53632         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53633         * doc/functions/fopen.texi: Mention the 'fopen' module.
53634         * doc/functions/freopen.texi: Mention the 'freopen' module.
53635
53636 2007-10-06  Bruno Haible  <bruno@clisp.org>
53637
53638         * modules/open-tests: New file.
53639         * tests/test-open.c: New file.
53640
53641         * modules/open: New file.
53642         * lib/open.c: New file.
53643         * m4/open.m4: New file.
53644         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53645         lib/open.c does.
53646         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53647         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53648         macros.
53649         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53650         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53651         REPLACE_OPEN.
53652         * doc/functions/open.texi: Mention the 'open' module.
53653
53654 2007-10-04  Bruno Haible  <bruno@clisp.org>
53655
53656         * modules/ceill-tests: New file.
53657         * tests/test-ceill.c: New file.
53658
53659         * modules/ceill: New file.
53660         * lib/ceill.c: Replace entire file.
53661         * m4/ceill.m4: New file.
53662         * lib/math.in.h (ceill): Replace declaration.
53663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53664         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53665         * doc/functions/ceill.texi: Mention the 'ceill' module.
53666         * modules/mathl (Files): Remove lib/ceill.c.
53667         (Depends-on): Add ceill.
53668
53669 2007-10-04  Bruno Haible  <bruno@clisp.org>
53670
53671         * modules/ceilf-tests: New file.
53672         * tests/test-ceilf.c: New file.
53673
53674         * modules/ceilf: New file.
53675         * lib/ceil.c: New file.
53676         * lib/ceilf.c: New file.
53677         * m4/ceilf.m4: New file.
53678         * lib/math.in.h (ceilf): New declaration.
53679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53680         HAVE_DECL_CEILF.
53681         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53682         HAVE_DECL_CEILF.
53683         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53684
53685 2007-10-04  Bruno Haible  <bruno@clisp.org>
53686
53687         * modules/floorl-tests: New file.
53688         * tests/test-floorl.c: New file.
53689
53690         * modules/floorl: New file.
53691         * lib/floorl.c: Replace entire file.
53692         * m4/floorl.m4: New file.
53693         * lib/math.in.h (floorl): Replace declaration.
53694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53695         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53696         * doc/functions/floorl.texi: Mention the 'floorl' module.
53697         * modules/mathl (Files): Remove lib/floorl.c.
53698         (Depends-on): Add floorl.
53699
53700 2007-10-04  Bruno Haible  <bruno@clisp.org>
53701
53702         * modules/floorf-tests: New file.
53703         * tests/test-floorf.c: New file.
53704
53705         * modules/floorf: New file.
53706         * lib/floor.c: New file.
53707         * lib/floorf.c: New file.
53708         * m4/floorf.m4: New file.
53709         * lib/math.in.h (floorf): New declaration.
53710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53711         HAVE_DECL_FLOORF.
53712         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53713         HAVE_DECL_FLOORF.
53714         * doc/functions/floorf.texi: Mention the 'floorf' module.
53715
53716 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53717             Bruno Haible  <bruno@clisp.org>
53718
53719         Advertise for the Git server instead of the CVS server.
53720         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53721         repository instead of the CVS one.
53722         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53723         about all VCS systems generically.
53724         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53725
53726 2007-10-04  Bruno Haible  <bruno@clisp.org>
53727
53728         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53729         means.
53730         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53731
53732 2007-10-04  Bruno Haible  <bruno@clisp.org>
53733
53734         * modules/truncl-tests: New file.
53735         * tests/test-truncl.c: New file.
53736
53737         * modules/truncl: New file.
53738         * lib/truncl.c: New file.
53739         * m4/truncl.m4: New file.
53740         * lib/math.in.h (truncl): New declaration.
53741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53742         HAVE_DECL_TRUNCL.
53743         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53744         HAVE_DECL_TRUNCL.
53745         * doc/functions/truncl.texi: Mention the 'truncl' module.
53746
53747 2007-10-04  Bruno Haible  <bruno@clisp.org>
53748
53749         * modules/truncf-tests: New file.
53750         * tests/test-truncf.c: New file.
53751
53752         * modules/truncf: New file.
53753         * lib/trunc.c: Make paramerizable through USE_* macros.
53754         * lib/truncf.c: New file.
53755         * m4/truncf.m4: New file.
53756         * lib/math.in.h (truncf): New declaration.
53757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53758         HAVE_DECL_TRUNCF.
53759         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53760         HAVE_DECL_TRUNCF.
53761         * doc/functions/truncf.texi: Mention the 'truncf' module.
53762
53763 2007-10-03  Bruno Haible  <bruno@clisp.org>
53764
53765         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53766         augmentation also for tests modules.
53767         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53768         * modules/atexit-tests (Makefile.am): Likewise.
53769         * modules/binary-io-tests (Makefile.am): Likewise.
53770         * modules/c-strcase-tests (Makefile.am): Likewise.
53771         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53772         * modules/canonicalize-tests (Makefile.am): Likewise.
53773         * modules/closein-tests (Makefile.am): Likewise.
53774         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53775         * modules/freadahead-tests (Makefile.am): Likewise.
53776         * modules/fseek-tests (Makefile.am): Likewise.
53777         * modules/fseeko-tests (Makefile.am): Likewise.
53778         * modules/ftell-tests (Makefile.am): Likewise.
53779         * modules/ftello-tests (Makefile.am): Likewise.
53780         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53781         * modules/isnanl-tests (Makefile.am): Likewise.
53782         * modules/lseek-tests (Makefile.am): Likewise.
53783         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53784         * modules/mbscasestr-tests (Makefile.am): Likewise.
53785         * modules/mbschr-tests (Makefile.am): Likewise.
53786         * modules/mbscspn-tests (Makefile.am): Likewise.
53787         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53788         * modules/mbspbrk-tests (Makefile.am): Likewise.
53789         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53790         * modules/mbsrchr-tests (Makefile.am): Likewise.
53791         * modules/mbsspn-tests (Makefile.am): Likewise.
53792         * modules/mbsstr-tests (Makefile.am): Likewise.
53793         * modules/printf-posix-tests (Makefile.am): Likewise.
53794         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53795         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53796         * modules/tsearch-tests (Makefile.am): Likewise.
53797         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53798         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53799         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53800         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53801         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53802         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53803         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53804         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53805         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53806         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53807         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53808         * modules/xstrtol-tests (Makefile.am): Likewise.
53809         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53810         * modules/yesno-tests (Makefile.am): Likewise.
53811
53812 2007-10-03  Bruno Haible  <bruno@clisp.org>
53813
53814         * modules/trunc-tests: New file.
53815         * tests/test-trunc.c: New file.
53816
53817         * modules/trunc: New file.
53818         * lib/trunc.c: New file.
53819         * m4/trunc.m4: New file.
53820         * lib/math.in.h (trunc): New declaration.
53821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53822         HAVE_DECL_TRUNC.
53823         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53824         HAVE_DECL_TRUNC.
53825         * doc/functions/trunc.texi: Mention the 'trunc' module.
53826
53827 2007-10-03  Bruno Haible  <bruno@clisp.org>
53828
53829         * tests/test-fpending.c: New file, mostly copied
53830         from coreutils/lib/t-fpending.c.
53831         * modules/fpending-tests: New file.
53832
53833 2007-10-03  Bruno Haible  <bruno@clisp.org>
53834
53835         Port the stdio extensions to QNX (untested).
53836         * lib/fseterr.c (fseterr): Add support for QNX.
53837         * lib/fbufmode.c (fbufmode): Likewise.
53838         * lib/freadable.c (freadable): Likewise.
53839         * lib/fwritable.c (fwritable): Likewise.
53840         * lib/freading.c (freading): Likewise.
53841         * lib/fwriting.c (fwriting): Likewise.
53842         * lib/freadahead.c (freadahed): Likewise.
53843         * lib/fpurge.c (fpurge): Likewise.
53844         * lib/fseeko.c (rpl_fseeko): Likewise.
53845
53846 2007-10-03  Bruno Haible  <bruno@clisp.org>
53847             Jim Meyering  <jim@meyering.net>
53848             Eric Blake  <ebb9@byu.net>
53849
53850         * doc/relocatable.texi: Use @command instead of @program.
53851
53852 2007-10-02  Jim Meyering  <jim@meyering.net>
53853
53854         Perform one more "_.h" -> ".in.h" substitution.
53855         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53856         instead of unistd_.h here, too.
53857
53858 2007-10-01  Bruno Haible  <bruno@clisp.org>
53859
53860         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53861         Needed for the alloca-opt module.
53862
53863 2007-09-30  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53866         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53867         alloca_.h.
53868         * lib/argz.in.h: Renamed from lib/argz_.h.
53869         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53870         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53871         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53872         byteswap_.h.
53873         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53874         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53875         dirent_.h.
53876         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53877         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53878         fcntl_.h.
53879         * lib/float.in.h: Renamed from lib/float_.h.
53880         * modules/float (Files, Makefile.am): Use float.in.h instead of
53881         float_.h.
53882         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53883         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53884         fnmatch_.h.
53885         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53886         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53887         getopt_.h.
53888         * lib/glob.in.h: Renamed from lib/glob_.h.
53889         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53890         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53891         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53892         iconv_.h.
53893         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53894         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53895         inttypes_.h.
53896         * lib/locale.in.h: Renamed from lib/locale_.h.
53897         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53898         locale_.h.
53899         * lib/math.in.h: Renamed from lib/math_.h.
53900         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53901         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53902         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53903         of netinet_in_.h. Add dependency.
53904         * lib/poll.in.h: Renamed from lib/poll_.h.
53905         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53906         * lib/search.in.h: Renamed from lib/search_.h.
53907         * modules/search (Files, Makefile.am): Use search.in.h instead of
53908         search_.h.
53909         * lib/signal.in.h: Renamed from lib/signal_.h.
53910         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53911         _signal.h.
53912         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53913         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53914         stdbool_.h.
53915         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53916         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53917         stdint_.h.
53918         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53919         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53920         stdio_.h.
53921         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53922         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53923         stdlib_.h.
53924         * lib/string.in.h: Renamed from lib/string_.h.
53925         * modules/string (Files, Makefile.am): Use string.in.h instead of
53926         string_.h.
53927         * doc/gnulib-tool.texi (Initial import): Update.
53928         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53929         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53930         of sys_select_.h. Add dependency.
53931         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53932         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53933         of sys_socket_.h.
53934         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53935         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53936         sys_stat_.h.
53937         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53938         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53939         sys_time_.h.
53940         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53941         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53942         sysexits_.h.
53943         * lib/time.in.h: Renamed from lib/time_.h.
53944         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53945         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53946         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53947         unistd_.h.
53948         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53949         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53950         wchar_.h.
53951         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53952         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53953         wctype_.h.
53954         * build-aux/bootstrap (slurp): Update.
53955         * lib/.cppi-disable: Update.
53956
53957 2007-09-30  Bruno Haible  <bruno@clisp.org>
53958
53959         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53960         Needed on BeOS.
53961
53962 2007-09-30  Bruno Haible  <bruno@clisp.org>
53963
53964         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53965
53966 2007-09-29  Bruno Haible  <bruno@clisp.org>
53967
53968         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53969
53970 2007-09-29  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53973         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53974         * build-aux/install-reloc: Compile also areadlink.c.
53975         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53976
53977 2007-09-29  Bruno Haible  <bruno@clisp.org>
53978
53979         * gnulib-tool (func_emit_initmacro_done): Indentation.
53980
53981 2007-09-29  Bruno Haible  <bruno@clisp.org>
53982
53983         * README: Add CVS checkout update instructions.
53984         Info from Bob Proulx <bob@proulx.com>.
53985
53986 2007-09-28  Eric Blake  <ebb9@byu.net>
53987
53988         Provide move-if-change.
53989         * build-aux/move-if-change: New file, based on best practice
53990         rather than any canonical upstream location.
53991
53992 2007-09-28  Jim Meyering  <jim@meyering.net>
53993
53994         Fix canonicalize loop-detection corner case.
53995         Do not attempt to stat the symlink values stored via seen_triple.
53996         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53997         on linux-2.6.18, (but not 2.6.22).
53998         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53999         triple_compare.  The former compares dev,ino,filename, while the latter
54000         would actually stat dirname(filename) when dev and ino were equal.
54001         * lib/hash-triple.c: Install <string.h>.
54002         (STREQ): Define.
54003         (triple_compare_ino_str): New function.
54004         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54005
54006 2007-09-28  Eric Blake  <ebb9@byu.net>
54007
54008         Enforce that AC_REPLACE_FUNCS files exist.
54009         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54010         override check for typos.
54011
54012         Fix test-closein on Solaris 10.
54013         * tests/test-closein.c (main): Don't assume stdin can be inherited
54014         closed on all systems.
54015         * tests/test-closein.sh: Likewise.
54016         Reported by Piotr Tarnowski.
54017
54018 2007-09-28  Jim Meyering  <jim@meyering.net>
54019
54020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54021
54022 2007-09-27  Jim Meyering  <jim@meyering.net>
54023
54024         canonicalize: Avoid a false-positive cycle failure.
54025         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
54026         Sort.  Remove cycle-check.
54027         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
54028         not cycle-check.h.
54029         (seen_triple): New function.
54030         (canonicalize_filename_mode): Use it instead of cycle-check.
54031         * tests/test-canonicalize.c: Add a test for this bug.
54032         * tests/test-canonicalize.sh: Set up and run the test.
54033
54034         New module, file-set, from coreutils.
54035         * modules/file-set: Define it.
54036         * lib/file-set.c, lib/file-set.h: Implement.
54037
54038         New module, hash-triple, from coreutils.
54039         * modules/hash-triple: Define it.
54040         * lib/hash-triple.c, lib/hash-triple.h: Implement.
54041
54042 2007-09-25  Eric Blake  <ebb9@byu.net>
54043
54044         Fix strerror on Interix.
54045         * lib/string_.h (strerror): Declare replacement.
54046         * doc/functions/strerror.texi (strerror): Document the Interix
54047         shortcoming.
54048         * modules/string (Makefile.am): Support new hooks.
54049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
54050         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
54051         gl_FUNC_STRERROR_SEPARATE.
54052         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54053         * lib/strerror.c (rpl_strerror): Provide replacement.
54054         * modules/strerror (Depends-on): Add string.
54055         (configure.ac): Detect use of module.
54056         * tests/test-strerror.c: New file.
54057         * modules/strerror-tests: New test module.
54058         * modules/argp (Depends-on): Add strerror.
54059         * modules/error (Depends-on): Likewise.
54060         Reported by Martin Koeppe.
54061
54062 2007-09-24  Bruno Haible  <bruno@clisp.org>
54063
54064         * README: Update git instructions.
54065
54066 2007-09-24  Eric Blake  <ebb9@byu.net>
54067
54068         Revert fpending breakage from 2007-09-08.
54069         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54070         __fpending.c.
54071
54072 2007-09-24  Jim Meyering  <jim@meyering.net>
54073
54074         filenamecat.c: Add a test.
54075         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54076         showing how the function works when DIR is the empty string.
54077
54078 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54079
54080         * tests/test-canonicalize.sh: Turn on executable bit.
54081
54082 2007-09-19  Eric Blake  <ebb9@byu.net>
54083
54084         * README: Update CVS instructions.
54085
54086 2007-09-18  Bruno Haible  <bruno@clisp.org>
54087
54088         * modules/areadlink: New file.
54089         * lib/areadlink.h (areadlink): New declaration.
54090         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54091
54092 2007-09-17  Jim Meyering  <jim@meyering.net>
54093
54094         * lib/savewd.c (ESTALE) [!defined]: Define.
54095         Reported to be required on Interix by Martin Koeppe.
54096
54097 2007-09-17  Bruno Haible  <bruno@clisp.org>
54098
54099         * gnulib-tool (func_version): Use $version.
54100
54101 2007-09-16  Bruno Haible  <bruno@clisp.org>
54102
54103         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54104         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54105         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54106         Reported by Greg Schafer <gschafer@zip.com.au>.
54107
54108 2007-09-15  Bruno Haible  <bruno@clisp.org>
54109
54110         * gnulib-tool (sed): Try a little harder to make bash understand the
54111         alias.
54112         Reported by Bruce Korb <bruce.korb@gmail.com>.
54113
54114 2007-09-13  Eric Blake  <ebb9@byu.net>
54115
54116         * ChangeLog: Remove conflict markers.
54117
54118 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54119
54120         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54121         Reported by Bruno Haible <bruno@clisp.org>.
54122
54123 2007-09-12  Bruno Haible  <bruno@clisp.org>
54124
54125         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
54126         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
54127         is not defined.
54128
54129 2007-09-12  Eric Blake  <ebb9@byu.net>
54130
54131         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
54132         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
54133         Autoconf definition.
54134         * modules/euidaccess (Depends-on): Add extensions, for
54135         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
54136         * modules/fnmatch (Depends-on): Likewise.
54137         * modules/getaddrinfo (Depends-on): Likewise.
54138         * modules/getdelim (Depends-on): Likewise.
54139         * modules/getline (Depends-on): Likewise.
54140         * modules/getsubopt (Depends-on): Likewise.
54141         * modules/gettext (Depends-on): Likewise.
54142         * modules/group-member (Depends-on): Likewise.
54143         * modules/mbchar (Depends-on): Likewise.
54144         * modules/memmem (Depends-on): Likewise.
54145         * modules/mempcpy (Depends-on): Likewise.
54146         * modules/memrchr (Depends-on): Likewise.
54147         * modules/pagealign_alloc (Depends-on): Likewise.
54148         * modules/readutmp (Depends-on): Likewise.
54149         * modules/stpcpy (Depends-on): Likewise.
54150         * modules/stpncpy (Depends-on): Likewise.
54151         * modules/strchrnul (Depends-on): Likewise.
54152         * modules/strndup (Depends-on): Likewise.
54153         * modules/strsep (Depends-on): Likewise.
54154         * modules/strverscmp (Depends-on): Likewise.
54155         * modules/vasprintf (Depends-on): Likewise.
54156         * modules/wcwidth (Depends-on): Likewise.
54157         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
54158         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
54159         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
54160         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
54161         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54162         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54163         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
54164         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
54165         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
54166         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
54167         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54168         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54169         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54170         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
54171         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
54172         * m4/readutmp.m4 (gl_READUTMP): Likewise.
54173         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54174         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54175         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54176         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54177         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54178         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54179         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54180         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
54181         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
54182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54183         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
54184         so that lock.m4 can be used in gettext without extensions module.
54185
54186 2007-09-11  Bruno Haible  <bruno@clisp.org>
54187
54188         * m4/isc-posix.m4: Remove file.
54189         Suggested by Eric Blake.
54190
54191 2007-09-11  Eric Blake  <ebb9@byu.net>
54192
54193         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
54194
54195 2007-09-10  Bruno Haible  <bruno@clisp.org>
54196
54197         * posix-modules: Fix typo in error message.
54198         Reported by Matt <mkraai@beckman.com>.
54199
54200 2007-09-09  Bruno Haible  <bruno@clisp.org>
54201
54202         * doc/functions/getdelim.texi: Update list of platforms lacking the
54203         function.
54204         * doc/functions/getline.texi: Likewise.
54205
54206 2007-09-09  Jim Meyering  <jim@meyering.net>
54207
54208         * lib/hash.c (hash_initialize): Detect calloc failure.
54209         Reported by Bruno Haible.
54210
54211 2007-09-09  Bruno Haible  <bruno@clisp.org>
54212
54213         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
54214         malloc or realloc fails.
54215
54216 2007-09-09  Bruno Haible  <bruno@clisp.org>
54217
54218         * modules/getcwd (Depends-on): Add malloc-posix.
54219         * modules/glob (Depends-on): Likewise.
54220         * modules/putenv (Depends-on): Likewise.
54221         * modules/strdup (Depends-on): Likewise.
54222         * modules/getdelim (Depends-on): Add realloc-posix.
54223         * modules/read-file (Depends-on): Likewise.
54224
54225 2007-09-09  Bruno Haible  <bruno@clisp.org>
54226
54227         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
54228         (gl_FUNC_MALLOC_POSIX): Require it.
54229         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
54230         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
54231         * modules/realloc (Files): Add m4/malloc.m4.
54232         * modules/calloc (Files): Likewise.
54233
54234 2007-09-09  Bruno Haible  <bruno@clisp.org>
54235
54236         * modules/malloc-posix: New file.
54237         * modules/malloc (Depends-on): Add malloc-posix.
54238         * lib/malloc.c: Include errno.h.
54239         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
54240         and a POSIX-compatible malloc into a single function. Set ENOMEM
54241         when returning NULL.
54242         * m4/malloc.m4: New file.
54243         * doc/functions/malloc.texi: Mention the malloc-posix module.
54244         * lib/stdlib_.h (malloc): New declaration.
54245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54246         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
54247         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
54248         and HAVE_MALLOC_POSIX.
54249
54250 2007-09-09  Bruno Haible  <bruno@clisp.org>
54251
54252         * modules/realloc-posix: New file.
54253         * modules/realloc (Depends-on): Add realloc-posix.
54254         * lib/realloc.c: Include errno.h.
54255         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
54256         and a POSIX-compatible realloc into a single function. Set ENOMEM
54257         when returning NULL.
54258         * m4/realloc.m4: New file.
54259         * doc/functions/realloc.texi: Mention the realloc-posix module.
54260         * lib/stdlib_.h (realloc): New declaration.
54261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54262         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
54263         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
54264         and HAVE_REALLOC_POSIX.
54265
54266 2007-09-09  Bruno Haible  <bruno@clisp.org>
54267
54268         * modules/calloc-posix: New file.
54269         * modules/calloc (Depends-on): Add calloc-posix.
54270         * lib/calloc.c: Include errno.h.
54271         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
54272         and a POSIX-compatible calloc into a single function. Set ENOMEM
54273         when returning NULL.
54274         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
54275         * doc/functions/calloc.texi: Mention the calloc-posix module.
54276         * lib/stdlib_.h (calloc): New declaration.
54277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54278         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
54279         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
54280         and HAVE_CALLOC_POSIX.
54281
54282 2007-09-09  Bruno Haible  <bruno@clisp.org>
54283
54284         Allow for modules to show an arbitrary notice.
54285         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
54286         * gnulib-tool: New option --extract-notice.
54287         (func_usage): Document it.
54288         (sed_extract_prog): Update.
54289         (func_get_notice): New function.
54290         (func_modules_notice): New function.
54291         (func_import, func_create_testdir): Invoke it.
54292         Suggested by Jim Meyering.
54293
54294 2007-09-09  Bruno Haible  <bruno@clisp.org>
54295
54296         * gnulib-tool: New options --verbose, --quiet.
54297         (func_usage): Document them.
54298         (verbose): New variable.
54299         (func_execute_command): New function.
54300         (func_import): Don't show the module list and the file list if
54301         $verbose < 0.
54302         (func_create_testdir): Likewise. Use func_execute_command.
54303         (func_create_megatestdir): Use func_execute_command.
54304
54305 2007-09-08  Bruno Haible  <bruno@clisp.org>
54306
54307         * gnulib-tool (func_import): Prefer rsync over wget when available,
54308         for fetching the PO files.
54309
54310 2007-09-08  Bruno Haible  <bruno@clisp.org>
54311
54312         * posix-modules: New file. Portions copied from gnulib-tool.
54313         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
54314
54315 2007-09-08  Jim Meyering  <jim@meyering.net>
54316
54317         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
54318         * lib/fpending.h: Rename from __fpending.h.
54319         * lib/fpending.c: Rename from __fpending.c.
54320         Include "fpending.h", not "__fpending.h".
54321         * lib/__fpending.h, lib/__fpending.c: Remove files.
54322         * modules/fpending (Files): Reflect new file names.
54323         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
54324
54325 2007-09-08  Bruno Haible  <bruno@clisp.org>
54326
54327         * m4/inttypes-h.m4: Remove stub file.
54328
54329 2007-09-07  Simon Josefsson  <simon@josefsson.org>
54330
54331         * doc/headers/stdint.texi: Discuss #include_next issue.
54332
54333 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54334
54335         * build-aux/bootstrap: Remove obsolete comment about wget --help.
54336
54337 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54338
54339         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
54340         in variable name.
54341
54342 2007-09-03  Jim Meyering  <jim@meyering.net>
54343
54344         New module: git-version-gen.
54345         * modules/git-version-gen: New file.
54346
54347         Import changes from coreutils for bootstrap script.
54348
54349         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
54350
54351         bootstrap: uses rsync to download the .po files
54352         * build-aux/bootstrap (po_download_command_format): New global.
54353         (download_po_files): Use rsync.
54354         (update_po_files): Don't remove .po files after download,
54355         so future rsync runs can take advantage of the copies.
54356
54357         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
54358
54359         Solve the unnecessary-.po-file-regeneration problem once and for all.
54360         * build-aux/bootstrap (download_po_files): New function, renamed from
54361         get_translations.  Now, downloads, but doesn't update LINGUAS.
54362         (update_po_files): New function.
54363
54364         bootstrap: Ignore more.
54365         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
54366         uniwidth to e.g., lib/.gitignore.
54367         (slurp): Handle the sys_stat_.h -> sys mapping, too.
54368
54369         * build-aux/bootstrap: New setting: vc_ignore.
54370         (insert_sorted_if_absent): Create $file if absent.
54371         Adapt to new, possibly empty, list: $vc_ignore.
54372
54373         bootstrap: generate more ignorable names
54374         * build-aux/bootstrap (slurp): When generating ignorable names,
54375         also map .sin to .sed, .gperf to .c, and .y to .c.
54376
54377 2007-09-03  Jim Meyering  <jim@meyering.net>
54378
54379         * build-aux/git-version-gen: New file, from coreutils.  For details, see
54380         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
54381
54382 2007-09-02  Bruno Haible  <bruno@clisp.org>
54383
54384         Fix mis-recognition of 'mcs' on QNX 6.
54385         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
54386         output contains the string "Mono".
54387         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
54388         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
54389
54390 2007-09-01  Bruno Haible  <bruno@clisp.org>
54391
54392         Fix collision between uniwidth/* and linebreak modules.
54393         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
54394         u32_width): Remove declarations.
54395         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
54396         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
54397         streq3, streq2, streq1, streq0): Remove functions.
54398         (STREQ): Remove macro.
54399         (is_cjk_encoding): Remove function.
54400         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
54401         (uc_width, u8_width, u16_width, u32_width): Remove functions.
54402         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
54403         * NEWS: Document the change.
54404
54405 2007-09-01  Bruno Haible  <bruno@clisp.org>
54406
54407         * lib/streq.h: Add double-inclusion guard.
54408
54409 2007-09-01  Karl Berry  <karl@gnu.org>
54410
54411         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
54412
54413 2007-08-28  Jim Meyering  <jim@meyering.net>
54414
54415         Rename mreadlink_with_size to areadlink_with_size.
54416         * NEWS: Document the change.
54417         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
54418         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
54419         * lib/mreadlink.h: Rename this to...
54420         * lib/areadlink.h: ...this.
54421         * modules/mreadlink-with-size: Rename this to...
54422         * modules/areadlink-with-size: ...this.
54423         * lib/canonicalize.c: Reflect the renaming.
54424         * modules/canonicalize: Likewise.
54425
54426 2007-08-26  Bruno Haible  <bruno@clisp.org>
54427
54428         * gnulib-tool (func_import): When deciding which files to remove,
54429         consider also dangling symbolic links.
54430         Reported by Eric Blake.
54431
54432 2007-08-26  Bruno Haible  <bruno@clisp.org>
54433
54434         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
54435
54436 2007-08-23  Simon Josefsson  <simon@josefsson.org>
54437
54438         * lib/readline.c: Don't include getline.h, the prototype is now
54439         found in stdio.h.
54440
54441 2007-08-23  Jim Meyering  <jim@meyering.net>
54442
54443         Getdelim touchup.
54444         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
54445         around the funlockfile call, since funlockfile never sets errno.
54446         Don't set errno upon failed realloc.
54447
54448 2007-08-22  Eric Blake  <ebb9@byu.net>
54449
54450         Getline touchups.
54451         * lib/getdelim.c (getdelim): Revert regression that required *n to
54452         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
54453         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
54454         getdelim, rather than whether implementation is missing.
54455         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
54456         * lib/stdio_.h (getline): Also declare if replacement is
54457         required.
54458         * doc/functions/getdelim.texi: New file.
54459         * doc/functions/getline.texi: Likewise.
54460         * doc/gnulib.texi (Function Substitutes): Add new files.
54461         Reported by Bruno Haible.
54462
54463 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
54464
54465         * users.txt: Add Guile.
54466
54467 2007-08-22  Eric Blake  <ebb9@byu.net>
54468
54469         * tests/test-getdelim.c (main): Use remove, not unlink.
54470         * tests/test-getline.c (main): Likewise.
54471
54472         Move getline and getdelim into stdio.h, per POSIX 200x.
54473         * modules/getline (Files): Remove getline.h.
54474         (Depends-on): Add stdio.
54475         (configure.ac): Add module indicator.
54476         * modules/getdelim (Files): Remove getdelim.h.
54477         (Depends-on): Add stdio.
54478         (configure.ac): Add module indicator.
54479         * modules/stdio (Makefile.am): Work with new indicators.
54480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
54481         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
54482         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
54483         * lib/getdelim.h: Delete.
54484         * lib/getline.h: Delete.
54485         * lib/stdio_.h (getdelim, getline): Declare.
54486         * modules/getdelim-tests: New module.
54487         * modules/getline-tests: Likewise.
54488         * tests/test-getdelim.c: New file.
54489         * tests/test-getline.c: Likewise.
54490         * NEWS: Document the change.
54491         * lib/getline.c: Update choice of header.
54492         * lib/csharpcomp.c: Likewise.
54493         * lib/getpass.c: Likewise.
54494         * lib/javacomp.c: Likewise.
54495         * lib/javaversion.c: Likewise.
54496         * lib/yesno.c: Likewise.
54497         * lib/getdelim.c: Likewise.
54498         (getdelim): Set errno on failure, and avoid memory leak.
54499
54500 2007-08-19  Bruno Haible  <bruno@clisp.org>
54501
54502         * modules/closein (Depends-on): Add freadahead.
54503         * lib/closein.c: Include freadahead.h.
54504         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
54505         is zero.
54506
54507 2007-08-19  Bruno Haible  <bruno@clisp.org>
54508
54509         * modules/freadahead-tests: New file.
54510         * tests/test-freadahead.sh: New file.
54511         * tests/test-freadahead.c: New file.
54512
54513         * modules/freadahead: New file.
54514         * lib/freadahead.h: New file.
54515         * lib/freadahead.c: New file.
54516         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
54517         fbufmode, fpurge, freadable, fwritable.
54518
54519 2007-08-19  Eric Blake  <ebb9@byu.net>
54520
54521         Test yesno in combination with closein.
54522         * lib/yesno.c (yesno): Document use of stdin.
54523         * modules/yesno-tests (Files): New module.
54524         * tests/test-yesno.c (main): New file.
54525         * tests/test-yesno.sh: Likewise.
54526
54527 2007-08-19  Bruno Haible  <bruno@clisp.org>
54528
54529         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
54530         * lib/fseeko.c (rpl_fseeko): Likewise.
54531         * lib/fseterr.c (fseterr): Likewise.
54532
54533 2007-08-19  Bruno Haible  <bruno@clisp.org>
54534
54535         * tests/test-lseek.c (main): Disable a test for BeOS.
54536         * doc/functions/lseek.texi: Document the BeOS bug.
54537
54538 2007-08-19  Bruno Haible  <bruno@clisp.org>
54539             Eric Blake  <ebb9@byu.net>
54540
54541         * lib/lseek.c: Include <sys/stat.h>.
54542         (rpl_lseek): Add workaround code also for Unix platforms.
54543         Needed for BeOS.
54544         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
54545         * doc/functions/lseek.texi: Document BeOS definiency.
54546
54547 2007-08-18  Bruno Haible  <bruno@clisp.org>
54548
54549         * modules/fstrcmp-tests: New file.
54550         * tests/test-fstrcmp.c: New file.
54551
54552 2007-08-18  Bruno Haible  <bruno@clisp.org>
54553
54554         * modules/fstrcmp: New file, from GNU gettext with modifications.
54555         * lib/fstrcmp.h: New file, from GNU gettext.
54556         * lib/fstrcmp.c: New file, from GNU gettext.
54557         * MODULES.html.sh (String handling): Add fstrcmp.
54558
54559 2007-08-18  Bruno Haible  <bruno@clisp.org>
54560
54561         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54562         'bool'.
54563         (diag, compareseq): Remove const from the ctxt argument.
54564         (USE_HEURISTIC): Undefine at the end.
54565
54566 2007-08-18  Jim Meyering  <jim@meyering.net>
54567
54568         New file: lib/idcache.h
54569         * NEWS: Mention the addition.
54570         * modules/idcache (Files): Add lib/idcache.h
54571         * lib/idcache.c: Include "idcache.h".
54572         Don't include <sys/types.h>.
54573         Add a FIXME comment.
54574         Move file-scoped "static" declarations to the top.
54575         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54576
54577 2007-08-17  Bruno Haible  <bruno@clisp.org>
54578         and Paul Eggert  <eggert@cs.ucla.edu>
54579
54580         * MODULES.html.sh: Add diffseq.
54581         * modules/diffseq: New file.
54582         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54583         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54584
54585 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54586
54587         Import changes from coreutils for bootstrap script.
54588
54589         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54590
54591         * build-aux/bootstrap (slurp): Work even in environments where
54592         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54593         current code does not slurp files whose names start with ".", and
54594         this looks like it might be a troublesome area.
54595
54596         2007-07-11  Jim Meyering  <jim@meyering.net>
54597
54598         If there's a GPL vN copyright comment, require that N == 3.
54599
54600         2007-07-08  Jim Meyering  <jim@meyering.net>
54601
54602         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54603         * build-aux/bootstrap (mam_template): Move definition out of loop.
54604
54605         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54606
54607         * build-aux/bootstrap (symlink_to_dir): Rename function from
54608         symlink_to_gnulib.  Add a directory parameter.  Update all
54609         callers.
54610         (cp_mark_as_generated): Also check for -- and link to -- files in
54611         gl/.
54612
54613         2007-07-08  Jim Meyering  <jim@meyering.net>
54614
54615         Adapt to deeper hierarchy in gnulib.
54616         * build-aux/bootstrap (symlink_to_dir): If the destination
54617         directory doesn't exist, create it. This is required at least for
54618         "lib/uniwidth/cjk.h".
54619
54620         2007-05-15  Jim Meyering  <jim@meyering.net>
54621
54622         * build-aux/bootstrap: Now that generated Makefile.am files
54623         are no longer under version control, they must be created at
54624         bootstrap time.
54625
54626 2007-08-14  Ben Pfaff  <blp@gnu.org>
54627
54628         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54629
54630 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54631
54632         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54633         given the changes below.
54634         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54635         even on hosts that have padding bits beyond the supported 64.
54636
54637 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54638
54639         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54640         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54641         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54642         depends on it.
54643         (xstrtol_error): Remove.
54644         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54645         but with a different signature.
54646         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54647         * lib/xstrtol-error.c: Include exitfail.h.
54648         (xstrtol_fatal): New function, with a different signature from the
54649         old xstrtol_error, so that the caller need not worry about passing
54650         in an exit status, or about storage management of the option argument.
54651         (xstrtol_error): Now a static function.  Redo signature to
54652         implement xstrtol_fatal.  Output the correct number of hyphens in
54653         front of the option so that the caller need not worry about
54654         storage management.
54655         (N_): New macro.
54656         (_): Remove; not used now.
54657         * modules/xstrtol: Depend on getopt.
54658         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54659         of old STRTOL_FATAL_ERROR macro.
54660         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54661         of test program.
54662         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54663         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54664
54665 2007-08-08  Eric Blake  <ebb9@byu.net>
54666
54667         * lib/xstrtol-error.c: Add missing include.
54668
54669         Move xstrtol messages into gnulib domain, when --pobase is used.
54670         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54671         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54672         * modules/xstrtol (Files): Distribute new file.
54673         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54674         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54675         * tests/test-xstrtol.c: ...into new file.
54676         * tests/test-xstrtoul.c: Also test xstrtoul.
54677         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54678         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54679         * tests/test-xstrtol.sh: Drive the tests.
54680         * tests/test-xstrtoimax.sh: Likewise.
54681         * tests/test-xstrtoumax.sh: Likewise.
54682         * modules/xstrtol-tests: New module.
54683         * modules/xstrtoimax-tests: Likewise.
54684         * modules/xstrtoumax-tests: Likewise.
54685
54686 2007-08-08  Jim Meyering  <jim@meyering.net>
54687
54688         New function: mfile_name_concat.
54689         * lib/filenamecat.c (mfile_name_concat): New function, just like
54690         file_name_concat, but return NULL upon failure rather than exiting
54691         with a diagnostic.
54692         * lib/filenamecat.h: Declare it.
54693
54694 2007-08-07  Bruno Haible  <bruno@clisp.org>
54695
54696         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54697         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54698         warning from gcc.
54699         Reported by Eric Blake.
54700
54701 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54702
54703         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54704         * modules/crypto/arcfour (License): Likewise.
54705         * modules/crypto/des-tests (License): Likewise.
54706         * modules/crypto/gc-arctwo-tests (License): Likewise.
54707         * modules/crypto/gc-des-tests (License): Likewise.
54708         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54709         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54710         * modules/crypto/gc-md2-tests (License): Likewise.
54711         * modules/crypto/gc-md4-tests (License): Likewise.
54712         * modules/crypto/gc-md5-tests (License): Likewise.
54713         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54714         * modules/crypto/gc-rijndael-tests (License): Likewise.
54715         * modules/crypto/gc-sha1-tests (License): Likewise.
54716         * modules/crypto/gc-tests (License): Likewise.
54717         * modules/crypto/hmac-md5 (License): Likewise.
54718         * modules/crypto/hmac-sha1 (License): Likewise.
54719         * modules/crypto/md2-tests (License): Likewise.
54720         * modules/crypto/md4-tests (License): Likewise.
54721         * modules/crypto/md5 (License): Likewise.
54722         * modules/crypto/rijndael (License): Likewise.
54723         * modules/crypto/sha1 (License): Likewise.
54724         * modules/memxor (License): Likewise.
54725
54726 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54727         and Bruno Haible  <bruno@clisp.org>
54728
54729         * NEWS: Describe interface changes to human, xstrtol.
54730         * lib/human.h: Include <xstrtol.h>.
54731         (human_options): Return enum strtol_error, not int.  Remove
54732         bool arg; take int * instead.
54733         * lib/human.c: Don't include "gettext.h".
54734         (_): Remove; no longer used.
54735         Don't include <xstrtol.h>, since human.h does it.
54736         (human_options): Adjust to abovementioned interface changes.
54737         Do not report error to stderr; that's now the caller's
54738         responsibility.
54739         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54740         interface change.
54741         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54742         Str, Argument_type_string.  All uses changed.  Put " argument"
54743         in diagnostics to make them clearer.  Change wording of suffix
54744         message for clarity.
54745         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54746         Argument_type_string.
54747         (STRTOL_FATAL_WARN): Remove; no longer used.
54748         * modules/human (Depends-on): Remove gettext-h.
54749
54750 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54751
54752         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54753
54754 2007-07-31  Bruno Haible  <bruno@clisp.org>
54755
54756         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54757         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54758         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54759
54760 2007-07-31  Bruno Haible  <bruno@clisp.org>
54761
54762         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54763         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54764
54765 2007-07-30  Bruno Haible  <bruno@clisp.org>
54766
54767         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54768         * modules/c-ctype (License): Likewise.
54769         * modules/c-strcase (License): Likewise.
54770         * modules/check-version (License): Likewise.
54771         * modules/iconv (License): Likewise.
54772         * modules/iconv_open (License): Likewise.
54773         * modules/read-file (License): Likewise.
54774         * modules/striconv (License): Likewise.
54775         * modules/strverscmp (License): Likewise.
54776         * modules/vasprintf (License): Likewise.
54777         * modules/crypto/des (License): Likewise.
54778         * modules/crypto/gc (License): Likewise.
54779         * modules/crypto/gc-arcfour (License): Likewise.
54780         * modules/crypto/gc-arctwo (License): Likewise.
54781         * modules/crypto/gc-des (License): Likewise.
54782         * modules/crypto/gc-hmac-md5 (License): Likewise.
54783         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54784         * modules/crypto/gc-md2 (License): Likewise.
54785         * modules/crypto/gc-md4 (License): Likewise.
54786         * modules/crypto/gc-md5 (License): Likewise.
54787         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54788         * modules/crypto/gc-random (License): Likewise.
54789         * modules/crypto/gc-rijndael (License): Likewise.
54790         * modules/crypto/gc-sha1 (License): Likewise.
54791         * modules/crypto/md2 (License): Likewise.
54792         * modules/crypto/md4 (License): Likewise.
54793
54794 2007-07-30  Jim Meyering  <jim@meyering.net>
54795
54796         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54797         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54798         it has valid stat data.  This bug would cause du not to count the
54799         sizes of inaccessible directories.
54800         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54801         in <http://bugzilla.redhat.com/250077>.
54802
54803 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54804             Bruno Haible  <bruno@clisp.org>
54805
54806         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54807         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54808         #include_next, gives a diagnostic about it, but reports no error in
54809         the exit code.
54810         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54811
54812 2007-07-24  Ben Pfaff  <blp@gnu.org>
54813
54814         Improve name: "count-one-bits" is better than "popcount".
54815         * MODULES.html.sh: Update name.
54816         * lib/popcount.h: Renamed lib/count-one-bits.h.
54817         (popcount): Renamed count_one_bits.
54818         (popcountl): Renamed count_one_bits_l.
54819         (popcountll): Renamed count_one_bits_ll.
54820         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54821         * modules/popcount: Renamed module/count-one-bits.
54822         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54823         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54824
54825 2007-07-23  Ben Pfaff  <blp@gnu.org>
54826
54827         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54828         better code generation, and add U to large constants to avoid
54829         warnings, in non-GCC case.
54830         Suggested by Bruno Haible.
54831
54832 2007-07-23  Ben Pfaff  <blp@gnu.org>
54833
54834         * lib/popcount.h: Use verify_true instead of if...abort.
54835         * modules/popcount: Depend on verify module.
54836         Suggested by Jim Meyering.
54837
54838 2007-07-23  Bruno Haible  <bruno@clisp.org>
54839
54840         * gnulib-tool (func_import): Create a .cvsignore file also when the
54841         directory is not yet in CVS but the toplevel directory is. When
54842         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54843         Reported by Karl Berry.
54844
54845 2007-07-22  Ben Pfaff  <blp@gnu.org>
54846
54847         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54848         case.
54849         Suggested by Eric Blake.
54850
54851 2007-07-22  Ben Pfaff  <blp@gnu.org>
54852
54853         New module: popcount.
54854         * MODULES.html.sh: Add popcount.
54855         * modules/popcount: New file.
54856         * modules/popcount-tests: New file.
54857         * tests/test-popcount.c: New file.
54858         * lib/popcount.h: New file.
54859         * m4/popcount.m4: New file.
54860
54861 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54862
54863         * build-aux/announce-gen: Update to GPLv3.
54864
54865         * build-aux/config.guess: Update from config.
54866
54867 2007-07-21  Bruno Haible  <bruno@clisp.org>
54868
54869         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54870         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54871
54872 2007-07-20  Jim Meyering  <jim@meyering.net>
54873
54874         * check-module: Diagnose a self-dependency.
54875
54876 2007-07-19  Bruno Haible  <bruno@clisp.org>
54877
54878         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54879         empty.
54880         Reported by Eric Blake.
54881
54882 2007-07-18  Bruno Haible  <bruno@clisp.org>
54883
54884         * gnulib-tool: New options --po-base, --po-domain.
54885         (func_usage): Document them.
54886         (pobase, po_domain): New variables.
54887         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54888         DEFAULT_TEXT_DOMAIN.
54889         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54890         (func_import): Consider pobase and po_domain. Create a po/ directory.
54891         (func_create_testdir): Set pobase and po_domain to empty.
54892         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54893         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54894
54895 2007-07-18  Bruno Haible  <bruno@clisp.org>
54896
54897         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54898         EXTRA_DIST augmentation for files in build-aux/.
54899
54900 2007-07-16  Bruno Haible  <bruno@clisp.org>
54901
54902         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54903         * modules/getdelim (License): Likewise.
54904
54905 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54906
54907         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54908         * modules/d-type (License): Likewise.
54909         * modules/extensions (License): Likewise.
54910         * modules/fnmatch (License): Likewise.
54911         * modules/fseeko (License): Likewise.
54912         * modules/getaddrinfo (License): Likewise.
54913         * modules/getline (License): Likewise.
54914         * modules/getlogin_r (License): Likewise.
54915         * modules/getpass (License): Likewise.
54916         * modules/gettimeofday (License): Likewise.
54917         * modules/glob (License): Likewise.
54918         * modules/inet_ntop (License): Likewise.
54919         * modules/malloc (License): Likewise.
54920         * modules/malloca (License): Likewise.
54921         * modules/memmem (License): Likewise.
54922         * modules/mempcpy (License): Likewise.
54923         * modules/memset (License): Likewise.
54924         * modules/minmax (License): Likewise.
54925         * modules/mktime (License): Likewise.
54926         * modules/netinet_in (License): Likewise.
54927         * modules/pathmax (License): Likewise.
54928         * modules/poll (License): Likewise.
54929         * modules/regex (License): Likewise.
54930         * modules/snprintf (License): Likewise.
54931         * modules/stdbool (License): Likewise.
54932         * modules/stdint (License): Likewise.
54933         * modules/stdio (License): Likewise.
54934         * modules/strcase (License): Likewise.
54935         * modules/strcasestr (License): Likewise.
54936         * modules/strdup (License): Likewise.
54937         * modules/string (License): Likewise.
54938         * modules/strndup (License): Likewise.
54939         * modules/strnlen (License): Likewise.
54940         * modules/strpbrk (License): Likewise.
54941         * modules/strptime (License): Likewise.
54942         * modules/strsep (License): Likewise.
54943         * modules/sys_select (License): Likewise.
54944         * modules/sys_socket (License): Likewise.
54945         * modules/sys_stat (License): Likewise.
54946         * modules/sys_time (License): Likewise.
54947         * modules/time (License): Likewise.
54948         * modules/time_r (License): Likewise.
54949         * modules/timegm (License): Likewise.
54950         * modules/unistd (License): Likewise.
54951         * modules/vsnprintf (License): Likewise.
54952         * modules/wctype (License): Likewise.
54953
54954 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54955
54956         * modules/argz (License): LGPLv2+.
54957
54958 2007-07-15  Karl Berry  <karl@gnu.org>
54959
54960         * doc/gnulib.texi: revise node structure per new fdl.texi.
54961
54962 2007-07-14  Bruno Haible  <bruno@clisp.org>
54963
54964         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54965         the output file.
54966         * lib/uniname/uninames.h: Regenerated.
54967
54968 2007-07-14  Karl Berry  <karl@gnu.org>
54969
54970         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54971         omitting sectioning and index commands.
54972
54973 2007-07-13  Bruno Haible  <bruno@clisp.org>
54974
54975         New gnulib-tool option --more-symlinks.
54976         * gnulib-tool (func_usage): Document --more-symlinks.
54977         (do_copyrights): New variable.
54978         Recognize option --more-symlinks.
54979         (func_import): Don't add a copyright notice transform to
54980         sed_transform_lib_file if do_copyrights is empty.
54981
54982 2007-07-13  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/vasnprintf.c (decimal_point_char): Define also if
54985         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54986         && !NEED_PRINTF_DIRECTIVE_A.
54987         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54988         Gary V. Vaughan <gary@gnu.org>.
54989
54990 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54991
54992         * lib/inttypes_.h: Undo previous change, since it was fixed
54993         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54994
54995 2007-07-13  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54998         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54999
55000 2007-07-13  Jim Meyering  <jim@meyering.net>
55001
55002         df: Don't fail for Tru64's "file-on-file mount".
55003         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55004         so we fall through and use statfs instead.  Details here:
55005         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55006         Reported by Albert Chin.
55007
55008 2007-07-13  Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55011         * modules/configmake (License): Likewise.
55012         * modules/gettext (License): Likewise.
55013         * modules/gettext-h (License): Likewise.
55014         * modules/include_next (License): Likewise.
55015         * modules/link-warning (License): Likewise.
55016         * modules/localcharset (License): Likewise.
55017         * modules/localename (License): Likewise.
55018         * modules/lock (License): Likewise.
55019         * modules/relocatable-lib-lgpl (License): Likewise.
55020         * modules/size_max (License): Likewise.
55021         * modules/vasnprintf (License): Likewise.
55022         * modules/wchar (License): Likewise.
55023         * modules/xsize (License): Likewise.
55024
55025 2007-07-13  Bruno Haible  <bruno@clisp.org>
55026
55027         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
55028         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
55029
55030 2007-07-12  Bruno Haible  <bruno@clisp.org>
55031
55032         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
55033         in the modules files.
55034
55035 2007-07-11  Karl Berry  <karl@gnu.org>
55036
55037         * MODULES.html.sh (func_module): use
55038          sed -e '\|^'"${includefile}"'$|d'
55039          instead of /.../d, to avoid errors on $includefile's containing /.
55040
55041 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55042
55043         * gnulib-tool (func_import): Avoid duplication of --avoid
55044         statements
55045         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
55046         names to `_' in variable names.
55047
55048 2007-07-10  Eric Blake  <ebb9@byu.net>
55049
55050         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
55051         * NEWS: Document this change.
55052
55053 2007-07-08  Bruno Haible  <bruno@clisp.org>
55054
55055         Update to Unicode 5.0.
55056         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55057         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55058         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55059         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55060         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55061         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55062         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55063         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55064         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55065         U+10A3F, U+1D242..U+1D244.
55066         (nonspacing_table_ind): Update.
55067         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55068         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55069
55070 2007-07-08  Bruno Haible  <bruno@clisp.org>
55071
55072         Update to Unicode 5.0.
55073         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55074         code transform. Extend the name index field of unicode_name_to_code and
55075         unicode_code_to_name from 16 to 24 bits.
55076         * lib/uniname/uniname.c (unicode_character_name,
55077         unicode_name_character): Add the range 0x12xxx to the code transform.
55078         * lib/uniname/uninames.h: Regenerated.
55079         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55080
55081 2007-07-07  Bruno Haible  <bruno@clisp.org>
55082
55083         * modules/wcwidth-tests: New file.
55084         * tests/test-wcwidth.c: New file.
55085
55086         Work around MacOS X wcwidth() bug.
55087         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55088         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55089         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55090         original wcwidth in non-UTF-8 locales.
55091         * modules/wcwidth (Depends-on): Add localcharset, streq,
55092         uniwidth/width.
55093         * doc/functions/wcwidth.texi: Update.
55094
55095 2007-07-07  Bruno Haible  <bruno@clisp.org>
55096
55097         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55098         (wcwidth): New declaration.
55099         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55100         macros.
55101         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55102         here. Prepare for creating <wchar.h> unconditionally.
55103         * modules/wchar (Depends-on): Add link-warning.
55104         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55105         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55106         * lib/wcwidth.h: Remove file.
55107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55108         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55109         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55110         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55111         (Include): Replace wcwidth.h with <wchar.h>.
55112         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55113         * lib/mbchar.h: Don't include wcwidth.h.
55114         * lib/mbswidth.c: Likewise.
55115         * NEWS: Mention the change.
55116
55117 2007-07-07  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55120         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55121         definition with an external declaration.
55122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
55123         defined as a function. Remove AC_C_INLINE requirement.
55124         * modules/wcwidth (Files): Add lib/wcwidth.c.
55125         (Makefile.am): Remove redundant statement.
55126
55127 2007-07-07  Bruno Haible  <bruno@clisp.org>
55128
55129         * MODULES.html.sh (Unicode string functions): Add the new modules.
55130
55131         * tests/uniwidth/test-u32-strwidth.c: New file.
55132         * modules/uniwidth/u32-strwidth-tests: New file.
55133
55134         * lib/uniwidth/u32-strwidth.c: New file.
55135         * modules/uniwidth/u32-strwidth: New file.
55136
55137         * tests/uniwidth/test-u16-strwidth.c: New file.
55138         * modules/uniwidth/u16-strwidth-tests: New file.
55139
55140         * lib/uniwidth/u16-strwidth.c: New file.
55141         * modules/uniwidth/u16-strwidth: New file.
55142
55143         * tests/uniwidth/test-u8-strwidth.c: New file.
55144         * modules/uniwidth/u8-strwidth-tests: New file.
55145
55146         * lib/uniwidth/u8-strwidth.c: New file.
55147         * modules/uniwidth/u8-strwidth: New file.
55148
55149         * tests/uniwidth/test-u32-width.c: New file.
55150         * modules/uniwidth/u32-width-tests: New file.
55151
55152         * lib/uniwidth/u32-width.c: New file.
55153         * modules/uniwidth/u32-width: New file.
55154
55155         * tests/uniwidth/test-u16-width.c: New file.
55156         * modules/uniwidth/u16-width-tests: New file.
55157
55158         * lib/uniwidth/u16-width.c: New file.
55159         * modules/uniwidth/u16-width: New file.
55160
55161         * tests/uniwidth/test-u8-width.c: New file.
55162         * modules/uniwidth/u8-width-tests: New file.
55163
55164         * lib/uniwidth/u8-width.c: New file.
55165         * modules/uniwidth/u8-width: New file.
55166
55167         * tests/uniwidth/test-uc_width.c: New file.
55168         * modules/uniwidth/width-tests: New file.
55169
55170         * lib/uniwidth/width.c: New file, from GNU libiconv.
55171         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
55172         * modules/uniwidth/width: New file.
55173
55174         * lib/uniwidth.h: New file, from GNU libiconv.
55175         * modules/uniwidth/base: New file.
55176
55177 2007-07-07  Bruno Haible  <bruno@clisp.org>
55178
55179         * lib/uniname.h: New file, from GNU gettext.
55180         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
55181         * lib/uniname/uninames.h: New file, from GNU gettext.
55182         * lib/uniname/uniname.c: New file, from GNU gettext.
55183         * tests/uniname/test-uninames.sh: New file.
55184         * tests/uniname/test-uninames.c: New file, from GNU gettext.
55185         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
55186         * modules/uniname/base: New file.
55187         * modules/uniname/uniname: New file.
55188         * modules/uniname/uniname-tests: New file.
55189         * MODULES.html.sh (Unicode string functions): Add the new modules.
55190
55191 2007-07-06  Bruno Haible  <bruno@clisp.org>
55192
55193         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
55194
55195 2007-07-06  Bruno Haible  <bruno@clisp.org>
55196
55197         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
55198         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
55199         includes <cygwin/sys_time.h> which includes <sys/select.h> which
55200         include <sys/time.h>.
55201         Reported by Eric Blake.
55202
55203 2007-07-06  Eric Blake  <ebb9@byu.net>
55204
55205         Fix testing canonicalize on cygwin.
55206         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55207         Revert patch from 2007-06-19.
55208         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
55209         canonicalize module is also in use.
55210         * tests/test-canonicalize.c: New file.
55211         * tests/test-canonicalize.sh: Likewise.
55212         * modules/canonicalize-tests: Likewise.
55213
55214 2007-07-06  Jim Meyering  <jim@meyering.net>
55215
55216         * lib/getugroups.c (getugroups): Detect getgrent failure.
55217         Adjust comment to reflect reality: this function may return -1.
55218
55219 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55220
55221         * build-aux/bootstrap (TP_URL,get_translations): Update to use
55222         the new TP address.
55223         (usage): Fix typo
55224         (gnulib_mk): New variable.
55225
55226 2007-07-05  Jim Meyering  <jim@meyering.net>
55227
55228         Don't let endgrent clobber errno, no matter how improbable.
55229         * lib/getugroups.c (getugroups): Save and restore errno around
55230         endgrent call.
55231
55232         Close the group DB even when failing with 2^31 or more members.
55233         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
55234
55235 2007-07-04  Jim Meyering  <jim@meyering.net>
55236
55237         * lib/getugroups.h: New file.
55238         * lib/getugroups.c: Include "getugroups.h".
55239         Remove uses of "register" keyword.
55240         Move local variable, "cp", down into scope where used.
55241         Give "username" parameter the "const" attribute.
55242         * modules/getugroups (Files): Add lib/getugroups.h
55243
55244 2007-07-04  Karl Berry  <karl@gnu.org>
55245
55246         * MODULES.html.sh (func_all_modules): Complete rename of
55247         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
55248
55249 2007-07-02  Bruno Haible  <bruno@clisp.org>
55250
55251         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
55252         mode, when inttypes.h comes from gnulib.
55253         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55254
55255 2007-07-02  Simon Josefsson  <simon@josefsson.org>
55256
55257         * NEWS: Mention lgpl module name change.
55258
55259         * modules/lgpl-2.1: Renamed from lgpl.
55260
55261         * NEWS: Mention gpl module name change.
55262
55263         * modules/gpl-3.0: New file, based on gpl-2.0.
55264
55265         * modules/gpl-2.0: Renamed from gpl.
55266
55267         * modules/gpl: Fix filename, doc/gpl.texi is now found at
55268         doc/gpl-2.0.texi.
55269
55270 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
55271
55272         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
55273         #define __STDC_LIMIT_MACROS temporarily while including
55274         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
55275         Problem reported by Joel E. Denny in
55276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
55277
55278 2007-07-01  Bruno Haible  <bruno@clisp.org>
55279
55280         * lib/unistdio.h: New file.
55281         * lib/unistdio/u-asnprintf.h: New file.
55282         * lib/unistdio/u-asprintf.h: New file.
55283         * lib/unistdio/u-printf-args.c: New file.
55284         * lib/unistdio/u-printf-args.h: New file.
55285         * lib/unistdio/u-printf-parse.h: New file.
55286         * lib/unistdio/u-snprintf.h: New file.
55287         * lib/unistdio/u-sprintf.h: New file.
55288         * lib/unistdio/u-vasprintf.h: New file.
55289         * lib/unistdio/u-vsnprintf.h: New file.
55290         * lib/unistdio/u-vsprintf.h: New file.
55291         * lib/unistdio/ulc-asnprintf.c: New file.
55292         * lib/unistdio/ulc-asprintf.c: New file.
55293         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
55294         * lib/unistdio/ulc-printf-parse.c: New file.
55295         * lib/unistdio/ulc-snprintf.c: New file.
55296         * lib/unistdio/ulc-sprintf.c: New file.
55297         * lib/unistdio/ulc-vasnprintf.c: New file.
55298         * lib/unistdio/ulc-vasprintf.c: New file.
55299         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
55300         * lib/unistdio/ulc-vsnprintf.c: New file.
55301         * lib/unistdio/ulc-vsprintf.c: New file.
55302         * lib/unistdio/u8-asnprintf.c: New file.
55303         * lib/unistdio/u8-asprintf.c: New file.
55304         * lib/unistdio/u8-printf-parse.c: New file.
55305         * lib/unistdio/u8-snprintf.c: New file.
55306         * lib/unistdio/u8-sprintf.c: New file.
55307         * lib/unistdio/u8-vasnprintf.c: New file.
55308         * lib/unistdio/u8-vasprintf.c: New file.
55309         * lib/unistdio/u8-vsnprintf.c: New file.
55310         * lib/unistdio/u8-vsprintf.c: New file.
55311         * lib/unistdio/u8-u8-asnprintf.c: New file.
55312         * lib/unistdio/u8-u8-asprintf.c: New file.
55313         * lib/unistdio/u8-u8-snprintf.c: New file.
55314         * lib/unistdio/u8-u8-sprintf.c: New file.
55315         * lib/unistdio/u8-u8-vasnprintf.c: New file.
55316         * lib/unistdio/u8-u8-vasprintf.c: New file.
55317         * lib/unistdio/u8-u8-vsnprintf.c: New file.
55318         * lib/unistdio/u8-u8-vsprintf.c: New file.
55319         * lib/unistdio/u16-asnprintf.c: New file.
55320         * lib/unistdio/u16-asprintf.c: New file.
55321         * lib/unistdio/u16-printf-parse.c: New file.
55322         * lib/unistdio/u16-snprintf.c: New file.
55323         * lib/unistdio/u16-sprintf.c: New file.
55324         * lib/unistdio/u16-vasnprintf.c: New file.
55325         * lib/unistdio/u16-vasprintf.c: New file.
55326         * lib/unistdio/u16-vsnprintf.c: New file.
55327         * lib/unistdio/u16-vsprintf.c: New file.
55328         * lib/unistdio/u16-u16-asnprintf.c: New file.
55329         * lib/unistdio/u16-u16-asprintf.c: New file.
55330         * lib/unistdio/u16-u16-snprintf.c: New file.
55331         * lib/unistdio/u16-u16-sprintf.c: New file.
55332         * lib/unistdio/u16-u16-vasnprintf.c: New file.
55333         * lib/unistdio/u16-u16-vasprintf.c: New file.
55334         * lib/unistdio/u16-u16-vsnprintf.c: New file.
55335         * lib/unistdio/u16-u16-vsprintf.c: New file.
55336         * lib/unistdio/u32-asnprintf.c: New file.
55337         * lib/unistdio/u32-asprintf.c: New file.
55338         * lib/unistdio/u32-printf-parse.c: New file.
55339         * lib/unistdio/u32-snprintf.c: New file.
55340         * lib/unistdio/u32-sprintf.c: New file.
55341         * lib/unistdio/u32-vasnprintf.c: New file.
55342         * lib/unistdio/u32-vasprintf.c: New file.
55343         * lib/unistdio/u32-vsnprintf.c: New file.
55344         * lib/unistdio/u32-vsprintf.c: New file.
55345         * lib/unistdio/u32-u32-asnprintf.c: New file.
55346         * lib/unistdio/u32-u32-asprintf.c: New file.
55347         * lib/unistdio/u32-u32-snprintf.c: New file.
55348         * lib/unistdio/u32-u32-sprintf.c: New file.
55349         * lib/unistdio/u32-u32-vasnprintf.c: New file.
55350         * lib/unistdio/u32-u32-vasprintf.c: New file.
55351         * lib/unistdio/u32-u32-vsnprintf.c: New file.
55352         * lib/unistdio/u32-u32-vsprintf.c: New file.
55353         * tests/unistdio/test-ulc-asnprintf1.c: New file.
55354         * tests/unistdio/test-ulc-asnprintf1.h: New file.
55355         * tests/unistdio/test-ulc-printf1.h: New file.
55356         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
55357         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
55358         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
55359         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
55360         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
55361         * tests/unistdio/test-ulc-vasprintf1.c: New file.
55362         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
55363         * tests/unistdio/test-ulc-vsprintf1.c: New file.
55364         * tests/unistdio/test-u8-asnprintf1.c: New file.
55365         * tests/unistdio/test-u8-asnprintf1.h: New file.
55366         * tests/unistdio/test-u8-printf1.h: New file.
55367         * tests/unistdio/test-u8-vasnprintf1.c: New file.
55368         * tests/unistdio/test-u8-vasnprintf2.c: New file.
55369         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
55370         * tests/unistdio/test-u8-vasnprintf3.c: New file.
55371         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
55372         * tests/unistdio/test-u8-vasprintf1.c: New file.
55373         * tests/unistdio/test-u8-vsnprintf1.c: New file.
55374         * tests/unistdio/test-u8-vsprintf1.c: New file.
55375         * tests/unistdio/test-u16-asnprintf1.c: New file.
55376         * tests/unistdio/test-u16-asnprintf1.h: New file.
55377         * tests/unistdio/test-u16-printf1.h: New file.
55378         * tests/unistdio/test-u16-vasnprintf1.c: New file.
55379         * tests/unistdio/test-u16-vasnprintf2.c: New file.
55380         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
55381         * tests/unistdio/test-u16-vasnprintf3.c: New file.
55382         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
55383         * tests/unistdio/test-u16-vasprintf1.c: New file.
55384         * tests/unistdio/test-u16-vsnprintf1.c: New file.
55385         * tests/unistdio/test-u16-vsprintf1.c: New file.
55386         * tests/unistdio/test-u32-asnprintf1.c: New file.
55387         * tests/unistdio/test-u32-asnprintf1.h: New file.
55388         * tests/unistdio/test-u32-printf1.h: New file.
55389         * tests/unistdio/test-u32-vasnprintf1.c: New file.
55390         * tests/unistdio/test-u32-vasnprintf2.c: New file.
55391         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
55392         * tests/unistdio/test-u32-vasnprintf3.c: New file.
55393         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
55394         * tests/unistdio/test-u32-vasprintf1.c: New file.
55395         * tests/unistdio/test-u32-vsnprintf1.c: New file.
55396         * tests/unistdio/test-u32-vsprintf1.c: New file.
55397         * modules/unistdio/base: New file.
55398         * modules/unistdio/u-printf-args: New file.
55399         * modules/unistdio/ulc-asnprintf: New file.
55400         * modules/unistdio/ulc-asprintf: New file.
55401         * modules/unistdio/ulc-fprintf: New file.
55402         * modules/unistdio/ulc-printf-parse: New file.
55403         * modules/unistdio/ulc-snprintf: New file.
55404         * modules/unistdio/ulc-sprintf: New file.
55405         * modules/unistdio/ulc-vasnprintf: New file.
55406         * modules/unistdio/ulc-vasprintf: New file.
55407         * modules/unistdio/ulc-vfprintf: New file.
55408         * modules/unistdio/ulc-vsnprintf: New file.
55409         * modules/unistdio/ulc-vsprintf: New file.
55410         * modules/unistdio/u8-asnprintf: New file.
55411         * modules/unistdio/u8-asprintf: New file.
55412         * modules/unistdio/u8-printf-parse: New file.
55413         * modules/unistdio/u8-snprintf: New file.
55414         * modules/unistdio/u8-sprintf: New file.
55415         * modules/unistdio/u8-vasnprintf: New file.
55416         * modules/unistdio/u8-vasprintf: New file.
55417         * modules/unistdio/u8-vsnprintf: New file.
55418         * modules/unistdio/u8-vsprintf: New file.
55419         * modules/unistdio/u8-u8-asnprintf: New file.
55420         * modules/unistdio/u8-u8-asprintf: New file.
55421         * modules/unistdio/u8-u8-snprintf: New file.
55422         * modules/unistdio/u8-u8-sprintf: New file.
55423         * modules/unistdio/u8-u8-vasnprintf: New file.
55424         * modules/unistdio/u8-u8-vasprintf: New file.
55425         * modules/unistdio/u8-u8-vsnprintf: New file.
55426         * modules/unistdio/u8-u8-vsprintf: New file.
55427         * modules/unistdio/u16-asnprintf: New file.
55428         * modules/unistdio/u16-asprintf: New file.
55429         * modules/unistdio/u16-printf-parse: New file.
55430         * modules/unistdio/u16-snprintf: New file.
55431         * modules/unistdio/u16-sprintf: New file.
55432         * modules/unistdio/u16-vasnprintf: New file.
55433         * modules/unistdio/u16-vasprintf: New file.
55434         * modules/unistdio/u16-vsnprintf: New file.
55435         * modules/unistdio/u16-vsprintf: New file.
55436         * modules/unistdio/u16-u16-asnprintf: New file.
55437         * modules/unistdio/u16-u16-asprintf: New file.
55438         * modules/unistdio/u16-u16-snprintf: New file.
55439         * modules/unistdio/u16-u16-sprintf: New file.
55440         * modules/unistdio/u16-u16-vasnprintf: New file.
55441         * modules/unistdio/u16-u16-vasprintf: New file.
55442         * modules/unistdio/u16-u16-vsnprintf: New file.
55443         * modules/unistdio/u16-u16-vsprintf: New file.
55444         * modules/unistdio/u32-asnprintf: New file.
55445         * modules/unistdio/u32-asprintf: New file.
55446         * modules/unistdio/u32-printf-parse: New file.
55447         * modules/unistdio/u32-snprintf: New file.
55448         * modules/unistdio/u32-sprintf: New file.
55449         * modules/unistdio/u32-vasnprintf: New file.
55450         * modules/unistdio/u32-vasprintf: New file.
55451         * modules/unistdio/u32-vsnprintf: New file.
55452         * modules/unistdio/u32-vsprintf: New file.
55453         * modules/unistdio/u32-u32-asnprintf: New file.
55454         * modules/unistdio/u32-u32-asprintf: New file.
55455         * modules/unistdio/u32-u32-snprintf: New file.
55456         * modules/unistdio/u32-u32-sprintf: New file.
55457         * modules/unistdio/u32-u32-vasnprintf: New file.
55458         * modules/unistdio/u32-u32-vasprintf: New file.
55459         * modules/unistdio/u32-u32-vsnprintf: New file.
55460         * modules/unistdio/u32-u32-vsprintf: New file.
55461         * modules/unistdio/ulc-asnprintf-tests: New file.
55462         * modules/unistdio/ulc-vasnprintf-tests: New file.
55463         * modules/unistdio/ulc-vasprintf-tests: New file.
55464         * modules/unistdio/ulc-vsnprintf-tests: New file.
55465         * modules/unistdio/ulc-vsprintf-tests: New file.
55466         * modules/unistdio/u8-asnprintf-tests: New file.
55467         * modules/unistdio/u8-vasnprintf-tests: New file.
55468         * modules/unistdio/u8-vasprintf-tests: New file.
55469         * modules/unistdio/u8-vsnprintf-tests: New file.
55470         * modules/unistdio/u8-vsprintf-tests: New file.
55471         * modules/unistdio/u16-asnprintf-tests: New file.
55472         * modules/unistdio/u16-vasnprintf-tests: New file.
55473         * modules/unistdio/u16-vasprintf-tests: New file.
55474         * modules/unistdio/u16-vsnprintf-tests: New file.
55475         * modules/unistdio/u16-vsprintf-tests: New file.
55476         * modules/unistdio/u32-asnprintf-tests: New file.
55477         * modules/unistdio/u32-vasnprintf-tests: New file.
55478         * modules/unistdio/u32-vasprintf-tests: New file.
55479         * modules/unistdio/u32-vsnprintf-tests: New file.
55480         * modules/unistdio/u32-vsprintf-tests: New file.
55481         * MODULES.html.sh (Unicode string functions): Add the new modules.
55482
55483 2007-07-01  Bruno Haible  <bruno@clisp.org>
55484
55485         * lib/sprintf.c (sprintf): Limit the available length estimation,
55486         to avoid address wraparound.
55487         * lib/vsprintf.c (vsprintf): Likewise.
55488         * modules/sprintf-posix (Dependencies): Add stdint.
55489         * modules/vsprintf-posix (Dependencies): Likewise.
55490
55491 2007-07-01  Bruno Haible  <bruno@clisp.org>
55492
55493         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
55494         Windows PATH as well. Conservative double-quoting. Comments.
55495
55496 2007-07-01  Bruno Haible  <bruno@clisp.org>
55497             Eric Blake  <ebb9@byu.net>
55498             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55499
55500         * gnulib-tool (self_abspathname): Fix algorithm to cope with
55501         empty components in $PATH, denoting '.'.
55502
55503 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55504
55505         * gnulib-tool: Fix indentation.
55506         (func_create_megatestdir): Likewise.
55507         Report by Bruno Haible.
55508
55509 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55510
55511         Sync from Automake.
55512         * build-aux/gnupload: Fix shell portability issues with for loops.
55513         Report by Karl Berry.
55514
55515 2007-06-29  Simon Josefsson  <simon@josefsson.org>
55516
55517         * build-aux/maint.mk (POURL): Use translationproject.org.
55518
55519 2007-06-27  Simon Josefsson  <simon@josefsson.org>
55520             Bruno Haible  <bruno@clisp.org>
55521
55522         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
55523         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
55524         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
55525         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
55526         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
55527
55528 2007-06-27  Bruno Haible  <bruno@clisp.org>
55529
55530         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
55531         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
55532
55533 2007-06-26  Karl Berry  <karl@gnu.org>
55534
55535         * MODULES.html.sh: remove xreadlink-with-size.
55536
55537 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55538
55539         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
55540         method that I hope also handles the double-include problem noted
55541         by Bruno Haible in
55542         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
55543
55544 2007-06-23  Bruno Haible  <bruno@clisp.org>
55545
55546         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55547         Don't let the 'mostlyclean' target fail if the last subdirectory could
55548         not be removed.
55549         Reported by Karl Berry.
55550
55551 2007-06-23  Bruno Haible  <bruno@clisp.org>
55552
55553         * gnulib-tool (echo): Add a speedier workaround for ksh.
55554         * tests/test-echo.sh: Likewise.
55555
55556 2007-06-23  Bruno Haible  <bruno@clisp.org>
55557
55558         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55559         * tests/test-echo.sh: Likewise.
55560
55561 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55562
55563         * gnulib-tool (IFS): Initialize early, so we don't set it to
55564         empty later.
55565         (self_abspathname): Rewrite algorithm to set it, reindent.
55566         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55567         (func_create_megatestdir): Merge some sed scripts.
55568
55569 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55570
55571         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55572         exposed by Sun Studio 11 cc on Solaris 8.
55573
55574 2007-06-22  Bruno Haible  <bruno@clisp.org>
55575
55576         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55577         backslashes.
55578         * tests/test-echo.sh: New file.
55579
55580 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55581
55582         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55583         simplify `sed_replace_build_aux' scripts, they are portable but
55584         echoing them with `echo' is not.
55585         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55586
55587 2007-06-21  Karl Berry  <karl@gnu.org>
55588
55589         * config/srclist.txt: guess we can't handle the licenses via
55590         srclist at the moment.
55591
55592 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55593
55594         * MODULES.html.sh: Add include_next.
55595         * modules/include_next: New file.
55596
55597 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55598
55599         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55600         INCLUDE_NEXT.
55601         (gl_CHECK_NEXT_HEADERS): New macro.
55602         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55603         the obsolescent gl_ABSOLUTE_HEADER.
55604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55605         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55606         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55607         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55608         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55609         * m4/math_h.m4 (gl_MATH_H): Likewise.
55610         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55611         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55612         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55613         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55614         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55615         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55616         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55617         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55618         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55620         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55621         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55622         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55623         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55624         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55625         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55626         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55627         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55628         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55629         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55630         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55631         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55632         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55633         * lib/float_.h: Likewise.
55634         * lib/inttypes_.h: Likewise.
55635         * lib/math_.h: Likewise.
55636         * lib/search_.h: Likewise.
55637         * lib/signal_.h: Likewise.
55638         * lib/stdint_.h: Likewise.
55639         * lib/stdio_.h: Likewise.
55640         * lib/stdlib_.h: Likewise.
55641         * lib/string_.h: Likewise.
55642         * lib/sys_stat_.h: Likewise.
55643         * lib/sys_time_.h: Likewise.
55644         * lib/time_.h: Likewise.
55645         * lib/unistd_.h: Likewise.
55646         * lib/wchar_.h: Likewise.
55647         * lib/wctype_.h: Likewise.
55648         * lib/dirent_.h: Likewise.
55649         * lib/iconv_.h: Likewise.
55650         * lib/locale_.h: Likewise.
55651         * lib/netinet_in_.h: Likewise.
55652         * lib/sys_select_.h: Likewise.
55653         * lib/sys_socket_.h: Likewise.
55654         * lib/sysexits_.h: Likewise.
55655         * modules/fcntl (Depends-on): Depend on include_next, not
55656         absolute_header.
55657         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55658         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55659         * modules/fchdir: Likewise.
55660         * modules/float: Likewise.
55661         * modules/iconv_open: Likewise.
55662         * modules/inttypes: Likewise.
55663         * modules/locale: Likewise.
55664         * modules/math: Likewise.
55665         * modules/netinet_in: Likewise.
55666         * modules/search: Likewise.
55667         * modules/signal: Likewise.
55668         * modules/stdint: Likewise.
55669         * modules/stdio: Likewise.
55670         * modules/stdlib: Likewise.
55671         * modules/string: Likewise.
55672         * modules/sys_select: Likewise.
55673         * modules/sys_socket: Likewise.
55674         * modules/sys_stat: Likewise.
55675         * modules/sys_time: Likewise.
55676         * modules/sysexits: Likewise.
55677         * modules/time: Likewise.
55678         * modules/unistd: Likewise.
55679         * modules/wchar: Likewise.
55680         * modules/wctype: Likewise.
55681         * modules/sys_stat: Change maintainer to "all".
55682         * modules/unistd: Likewise.
55683
55684 2007-06-20  Karl Berry  <karl@gnu.org>
55685
55686         * config/srclist.txt: track www changes in license files.
55687
55688 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55689
55690         * build-aux/bootstrap: Remove stray dot.
55691         Make sure build_aux settings are honored when linking
55692         gnulib_extra_files.
55693
55694 2007-06-19  Eric Blake  <ebb9@byu.net>
55695
55696         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55697         Allow compilation on cygwin.
55698
55699 2007-06-19  Jim Meyering  <jim@meyering.net>
55700
55701         xreadlink-with-size: Remove module.  No longer used.
55702         Ex-callers now use xreadlink or mreadlink-with-size.
55703         * modules/xreadlink-with-size: Remove module.
55704         * lib/xreadlink-with-size.c: Remove file.
55705         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55706         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55707         just before the function definition *is* accurate.
55708
55709         Eliminate one way canonicalize_filename_mode could exit.
55710         * lib/canonicalize.c (canonicalize_filename_mode):
55711         Use mreadlink_with_size, not xreadlink_with_size.
55712
55713 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55714
55715         Detect porting problems to FreeBSD/arm, which has time_t wider than
55716         long int.  Original problem reported for GNU diff by Xin Li in
55717         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55718         * modules/getdate (Depends-on): Add intprops, verify.
55719         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55720         is an integer type no wider than long int.
55721
55722 2007-06-18  Jim Meyering  <jim@meyering.net>
55723
55724         New module: mreadlink-with-size.
55725         * MODULES.html.sh: Add mreadlink-with-size.
55726         * modules/mreadlink-with-size: New module
55727         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55728         not xreadlink-with-size.
55729         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55730
55731 2007-06-16  Bruno Haible  <bruno@clisp.org>
55732
55733         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55734         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55735         Reported by Gary V. Vaughan <gary@gnu.org>.
55736
55737 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55738
55739         Revamp lchown so that it lives in unistd.h where it belongs.
55740         * lib/lchown.h: Remove.
55741         * lib/dirchownmod.c: Don't include lib/lchown.h.
55742         * lib/fchownat.c: Likewise.
55743         * lib/openat.c: Likewise.
55744         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55745         does not follow symlinks.
55746         (EOPNOTSUPP): Define if not defined.
55747         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55748         is defined to 0.
55749         (lchown): New decl.
55750         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55751         Do not check for lchown decl.
55752         Set REPLACE_LCHOWN.
55753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55754         REPLACE_LCHOWN.
55755         * modules/chown: Make it clear it follows symlinks.
55756         * modules/lchown: Make it clear it doesn't follow symlinks.
55757         (Files): Remove lib/lchown.h
55758         (Depends-on): Add unistd.
55759         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55760         (Include): Include <unistd.h>, not "lchown.h".
55761         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55762         REPLACE_LCHOWN.
55763
55764 2007-06-15  Jim Meyering  <jim@meyering.net>
55765
55766         Change license (GPL to LGPL) of fsusage and dependents.
55767         * modules/fsusage (License): Change to LGPL.
55768         * modules/full-read (License): Likewise.
55769         * modules/full-write (License): Likewise.
55770         * modules/safe-read (License): Likewise.
55771         * modules/safe-write (License): Likewise.
55772
55773 2007-06-14  Ben Pfaff  <blp@gnu.org>
55774
55775         Missing part of allocsa -> malloca transition.
55776         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55777         gl_MALLOCA.
55778
55779 2007-06-12  Bruno Haible  <bruno@clisp.org>
55780
55781         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55782         to ia64, x86_64, i386.
55783         Reported by Eric Blake.
55784
55785 2007-06-12  Bruno Haible  <bruno@clisp.org>
55786
55787         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55788         cross-compiling to x86_64.
55789
55790 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55793         glitch reported by Ralf Wildenhues in
55794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55795
55796         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55797         Vin Shelton.
55798
55799 2007-06-11  Bruno Haible  <bruno@clisp.org>
55800
55801         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55802         replacement string.
55803         Reported by Eric Blake.
55804
55805 2007-06-10  Bruno Haible  <bruno@clisp.org>
55806
55807         Prepare vasnprintf code for use with Unicode strings.
55808         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55809         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55810         TYPE_U32_STRING.
55811         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55812         a_u32_string variants.
55813         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55814         * lib/printf-args.c: Don't include config.h and the specification
55815         header if PRINTF_FETCHARGS is already defined.
55816         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55817         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55818         TYPE_U16_STRING, TYPE_U32_STRING.
55819         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55820         u16_directive, u16_directives, u32_directive, u32_directives): New
55821         types.
55822         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55823         New declarations.
55824         * lib/printf-parse.c: Don't include config.h and the specification
55825         header if PRINTF_PARSE is already defined. Eliminate the set of
55826         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55827         them now. Include c-ctype.h.
55828         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55829         directive and CHAR_T_ONLY_ASCII.
55830         * lib/vasnprintf.c: Don't include config.h and the specification header
55831         if VASNPRINTF is already defined.
55832         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55833         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55834         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55835         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55836         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55837         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55838         code accordingly.
55839         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55840         pad_ourselves also in this case, with the 'c' and 's' directives, and
55841         with a different notion of "width".
55842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55843
55844 2007-06-10  Bruno Haible  <bruno@clisp.org>
55845
55846         * modules/unistr/u32-mbsnlen: New file.
55847         * lib/unistr/u32-mbsnlen.c: New file.
55848
55849         * modules/unistr/u16-mbsnlen: New file.
55850         * lib/unistr/u16-mbsnlen.c: New file.
55851
55852         * modules/unistr/u8-mbsnlen: New file.
55853         * lib/unistr/u8-mbsnlen.c: New file.
55854
55855         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55856         declarations.
55857
55858 2007-06-10  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/string_.h (mbsnlen): New declaration.
55861         * lib/mbsnlen.c: New file.
55862         * m4/mbsnlen.m4: New file.
55863         * modules/mbsnlen: New file.
55864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55865         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55866         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55867
55868 2007-06-10  Bruno Haible  <bruno@clisp.org>
55869
55870         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55871
55872 2007-06-10  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55875         * lib/mbuiter.h: Likewise.
55876
55877 2007-06-10  Bruno Haible  <bruno@clisp.org>
55878
55879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55880         declaration.
55881
55882 2007-06-10  Karl Berry  <karl@gnu.org>
55883
55884         * config/srclist.txt: remove gettext entries, Bruno prefers
55885         to update individually.
55886
55887 2007-06-10  Bruno Haible  <bruno@clisp.org>
55888
55889         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55890         'maxlen'. Ensure only length + width bytes are allocated, not
55891         length + 1 + width.
55892
55893 2007-06-09  Bruno Haible  <bruno@clisp.org>
55894
55895         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55896         (CHAR_T): Remove macro.
55897         (VASNPRINTF): Update.
55898
55899 2007-06-09  Bruno Haible  <bruno@clisp.org>
55900
55901         * MODULES.html.sh (Unicode string functions): Add the new modules.
55902
55903         * modules/uniconv/u32-conv-to-enc: New file.
55904         * lib/uniconv/u32-conv-to-enc.c: New file.
55905         * modules/uniconv/u32-conv-to-enc-tests: New file.
55906         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55907
55908         * modules/uniconv/u16-conv-to-enc: New file.
55909         * lib/uniconv/u16-conv-to-enc.c: New file.
55910         * lib/uniconv/u-conv-to-enc.h: New file.
55911         * modules/uniconv/u16-conv-to-enc-tests: New file.
55912         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55913
55914         * modules/uniconv/u8-conv-to-enc: New file.
55915         * lib/uniconv/u8-conv-to-enc.c: New file.
55916         * modules/uniconv/u8-conv-to-enc-tests: New file.
55917         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55918
55919         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55920         u32_conv_to_encoding): New declarations.
55921
55922 2007-06-09  Bruno Haible  <bruno@clisp.org>
55923
55924         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55925
55926 2007-06-09  Bruno Haible  <bruno@clisp.org>
55927
55928         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55929         * modules/malloca: Renamed from modules/allocsa, updated.
55930         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55931         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55932         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55933         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55934         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55935         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55936         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55937         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55938         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55939         * modules/c-strcasestr (Depends-on): Update.
55940         * lib/c-strcasestr.c: Update.
55941         * modules/c-strstr (Depends-on): Update.
55942         * lib/c-strstr.c: Update.
55943         * modules/canonicalize-lgpl (Depends-on): Update.
55944         * lib/canonicalize-lgpl.c: Update.
55945         * modules/clean-temp (Depends-on): Update.
55946         * lib/clean-temp.c: Update.
55947         * modules/csharpcomp (Depends-on): Update.
55948         * lib/csharpcomp.c: Update.
55949         * modules/csharpexec (Depends-on): Update.
55950         * lib/csharpexec.c: Update.
55951         * modules/javacomp (Depends-on): Update.
55952         * lib/javacomp.c: Update.
55953         * modules/javaexec (Depends-on): Update.
55954         * lib/javaexec.c: Update.
55955         * modules/mbscasestr (Depends-on): Update.
55956         * lib/mbscasestr.c: Update.
55957         * modules/mbsstr (Depends-on): Update.
55958         * lib/mbsstr.c: Update.
55959         * modules/setenv (Depends-on): Update.
55960         * lib/setenv.c: Update.
55961         * modules/strcasestr (Depends-on): Update.
55962         * lib/strcasestr.c: Update.
55963         * modules/striconveha (Depends-on): Update.
55964         * lib/striconveha.c: Update.
55965         * modules/relocatable-prog-wrapper (Files): Update.
55966         * lib/relocwrapper.c: Update.
55967         * build-aux/install-reloc: Update.
55968         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55969
55970 2007-06-08  Bruno Haible  <bruno@clisp.org>
55971
55972         Port to uClibc.
55973         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55974         * lib/fpurge.c (fpurge): Likewise.
55975         * lib/freading.c (freading): Likewise.
55976         * lib/fseeko.c (rpl_fseeko): Likewise.
55977         * lib/fseterr.c (fseterr): Likewise.
55978         * lib/fwriting.c (fwriting): Likewise.
55979         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55980
55981 2007-06-08  Bruno Haible  <bruno@clisp.org>
55982
55983         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55984         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55985         * modules/gettext (Files): Add m4/intlmacosx.m4.
55986
55987 2007-06-07  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/localename-tests: New file.
55990         * tests/test-localename.c: New file.
55991
55992         New module 'localename'.
55993         * lib/localename.h: New file.
55994         * lib/localename.c: New file, from GNU gettext.
55995         * m4/localename.m4: New file.
55996         * modules/localename: New file.
55997
55998 2007-06-07  Bruno Haible  <bruno@clisp.org>
55999
56000         Work around the lack of <wchar.h> on some builds of uClibc.
56001         * doc/headers/wchar.texi: Update.
56002         * lib/wchar_.h: Include <wchar.h> only if it exists.
56003         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56004         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56005         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56006         doesn't exist.
56007         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56008         * modules/mbfile (Depends-on): Add wchar.
56009         * modules/mbiter (Depends-on): Likewise.
56010         * modules/mbuiter (Depends-on): Likewise.
56011         Reported by Simon Josefsson.
56012
56013 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56014
56015         Work around problem reported by Steven M. Schweda in
56016         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56017         Tru64 5.1B with the Compaq compiler environment installed declares
56018         an 'isblank' function but does not define it in the C library.
56019         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56020         * lib/regex_internal.h (isblank): Likewise.
56021         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
56022         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56023
56024 2007-06-05  Bruno Haible  <bruno@clisp.org>
56025
56026         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
56027         ia64.
56028         * modules/printf-safe: New file.
56029         * modules/fprintf-posix (Depends-on): Add printf-safe.
56030         * modules/printf-posix (Depends-on): Likewise.
56031         * modules/snprintf-posix (Depends-on): Likewise.
56032         * modules/sprintf-posix (Depends-on): Likewise.
56033         * modules/vasnprintf-posix (Depends-on): Likewise.
56034         * modules/vasprintf-posix (Depends-on): Likewise.
56035         * modules/vfprintf-posix (Depends-on): Likewise.
56036         * modules/vprintf-posix (Depends-on): Likewise.
56037         * modules/vsnprintf-posix (Depends-on): Likewise.
56038         * modules/vsprintf-posix (Depends-on): Likewise.
56039         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
56040         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
56041         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
56042         "no" on i386, x86_64, ia64.
56043         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
56044         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56045         on i386, x86_64, ia64.
56046         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
56047         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56048         on i386, x86_64, ia64.
56049         * tests/test-vasnprintf-posix.c: Include float.h.
56050         (LDBL80_WORDS): New macro.
56051         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56052         on i386, x86_64, ia64.
56053         * tests/test-vasprintf-posix.c: Include float.h.
56054         (LDBL80_WORDS): New macro.
56055         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56056         on i386, x86_64, ia64.
56057         * tests/test-snprintf-posix.c: Include float.h.
56058         * tests/test-sprintf-posix.c: Likewise.
56059         * tests/test-vsnprintf-posix.c: Likewise.
56060         * tests/test-vsprintf-posix.c: Likewise.
56061
56062 2007-06-05  Bruno Haible  <bruno@clisp.org>
56063
56064         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56065         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56066         non-IEEE numbers on i386, x86_64, ia64.
56067         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56068         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56069         * tests/test-isnanl.h: Include float.h.
56070         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56071
56072 2007-06-05  Bruno Haible  <bruno@clisp.org>
56073
56074         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56075         also the %a / %A. Handle the %a / %A code before this extra handling.
56076
56077 2007-06-05  Bruno Haible  <bruno@clisp.org>
56078
56079         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56080         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56081
56082 2007-06-05  Bruno Haible  <bruno@clisp.org>
56083
56084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56085         typo in variable name.
56086
56087 2007-06-05  Eric Blake  <ebb9@byu.net>
56088
56089         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56090         Reported by Simon Josefsson.
56091
56092 2007-06-04  Bruno Haible  <bruno@clisp.org>
56093
56094         Avoid test failures on some PowerPC platforms.
56095         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56096         Define differently for PowerPC.
56097         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56098         Reported by Gary V. Vaughan <gary@gnu.org>.
56099
56100 2007-06-02  Bruno Haible  <bruno@clisp.org>
56101
56102         Fix test-stdint failure on FreeBSD/ia64.
56103         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56104         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56105         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56106         * doc/headers/stdint.texi: Update.
56107
56108 2007-06-01  Bruno Haible  <bruno@clisp.org>
56109
56110         * tests/test-binary-io.c (main): Pass a third argument to open().
56111         Reported by Gary V. Vaughan <gary@gnu.org>.
56112
56113 2007-06-01  Bruno Haible  <bruno@clisp.org>
56114
56115         * doc/functions/frexpl.texi: Update for mingw.
56116
56117 2007-06-01  Bruno Haible  <bruno@clisp.org>
56118
56119         * tests/test-lseek.c (main): Disable test of errno for invalid third
56120         argument.
56121         * doc/functions/lseek.texi: Update.
56122         Reported by Gary V. Vaughan <gary@gnu.org>.
56123
56124 2007-05-28  Bruno Haible  <bruno@clisp.org>
56125
56126         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
56127
56128 2007-05-31  Eric Blake  <ebb9@byu.net>
56129
56130         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
56131         cross compiling.
56132
56133 2007-05-30  Eric Blake  <ebb9@byu.net>
56134         and Bruno Haible  <bruno@clisp.org>
56135
56136         Work around mingw test failures exposed by m4-1.4.9b.
56137         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
56138         * tests/test-unistd.c: Disable uid_t and git_t tests for the
56139         moment.
56140
56141 2007-05-30  Bruno Haible  <bruno@clisp.org>
56142
56143         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
56144         assuming that they are closed. Needed on HP-UX 11.
56145
56146 2007-05-29  Bruno Haible  <bruno@clisp.org>
56147
56148         Fix a problem with #include_next.
56149         * lib/dirent_.h: Split the double-inclusion guard.
56150         * lib/fcntl_.h: Likewise.
56151         * lib/float_.h: Likewise.
56152         * lib/iconv_.h: Likewise.
56153         * lib/inttypes_.h: Likewise.
56154         * lib/locale_.h: Likewise.
56155         * lib/math_.h: Likewise.
56156         * lib/netinet_in_.h: Likewise.
56157         * lib/search_.h: Likewise.
56158         * lib/signal_.h: Likewise.
56159         * lib/stdint_.h: Likewise.
56160         * lib/stdio_.h: Likewise.
56161         * lib/stdlib_.h: Likewise.
56162         * lib/string_.h: Likewise.
56163         * lib/sys_select_.h: Likewise.
56164         * lib/sys_socket_.h: Likewise.
56165         * lib/sys_stat_.h: Likewise.
56166         * lib/sys_time_.h: Likewise.
56167         * lib/sysexits_.h: Likewise.
56168         * lib/time_.h: Likewise.
56169         * lib/unistd_.h: Likewise.
56170         * lib/wchar_.h: Likewise.
56171         * lib/wctype_.h: Likewise.
56172
56173 2007-05-29  Bruno Haible  <bruno@clisp.org>
56174
56175         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
56176         for the moment.
56177
56178 2007-05-29  Bruno Haible  <bruno@clisp.org>
56179
56180         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
56181         invocation.
56182         Reported by Eric Blake.
56183
56184 2007-05-29  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
56187         compiling case.
56188
56189 2007-05-29  Eric Blake  <ebb9@byu.net>
56190             Bruno Haible  <bruno@clisp.org>
56191
56192         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
56193         cross compiles.
56194
56195 2007-05-28  Eric Blake  <ebb9@byu.net>
56196
56197         * modules/closein-tests (test_closein_LDADD): Support test on
56198         cygwin with libtool.
56199
56200 2007-05-28  Bruno Haible  <bruno@clisp.org>
56201
56202         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
56203         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56204         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56205         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56206         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56207         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56208         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56209         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56210         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56211
56212 2007-05-28  Eric Blake  <ebb9@byu.net>
56213
56214         Unconditionally include <config.h> in unit tests.
56215         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
56216         * tests/test-allocsa.c, tests/test-arcfour.c,
56217         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
56218         tests/test-array_list.c, tests/test-array_oset.c,
56219         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
56220         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
56221         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
56222         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
56223         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
56224         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
56225         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
56226         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
56227         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
56228         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
56229         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
56230         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
56231         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
56232         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
56233         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
56234         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
56235         test-md5.c, test-memmem.c, test-printf-posix.c,
56236         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
56237         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
56238         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
56239         test-strcasestr.c, test-striconv.c, test-striconveh.c,
56240         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
56241         test-vasnprintf-posix2.c, test-vasnprintf.c,
56242         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
56243         test-vfprintf-posix.c, test-vprintf-posix.c,
56244         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
56245         test-xvasprintf.c: Likewise.
56246
56247 2007-05-28  Bruno Haible  <bruno@clisp.org>
56248
56249         * gnulib-tool (func_import): Remember the --with-tests command-line
56250         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
56251         Reported by Eric Blake.
56252
56253 2007-05-28  Bruno Haible  <bruno@clisp.org>
56254
56255         * modules/ftell-tests: New file.
56256         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
56257         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
56258
56259         * lib/ftell.c: New file.
56260         * modules/ftell: New file.
56261         * m4/ftell.m4: New file.
56262         * doc/functions/ftell.texi: Update.
56263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
56264         REPLACE_FTELL.
56265         * lib/stdio_.h (rpl_ftell): New declaration.
56266         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
56267         REPLACE_FTELL.
56268
56269 2007-05-28  Eric Blake  <ebb9@byu.net>
56270
56271         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
56272
56273 2007-05-28  Bruno Haible  <bruno@clisp.org>
56274
56275         * modules/fseek-tests: New file.
56276         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
56277         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
56278
56279         * lib/fseek.c: New file.
56280         * modules/fseek: New file.
56281         * m4/fseek.m4: New file.
56282         * doc/functions/fseek.texi: Update.
56283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
56284         REPLACE_FSEEK.
56285         * lib/stdio_.h (rpl_fseek): New declaration.
56286         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
56287         REPLACE_FSEEK.
56288
56289 2007-05-28  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/stdio_.h (fflush): More comments.
56292
56293 2007-05-28  Bruno Haible  <bruno@clisp.org>
56294
56295         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
56296         runtime test.
56297
56298 2007-05-28  Eric Blake  <ebb9@byu.net>
56299
56300         Improve lseek module.
56301         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
56302         * lib/unistd_.h (lseek): Scale back link warning message.
56303         * tests/test-lseek.c: Beef up test.
56304         * tests/test-lseek.sh: Exercise more facets of lseek.
56305         Reported by Bruno Haible.
56306
56307 2007-05-28  Bruno Haible  <bruno@clisp.org>
56308
56309         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
56310         to define.
56311
56312 2007-05-27  Bruno Haible  <bruno@clisp.org>
56313
56314         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
56315
56316 2007-05-27  Bruno Haible  <bruno@clisp.org>
56317
56318         * modules/openmp: New file.
56319         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
56320         Noah Misch.
56321
56322 2007-05-26  Bruno Haible  <bruno@clisp.org>
56323
56324         * modules/chdir-long (Depends-on): Add fchdir.
56325         * modules/chdir-safer (Depends-on): Likewise.
56326         * modules/fts (Depends-on): Likewise.
56327         * modules/fts-lgpl (Depends-on): Likewise.
56328         * modules/openat (Depends-on): Likewise.
56329         * modules/savewd (Depends-on): Likewise.
56330
56331 2007-05-24  Eric Blake  <ebb9@byu.net>
56332
56333         Fix lseek on mingw.
56334         * modules/lseek: New module.
56335         * m4/lseek.m4: New file.
56336         * lib/lseek.c: New file.
56337         * modules/lseek-tests: New file.
56338         * tests/test-lseek.c: New file.
56339         * tests/test-lseek.sh: New file.
56340         * MODULES.html.sh: Document lseek module.
56341         * modules/fflush (Depends-on): Add lseek, fseeko.
56342         * modules/fseeko (Depends-on): Likewise.
56343         * modules/ftello (Depends-on): Likewise.
56344         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
56345         broken.
56346         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
56347         broken.
56348         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
56349         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
56350         * lib/ftello.c (rpl_ftello): Likewise.
56351         * tests/test-fseeko.c (main): Test this.
56352         * tests/test-fseeko.sh: Likewise.
56353         * tests/test-ftello.c (main): Likewise.
56354         * tests/test-ftello.sh: Likewise.
56355         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
56356         implies replacing fseek.
56357         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
56358         HAVE_FTELLO.
56359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
56360         * modules/unistd (Makefile.am): Likewise.
56361         * lib/unistd_.h (lseek): Declare a replacement.
56362         * doc/functions/lseek.texi (lseek): Document this fix.
56363         * doc/functions/fseek.texi (fseek): Likewise.
56364         * doc/functions/ftell.texi (ftell): Likewise.
56365
56366 2007-05-24  Bruno Haible  <bruno@clisp.org>
56367
56368         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
56369         in the printed representation of a NaN.
56370         * tests/test-vasprintf-posix.c (test_function): Likewise.
56371         * tests/test-snprintf-posix.h (test_function): Likewise.
56372         * tests/test-sprintf-posix.h (test_function): Likewise.
56373         Reported by Eric Blake.
56374
56375 2007-05-23  Eric Blake  <ebb9@byu.net>
56376
56377         Fix fseeko/ftello on cygwin 1.5.24.
56378         * doc/functions/fseeko.texi (fseeko): Document the fix.
56379         * doc/functions/ftello.texi (ftello): Document the fix.
56380         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
56381         * doc/functions/stdout.text (stdout): New file.
56382         * doc/functions/stderr.text (stderr): New file.
56383         * doc/gnulib.texi (Function Substitutes): Use new files.
56384         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
56385         prior to 1.7.0.
56386         * tests/test-ftello.c (main): Likewise for ftello.
56387         * tests/test-fseeko.sh: New file.
56388         * tests/test-ftello.sh: New file.
56389         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
56390         with seekable stdin.
56391         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
56392         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
56393         (gl_REPLACE_FSEEKO): New macro.
56394         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
56395         * modules/fseeko (Files): Distribute fseeko.c.
56396         * modules/ftello (Files): Distribute ftello.c.
56397         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
56398         mode.
56399         * lib/ftello.c (rpl_ftello): New file.
56400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
56401         fseeko, ftello.
56402         (gl_STDIN_LARGE_OFFSET): New macro.
56403         * modules/stdio (Makefile.am): Perform the replacement.
56404         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
56405
56406 2007-05-23  Bruno Haible  <bruno@clisp.org>
56407
56408         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
56409         GNULIB_POSIXCHECK is defined.
56410
56411 2007-05-21  Bruno Haible  <bruno@clisp.org>
56412
56413         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
56414         Check also the output for NaN arguments. When cross-compiling, guess
56415         no on IRIX.
56416         * lib/vasnprintf.c: Update comments.
56417         * tests/test-vasnprintf-posix.c (strisnan): New function.
56418         (test_function): Use it.
56419         * tests/test-vasprintf-posix.c (strisnan): New function.
56420         (test_function): Use it.
56421         * tests/test-snprintf-posix.h (strisnan): New function.
56422         (test_function): Use it.
56423         * tests/test-sprintf-posix.h (strisnan): New function.
56424         (test_function): Use it.
56425         Reported by Eric Blake.
56426
56427 2007-05-20  Bruno Haible  <bruno@clisp.org>
56428
56429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
56430         numbers that fails on BeOS.
56431         * doc/functions/frexpl.texi: Update.
56432
56433 2007-05-20  Jim Meyering  <jim@meyering.net>
56434
56435         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
56436         forced upon us by glibc-2.6.
56437
56438 2007-05-20  Bruno Haible  <bruno@clisp.org>
56439
56440         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
56441         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
56442         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
56443         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
56444         NEED_PRINTF_INFINITE.
56445         (is_infinitel): New function.
56446         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
56447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
56448         gl_PREREQ_VASNPRINTF_INFINITE.
56449         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
56450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56451         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
56452         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
56453         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
56454         gl_PREREQ_VASNPRINTF_INFINITE.
56455         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56456         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56462         * doc/functions/fprintf.texi: Update.
56463         * doc/functions/printf.texi: Update.
56464         * doc/functions/snprintf.texi: Update.
56465         * doc/functions/sprintf.texi: Update.
56466         * doc/functions/vfprintf.texi: Update.
56467         * doc/functions/vprintf.texi: Update.
56468         * doc/functions/vsnprintf.texi: Update.
56469         * doc/functions/vsprintf.texi: Update.
56470
56471 2007-05-20  Bruno Haible  <bruno@clisp.org>
56472
56473         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
56474         was not found in libc.
56475         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56476
56477 2007-05-20  Bruno Haible  <bruno@clisp.org>
56478
56479         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56480         printed as "-nan" instead of "nan".
56481         * tests/test-vasprintf-posix.c (test_function): Likewise.
56482         * tests/test-snprintf-posix.h (test_function): Likewise.
56483         * tests/test-sprintf-posix.h (test_function): Likewise.
56484         Needed for HP-UX 11.
56485
56486 2007-05-20  Jim Meyering  <jim@meyering.net>
56487
56488         Fix buggy test for the fchownat-deref bug.
56489         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
56490         symlink required for the run-test.  Without it, this test would
56491         always declare that fchownat doesn't work, and client code would
56492         unnecessarily use the replacement function with fixed libc.
56493         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
56494         Reported by Greg Schafer.
56495
56496 2007-05-19  Bruno Haible  <bruno@clisp.org>
56497
56498         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
56499         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
56500         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
56501         Needed for IRIX 6.5 and Solaris 2.5.1.
56502
56503 2007-05-19  Bruno Haible  <bruno@clisp.org>
56504
56505         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
56506         (test_function): Skip tests involving -0.0 on platforms where
56507         -0.0 = 0.0.
56508         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
56509         (test_function): Skip tests involving -0.0 on platforms where
56510         -0.0 = 0.0.
56511         * tests/test-snprintf-posix.h (have_minus_zero): New function.
56512         (test_function): Skip tests involving -0.0 on platforms where
56513         -0.0 = 0.0.
56514         * tests/test-sprintf-posix.h (have_minus_zero): New function.
56515         (test_function): Skip tests involving -0.0 on platforms where
56516         -0.0 = 0.0.
56517         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
56518         tests.
56519         * tests/test-printf-posix.h (test_function): Likewise.
56520         * tests/test-printf-posix.output: Remove all -0.0 related results.
56521         Needed for IRIX 6.5.
56522
56523 2007-05-19  Bruno Haible  <bruno@clisp.org>
56524
56525         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
56526         printed as "nan0x7fffffff" instead of "nan".
56527         * tests/test-vasprintf-posix.c (test_function): Likewise.
56528         * tests/test-snprintf-posix.h (test_function): Likewise.
56529         * tests/test-sprintf-posix.h (test_function): Likewise.
56530         * tests/test-fprintf-posix.h (NaN): Remove macro.
56531         (test_function): Remove all NaN related tests.
56532         * tests/test-printf-posix.h (NaN): Remove macro.
56533         (test_function): Remove all NaN related tests.
56534         * tests/test-printf-posix.output: Remove all NaN related results.
56535         Needed for IRIX 6.5.
56536
56537 2007-05-19  Bruno Haible  <bruno@clisp.org>
56538
56539         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
56540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
56541
56542 2007-05-19  Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/float_.h: New file.
56545         * m4/float_h.m4: New file.
56546         * modules/float: New file.
56547         * modules/isnanl (Dependencies): Add float.
56548         * modules/isnanl-nolibm (Dependencies): Likewise.
56549         * modules/mathl (Dependencies): Likewise.
56550         * modules/printf-frexpl (Dependencies): Likewise.
56551         * modules/signbit (Dependencies): Likewise.
56552         * modules/vasnprintf (Dependencies): Likewise.
56553         * doc/headers/float.texi: Update.
56554
56555 2007-05-19  Jim Meyering  <jim@meyering.net>
56556
56557         * lib/utimens.c (gl_futimens): Rename from futimens,
56558         now that glibc-2.6 declares futimens.
56559         * lib/utimens.h: Likewise.
56560
56561 2007-05-19  Bruno Haible  <bruno@clisp.org>
56562
56563         Avoid test failures on mingw.
56564         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56565         * tests/test-printf-posix.sh: Likewise.
56566         * tests/test-vfprintf-posix.sh: Likewise.
56567         * tests/test-vprintf-posix.sh: Likewise.
56568
56569 2007-05-19  Bruno Haible  <bruno@clisp.org>
56570
56571         Fix *printf result for NaN, Inf, -0.0 on mingw.
56572         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56573         * lib/vasnprintf.c: Include math.h and isnan.h.
56574         (is_infinite_or_zero): New function.
56575         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56576         values in the %f, %F, %e, %E, %g, %G directives.
56577         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56578         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56579         gl_PRINTF_INFINITE and test its result. Invoke
56580         gl_PREREQ_VASNPRINTF_INFINITE.
56581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56583         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56584         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56585         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56587         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56588         * doc/functions/fprintf.texi: Update.
56589         * doc/functions/printf.texi: Update.
56590         * doc/functions/snprintf.texi: Update.
56591         * doc/functions/sprintf.texi: Update.
56592         * doc/functions/vfprintf.texi: Update.
56593         * doc/functions/vprintf.texi: Update.
56594         * doc/functions/vsnprintf.texi: Update.
56595         * doc/functions/vsprintf.texi: Update.
56596
56597 2007-05-19  Bruno Haible  <bruno@clisp.org>
56598
56599         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56600         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56601         Instead of multiplying with 10^k, set extra_zeroes to k.
56602         (scale10_round_long_double): Remove function.
56603
56604 2007-05-18  Bruno Haible  <bruno@clisp.org>
56605
56606         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56607         introduced on 2007-05-06.
56608
56609 2007-05-18  Bruno Haible  <bruno@clisp.org>
56610
56611         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56612         %g directives.
56613         * tests/test-vasprintf-posix.c (test_function): Likewise.
56614         * tests/test-snprintf-posix.h (test_function): Likewise.
56615         * tests/test-sprintf-posix.h (test_function): Likewise.
56616
56617 2007-05-18  Bruno Haible  <bruno@clisp.org>
56618
56619         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56620         (strmatch): New function.
56621         (test_function): Test the %f directive on numbers of various exponents.
56622         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56623         (strmatch): New function.
56624         (test_function): Test the %f directive on numbers of various exponents.
56625         * tests/test-snprintf-posix.h (strmatch): New function.
56626         (test_function): Test the %f directive on numbers of various exponents.
56627         * tests/test-sprintf-posix.h (strmatch): New function.
56628         (test_function): Test the %f directive on numbers of various exponents.
56629         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56630         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56631         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56632         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56633
56634 2007-05-18  Bruno Haible  <bruno@clisp.org>
56635
56636         Add support for 'long double' number output.
56637         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56638         * lib/vasnprintf.c: Include math.h and float+.h.
56639         (mp_limb_t): New type.
56640         (GMP_LIMB_BITS): New macro.
56641         (mp_twolimb_t): New type.
56642         (GMP_TWOLIMB_BITS): New macro.
56643         (mpn_t): New type.
56644         (multiply, divide, convert_to_decimal, decode_long_double,
56645         scale10_round_long_double, scale10_round_decimal_long_double,
56646         floorlog10l): New functions.
56647         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56648         for the %f, %F, %e, %E, %g, %G directives.
56649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56650         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56651         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56652         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56653         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56657         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56659         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56660         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56661         * modules/snprintf-posix (Depends-on): Likewise.
56662         * modules/sprintf-posix (Depends-on): Likewise.
56663         * modules/vasnprintf-posix (Depends-on): Likewise.
56664         * modules/vasprintf-posix (Depends-on): Likewise.
56665         * modules/vfprintf-posix (Depends-on): Likewise.
56666         * modules/vsnprintf-posix (Depends-on): Likewise.
56667         * modules/vsprintf-posix (Depends-on): Likewise.
56668         * modules/vasnprintf (Files): Add lib/float+.h.
56669         * doc/functions/fprintf.texi: Update.
56670         * doc/functions/printf.texi: Update.
56671         * doc/functions/snprintf.texi: Update.
56672         * doc/functions/sprintf.texi: Update.
56673         * doc/functions/vfprintf.texi: Update.
56674         * doc/functions/vprintf.texi: Update.
56675         * doc/functions/vsnprintf.texi: Update.
56676         * doc/functions/vsprintf.texi: Update.
56677
56678 2007-05-18  Bruno Haible  <bruno@clisp.org>
56679
56680         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56681
56682 2007-05-18  Bruno Haible  <bruno@clisp.org>
56683
56684         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56685         for printing 64-bit integers. Needed for mingw.
56686
56687 2007-05-18  Bruno Haible  <bruno@clisp.org>
56688
56689         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56690         gl_FUNC_FREXPL_WORKS.
56691         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56692
56693 2007-05-18  Bruno Haible  <bruno@clisp.org>
56694
56695         * modules/frexpl-nolibm-tests: New file.
56696
56697         * modules/frexpl-nolibm: New file.
56698         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56699
56700 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56701
56702         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56703         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56704         GCC 4.2, which otherwise issues a lot of warnings.
56705         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56706         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56707         Likewise.
56708         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56709         * modules/iconv_open (iconv.h): Likewise.
56710         * modules/locale (locale.h): Likewise.
56711         * modules/netinet_in (netinet/in.h): Likewise.
56712         * modules/sys_select (sys_select.h): Likewise.
56713         * modules/sys_socket (sys/socket.h): Likewise.
56714         * modules/sys_stat (sys/stat.h): Likewise.
56715         * modules/sysexits (sysexits.h): Likewise.
56716         * modules/unistd (unistd.h): Likewise.
56717
56718 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56719
56720         * modules/closein-tests (Makefile.am): Distribute
56721         `test-closein.sh'.
56722
56723 2007-05-17  Bruno Haible  <bruno@clisp.org>
56724
56725         * tests/test-printf-posix.output: Renamed from
56726         tests/test-fprintf-posix.out.
56727         * modules/fprintf-posix-tests: Update.
56728         * modules/printf-posix-tests: Update.
56729         * modules/vfprintf-posix-tests: Update.
56730         * modules/vprintf-posix-tests: Update.
56731         * tests/test-fprintf-posix.sh: Update.
56732         * tests/test-printf-posix.sh: Update.
56733         * tests/test-vfprintf-posix.sh: Update.
56734         * tests/test-vprintf-posix.sh: Update.
56735         Reported by Ralf Wildenhues.
56736
56737 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56738
56739         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56740         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56741         GCC 4.2, which otherwise issues a lot of warnings.
56742         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56743         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56744         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56745         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56746         it should no longer be needed.
56747         * lib/string_.h: Likewise.
56748         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56749         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56750         * modules/inttypes (inttypes.h): Likewise.
56751         * modules/math (math.h): Likewise.
56752         * modules/search (search.h): Likewise.
56753         * modules/signal (signal.h): Likewise.
56754         * modules/stdint (stdint.h): Likewise.
56755         * modules/stdio (stdio.h): Likewise.
56756         * modules/stdlib (stdlib.h): Likewise.
56757         * modules/string (string.h): Likewise.
56758         * modules/sys_time (sys/time.h): Likewise.
56759         * modules/time (time.h): Likewise.
56760         * modules/wchar (wchar.h): Likewise.
56761         * modules/wctype (wtype.h): Likewise.
56762
56763 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56764
56765         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56766
56767 2007-05-13  Bruno Haible  <bruno@clisp.org>
56768
56769         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56770         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56771         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56772         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56773         (gl_PREREQ_STRTOK_R): Don't require it here.
56774
56775 2007-05-13  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56778         when used in C++ mode.
56779
56780 2007-05-12  Bruno Haible  <bruno@clisp.org>
56781
56782         * lib/linebuffer.h: Tweak doc.
56783         * lib/linebuffer.c: Likewise.
56784
56785 2007-05-12  James Youngman  <jay@gnu.org>
56786
56787         * lib/linebuffer.c (readlinebuffer_delim): New function,
56788         like readlinebuffer, but use a caller-specified delimiter.
56789         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56790         as the delimiter.
56791         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56792
56793 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56794
56795         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56796         * modules/openat (Files): Remove openat-die.c.
56797         (Depends-on): Add openat-die.
56798         * modules/openat-die: New module.
56799
56800 2007-05-06  Bruno Haible  <bruno@clisp.org>
56801
56802         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56803         Update with info about Cygwin.
56804         * doc/functions/fprintf.texi: Update.
56805         * doc/functions/printf.texi: Update.
56806         * doc/functions/snprintf.texi: Update.
56807         * doc/functions/sprintf.texi: Update.
56808         * doc/functions/vfprintf.texi: Update.
56809         * doc/functions/vprintf.texi: Update.
56810         * doc/functions/vsnprintf.texi: Update.
56811         * doc/functions/vsprintf.texi: Update.
56812         Reported by Eric Blake.
56813
56814 2007-05-06  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56817         padding ourselves for the floating-point directives.
56818         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56819         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56821         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56822         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56823         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56827         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56828         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56829         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56830         * tests/test-snprintf-posix.h (test_function): Also check the width
56831         and some flags in the %f directive.
56832         * tests/test-sprintf-posix.h (test_function): Likewise.
56833         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56834         * tests/test-vasprintf-posix.c (test_function): Likewise.
56835         * doc/functions/fprintf.texi: Update.
56836         * doc/functions/printf.texi: Update.
56837         * doc/functions/snprintf.texi: Update.
56838         * doc/functions/sprintf.texi: Update.
56839         * doc/functions/vfprintf.texi: Update.
56840         * doc/functions/vprintf.texi: Update.
56841         * doc/functions/vsnprintf.texi: Update.
56842         * doc/functions/vsprintf.texi: Update.
56843
56844 2007-05-06  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56847         pass the ' flag character to sprintf or snprintf.
56848         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56851         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56852         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56853         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56856         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56857         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56859         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56860         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56861         flag.
56862         * tests/test-sprintf-posix.h (test_function): Likewise.
56863         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56864         * tests/test-vasprintf-posix.c (test_function): Likewise.
56865         * doc/functions/fprintf.texi: Update.
56866         * doc/functions/printf.texi: Update.
56867         * doc/functions/snprintf.texi: Update.
56868         * doc/functions/sprintf.texi: Update.
56869         * doc/functions/vfprintf.texi: Update.
56870         * doc/functions/vprintf.texi: Update.
56871         * doc/functions/vsnprintf.texi: Update.
56872         * doc/functions/vsprintf.texi: Update.
56873
56874 2007-05-01  Bruno Haible  <bruno@clisp.org>
56875
56876         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56877
56878 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56879
56880         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56881         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56882
56883 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56884
56885         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56886         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56887         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56888
56889 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56890
56891         * lib/argp-help.c (struct hol_entry): New member `ord'.
56892         (HOL_ENTRY_PTRCMP): Use ord for comparison
56893         (hol_sort): Initialize ord.
56894
56895 2007-05-01  Bruno Haible  <bruno@clisp.org>
56896
56897         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56898         Reported by Eric Blake.
56899         * doc/gnulib.texi (Function Substitutes): Update.
56900
56901 2007-05-01  Bruno Haible  <bruno@clisp.org>
56902
56903         * doc/functions.texi: Remove file, now redundant through
56904         doc/functions/*.texi.
56905
56906 2007-05-01  Bruno Haible  <bruno@clisp.org>
56907
56908         * modules/argp (Depends-on): Add sleep.
56909
56910 2007-05-01  Bruno Haible  <bruno@clisp.org>
56911
56912         * modules/sleep-tests: New file.
56913         * tests/test-sleep.c: New file.
56914
56915         * modules/sleep: New file.
56916         * lib/sleep.c: New file.
56917         * m4/sleep.m4: New file.
56918         * lib/unistd_.h (sleep): New declaration.
56919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56920         HAVE_SLEEP.
56921         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56922         * doc/functions/sleep.texi: Document the sleep module.
56923
56924 2007-05-01  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/sigprocmask.h: Remove file.
56927         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56928         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56929         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56930         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56931         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56932         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56933         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56934         HAVE_SIGSET_T as a shell variable.
56935         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56936         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56937         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56938         (Depends-on): Add signal. Remove verify.
56939         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56940         (Include): Mention <signal.h> instead of sigprocmask.h.
56941         * NEWS: Mention the change.
56942         * lib/fatal-signal.c: Don't include sigprocmask.h.
56943
56944 2007-05-01  Bruno Haible  <bruno@clisp.org>
56945
56946         * modules/signal: New file.
56947         * lib/signal_.h: New file.
56948         * m4/signal_h.m4: New file.
56949
56950 2007-05-01  Bruno Haible  <bruno@clisp.org>
56951
56952         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56953         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56954         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56955         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56956
56957 2007-05-01  Bruno Haible  <bruno@clisp.org>
56958
56959         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56960         configure time.
56961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56962         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56963         * modules/sys_stat (Makefile.am): Substitute their values into
56964         sys/stat.h.
56965
56966 2007-05-01  Bruno Haible  <bruno@clisp.org>
56967
56968         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56969         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56970         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56971
56972 2007-05-01  Bruno Haible  <bruno@clisp.org>
56973
56974         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56975         'assert' module here.
56976
56977 2007-05-01  Bruno Haible  <bruno@clisp.org>
56978
56979         * doc/functions/*.texi: New files.
56980         * doc/functions/google-ranking.txt: New file.
56981         * doc/gnulib.texi (Function Substitutes): New chapter.
56982         (ctime, inet_ntoa): Remove sections.
56983         * doc/ctime.texi: Remove file.
56984         * doc/inet_ntoa.texi: Remove file.
56985         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56986         dependencies.
56987         (%.info): New rule, specifying a --reference-limit.
56988
56989 2007-05-01  Bruno Haible  <bruno@clisp.org>
56990
56991         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56992
56993 2007-05-01  Bruno Haible  <bruno@clisp.org>
56994
56995         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56996         the portability of 'mkdir' to mingw systems.
56997
56998 2007-05-01  Bruno Haible  <bruno@clisp.org>
56999
57000         * doc/headers/google-ranking.txt: New file.
57001
57002 2007-04-30  Eric Blake  <ebb9@byu.net>
57003
57004         Prefer fseeko to fseek.
57005         * modules/getpass (Depends-on): Add fseeko.
57006         * lib/getpass.c (getpass): Use fseeko, not fseek.
57007
57008 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57009
57010         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57011         assumes the sorting is stable, while most qsort implementations
57012         are not.  Use argument addresses to ensure they never compare as
57013         equal.
57014
57015         * tests/test-argp-2.sh (usage-indent test): Fix output
57016         (func_compare): Restore diff options
57017         * tests/test-argp.c: Restore #include "progname.h"
57018
57019 2007-04-29  Bruno Haible  <bruno@clisp.org>
57020
57021         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
57022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57023         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
57024         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57025         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
57026         (configure.ac): Define CHECK_SNPRINTF_POSIX.
57027         (TESTS, check_PROGRAMS): Add test-snprintf.
57028         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
57029         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
57030         (TESTS, check_PROGRAMS): Add test-vsnprintf.
57031         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
57032         assertions that fail on HP-UX, OSF/1, or IRIX.
57033         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
57034
57035 2007-04-29  Bruno Haible  <bruno@clisp.org>
57036
57037         * MODULES.html.sh (posix_functions): Remove 'contents'.
57038
57039 2007-04-29  Karl Berry  <karl@gnu.org>
57040
57041         * config/srclist.txt (gendocs_template_min): new entry.
57042
57043 2007-04-29  Bruno Haible  <bruno@clisp.org>
57044
57045         Work around fpurge bug on BSD systems.
57046         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
57047         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
57048         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
57049         fpurge to rpl_fpurge if the system already has this function.
57050         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
57051         the case where the system already has this function. Correct invariants
57052         on BSD systems.
57053         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57054         BSD systems.
57055
57056 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57057
57058         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57059         proposed by Sven Verdoolaege.
57060
57061         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57062         options.
57063         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57064         (usage and help tests): Update
57065
57066 2007-04-29  Bruno Haible  <bruno@clisp.org>
57067
57068         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57069         Print more information in case of failure. Disable a test on BeOS.
57070
57071 2007-04-29  Bruno Haible  <bruno@clisp.org>
57072
57073         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57074         This helps debugging on systems on which no gdb is available.
57075
57076 2007-04-29  Bruno Haible  <bruno@clisp.org>
57077
57078         * lib/freading.h: Improve comments.
57079         * lib/fwriting.h: Likewise.
57080         * tests/test-freading.c (main): Don't check freading immediately after
57081         repositioning. Needed for glibc.
57082
57083 2007-04-29  Bruno Haible  <bruno@clisp.org>
57084
57085         * lib/freading.c (freading): Trivial simplification.
57086
57087 2007-04-28  Bruno Haible  <bruno@clisp.org>
57088
57089         * tests/test-fwriting.c (main): Also test the interaction between
57090         fflush and fwriting.
57091         * modules/fwriting-tests (Depends-on): Add fflush.
57092
57093         * tests/test-freading.c (main): Also test the interaction between
57094         fflush and freading.
57095         * modules/freading-tests (Depends-on): Add fflush.
57096
57097 2007-04-28  Bruno Haible  <bruno@clisp.org>
57098
57099         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57100         fseeko and ftello.
57101         Suggested by Eric Blake.
57102
57103 2007-04-28  Jim Meyering  <jim@meyering.net>
57104
57105         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57106         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57107         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57108
57109 2007-04-27  Eric Blake  <ebb9@byu.net>
57110
57111         * doc/headers/assert.texi (assert.h): Document assert module use.
57112
57113 2007-04-27  Bruno Haible  <bruno@clisp.org>
57114
57115         * doc/headers/*.texi: New files.
57116         * doc/gnulib.texi (Header File Substitutes): New chapter.
57117         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57118         dependencies.
57119         (standards.info ,standards.html, standards.dvi): Update dependencies.
57120         (mostlyclean, clean): New targets.
57121
57122 2007-04-27  Bruno Haible  <bruno@clisp.org>
57123
57124         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
57125         * modules/sysexits (Files, Makefile.am): Update.
57126
57127         * lib/sys_socket_.h: Renamed from lib/socket_.h.
57128         * modules/sys_socket (Files, Makefile.am): Update.
57129
57130         * lib/sys_stat_.h: Renamed from lib/stat_.h.
57131         * modules/sys_stat (Files, Makefile.am): Update.
57132
57133 2007-04-27  Eric Blake  <ebb9@byu.net>
57134
57135         * lib/freading.h: Improve comments.
57136         * lib/fwriting.h: Likewise.
57137         * lib/fflush.c: Likewise.
57138
57139         Fix closein for mingw.
57140         * modules/closein-tests: Add tests for closein.
57141         * tests/test-closein.c: New file.
57142         * tests/test-closein.sh: Likewise.
57143         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
57144         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
57145
57146 2007-04-27  Bruno Haible  <bruno@clisp.org>
57147
57148         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
57149         version is < 6.
57150         * lib/math_.h [__DECC]: Likewise.
57151         * lib/stdio_.h [__DECC]: Likewise.
57152         * lib/stdlib_.h [__DECC]: Likewise.
57153         * lib/string_.h [__DECC]: Likewise.
57154         * lib/time_.h [__DECC]: Likewise.
57155         * lib/wchar_.h [__DECC]: Likewise.
57156         * lib/wctype_.h [__DECC]: Likewise.
57157
57158 2007-04-27  Bruno Haible  <bruno@clisp.org>
57159
57160         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
57161
57162 2007-04-27  Bruno Haible  <bruno@clisp.org>
57163
57164         * lib/fflush.c: Add comments.
57165         * modules/fpurge-tests (Depends-on): Add fflush.
57166         * modules/freadable-tests (Depends-on): Likewise.
57167         * modules/fwritable-tests (Depends-on): Likewise.
57168
57169 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
57170
57171         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
57172         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
57173         Report by Bruno Haible <bruno@clisp.org>.
57174
57175 2007-04-26  Eric Blake  <ebb9@byu.net>
57176
57177         Fix fflush on mingw.
57178         * modules/fflush (Depends-on): Add freading.
57179         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
57180         but unread data.
57181
57182 2007-04-26  Eric Blake  <ebb9@byu.net>
57183         and Bruno Haible  <bruno@clisp.org>
57184
57185         Implement freading and fwriting.
57186         * lib/freading.c: New file.
57187         * lib/freading.h: Likewise.
57188         * m4/freading.m4: Likewise.
57189         * modules/freading: Likewise.
57190         * modules/freading-tests: Likewise.
57191         * tests/test-freading.c: Likewise.
57192         * lib/fwriting.c: New file.
57193         * lib/fwriting.h: Likewise.
57194         * m4/fwriting.m4: Likewise.
57195         * modules/fwriting: Likewise.
57196         * modules/fwriting-tests: Likewise.
57197         * tests/test-fwriting.c: Likewise.
57198         * MODULES.html.sh (File stream based Input/Output): Mention them.
57199
57200 2007-04-26  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
57203         'long' when we assume it.
57204         Suggested by Eric Blake.
57205
57206 2007-04-26  Bruno Haible  <bruno@clisp.org>
57207
57208         Ensure fseeko, ftello are declared on glibc systems.
57209         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
57210         * modules/fseeko (configure.ac-early): Likewise.
57211         * modules/ftello (configure.ac-early): Likewise.
57212         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
57213         AC_FUNC_FSEEKO for this.
57214         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
57215         (gl_CHECK_FSEEKO): Remove macro.
57216
57217 2007-04-26  Bruno Haible  <bruno@clisp.org>
57218
57219         * tests/test-fflush.c (main): Also check the ftell result after
57220         fflush and fseek/fseeko.
57221         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
57222         file descriptor position cache in the stream.
57223         * lib/fseeko.c (rpl_fseeko): Likewise.
57224
57225 2007-04-26  Bruno Haible  <bruno@clisp.org>
57226
57227         * modules/fflush-tests (Depends-on): Add fseeko.
57228
57229 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
57230             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57231
57232         * lib/argz_.h: ensure error_t definition is obtained in same
57233         mechanism system argz.h would have.
57234         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
57235         argz facilities are known bad.  Err on the side of caution if
57236         cross-compiling.
57237
57238 2007-04-25  Eric Blake  <ebb9@byu.net>
57239
57240         * lib/fpurge.c (includes): Use stdlib.h for free.
57241         * tests/test-fflush.c (main): Also test fflush-fseeko.
57242
57243 2007-04-25  Bruno Haible  <bruno@clisp.org>
57244
57245         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
57246         * lib/fseeko.c: New file.
57247         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
57248         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
57249         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
57250         gl_FUNC_FSEEKO.
57251         (gl_FUNC_FSEEKO): Invoke it.
57252         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
57253         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
57254         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
57255
57256 2007-04-25  Bruno Haible  <bruno@clisp.org>
57257
57258         * modules/fflush (Depends-on): Add ftello.
57259
57260 2007-04-25  Bruno Haible  <bruno@clisp.org>
57261
57262         * modules/ftello-tests: New file.
57263         * tests/test-ftello.c: New file.
57264
57265         * modules/ftello: New file.
57266         * m4/ftello.m4: New file.
57267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
57268         HAVE_FTELLO.
57269         * lib/stdio_.h (ftello): New declaration.
57270         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
57271         HAVE_FTELLO.
57272
57273 2007-04-25  Bruno Haible  <bruno@clisp.org>
57274
57275         * modules/fseeko-tests: New file.
57276         * tests/test-fseeko.c: New file.
57277
57278         * modules/fseeko: New file.
57279         * m4/fseeko.m4: New file.
57280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
57281         HAVE_FSEEKO.
57282         * lib/stdio_.h (fseeko): New declaration.
57283         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
57284         HAVE_FSEEKO.
57285
57286 2007-04-25  Bruno Haible  <bruno@clisp.org>
57287
57288         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
57289
57290 2007-04-25  Bruno Haible  <bruno@clisp.org>
57291
57292         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
57293         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
57294         * tests/test-unistd.c: Likewise.
57295         * tests/test-fcntl.c: Likewise.
57296
57297 2007-04-23  Eric Blake  <ebb9@byu.net>
57298
57299         * lib/fflush.c: Fix missing include.
57300         Reported by Bruno Haible.
57301
57302 2007-04-23  Bruno Haible  <bruno@clisp.org>
57303
57304         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
57305         Reported by Eric Blake.
57306
57307 2007-04-23  Bruno Haible  <bruno@clisp.org>
57308
57309         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
57310
57311 2007-04-23  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
57314
57315 2007-04-23  Bruno Haible  <bruno@clisp.org>
57316
57317         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
57318         Needed on HP-UX 11.
57319
57320 2007-04-16  Eric Blake  <ebb9@byu.net>
57321
57322         Make fflush rely on fpurge.
57323         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
57324         open coding all variants.
57325         * modules/fflush (Depends-on): Add fpurge and unistd.
57326         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
57327         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
57328
57329         Fix --with-tests compilation on cygwin.
57330         * modules/argmatch-tests (Makefile.am): List gnulib library first
57331         in LDADD.
57332         * modules/argp-tests (Makefile.am): Likewise.
57333         * modules/array-list-tests (Makefile.am): Likewise.
57334         * modules/array-oset-tests (Makefile.am): Likewise.
57335         * modules/avltree-list-tests (Makefile.am): Likewise.
57336         * modules/avltree-oset-tests (Makefile.am): Likewise.
57337         * modules/avltreehash-list-tests (Makefile.am): Likewise.
57338         * modules/carray-list-tests (Makefile.am): Likewise.
57339         * modules/dirname-tests (Makefile.am): Likewise.
57340         * modules/frexp-tests (Makefile.am): Likewise.
57341         * modules/isnanl-tests (Makefile.am): Likewise.
57342         * modules/linked-list-tests (Makefile.am): Likewise.
57343         * modules/linkedhash-list-tests (Makefile.am): Likewise.
57344         * modules/lock-tests (Makefile.am): Likewise.
57345         * modules/rbtree-list-tests (Makefile.am): Likewise.
57346         * modules/rbtree-oset-tests (Makefile.am): Likewise.
57347         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
57348         * modules/tls-tests (Makefile.am): Likewise.
57349         * modules/tsearch-tests (Makefile.am): Likewise.
57350         * modules/xvasprintf-tests (Makefile.am): Likewise.
57351
57352         Fix fpurge for cygwin.
57353         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
57354         value.
57355         * modules/fpurge-tests (Depends-on): Clean up trash.
57356
57357 2007-04-16  Simon Josefsson  <simon@josefsson.org>
57358
57359         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
57360
57361         * m4/autobuild.m4: Re-indent.
57362
57363 2007-04-13  Bruno Haible  <bruno@clisp.org>
57364
57365         * modules/fpurge-tests: New file.
57366         * tests/test-fpurge.c: New file.
57367
57368         * modules/fpurge: New file.
57369         * lib/fpurge.h: New file.
57370         * lib/fpurge.c: New file.
57371         * m4/fpurge.m4: New file.
57372
57373 2007-04-13  Bruno Haible  <bruno@clisp.org>
57374
57375         * modules/fbufmode-tests: New file.
57376         * tests/test-fbufmode.c: New file.
57377
57378         * modules/fbufmode: New file.
57379         * lib/fbufmode.h: New file.
57380         * lib/fbufmode.c: New file.
57381         * m4/fbufmode.m4: New file.
57382
57383 2007-04-13  Bruno Haible  <bruno@clisp.org>
57384
57385         * modules/fwritable-tests: New file.
57386         * tests/test-fwritable.c: New file.
57387
57388         * modules/fwritable: New file.
57389         * lib/fwritable.h: New file.
57390         * lib/fwritable.c: New file.
57391         * m4/fwritable.m4: New file.
57392
57393 2007-04-13  Bruno Haible  <bruno@clisp.org>
57394
57395         * modules/freadable-tests: New file.
57396         * tests/test-freadable.c: New file.
57397
57398         * modules/freadable: New file.
57399         * lib/freadable.h: New file.
57400         * lib/freadable.c: New file.
57401         * m4/freadable.m4: New file.
57402
57403 2007-04-13  Bruno Haible  <bruno@clisp.org>
57404
57405         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
57406         MOSTLYCLEANFILES.
57407
57408 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
57409
57410         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
57411         gzip bootstrap.conf to avoid dragging in i18n machinery.
57412         (gnulib_tool_option): Use it.
57413
57414 2007-04-13  Bruno Haible  <bruno@clisp.org>
57415
57416         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
57417         %F directives.
57418         * tests/test-vasprintf-posix.c (test_function): Likewise.
57419         * tests/test-snprintf-posix.h (test_function): Likewise.
57420         * tests/test-sprintf-posix.h (test_function): Likewise.
57421         * tests/test-fprintf-posix.h (test_function): Likewise.
57422         * tests/test-printf-posix.h (test_function): Likewise.
57423         * tests/test-fprintf-posix.out: Likewise.
57424
57425 2007-04-13  Bruno Haible  <bruno@clisp.org>
57426
57427         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
57428         * modules/tls-tests (configure.ac): Likewise.
57429         Reported by Arto C. Nirkko <anirkko@insel.ch>.
57430
57431 2007-04-13  Bruno Haible  <bruno@clisp.org>
57432
57433         * lib/tls.c (glthread_tls_get): Fix return type.
57434         Patch by Arto C. Nirkko <anirkko@insel.ch>.
57435
57436 2007-04-12  Eric Blake  <ebb9@byu.net>
57437
57438         * modules/gettime (Depends-on): Remove gettime.
57439         Reported by Dmitry V. Levin.
57440
57441 2007-04-12  Bruno Haible  <bruno@clisp.org>
57442
57443         * modules/fflush (Include): Mention <stdio.h>.
57444         * modules/strtoimax (Include): Mention <inttypes.h>.
57445         * modules/strtoumax (Include): Likewise.
57446
57447 2007-04-12  Eric Blake  <ebb9@byu.net>
57448
57449         * .cvsignore: New file.
57450         * .gitignore: Likewise.
57451
57452 2007-04-12  Bruno Haible  <bruno@clisp.org>
57453
57454         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
57455         not before, since $(LDADD) often contains libgnu.a.
57456         * modules/striconv-tests (test_striconv_LDADD): Likewise.
57457         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
57458         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
57459         Needed on Cygwin.
57460
57461 2007-04-12  Eric Blake  <ebb9@byu.net>
57462
57463         Work around glibc's failure to flush stdin on fclose.
57464         * lib/closein.c (close_stdin): Flush stdin before closing.
57465
57466         Work around glibc's failure to reset seekable stdin on exit.
57467         * modules/closein: New module.
57468         * lib/closein.c: New file.
57469         * lib/closein.h: Likewise.
57470         * m4/closein.m4: Likewise.
57471         * MODULES.html.sh (File stream based Input/Output): Document it.
57472
57473 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57474
57475         * gnulib-tool: Rename generated 'autobuild' script to
57476         'do-autobuild' in --create-megatestdir output.
57477
57478         * doc/gnulib.texi (Build robot for gnulib): Fix.
57479
57480 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57481
57482         * modules/sysexits (Depends-on): Add absolute-header.
57483
57484 2007-04-12  Eric Blake  <ebb9@byu.net>
57485
57486         No need to preserve errno on success.
57487         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
57488         Reported by Bruno Haible.
57489
57490 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57491
57492         * MODULES.html.sh (Support for maintaining and releasing
57493         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
57494
57495 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57496
57497         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
57498
57499 2007-04-12  Simon Josefsson  <simon@josefsson.org>
57500
57501         * modules/autobuild: New module.
57502
57503         * m4/autobuild.m4: New file.
57504
57505 2007-04-11  Bruno Haible  <bruno@clisp.org>
57506
57507         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
57508         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
57509         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
57510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
57511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57512         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57513         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57514         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57515         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57516         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57517         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
57518         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57519         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
57521         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57522         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
57524         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57525         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57526         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
57527         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57528         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57529         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
57530         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57531         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
57533         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
57534         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
57535         Reported by Eric Blake.
57536
57537 2007-04-11  Bruno Haible  <bruno@clisp.org>
57538
57539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
57540
57541 2007-04-10  Bruno Haible  <bruno@clisp.org>
57542
57543         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
57544         for NaN and Infinity. Needed on FreeBSD 6.1.
57545         * tests/test-vasnprintf-posix.c (test_function): Undo last change
57546         regarding results for "%010a" of Infinity and NaN.
57547         * tests/test-vasprintf-posix.c (test_function): Likewise.
57548         * tests/test-snprintf-posix.h (test_function): Likewise.
57549         * tests/test-sprintf-posix.h (test_function): Likewise.
57550         * tests/test-fprintf-posix.h (test_function): Likewise.
57551         * tests/test-printf-posix.h (test_function): Likewise.
57552         * tests/test-fprintf-posix.out: Likewise.
57553
57554 2007-04-10  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/locale-tests: New file.
57557         * tests/test-locale.c: New file.
57558
57559         * modules/locale: New file.
57560         * lib/locale_.h: New file.
57561         * m4/locale_h.m4: New file.
57562
57563 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57564             Bruno Haible  <bruno@clisp.org>
57565
57566         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57567         be determined, test for availability of the copysignf, copysign,
57568         copysignl functions.
57569         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57570         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57571         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57572
57573 2007-04-09  Eric Blake  <ebb9@byu.net>
57574
57575         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57576         * modules/stdio (Makefile.am): Support fflush.
57577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57578         * modules/fflush: New file.
57579         * lib/fflush.c: Likewise.
57580         * m4/fflush.m4: Likewise.
57581         * modules/fflush-tests: New test.
57582         * tests/test-fflush.c: Likewise.
57583         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57584
57585 2007-04-06  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57588         (VASNPRINTF): Use signbit for faster determination whether to print a
57589         minus sign.
57590         * modules/vasnprintf (Files): Remove lib/float+.h.
57591         * modules/fprintf-posix (Depends-on): Add signbit.
57592         * modules/snprintf-posix (Depends-on): Likewise.
57593         * modules/sprintf-posix (Depends-on): Likewise.
57594         * modules/vasnprintf-posix (Depends-on): Likewise.
57595         * modules/vasprintf-posix (Depends-on): Likewise.
57596         * modules/vfprintf-posix (Depends-on): Likewise.
57597         * modules/vsnprintf-posix (Depends-on): Likewise.
57598         * modules/vsprintf-posix (Depends-on): Likewise.
57599
57600 2007-04-06  Bruno Haible  <bruno@clisp.org>
57601
57602         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57603         * tests/test-frexpl.c (main): Likewise.
57604         * tests/test-ldexpl.c (main): Likewise.
57605         * modules/frexp-tests (Depends-on): Add signbit.
57606         * modules/frexpl-tests (Depdends-on): Likewise.
57607         * modules/ldexpl-tests (Depdends-on): Likewise.
57608
57609 2007-04-06  Bruno Haible  <bruno@clisp.org>
57610
57611         * modules/signbit-tests: New file.
57612         * tests/test-signbit.c: New file.
57613
57614         * modules/signbit: New file.
57615         * lib/signbitf.c: New file.
57616         * lib/signbitd.c: New file.
57617         * lib/signbitl.c: New file.
57618         * m4/signbit.m4: New file.
57619         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57620         (signbit): New macro.
57621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57622         REPLACE_SIGNBIT.
57623         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57624         REPLACE_FREXPL into math.h.
57625
57626 2007-04-06  Bruno Haible  <bruno@clisp.org>
57627
57628         * modules/isnanf-nolibm-tests: New file.
57629         * tests/test-isnanf.c: New file.
57630
57631         * modules/isnanf-nolibm: New file.
57632         * lib/isnanf.h: New file.
57633         * lib/isnanf.c: New file.
57634         * lib/isnan.c: Consider the USE_FLOAT macro.
57635         * m4/isnanf.m4: New file.
57636
57637 2007-04-06  Bruno Haible  <bruno@clisp.org>
57638
57639         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57640         (Link): New section.
57641
57642         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57643
57644 2007-04-06  Bruno Haible  <bruno@clisp.org>
57645
57646         Assume the 'long double' type.
57647         * m4/longdouble.m4: Remove file.
57648         * config/srclist.txt: Don't mention longdouble.m4.
57649         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57650         * lib/float+.h: Likewise.
57651         * lib/frexp.c: Likewise.
57652         * lib/printf-args.h: Likewise.
57653         * lib/printf-args.c: Likewise.
57654         * lib/printf-frexp.c: Likewise.
57655         * lib/printf-parse.c: Likewise.
57656         * lib/vasnprintf.c: Likewise.
57657         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57658         * m4/intl.m4: Likewise.
57659         * m4/isnanl.m4: Likewise.
57660         * m4/printf.m4: Likewise.
57661         * m4/printf-frexpl.m4: Likewise.
57662         * m4/vasnprintf.m4: Likewise.
57663         * modules/allocsa (Files): Remove m4/longdouble.m4.
57664         * modules/gettext (Files): Likewise.
57665         * modules/relocatable-prog-wrapper (Files): Likewise.
57666         * modules/vasnprintf (Files): Likewise.
57667         * modules/isnanl (Files): Likewise.
57668         (Include): Simplify.
57669         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57670         (Include): Simplify.
57671         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57672         (Include): Simplify.
57673         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57674         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57675         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57676         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57677         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57678         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57679         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57680         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57681         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57682         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57683         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57684         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57685         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57686         * tests/test-isnanl.c: Likewise.
57687         * tests/test-snprintf-posix.h: Likewise.
57688         * tests/test-sprintf-posix.h: Likewise.
57689         * tests/test-vasnprintf-posix.c: Likewise.
57690         * tests/test-vasnprintf-posix2.c: Likewise.
57691         * tests/test-vasprintf-posix.c: Likewise.
57692
57693 2007-04-06  Bruno Haible  <bruno@clisp.org>
57694
57695         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57696         * lib/math_.h [__DECC]: Include the overridden include file through
57697         #include_next, outside the double-inclusion guard.
57698         * lib/stdio_.h [__DECC]: Likewise.
57699         * lib/stdlib_.h [__DECC]: Likewise.
57700         * lib/string_.h [__DECC]: Likewise.
57701         * lib/time_.h [__DECC]: Likewise.
57702         * lib/wchar_.h [__DECC]: Likewise.
57703         * lib/wctype_.h [__DECC]: Likewise.
57704         * lib/inttypes_.h [__DECC]: Likewise.
57705         Reported by Albert Chin <china@thewrittenword.com> in
57706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57707
57708 2007-04-04  Eric Blake  <ebb9@byu.net>
57709
57710         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57711         1.5.x.
57712
57713 2007-04-04  Bruno Haible  <bruno@clisp.org>
57714
57715         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57716         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57717
57718 2007-04-04  Bruno Haible  <bruno@clisp.org>
57719
57720         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57721         results for "%010a" of Infinity and NaN.
57722         * tests/test-vasprintf-posix.c (test_function): Likewise.
57723         * tests/test-snprintf-posix.h (test_function): Likewise.
57724         * tests/test-sprintf-posix.h (test_function): Likewise.
57725         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57726         * tests/test-printf-posix.h (test_function): Likewise.
57727         * tests/test-fprintf-posix.out: Update.
57728         Needed for FreeBSD 6.1.
57729
57730 2007-04-04  Bruno Haible  <bruno@clisp.org>
57731
57732         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57733         directly used by the gnulib modules nor by gnulib-tool.
57734
57735 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         * DEPENDENCIES: Give overall description of version dependency
57738         desirability.  Use more-typical names for apps.
57739         Add shell, coreutils, diffutils, grep, tar, gzip.
57740
57741 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57742
57743         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57744
57745 2007-04-04  Karl Berry  <karl@gnu.org>
57746
57747         * MODULES.html.sh (func_module): missing '.
57748
57749 2007-04-03  Bruno Haible  <bruno@clisp.org>
57750
57751         * modules/argmatch-tests (Makefile.am): New variable
57752         test_argmatch_LDADD.
57753         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57754         * modules/array-list-tests (Makefile.am): New variable
57755         test_array_list_LDADD.
57756         * modules/array-oset-tests (Makefile.am): New variable
57757         test_array_oset_LDADD.
57758         * modules/avltree-list-tests (Makefile.am): New variable
57759         test_avltree_list_LDADD.
57760         * modules/avltree-oset-tests (Makefile.am): New variable
57761         test_avltree_oset_LDADD.
57762         * modules/avltreehash-list-tests (Makefile.am): New variable
57763         test_avltreehash_list_LDADD.
57764         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57765         test_canonicalize_lgpl_LDADD.
57766         * modules/carray-list-tests (Makefile.am): New variable
57767         test_carray_list_LDADD.
57768         * modules/dirname-tests (Makefile.am): New variable
57769         test_dirname_LDADD.
57770         * modules/linked-list-tests (Makefile.am): New variable
57771         test_linked_list_LDADD.
57772         * modules/linkedhash-list-tests (Makefile.am): New variable
57773         test_linkedhash_list_LDADD.
57774         * modules/rbtree-list-tests (Makefile.am): New variable
57775         test_rbtree_list_LDADD.
57776         * modules/rbtree-oset-tests (Makefile.am): New variable
57777         test_rbtree_oset_LDADD.
57778         * modules/rbtreehash-list-tests (Makefile.am): New variable
57779         test_rbtreehash_list_LDADD.
57780         * modules/xvasprintf-tests (Makefile.am): New variable
57781         test_xvasprintf_LDADD.
57782         Reported by Eric Blake.
57783
57784 2007-04-03  Eric Blake  <ebb9@byu.net>
57785
57786         * DEPENDENCIES: Weaken m4 requirements.
57787
57788 2007-04-03  Bruno Haible  <bruno@clisp.org>
57789
57790         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57791         * modules/isnanl-tests (configure.ac): Likewise.
57792
57793 2007-04-03  Ben Pfaff  <blp@gnu.org>
57794
57795         * modules/iconv_open: Add $(srcdir)/ to source directory
57796         references in Makefile fragments that call gperf, to fix VPATH
57797         builds.
57798
57799 2007-04-03  Bruno Haible  <bruno@clisp.org>
57800
57801         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57802         * lib/ldexpl.c: Undo last change.
57803
57804 2007-04-03  Bruno Haible  <bruno@clisp.org>
57805
57806         * modules/printf-frexpl (Depends-on): Undo last change.
57807         (Files): Add m4/ldexpl.m4.
57808
57809 2007-04-03  Bruno Haible  <bruno@clisp.org>
57810
57811         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57812         * modules/isnanl (Link): New section.
57813
57814         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57815         * modules/frexp (Link): New section.
57816
57817         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57818         * modules/frexpl (Link): New section.
57819
57820         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57821         * modules/ldexpl (Link): New section.
57822
57823 2007-04-03  Bruno Haible  <bruno@clisp.org>
57824
57825         * modules/TEMPLATE-EXTENDED: New file.
57826         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57827
57828 2007-04-03  Bruno Haible  <bruno@clisp.org>
57829
57830         * DEPENDENCIES: New file.
57831         Suggested by Simon Josefsson.
57832
57833 2007-04-03  Bruno Haible  <bruno@clisp.org>
57834
57835         * doc/gnulib.texi: Escape @.
57836
57837 2007-04-03  James Youngman  <jay@gnu.org>
57838         and Paul Eggert  <eggert@cs.ucla.edu>
57839
57840         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57841         birthtime on all systems that have birthtime, not just those which
57842         use st_birthtimensec rather than st_birthtim.  Putting zero in
57843         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57844         that the birth time is not available for files on an NFS mount.
57845
57846 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57847
57848         * modules/memxor: Move back from crypto/, suggested by Bruno.
57849         * modules/crypto/hmac-sha1: Fix memxor dependency.
57850
57851         * modules/crypto/gc: Moved from ../.
57852
57853 2007-04-02  Eric Blake  <ebb9@byu.net>
57854
57855         * lib/ldexpl.c (includes): Avoid libm.
57856
57857         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57858
57859 2007-04-02  Bruno Haible  <bruno@clisp.org>
57860
57861         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57862         on IRIX.
57863
57864 2007-04-02  Bruno Haible  <bruno@clisp.org>
57865
57866         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57867         x86 or x86_64 platforms running MacOS X.
57868         Reported by Ryan Schmidt <@ryandesign.com>.
57869
57870 2007-04-02  Bruno Haible  <bruno@clisp.org>
57871
57872         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57873         i386.
57874
57875 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57876
57877         * modules/crypto/arcfour: Moved from ../.
57878         * modules/crypto/arcfour-tests: Moved from ../.
57879         * modules/crypto/arctwo: Moved from ../.
57880         * modules/crypto/arctwo-tests: Moved from ../.
57881         * modules/crypto/des: Moved from ../.
57882         * modules/crypto/des-tests: Moved from ../.
57883         * modules/crypto/gc-arcfour: Moved from ../.
57884         * modules/crypto/gc-arcfour-tests: Moved from ../.
57885         * modules/crypto/gc-arctwo: Moved from ../.
57886         * modules/crypto/gc-arctwo-tests: Moved from ../.
57887         * modules/crypto/gc-des: Moved from ../.
57888         * modules/crypto/gc-des-tests: Moved from ../.
57889         * modules/crypto/gc-hmac-md5: Moved from ../.
57890         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57891         * modules/crypto/gc-hmac-sha1: Moved from ../.
57892         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57893         * modules/crypto/gc-md2: Moved from ../.
57894         * modules/crypto/gc-md2-tests: Moved from ../.
57895         * modules/crypto/gc-md4: Moved from ../.
57896         * modules/crypto/gc-md4-tests: Moved from ../.
57897         * modules/crypto/gc-md5: Moved from ../.
57898         * modules/crypto/gc-md5-tests: Moved from ../.
57899         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57900         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57901         * modules/crypto/gc-random: Moved from ../.
57902         * modules/crypto/gc-rijndael: Moved from ../.
57903         * modules/crypto/gc-rijndael-tests: Moved from ../.
57904         * modules/crypto/gc-sha1: Moved from ../.
57905         * modules/crypto/gc-sha1-tests: Moved from ../.
57906         * modules/crypto/gc-tests: Moved from ../.
57907         * modules/crypto/hmac-md5: Moved from ../.
57908         * modules/crypto/hmac-md5-tests: Moved from ../.
57909         * modules/crypto/hmac-sha1: Moved from ../.
57910         * modules/crypto/hmac-sha1-tests: Moved from ../.
57911         * modules/crypto/md2: Moved from ../.
57912         * modules/crypto/md2-tests: Moved from ../.
57913         * modules/crypto/md4: Moved from ../.
57914         * modules/crypto/md4-tests: Moved from ../.
57915         * modules/crypto/md5: Moved from ../.
57916         * modules/crypto/md5-tests: Moved from ../.
57917         * modules/crypto/memxor: Moved from ../.
57918         * modules/crypto/rijndael: Moved from ../.
57919         * modules/crypto/rijndael-tests: Moved from ../.
57920         * modules/crypto/sha1: Moved from ../.
57921
57922 2007-03-30  James Youngman  <jay@gnu.org>
57923
57924         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57925         rename() to change the ctime of a file (because ctime is unaffected
57926         by rename on jfs2 on AIX 5.1).
57927         (main): Start by doing cleanup, in case a previous run failed leaving
57928         test files behind.
57929
57930 2007-03-31  Bruno Haible  <bruno@clisp.org>
57931
57932         Support old proprietary implementations of iconv.
57933         * modules/iconv_open: New file.
57934         * lib/iconv_.h: New file.
57935         * m4/iconv_h.m4: New file.
57936         * lib/iconv_open.c: New file.
57937         * lib/iconv_open-aix.gperf: New file.
57938         * lib/iconv_open-hpux.gperf: New file.
57939         * lib/iconv_open-irix.gperf: New file.
57940         * lib/iconv_open-osf.gperf: New file.
57941         * m4/iconv_open.m4: New file.
57942         * modules/linebreak (Depends-on): Add iconv_open.
57943         * modules/striconv (Depends-on): Likewise.
57944         * modules/striconveh (Depends-on): Likewise.
57945         * modules/unicodeio (Depends-on): Likewise.
57946         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57947         (iconv_t)(-1).
57948         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57949         conversion if cd is (iconv_t)(-1).
57950         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57951         is not possible.
57952
57953 2007-03-31  Bruno Haible  <bruno@clisp.org>
57954
57955         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57956         work on Solaris either. Protect also second use of "autodetect_jp".
57957
57958 2007-03-31  Bruno Haible  <bruno@clisp.org>
57959
57960         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57961         the function is not present.
57962
57963 2007-03-31  Bruno Haible  <bruno@clisp.org>
57964
57965         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57966         the function is not present.
57967
57968 2007-03-31  Bruno Haible  <bruno@clisp.org>
57969
57970         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57971         a bug in HP-UX iconv_open().
57972
57973 2007-03-31  Bruno Haible  <bruno@clisp.org>
57974
57975         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57976         (Mathematics <math.h>): New section, add fpieee.
57977         (Input/output <stdio.h>): Add fseterr.
57978         (Mathematics <math.h>): New section, add printf-frexp.
57979         (Container data structures): Add sublist.
57980         (Core language properties): Add fpucw, inline.
57981         (Functions for greatest-width integer types <inttypes.h>): Add
57982         imaxabs, imaxdiv, inttypes.
57983         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57984         isnanl-nolibm, ldexp.
57985         (Mathematics <math.h>): New section, add printf-frexpl.
57986         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57987         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57988         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57989         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57990         (Unicode string functions): Add unistr/u*-mbtoucr.
57991         (Java): Add javacomp-script, javaexec-script.
57992         (C#): Add csharpcomp-script, csharpexec-script.
57993         (Support for building libraries and executables): Add havelib,
57994         relocatable-*.
57995         (Support for maintaining and releasing projects): Renamed from
57996         'Support for maintaining and release projects'. Add announce-gen.
57997
57998 2007-03-31  Bruno Haible  <bruno@clisp.org>
57999
58000         * README: Talk primarily about git.
58001         (git and CVS): Renamed from CVS.
58002         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58003         gnulib is available through git.
58004         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58005
58006 2007-03-30  Bruno Haible  <bruno@clisp.org>
58007
58008         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58009         * lib/poll_.h: Likewise.
58010         * lib/stat_.h: Likewise.
58011         * lib/sys_time_.h: Likewise.
58012         * lib/sysexit_.h: Likewise.
58013         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58014         * lib/stdbool_.h: Likewise.
58015         * lib/byteswap_.h: Add double-inclusion guard.
58016
58017 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58018
58019         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58020
58021 2007-03-30  Karl Berry  <karl@gnu.org>
58022
58023         * config/srclist-update: double space after USA in the license
58024         substitution, since that's how it's usually (?) written.
58025
58026 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58027
58028         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
58029         reported by Bruno Haible.
58030
58031 2007-03-29  Bruno Haible  <bruno@clisp.org>
58032
58033         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
58034         a bug in AIX iconv().
58035
58036 2007-03-29  Bruno Haible  <bruno@clisp.org>
58037
58038         * modules/ldexpl-tests: New file.
58039         * tests/test-ldexpl.c: New file.
58040
58041 2007-03-29  Bruno Haible  <bruno@clisp.org>
58042
58043         * lib/ldexpl.c: Include fpucw.h.
58044         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
58045         multiplication.
58046         * modules/ldexpl (Depends-on): Add fpucw.
58047
58048 2007-03-29  Bruno Haible  <bruno@clisp.org>
58049
58050         * modules/ldexpl: New file.
58051         * m4/ldexpl.m4: New file.
58052         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58053         set.
58054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58055         REPLACE_LDEXPL.
58056         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58057         REPLACE_LDEXPL.
58058         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58059         gl_FUNC_LDEXPL_WORKS.
58060         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58061         * modules/mathl (Files): Remove lib/ldexpl.c.
58062         (Depends-on): Add ldexpl.
58063
58064 2007-03-29  Bruno Haible  <bruno@clisp.org>
58065
58066         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58067
58068 2007-03-29  Bruno Haible  <bruno@clisp.org>
58069
58070         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58071         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58072         and possibly also HP-UX.
58073         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58074         work on AIX, IRIX, HP-UX, OSF/1.
58075         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58076         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58077         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58078         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58079         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58080         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58081
58082 2007-03-29  Bruno Haible  <bruno@clisp.org>
58083
58084         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58085
58086 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58089         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58090
58091 2007-03-29  Eric Blake  <ebb9@byu.net>
58092
58093         * lib/acl-internal.h: Remove redundant include.
58094         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58095         Cygwin when a file is locked.
58096
58097 2007-03-29  Bruno Haible  <bruno@clisp.org>
58098
58099         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58100         file.
58101         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58102
58103 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58104
58105         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58106         try to remove a parent directory if the child couldn't be removed
58107         (except for the first rmdir, which could fail because the child
58108         doesn't exist).  Problem reported by Jeff Blaine in
58109         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58110
58111 2007-03-28  Bruno Haible  <bruno@clisp.org>
58112
58113         * lib/striconveh.c (utf8conv_carefully): New function.
58114         (mem_cd_iconveh_internal): Invoke it.
58115
58116 2007-03-28  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58119         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58120         input.
58121         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58122         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
58123         unistr/u8-uctomb.
58124
58125 2007-03-28  Bruno Haible  <bruno@clisp.org>
58126
58127         * modules/unistr/u8-mbtoucr: New file.
58128         * lib/unistr/u8-mbtoucr.c: New file.
58129         * modules/unistr/u16-mbtoucr: New file.
58130         * lib/unistr/u16-mbtoucr.c: New file.
58131         * modules/unistr/u16-mbtoucr: New file.
58132         * lib/unistr/u16-mbtoucr.c: New file.
58133         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
58134
58135 2007-03-27  Simon Josefsson  <simon@josefsson.org>
58136             Bruno Haible  <bruno@clisp.org>
58137
58138         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
58139         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
58140         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
58141
58142         * m4/stdio_h.m4: Add stubs for vasprintf too.
58143
58144         * modules/stdio: Support vasprintf in sed command.
58145
58146         * modules/vasprintf: Depend on stdio for prototypes.  Remove
58147         vasprintf.h.  Add stdio module indicator.
58148
58149         * lib/stdio_.h: Declare asprintf and vasprintf, based on
58150         vasprintf.h.
58151
58152         * lib/vasprintf.h: File removed.
58153
58154         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
58155         * lib/vasprintf.c: Ditto.
58156         * lib/xvasprintf.c: Ditto.
58157         * tests/test-vasprintf-posix.c: Ditto.
58158         * tests/test-vasprintf.c: Ditto.
58159
58160 2007-03-27  Bruno Haible  <bruno@clisp.org>
58161
58162         Make vasnprintf multithread-safe.
58163         * lib/vasnprintf.c (decimal_point_char): New function.
58164         (VASNPRINTF): Use it.
58165         Suggested by Simon Josefsson.
58166
58167 2007-03-27  Eric Blake  <ebb9@byu.net>
58168
58169         Support sub-second birthtime on cygwin.
58170         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
58171         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
58172         (get_stat_birthtime): Also work with st_birthtim.
58173
58174 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
58175
58176         * lib/stat-time.h (USE_BIRTHTIME): Remove.
58177         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
58178         (get_stat_birthtime_ns): Do not try to use "spare" fields.
58179         (get_stat_birthtime_ns): Simplify compile-time tests.
58180         (get_stat_birthtime): Change the API to look like
58181         get_stat_mtime etc., except return a negative tv_nsec on error.
58182         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
58183         Don't check for "spare" fields.
58184         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
58185         or for struct stat.st_birthtime, as these tests aren't used.
58186         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
58187
58188 2007-03-27  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/stat-time.h: Include <sys/stat.h>.
58191
58192 2007-03-27  James Youngman  <jay@gnu.org>
58193
58194         * lib/stat-time.h (get_stat_birthtime): New function for
58195           retrieving st_birthtime as provided by UFS2 (hence *BSD).
58196         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
58197           and its variants.
58198         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
58199         * modules/stat-time-test: New file.
58200         * tests/test-stat-time.c: New test, devised by Bruno Haible.
58201
58202 2007-03-26  Bruno Haible  <bruno@clisp.org>
58203
58204         Better support of signalling NaNs.
58205         * lib/atanl.c: Include isnanl.h.
58206         (atanl): Perform test for NaN at the beginning of the function and
58207         through a call to isnanl.
58208         * lib/cosl.c: Include isnanl.h.
58209         (cosl): Perform test for NaN at the beginning of the function and
58210         through a call to isnanl.
58211         * lib/ldexpl.c: Include isnanl.h.
58212         (ldexpl): Perform test for NaN through a call to isnanl.
58213         * lib/logl.c: Include isnanl.h.
58214         (logl): Perform test for NaN at the beginning of the function and
58215         through a call to isnanl.
58216         * lib/sinl.c: Include isnanl.h.
58217         (sinl): Perform test for NaN at the beginning of the function and
58218         through a call to isnanl.
58219         * lib/sqrtl.c: Include isnanl.h.
58220         (sqrtl): Perform test for NaN at the beginning of the function and
58221         through a call to isnanl.
58222         * lib/tanl.c: Include isnanl.h.
58223         (tanl): Perform test for NaN at the beginning of the function and
58224         through a call to isnanl.
58225         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
58226         * modules/mathl (Depends-on): Add isnanl.
58227
58228 2007-03-26  Eric Blake  <ebb9@byu.net>
58229
58230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
58231         regression in logic sense of previous patch.
58232
58233 2007-03-26  Bruno Haible  <bruno@clisp.org>
58234
58235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
58236         unportable shell command "if ! ...".
58237         Reported by Ralf Wildenhues.
58238
58239 2007-03-25  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
58242         <sysexits.h> file, and only add EX_CONFIG.
58243         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
58244         absolute file name and whether it is sufficient. Substitute also
58245         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
58246         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
58247         ABSOLUTE_SYSEXITS_H into sysexits.h.
58248
58249 2007-03-25  Bruno Haible  <bruno@clisp.org>
58250
58251         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
58252         hints is NULL.
58253
58254 2007-03-25  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
58257         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
58258
58259 2007-03-25  Bruno Haible  <bruno@clisp.org>
58260
58261         * lib/vasnprintf.c: Include langinfo.h.
58262         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
58263         multithread-safe.
58264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
58265         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
58266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58270         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
58272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58273         Reported by Simon Josefsson.
58274
58275 2007-03-25  Bruno Haible  <bruno@clisp.org>
58276
58277         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
58278         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
58279         * modules/vasnprintf (Depends-on): Add stdint.
58280
58281 2007-03-25  Bruno Haible  <bruno@clisp.org>
58282
58283         * modules/fpieee: New file.
58284         * m4/fpieee.m4: New file.
58285         * modules/isnan-nolibm (Depends-on): Add fpieee.
58286         * modules/isnanl-nolibm (Depends-on): Add fpieee.
58287         * modules/isnanl (Depends-on): Add fpieee.
58288
58289 2007-03-25  Bruno Haible  <bruno@clisp.org>
58290
58291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
58292
58293 2007-03-25  Bruno Haible  <bruno@clisp.org>
58294
58295         Avoid test failures on IRIX 6.5.
58296         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
58297         (main): Use it.
58298         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
58299         macros.
58300         (main): Use them.
58301
58302 2007-03-25  Bruno Haible  <bruno@clisp.org>
58303
58304         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
58305         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
58306         exists but doesn't work.
58307         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
58308         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
58309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
58310         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
58311         math.h.
58312
58313 2007-03-25  Bruno Haible  <bruno@clisp.org>
58314
58315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
58316         returns inf. Needed on IRIX 6.5.
58317
58318 2007-03-25  Bruno Haible  <bruno@clisp.org>
58319
58320         * tests/test-frexpl.c: Include isnanl-nolibm.h.
58321         (main): Use isnanl instead of x != x idiom.
58322         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
58323
58324         * tests/test-frexp.c: Include isnan.h.
58325         (main): Use isnan instead of x != x idiom.
58326         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
58327
58328 2007-03-25  Bruno Haible  <bruno@clisp.org>
58329
58330         * tests/test-frexp.c (NaN): New function/macro.
58331         (main): Use it instead of 0.0 / 0.0.
58332         * tests/test-isnan.c (NaN): New function/macro.
58333         (main): Use it instead of 0.0 / 0.0.
58334         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
58335         (test_function): Use it instead of 0.0 / 0.0.
58336         * tests/test-vasprintf-posix.c (NaN): New function/macro.
58337         (test_function): Use it instead of 0.0 / 0.0.
58338         * tests/test-snprintf-posix.h (NaN): New function/macro.
58339         (test_function): Use it instead of 0.0 / 0.0.
58340         * tests/test-sprintf-posix.h (NaN): New function/macro.
58341         (test_function): Use it instead of 0.0 / 0.0.
58342         * tests/test-fprintf-posix.h (NaN): New function/macro.
58343         (test_function): Use it instead of 0.0 / 0.0.
58344         * tests/test-printf-posix.h (NaN): New function/macro.
58345         (test_function): Use it instead of 0.0 / 0.0.
58346
58347         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
58348
58349 2007-03-25  Bruno Haible  <bruno@clisp.org>
58350
58351         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
58352
58353 2007-03-25  Bruno Haible  <bruno@clisp.org>
58354
58355         * lib/regexec.c (merge_state_with_log): Make static.
58356
58357 2007-03-25  Bruno Haible  <bruno@clisp.org>
58358
58359         * lib/trigl.c (kernel_rem_pio2): Make static.
58360
58361 2007-03-25  Bruno Haible  <bruno@clisp.org>
58362
58363         * lib/sincosl.c (sincosl_table): Make static.
58364
58365 2007-03-25  Bruno Haible  <bruno@clisp.org>
58366
58367         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
58368         if the compiler does not support C99.
58369
58370 2007-03-25  Bruno Haible  <bruno@clisp.org>
58371
58372         * modules/time (Makefile.am): Ensure all rule action lines start with a
58373         tab.
58374
58375 2007-03-24  Bruno Haible  <bruno@clisp.org>
58376
58377         * modules/tsearch-tests: New file.
58378         * tests/test-tsearch.sh: New file.
58379         * tests/test-tsearch.c: New file, mostly copied from glibc.
58380
58381         * modules/search-tests: New file.
58382         * tests/test-search.c: New file.
58383
58384         * modules/search: New file.
58385         * lib/search_.h: New file, incorporating lib/tsearch.h.
58386         * m4/search_h.m4: New file.
58387         * lib/tsearch.h: Remove file.
58388         * lib/tsearch.c: Include search.h instead of tsearch.h.
58389         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
58390         HAVE_TSEARCH.
58391         * modules/tsearch (Files): Remove lib/tsearch.h.
58392         (Depends-on): Add search.
58393         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
58394         (Include): Change tsearch.h into search.h.
58395
58396 2007-03-24  Bruno Haible  <bruno@clisp.org>
58397
58398         * modules/fpucw: New file.
58399         * lib/fpucw.h: New file.
58400         * lib/frexp.c: Include fpucw.h.
58401         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58402         (FUNC): Use them.
58403         * lib/printf-frexp.c: Include fpucw.h.
58404         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
58405         (FUNC): Use them.
58406         * lib/vasnprintf.c: Include fpucw.h.
58407         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
58408         'long double' calculations.
58409         * tests/test-frexpl.c: Include fpucw.h.
58410         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58411         * tests/test-printf-frexpl.c: Include fpucw.h.
58412         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
58413         * modules/frexpl (Depends-on): Add fpucw.
58414         * modules/printf-frexpl (Depends-on): Likewise.
58415         * modules/fprintf-posix (Depends-on): Likewise.
58416         * modules/snprintf-posix (Depends-on): Likewise.
58417         * modules/sprintf-posix (Depends-on): Likewise.
58418         * modules/vasnprintf-posix (Depends-on): Likewise.
58419         * modules/vasprintf-posix (Depends-on): Likewise.
58420         * modules/vfprintf-posix (Depends-on): Likewise.
58421         * modules/vsnprintf-posix (Depends-on): Likewise.
58422         * modules/vsprintf-posix (Depends-on): Likewise.
58423         * modules/frexpl-tests (Depends-on): Likewise.
58424         * modules/printf-frexpl-tests (Depends-on): Likewise.
58425
58426 2007-03-24  Bruno Haible  <bruno@clisp.org>
58427
58428         * lib/float+.h: New file.
58429         * lib/isnan.c: Include float+.h.
58430         (SIZE): New macro.
58431         (FUNC): Compare only SIZE bytes of the value.
58432         * lib/vasnprintf.c: Include float+.h.
58433         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
58434         SIZEOF_LDBL or SIZEOF_DBL bytes.
58435         * modules/isnan-nolibm (Files): Add lib/float+.h.
58436         * modules/isnanl-nolibm (Files): Add lib/float+.h.
58437         * modules/isnanl (Files): Add lib/float+.h.
58438         * modules/vasnprintf (Files): Add lib/float+.h.
58439
58440 2007-03-24  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
58443         include isnanl-nolibm.h.
58444
58445 2007-03-24  Bruno Haible  <bruno@clisp.org>
58446
58447         * tests/test-read-file.c (main): Don't produce spurious output for
58448         expected situations. Make the test fail if it encountered unexpected
58449         results.
58450
58451 2007-03-24  Bruno Haible  <bruno@clisp.org>
58452
58453         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
58454         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
58455
58456 2007-03-24  Bruno Haible  <bruno@clisp.org>
58457
58458         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
58459
58460 2007-03-24  Bruno Haible  <bruno@clisp.org>
58461
58462         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
58463         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
58464
58465         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
58466         * modules/utf8-ucs4: Turn into a symbolic link to module
58467         unistr/u8-mbtouc.
58468
58469         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
58470         utf8-ucs4-unsafe.
58471         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
58472         unistr/u8-mbtouc-unsafe.
58473
58474         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
58475         * modules/utf16-ucs4: Turn into a symbolic link to module
58476         unistr/u16-mbtouc.
58477
58478         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
58479         utf16-ucs4-unsafe.
58480         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
58481         unistr/u16-mbtouc-unsafe.
58482
58483         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
58484         * modules/ucs4-utf8: Turn into a symbolic link to module
58485         unistr/u8-ubtomb.
58486
58487         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
58488         * modules/ucs4-utf16: Turn into a symbolic link to module
58489         unistr/u16-ubtomb.
58490
58491 2007-03-24  Bruno Haible  <bruno@clisp.org>
58492
58493         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
58494         Enable the function only if HAVE_INLINE.
58495         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
58496         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58497         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
58498         Enable the function only if HAVE_INLINE.
58499         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
58500         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
58501         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
58502         Enable the function only if HAVE_INLINE.
58503         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
58504         Enable the function only if HAVE_INLINE.
58505         * modules/utf8-ucs4: Update.
58506         * modules/utf8-ucs4-unsafe: Update.
58507         * modules/utf16-ucs4: Update.
58508         * modules/utf16-ucs4-unsafe: Update.
58509         * modules/ucs4-utf8: Update.
58510         * modules/ucs4-utf16: Update.
58511
58512 2007-03-24  Bruno Haible  <bruno@clisp.org>
58513
58514         * lib/utf8-ucs4.h: Remove file.
58515         * lib/utf8-ucs4-unsafe.h: Remove file.
58516         * lib/utf16-ucs4.h: Remove file.
58517         * lib/utf16-ucs4-unsafe.h: Remove file.
58518         * lib/ucs4-utf8.h: Remove file.
58519         * lib/ucs4-utf16.h: Remove file.
58520         * lib/unistr.h: Include their previous contents.
58521         * m4/utf-ucs4.m4: Remove file.
58522         * m4/ucs4-utf.m4: Remove file.
58523         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
58524         (Depends-on): Add unistr/base.
58525         (configure.ac): Remove gl_UTF_UCS4.
58526         (Makefile.am): Update.
58527         (Include): Change to unistr.h.
58528         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
58529         (Depends-on): Add unistr/base.
58530         (configure.ac): Remove gl_UTF_UCS4.
58531         (Makefile.am): Update.
58532         (Include): Change to unistr.h.
58533         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
58534         (Depends-on): Add unistr/base.
58535         (configure.ac): Remove gl_UTF_UCS4.
58536         (Makefile.am): Update.
58537         (Include): Change to unistr.h.
58538         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
58539         (Depends-on): Add unistr/base.
58540         (configure.ac): Remove gl_UTF_UCS4.
58541         (Makefile.am): Update.
58542         (Include): Change to unistr.h.
58543         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
58544         (Depends-on): Add unistr/base.
58545         (configure.ac): Remove gl_UCS4_UTF.
58546         (Makefile.am): Update.
58547         (Include): Change to unistr.h.
58548         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
58549         (Depends-on): Add unistr/base.
58550         (configure.ac): Remove gl_UCS4_UTF.
58551         (Makefile.am): Update.
58552         (Include): Change to unistr.h.
58553         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
58554         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58555         utf8-ucs4-unsafe.h.
58556         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58557         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58558         utf16-ucs4-unsafe.h.
58559         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58560         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58561         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58562         * lib/unistr/u8-strchr.c: Likewise.
58563         * lib/unistr/u8-strrchr.c: Likewise.
58564         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58565         * lib/unistr/u16-strchr.c: Likewise.
58566         * lib/unistr/u16-strrchr.c: Likewise.
58567         * lib/striconveh.c: Update.
58568         * lib/linebreak.c: Update.
58569
58570 2007-03-24  Bruno Haible  <bruno@clisp.org>
58571
58572         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58573         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58574
58575 2007-03-22  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58578
58579 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58580
58581         * MODULES.html.sh (File system functions): New module write-any-file.
58582         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58583         * m4/write-any-file.m4: New files.
58584
58585 2007-03-23  Eric Blake  <ebb9@byu.net>
58586
58587         * gnulib-tool: Rearrange space-tab sequences, since some editors
58588         like to eat them.
58589
58590 2007-03-23  Eric Blake  <ebb9@byu.net>
58591
58592         * lib/version-etc.c (version_etc_va): Update license wording to
58593         be more concise.  Recommended by Richard Stallman.
58594
58595 2007-03-22  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/poll.c (MSG_PEEK): New fallback definition.
58598
58599 2007-03-22  Bruno Haible  <bruno@clisp.org>
58600
58601         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58602         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58603         (main): Update.
58604         Fixes a compilation error on BeOS.
58605
58606 2007-03-22  Bruno Haible  <bruno@clisp.org>
58607
58608         * modules/frexpl-tests: New file.
58609         * tests/test-frexpl.c: New file.
58610
58611         * modules/frexpl: New file.
58612         * m4/frexpl.m4: New file.
58613         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58614         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58616         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58617         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58618         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58619
58620 2007-03-22  Bruno Haible  <bruno@clisp.org>
58621
58622         * lib/frexpl.c: Share code with lib/frexp.c.
58623         * modules/mathl (Files): Add lib/frexp.c.
58624         (Depends-on): Add isnanl-nolibm.
58625
58626 2007-03-22  Bruno Haible  <bruno@clisp.org>
58627
58628         * modules/printf-frexp (Files): Add m4/frexp.m4.
58629         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58630         only if the found frexp function actually works.
58631
58632 2007-03-22  Bruno Haible  <bruno@clisp.org>
58633
58634         * lib/frexp.c: Remove older implementation that uses divisions.
58635
58636 2007-03-21  Bruno Haible  <bruno@clisp.org>
58637
58638         * modules/frexp-tests: New file.
58639         * tests/test-frexp.c: New file.
58640
58641         * modules/frexp: New file.
58642         * lib/frexp.c: New file.
58643         * m4/frexp.m4: New file.
58644         * lib/math_.h (frexp): New declaration.
58645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58646         REPLACE_FREXP.
58647         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58648
58649 2007-03-21  Bruno Haible  <bruno@clisp.org>
58650
58651         * modules/isnanl-tests: New file.
58652         * tests/test-isnanl.c: New file.
58653
58654         * modules/isnanl: New file.
58655         * lib/isnanl.h: New file.
58656         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58657         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58658         gl_FUNC_ISNANL_WORKS.
58659         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58660         New macros.
58661
58662 2007-03-21  Bruno Haible  <bruno@clisp.org>
58663
58664         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58665         lib/isnanl.h.
58666         (Include): Update.
58667         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58668         * lib/vasnprintf.c: Update.
58669         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58670         tests/test-isnanl.h, remove tests/test-isnanl.c.
58671         (Makefile.am): Update.
58672         * tests/test-isnanl-nolibm.c: New file.
58673         * tests/test-isnanl.h: New file.
58674         * tests/test-isnanl.c: Remove file.
58675
58676 2007-03-21  Jim Meyering  <jim@meyering.net>
58677
58678         When trying to open ".", treat ESTALE like EACCES.
58679         * lib/savewd.c (savewd_save): Resort to forking not just upon
58680         failure with EACCES, but also when errno is ESTALE.
58681
58682 2007-03-20  Bruno Haible  <bruno@clisp.org>
58683
58684         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58685         Needed on AIX 5.1. Reported by Matthew Woehlke.
58686
58687 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58688
58689         Suggestions by Bruno Haible:
58690         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58691         our own.
58692         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58693         * modules/acl (Depends-on): Add gettext.
58694
58695 2007-03-19  Bruno Haible  <bruno@clisp.org>
58696
58697         * modules/iconvme: Remove file.
58698         * lib/iconvme.h: Remove file.
58699         * lib/iconvme.c: Remove file.
58700         * m4/iconvme.m4: Remove file.
58701
58702 2007-03-19  Bruno Haible  <bruno@clisp.org>
58703
58704         * doc/relocatable-maint.texi: Break long shell script line.
58705         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58706
58707 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58708
58709         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58710         handle file_has_acl.
58711         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58712         * lib/acl.c: Move header inclusions and related macro defns into
58713         lib/acl-internal.h.
58714         (S_ISLNK): Remove defn, since that's now done for us.
58715         (file_has_acl): Move to lib/file-has-acl.c.
58716         Call acl_trivial if available.  This is the crucial part of the fix.
58717         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58718         shared within the library.  Rewrite a bit, partly to make it compatible
58719         with the GNU coding style.
58720         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58721         Remove unnecessary double-quotes.
58722         Don't test for acl_to_text; the build will catch that.
58723         Replace acl_entries if it doesn't exist and it is needed.
58724         Check for -lsec and acl_trivial (as used on Solaris 10).
58725         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58726         lib/file-has-acl.c.
58727         (Depends-on): Add sys_stat, for S_ISLNK.
58728
58729 2007-03-19  Ben Pfaff  <blp@gnu.org>
58730
58731         * doc/gnulib.texi: Fix typos.
58732         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58733
58734 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58735
58736         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58737         If size is zero here, buf must be zero.
58738
58739 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58740
58741         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58742         <bruno@clisp.org>.
58743
58744 2007-03-18  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58747         Suggested by Eric Blake.
58748
58749 2007-03-18  Ben Pfaff  <blp@gnu.org>
58750
58751         * doc/relocatable.texi: Recommend using as prefix a directory
58752         that does not exist and will never be created.  Based on
58753         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58754         and others.
58755
58756 2007-03-17  Bruno Haible  <bruno@clisp.org>
58757
58758         * lib/fchownat.c: Include lchown.h.
58759
58760 2007-03-17  Bruno Haible  <bruno@clisp.org>
58761
58762         Fix endless loop when the given allocated size was > INT_MAX.
58763         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58764         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58765         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58766         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58767         * lib/sprintf.c (sprintf): Likewise.
58768
58769 2007-03-17  Bruno Haible  <bruno@clisp.org>
58770
58771         * tests/test-argp-2.sh (func_compare): Output a context diff.
58772
58773 2007-03-17  Bruno Haible  <bruno@clisp.org>
58774
58775         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58776         locale's decimal-point character.
58777
58778 2007-03-17  Bruno Haible  <bruno@clisp.org>
58779
58780         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58781         before comparing it. Needed because on some platforms (e.g. x86) a
58782         'long double' occupies less bytes than sizeof (long double).
58783
58784 2007-03-17  Bruno Haible  <bruno@clisp.org>
58785
58786         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58787         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58788         * tests/test-getaddrinfo.c (simple): Likewise.
58789         * tests/test-read-file.c (main): Likewise.
58790
58791 2007-03-17  Bruno Haible  <bruno@clisp.org>
58792
58793         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58794
58795 2007-03-17  Bruno Haible  <bruno@clisp.org>
58796
58797         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58798         unused variable.
58799
58800 2007-03-17  Bruno Haible  <bruno@clisp.org>
58801
58802         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58803         * tests/test-c-strncasecmp.c: Likewise.
58804
58805 2007-03-17  Bruno Haible  <bruno@clisp.org>
58806
58807         * modules/stdlib (Depends-on): Add unistd.
58808         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58809         Needed for MacOS X 10.3.
58810
58811 2007-03-17  Bruno Haible  <bruno@clisp.org>
58812
58813         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58814
58815 2007-03-17  Bruno Haible  <bruno@clisp.org>
58816
58817         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58818
58819 2007-03-17  Bruno Haible  <bruno@clisp.org>
58820
58821         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58822         to reflect files copied from gnulib (with or without modifications).
58823         Suggested by Jim Meyering.
58824
58825 2007-03-17  Eric Blake  <ebb9@byu.net>
58826
58827         * NEWS: Document stdlib change from 2007-02-18.
58828
58829 2007-03-17  Jim Meyering  <jim@meyering.net>
58830
58831         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58832         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58833         someone uses a name containing shell meta-characters.
58834         Reported by Alfred M. Szmidt.
58835
58836         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58837
58838 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58839
58840         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58841         and copy gettext configuration files only if configure.ac contains
58842         a use of AM_GNU_GETTEXT_VERSION.
58843
58844 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58845
58846         * build-aux/bootstrap (gnulib_name): New variable.
58847         (gnulib_tool_options): Use it.
58848
58849 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58850
58851         * tests/test-des.c: Use new namespace.
58852
58853 2007-03-15  Bruno Haible  <bruno@clisp.org>
58854
58855         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58856         Reported by James Youngman <jay@gnu.org>.
58857
58858 2007-03-15  Bruno Haible  <bruno@clisp.org>
58859
58860         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58861         declared prototype. Needed with cc on OSF/1 5.1.
58862
58863 2007-03-15  Bruno Haible  <bruno@clisp.org>
58864
58865         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58866         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58867         (struct gl_list_implementation): Add dispose_fn argument to the
58868         'create_empty', 'create' methods.
58869         (struct gl_list_impl_base): Add field 'dispose_fn'.
58870         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58871         argument.
58872         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58873         dispose_fn argument.
58874         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58875         dispose_fn on the dropped values.
58876         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58877         dispose_fn argument.
58878         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58879         dropped values.
58880         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58881         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58882         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58883         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58884         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58885         argument.
58886         (gl_tree_list_free): Call dispose_fn on the dropped values.
58887         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58888         the dropped values.
58889         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58890         Add dispose_fn argument.
58891         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58892         Call dispose_fn on the dropped values.
58893         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58894         Add dispose_fn argument.
58895         (gl_sublist_create): Initialize the 'dispose_fn' field.
58896         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58897         * tests/test-array_list.c (main): Update.
58898         * tests/test-carray_list.c (main): Update.
58899         * tests/test-avltree_list.c (main): Update.
58900         * tests/test-rbtree_list.c (main): Update.
58901         * tests/test-avltreehash_list.c (main): Update.
58902         * tests/test-rbtreehash_list.c (main): Update.
58903         * tests/test-linked_list.c (main): Update.
58904         * tests/test-linkedhash_list.c (main): Update.
58905         * tests/test-array_oset.c (main): Update.
58906
58907 2007-03-15  Bruno Haible  <bruno@clisp.org>
58908
58909         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58910         (gl_oset_create_empty): Add dispose_fn argument.
58911         (struct gl_oset_implementation): Add dispose_fn argument to
58912         'create_empty' method.
58913         (struct gl_oset_impl_base): Add dispose_fn field.
58914         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58915         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58916         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58917         values.
58918         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58919         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58920         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58921         dropped value.
58922         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58923         dropped value.
58924         * tests/test-array_oset.c (main): Update.
58925         * tests/test-avltree_oset.c (main): Update.
58926         * tests/test-rbtree_oset.c (main): Update.
58927         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58928
58929 2007-03-13  Bruno Haible  <bruno@clisp.org>
58930
58931         * tests/test-stdbool.c (i): Update after last patch.
58932
58933 2007-03-12  Bruno Haible  <bruno@clisp.org>
58934
58935         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58936         the iswprint macro. Needed on Solaris 2.5.1.
58937
58938 2007-03-12  Bruno Haible  <bruno@clisp.org>
58939
58940         * tests/test-printf-frexp.c (main): Declare x as volatile.
58941
58942 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58943
58944         * doc/gnulib.texi (Build robot for gnulib): New section.
58945
58946 2007-03-12  Jim Meyering  <jim@meyering.net>
58947
58948         * build-aux/bootstrap: New file.
58949         * build-aux/bootstrap.conf: New file, from coreutils.
58950
58951 2007-03-11  Bruno Haible  <bruno@clisp.org>
58952
58953         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58954
58955 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58956
58957         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58958         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58959         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58960
58961 2007-03-11  Bruno Haible  <bruno@clisp.org>
58962
58963         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58964         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58965
58966 2007-03-11  Bruno Haible  <bruno@clisp.org>
58967
58968         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58969         formula. Needed for SunPRO C 5.0.
58970
58971 2007-03-11  Bruno Haible  <bruno@clisp.org>
58972
58973         * modules/long-options (Depends-on): Add getopt.
58974
58975 2007-03-11  Bruno Haible  <bruno@clisp.org>
58976
58977         * modules/modechange (Depends-on): Add stdbool.
58978
58979 2007-03-11  Bruno Haible  <bruno@clisp.org>
58980
58981         * modules/i-ring (Depends-on): Add stdbool.
58982
58983 2007-03-11  Bruno Haible  <bruno@clisp.org>
58984
58985         * modules/gc-des (Depends-on): Add stdbool.
58986
58987 2007-03-11  Bruno Haible  <bruno@clisp.org>
58988
58989         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58990
58991 2007-03-11  Bruno Haible  <bruno@clisp.org>
58992
58993         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58994
58995 2007-03-11  Bruno Haible  <bruno@clisp.org>
58996
58997         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58998
58999 2007-03-11  Bruno Haible  <bruno@clisp.org>
59000
59001         * lib/vasnprintf.c (sprintf): Undefine.
59002
59003 2007-03-11  Bruno Haible  <bruno@clisp.org>
59004
59005         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59006         initializers in SunPRO C and Compaq C compilers.
59007
59008 2007-03-11  Bruno Haible  <bruno@clisp.org>
59009
59010         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59011         decrementing code ANSI C compliant.
59012
59013 2007-03-11  Bruno Haible  <bruno@clisp.org>
59014
59015         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59016         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59017
59018 2007-03-11  Bruno Haible  <bruno@clisp.org>
59019
59020         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59021         <stdbool.h> substitute doesn't pass.
59022
59023 2007-03-11  Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
59026
59027 2007-03-11  Bruno Haible  <bruno@clisp.org>
59028
59029         * gnulib-tool (func_create_megatestdir): Create also an autobuild
59030         script, for submission to autobuild.josefsson.org.
59031
59032 2007-03-10  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/canonicalize-lgpl-tests: New file.
59035         * tests/test-canonicalize-lgpl.sh: New file.
59036         * tests/test-canonicalize-lgpl.c: New file.
59037
59038         * modules/c-strcase-tests: New file.
59039         * tests/test-c-strcase.sh: New file.
59040         * tests/test-c-strcasecmp.c: New file.
59041         * tests/test-c-strncasecmp.c: New file.
59042
59043         * modules/atexit-tests: New file.
59044         * tests/test-atexit.sh: New file.
59045         * tests/test-atexit.c: New file.
59046
59047 2007-03-10  Bruno Haible  <bruno@clisp.org>
59048
59049         * tests/test-binary-io.sh: Use temporary filenames that are not so
59050         likely to clash with those of other tests (in a parallel make).
59051         * tests/test-binary-io.c: Likewise.
59052
59053 2007-03-10  Bruno Haible  <bruno@clisp.org>
59054
59055         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59056         fallback; use #error instead.
59057         Suggested by Simon Josefsson.
59058
59059 2007-03-10  Bruno Haible  <bruno@clisp.org>
59060
59061         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59062         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59063         first and the last.
59064
59065 2007-03-10  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59068
59069 2007-03-10  Bruno Haible  <bruno@clisp.org>
59070
59071         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59072         "make distcheck".
59073         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59074         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59075         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59076
59077 2007-03-10  Bruno Haible  <bruno@clisp.org>
59078
59079         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59080         variable.
59081         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59082         variable.
59083
59084 2007-03-09  Eric Blake  <ebb9@byu.net>
59085         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59086
59087         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59088         types are not being provided by gnulib.
59089         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59090         types are supported.
59091
59092 2007-03-10  Bruno Haible  <bruno@clisp.org>
59093
59094         * lib/stdio_.h (__attribute__): New macro.
59095         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59096         vsprintf): Specify __attribute__ __format__ for GCC.
59097         Suggested by Eric Blake.
59098
59099 2007-03-09  Bruno Haible  <bruno@clisp.org>
59100
59101         * modules/printf-posix-tests: New file.
59102         * tests/test-printf-posix.sh: New file.
59103         * tests/test-printf-posix.c: New file.
59104
59105         * modules/printf-posix: New file.
59106         * lib/printf.c: New file.
59107         * m4/printf-posix-rpl.m4: New file.
59108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59109         REPLACE_PRINTF.
59110         * lib/stdio_.h (printf): New declaration.
59111         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59112         ____strfmon____): New macros.
59113         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59114         REPLACE_PRINTF.
59115
59116 2007-03-09  Bruno Haible  <bruno@clisp.org>
59117
59118         * tests/test-vasnprintf-posix2.sh: New file.
59119         * tests/test-vasnprintf-posix2.c: New file.
59120         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59121         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59122         (Makefile.am): Activate test-vasnprintf-posix2.sh.
59123
59124         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
59125         a locale dependent decimal point, rather than always '.'.
59126
59127 2007-03-09  Eric Blake  <ebb9@byu.net>
59128
59129         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
59130         spite of platforms like Tandem/NSK that define it to -1.
59131
59132 2007-03-08  Bruno Haible  <bruno@clisp.org>
59133
59134         * modules/vprintf-posix-tests: New file.
59135         * tests/test-vprintf-posix.sh: New file.
59136         * tests/test-vprintf-posix.c: New file.
59137         * tests/test-printf-posix.h: New file.
59138
59139         * modules/vprintf-posix: New file.
59140         * lib/vprintf.c: New file.
59141         * m4/vprintf-posix.m4: New file.
59142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
59143         REPLACE_VPRINTF.
59144         * lib/stdio_.h (vprintf): New declaration.
59145         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
59146         REPLACE_VPRINTF.
59147
59148 2007-03-08  Bruno Haible  <bruno@clisp.org>
59149
59150         * modules/fprintf-posix-tests: New file.
59151         * tests/test-fprintf-posix.sh: New file.
59152         * tests/test-fprintf-posix.c: New file.
59153
59154         * modules/fprintf-posix: New file.
59155         * lib/fprintf.c: New file.
59156         * m4/fprintf-posix.m4: New file.
59157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
59158         REPLACE_FPRINTF.
59159         * lib/stdio_.h (fprintf): New declaration.
59160         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
59161         REPLACE_FPRINTF.
59162
59163 2007-03-08  Bruno Haible  <bruno@clisp.org>
59164
59165         * modules/vfprintf-posix-tests: New file.
59166         * tests/test-vfprintf-posix.sh: New file.
59167         * tests/test-vfprintf-posix.c: New file.
59168         * tests/test-fprintf-posix.h: New file.
59169         * tests/test-fprintf-posix.out: New file.
59170
59171         * modules/vfprintf-posix: New file.
59172         * lib/vfprintf.c: New file.
59173         * m4/vfprintf-posix.m4: New file.
59174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
59175         REPLACE_VFPRINTF.
59176         * lib/stdio_.h (vfprintf): New declaration.
59177         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
59178         REPLACE_VFPRINTF.
59179
59180 2007-03-08  Bruno Haible  <bruno@clisp.org>
59181
59182         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
59183
59184 2007-03-08  Bruno Haible  <bruno@clisp.org>
59185
59186         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
59187         instead of 'expr' invocations.
59188         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59192         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59193         Suggested by Paul Eggert.
59194
59195 2007-03-08  Bruno Haible  <bruno@clisp.org>
59196
59197         * modules/fseterr-tests: New file.
59198         * tests/test-fseterr.c: New file.
59199
59200         * modules/fseterr: New file.
59201         * lib/fseterr.h: New file.
59202         * lib/fseterr.c: New file.
59203
59204 2007-03-08  Bruno Haible  <bruno@clisp.org>
59205
59206         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
59207         * lib/getopt_.h: Likewise.
59208         * lib/mbswidth.h: Likewise.
59209         * lib/setenv.h: Likewise.
59210         * lib/vasnprintf.h: Likewise.
59211         * lib/vasprintf.h: Likewise.
59212         * lib/verror.h: Likewise.
59213         * lib/xsetenv.h: Likewise.
59214         * lib/xvasprintf.h: Likewise.
59215
59216 2007-03-08  Jim Meyering  <jim@meyering.net>
59217
59218         * users.txt: Add parted.
59219
59220         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
59221
59222 2007-03-07  Bruno Haible  <bruno@clisp.org>
59223
59224         * m4/printf.m4: Make the shell script snippets copy&pastable.
59225
59226 2007-03-02  Bruno Haible  <bruno@clisp.org>
59227
59228         * lib/netinet_in_.h: New file.
59229         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
59230         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
59231         * modules/netinet_in (Files): Add lib/netinet_in_.h.
59232         (Depends-on): Add absolute-header.
59233         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
59234         into netinet/in.h.
59235
59236 2007-03-03  Bruno Haible  <bruno@clisp.org>
59237
59238         * lib/sys_select_.h: New file.
59239         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
59240         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
59241         * modules/sys_select (Files): Add lib/sys_select_.h.
59242         (Depends-on): Add absolute-header.
59243         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
59244         into sys/select.h.
59245
59246 2007-03-02  Bruno Haible  <bruno@clisp.org>
59247
59248         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
59249         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
59250         values.
59251         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
59252         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
59253         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
59254         * modules/sys_socket (Depends-on): Add absolute-header.
59255         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
59256         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
59257         (Include): Remove requirement of inclusion of <sys/types.h>.
59258
59259 2007-03-02  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/byteswap_.h (bswap_32): Fix formula.
59262
59263 2007-03-06  Bruno Haible  <bruno@clisp.org>
59264
59265         * modules/sprintf-posix-tests: New file.
59266         * tests/test-sprintf-posix.c: New file.
59267
59268         * modules/sprintf-posix: New file.
59269         * lib/sprintf.c: New file.
59270         * m4/sprintf-posix.m4: New file.
59271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
59272         REPLACE_SPRINTF.
59273         * lib/stdio_.h (sprintf): New declaration.
59274         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
59275         REPLACE_SPRINTF.
59276
59277 2007-03-06  Bruno Haible  <bruno@clisp.org>
59278
59279         * modules/vsprintf-posix-tests: New file.
59280         * tests/test-vsprintf-posix.c: New file.
59281         * tests/test-sprintf-posix.h: New file.
59282
59283         * modules/vsprintf-posix: New file.
59284         * lib/vsprintf.c: New file.
59285         * m4/vsprintf-posix.m4: New file.
59286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
59287         REPLACE_VSPRINTF.
59288         * lib/stdio_.h (vsprintf): New declaration.
59289         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
59290         REPLACE_VSPRINTF.
59291
59292 2007-03-06  Bruno Haible  <bruno@clisp.org>
59293
59294         * modules/vsnprintf (Depend-on): Remove minmax.
59295
59296 2007-03-06  Bruno Haible  <bruno@clisp.org>
59297
59298         * modules/snprintf-posix-tests: New file.
59299         * tests/test-snprintf-posix.c: New file.
59300
59301         * modules/snprintf-posix: New file.
59302         * m4/snprintf-posix.m4: New file.
59303         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
59304         gl_FUNC_SNPRINTF.
59305         (gl_FUNC_SNPRINTF): Invoke it.
59306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
59307         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
59308         is set.
59309         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
59310
59311 2007-03-06  Bruno Haible  <bruno@clisp.org>
59312
59313         * modules/vsnprintf-posix-tests: New file.
59314         * tests/test-vsnprintf-posix.c: New file.
59315         * tests/test-snprintf-posix.h: New file.
59316
59317         * modules/vsnprintf-posix: New file.
59318         * m4/vsnprintf-posix.m4: New file.
59319         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
59320         gl_FUNC_VSNPRINTF.
59321         (gl_FUNC_VSNPRINTF): Invoke it.
59322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
59323         * lib/stdio_.h (vsnprintf): Define as a replacement if
59324         REPLACE_VSNPRINTF is set.
59325         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
59326
59327 2007-03-06  Bruno Haible  <bruno@clisp.org>
59328
59329         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
59330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
59331
59332 2007-03-06  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
59335         (asinl): Declare also if HAVE_DECL_ASINL is set.
59336         (atanl): Declare also if HAVE_DECL_ATANL is set.
59337         (ceill): Declare also if HAVE_DECL_CEILL is set.
59338         (cosl): Declare also if HAVE_DECL_COSL is set.
59339         (expl): Declare also if HAVE_DECL_EXPL is set.
59340         (floorl): Declare also if HAVE_DECL_FLOORL is set.
59341         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
59342         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
59343         (logl): Declare also if HAVE_DECL_LOGL is set.
59344         (sinl): Declare also if HAVE_DECL_SINL is set.
59345         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
59346         (tanl): Declare also if HAVE_DECL_TANL is set.
59347         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
59348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
59349         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
59350         declaration of frexpl, ldexpl.
59351         * modules/printf-frexpl (Depends-on): Add math.
59352         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
59353
59354 2007-03-05  Bruno Haible  <bruno@clisp.org>
59355
59356         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
59357         frexpl and ldexpl are declared.
59358         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
59359
59360 2007-03-05  Bruno Haible  <bruno@clisp.org>
59361
59362         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
59363         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
59364
59365 2007-03-05  Bruno Haible  <bruno@clisp.org>
59366
59367         * lib/stdio_.h: Include <stddef.h>.
59368
59369 2007-03-05  Bruno Haible  <bruno@clisp.org>
59370
59371         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
59372
59373 2007-03-05  Bruno Haible  <bruno@clisp.org>
59374
59375         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
59376         NetBSD 4, from Ralf Wildenhues.
59377
59378 2007-03-04  Bruno Haible  <bruno@clisp.org>
59379
59380         * lib/vasprintf.h: Update #if logic for the case when the functions
59381         exist but are overridden.
59382
59383 2007-03-04  Bruno Haible  <bruno@clisp.org>
59384
59385         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
59386         implementations: glibc-2.4 and MacOS X 10.3.
59387         * tests/test-vasnprintf-posix.c (test_function): Test also the case
59388         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
59389         * tests/test-vasprintf-posix.c (test_function): Likewise.
59390
59391 2007-03-04  Bruno Haible  <bruno@clisp.org>
59392
59393         * modules/vasprintf-posix-tests: New file.
59394         * tests/test-vasprintf-posix.c: New file.
59395
59396         * modules/vasprintf-posix: New file.
59397         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
59398         defined.
59399         * m4/vasprintf-posix.m4: New file.
59400         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
59401         gl_FUNC_VASPRINTF.
59402         (gl_FUNC_VASPRINTF): Invoke it.
59403         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
59404         here.
59405         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
59406
59407 2007-03-04  Bruno Haible  <bruno@clisp.org>
59408
59409         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
59410         REPLACE_GETTIMEOFDAY.
59411         * modules/sys_time (Makefile.am): Likewise.
59412         * m4/sys_time_h.m4: Likewise.
59413         * m4/gettimeofday.m4: Likewise.
59414
59415 2007-03-04  Bruno Haible  <bruno@clisp.org>
59416
59417         * modules/vasnprintf-posix-tests: New file.
59418         * tests/test-vasnprintf-posix.c: New file.
59419
59420         * modules/vasnprintf-posix: New file.
59421         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
59422         printf-frexpl.h.
59423         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
59424         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
59425         REPLACE_VASNPRINTF is defined.
59426         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
59427         gl_FUNC_VASNPRINTF.
59428         (gl_FUNC_VASNPRINTF): Invoke it.
59429         * m4/vasnprintf-posix.m4: New file.
59430         * m4/printf.m4: New file.
59431
59432 2007-03-04  Bruno Haible  <bruno@clisp.org>
59433
59434         Compile progreloc.c only if --enable-relocatable is specified.
59435         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
59436         if --enable-relocatable was specified.
59437         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
59438         lib_SOURCES.
59439
59440 2007-03-04  Jim Meyering  <jim@meyering.net>
59441
59442         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
59443         Use it consistently, rather than enumerating errno constants.
59444
59445 2007-03-04  Bruno Haible  <bruno@clisp.org>
59446
59447         * modules/xvasprintf-tests: New file.
59448         * tests/test-xvasprintf.c: New file.
59449
59450         * modules/vasprintf-tests: New file.
59451         * tests/test-vasprintf.c: New file.
59452
59453         * modules/vasnprintf-tests: New file.
59454         * tests/test-vasnprintf.c: New file.
59455
59456         * modules/vsnprintf-tests: New file.
59457         * tests/test-vsnprintf.c: New file.
59458
59459         * modules/snprintf-tests: New file.
59460         * tests/test-snprintf.c: New file.
59461
59462 2007-03-04  Bruno Haible  <bruno@clisp.org>
59463
59464         Compile relocatable.c only if --enable-relocatable is specified.
59465         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
59466         gl_RELOCATABLE_LIBRARY.
59467         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
59468         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
59469         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
59470         gl_RELOCATABLE_LIBRARY.
59471         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
59472         (Makefile.am): Remove lib_SOURCES.
59473         * modules/relocatable-lib-lgpl (configure.ac): Invoke
59474         gl_RELOCATABLE_LIBRARY.
59475         (Makefile.am): Remove lib_SOURCES.
59476         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
59477         always.
59478         * modules/relocatable-prog-wrapper (configure.ac): Invoke
59479         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
59480
59481 2007-03-04  Bruno Haible  <bruno@clisp.org>
59482
59483         * modules/argmatch-tests: New file.
59484         * tests/test-argmatch.c: New file.
59485
59486         * tests/test-allocsa.c (main): Halve the number of loop runs.
59487
59488         * modules/alloca-opt-tests: New file.
59489         * tests/test-alloca-opt.c: New file.
59490
59491 2007-03-04  Jim Meyering  <jim@meyering.net>
59492
59493         Work around difference between Linux ACLs and Solaris 10 ZFS.
59494         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
59495         for EINVAL.
59496
59497 2007-03-03  Bruno Haible  <bruno@clisp.org>
59498
59499         * modules/relocatable-prog (Depends-on): Add back progreloc's
59500         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
59501
59502 2007-03-03  Bruno Haible  <bruno@clisp.org>
59503
59504         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
59505         * modules/relocatable-lib: New file.
59506
59507 2007-03-03  Bruno Haible  <bruno@clisp.org>
59508
59509         * modules/relocatable-prog: Renamed from modules/relocatable.
59510         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
59511
59512 2007-03-03  Bruno Haible  <bruno@clisp.org>
59513
59514         * modules/relocatable-script (Files): Add doc/relocatable.texi,
59515         m4/relocatable-lib.m4.
59516         (Depends-on): Remove 'relocatable'.
59517         (configure.ac): Add gl_RELOCATABLE_NOP.
59518
59519 2007-03-03  Bruno Haible  <bruno@clisp.org>
59520
59521         * modules/relocatable-prog-wrapper: New file.
59522         * modules/relocatable (Depends-on): Add it. Remove all other
59523         dependencies except progname.
59524         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
59525
59526         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
59527         (gl_FUNC_STRERROR): Nop.
59528         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
59529
59530         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
59531         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
59532
59533         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
59534         (gl_FUNC_READLINK): Update.
59535
59536         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
59537
59538 2007-03-03  Bruno Haible  <bruno@clisp.org>
59539
59540         * lib/xreadlink.c: Include <unistd.h> unconditionally.
59541         * modules/xreadlink (Depends-on): Add unistd.
59542         * modules/xreadlink-with-size (Depends-on): Likewise.
59543
59544 2007-03-03  Bruno Haible  <bruno@clisp.org>
59545
59546         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
59547         extracted from gt_FUNC_SETENV.
59548         (gt_FUNC_SETENV): Remove macro.
59549         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
59550         remove gt_FUNC_SETENV.
59551
59552 2007-03-03  Bruno Haible  <bruno@clisp.org>
59553
59554         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59555         ENABLE_RELOCATABLE here.
59556         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59557
59558 2007-03-03  Bruno Haible  <bruno@clisp.org>
59559
59560         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59561         * tests/test-rbtreehash_list.c: Include progname.h.
59562         (main): Call set_program_name.
59563
59564         * modules/rbtree-oset-tests (Depends-on): Add progname.
59565         * tests/test-rbtree_oset.c: Include progname.h.
59566         (main): Call set_program_name.
59567
59568         * modules/rbtree-list-tests (Depends-on): Add progname.
59569         * tests/test-rbtree_list.c: Include progname.h.
59570         (main): Call set_program_name.
59571
59572         * modules/linked-list-tests (Depends-on): Add progname.
59573         * tests/test-linked_list.c: Include progname.h.
59574         (main): Call set_program_name.
59575
59576 2007-03-03  Bruno Haible  <bruno@clisp.org>
59577
59578         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59579         All uses of __restrict changed to _Restrict_.
59580         * lib/glob_.h (__restrict): Remove macro.
59581
59582 2007-03-02  Bruno Haible  <bruno@clisp.org>
59583
59584         * modules/gettext (configure.ac): Require gettext infrastructure
59585         from version 0.16.1.
59586
59587 2007-03-02  Bruno Haible  <bruno@clisp.org>
59588
59589         * modules/linkedhash-list-tests (Depends-on): Add progname.
59590         * tests/test-linkedhash_list.c: Include progname.h.
59591         (main): Call set_program_name.
59592
59593         * modules/carray-list-tests (Depends-on): Add progname.
59594         * tests/test-carray_list.c: Include progname.h.
59595         (main): Call set_program_name.
59596
59597         * modules/avltreehash-list-tests (Depends-on): Add progname.
59598         * tests/test-avltreehash_list.c: Include progname.h.
59599         (main): Call set_program_name.
59600
59601         * modules/avltree-oset-tests (Depends-on): Add progname.
59602         * tests/test-avltree_oset.c: Include progname.h.
59603         (main): Call set_program_name.
59604
59605         * modules/avltree-list-tests (Depends-on): Add progname.
59606         * tests/test-avltree_list.c: Include progname.h.
59607         (main): Call set_program_name.
59608
59609         * modules/array-oset-tests (Depends-on): Add progname.
59610         * tests/test-array_oset.c: Include progname.h.
59611         (main): Call set_program_name.
59612
59613         * modules/array-list-tests (Depends-on): Add progname.
59614         * tests/test-array_list.c: Include progname.h.
59615         (main): Call set_program_name.
59616
59617         * modules/argp-tests (Depends-on): Add progname.
59618         * tests/test-argp.c: Include argp.h first. Include progname.h.
59619         (main): Call set_program_name.
59620
59621 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         * doc/gnulib-tool.texi (Initial import): Reword description of
59624         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59625         limited effect even if defined after the first system include.
59626
59627 2007-03-01  Bruno Haible  <bruno@clisp.org>
59628
59629         * build-aux/config.libpath: Update to libtool-1.5.22.
59630         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59631
59632 2007-03-01  Bruno Haible  <bruno@clisp.org>
59633
59634         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59635         foo_CFLAGS.
59636         Reported by Ralf Wildenhues.
59637
59638 2007-03-01  Bruno Haible  <bruno@clisp.org>
59639
59640         * build-aux/install-reloc: Remove object files left over by some
59641         compilers.
59642         Reported by Ralf Wildenhues.
59643
59644 2007-03-01  Bruno Haible  <bruno@clisp.org>
59645
59646         * build-aux/install-reloc: Break long lines.
59647
59648 2007-03-01  Bruno Haible  <bruno@clisp.org>
59649
59650         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59651         Reported by Ralf Wildenhues.
59652
59653 2007-03-01  Bruno Haible  <bruno@clisp.org>
59654
59655         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59656         include ordering constraints.
59657
59658 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59661         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59662         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59663         as another example.
59664         * lib/time_.h: Fix misspelling.
59665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59666         Require gl_HEADER_TIME_H_DEFAULTS.
59667         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59668         * m4/time_r.m4 (gl_TIME_R): Likewise.
59669         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59670
59671 2007-03-01  Bruno Haible  <bruno@clisp.org>
59672
59673         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59674         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59675
59676 2007-03-01  Jim Meyering  <jim@meyering.net>
59677
59678         * modules/xreadlink (Maintainer): Add my name.
59679         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59680
59681 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59682             Bruno Haible  <bruno@clisp.org>
59683
59684         * build-aux/install-reloc: Compile also c-ctype.c.
59685         * build-aux/relocatable.sh.in: New file.
59686         * doc/relocatable.texi: New file.
59687         * doc/relocatable-maint.texi: New file.
59688         * doc/gnulib.texi: Include relocatable-maint.texi.
59689         * lib/progreloc.c: Include unistd.h unconditionally.
59690         * lib/relocwrapper.c: Include unistd.h unconditionally.
59691         Include c-ctype.h.
59692         (add_dotbin): Use c_tolower.
59693         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59694         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59695         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59696         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59697         to m4/relocatable-lib.m4.
59698         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59699         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59700         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59701         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59702         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59703         * modules/relocatable: New file.
59704         * modules/relocatable-lib: New file.
59705         * modules/relocatable-script: New file.
59706
59707 2007-02-28  Bruno Haible  <bruno@clisp.org>
59708
59709         Import --enable-relocatable infrastructure.
59710         * build-aux/config.libpath: New file, from GNU gettext.
59711         * build-aux/install-reloc: New file, from GNU gettext.
59712         * build-aux/reloc-ldflags: New file, from GNU gettext.
59713         * lib/relocatable.h: New file, from GNU gettext.
59714         * lib/relocatable.c: New file, from GNU gettext.
59715         * lib/relocwrapper.c: New file, from GNU gettext.
59716         * m4/relocatable.m4: New file, from GNU gettext.
59717
59718 2007-02-28  Bruno Haible  <bruno@clisp.org>
59719
59720         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59721
59722         * modules/xreadlink: New file, from GNU gettext with modifications.
59723         * lib/xreadlink.c: New file, from GNU gettext.
59724         * lib/xreadlink.h: Add comments.
59725         (xreadlink): New declaration.
59726
59727         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59728         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59729         lib/xreadlink-with-size.c.
59730         (configure.ac): Remove gl_XREADLINK invocation.
59731         (Makefile.am): Augment lib_SOURCES.
59732         * m4/xreadlink.m4: Remove file.
59733         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59734         (xreadlink_with_size): Renamed from xreadink.
59735         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59736         * modules/canonicalize (Depends-on): Replace xreadlink with
59737         xreadlink-with-size.
59738         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59739
59740 2007-02-25  Jim Meyering  <jim@meyering.net>
59741
59742         * build-aux/announce-gen: When complaining about excess arguments,
59743         list them.
59744
59745 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59746
59747         * README: Document signed integer overflow situation more
59748         accurately.
59749
59750 2007-02-25  Bruno Haible  <bruno@clisp.org>
59751
59752         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59753         'a' or 'A' conversion.
59754
59755 2007-02-25  Bruno Haible  <bruno@clisp.org>
59756
59757         * modules/filename: Renamed from modules/pathname.
59758         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59759         lib/concatpath.c with lib/concat-filename.c.
59760         (Makefile.am): Update.
59761         (Include): Replace pathname.h with filename.h.
59762         * lib/filename.h: Renamed from lib/pathname.h.
59763         (concatenated_filename): Renamed from concatenated_pathname.
59764         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59765         (concatenated_filename): Renamed from concatenated_pathname.
59766         * lib/findprog.c: Include filename.h instead of pathname.h.
59767         (find_in_path): Update.
59768         * lib/javacomp.c: Include filename.h instead of pathname.h.
59769         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59770         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59771         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59772         is_oldgcj_14_13_usable, is_javac_usable): Update.
59773         * lib/javaexec.c: Include filename.h instead of pathname.h.
59774         (execute_java_class): Update.
59775         * modules/findprog: Update.
59776         * modules/javacomp: Update.
59777         * modules/javaexec: Update.
59778         * MODULES.html.sh (File system functions): Add 'filename', remove
59779         'pathname'.
59780
59781 2007-02-25  Bruno Haible  <bruno@clisp.org>
59782
59783         * modules/printf-frexpl-tests: New file.
59784         * tests/test-printf-frexpl.c: New file.
59785
59786         * modules/printf-frexpl: New file.
59787         * lib/printf-frexpl.h: New file.
59788         * lib/printf-frexpl.c: New file.
59789         * m4/printf-frexpl.m4: New file.
59790
59791 2007-02-25  Bruno Haible  <bruno@clisp.org>
59792
59793         * modules/printf-frexp-tests: New file.
59794         * tests/test-printf-frexp.c: New file.
59795
59796         * modules/printf-frexp: New file.
59797         * lib/printf-frexp.h: New file.
59798         * lib/printf-frexp.c: New file.
59799         * m4/printf-frexp.m4: New file.
59800
59801 2007-02-25  Bruno Haible  <bruno@clisp.org>
59802
59803         Assume automake >= 1.10 for the tests.
59804         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59805         * modules/arctwo-tests: Likewise.
59806         * modules/argp-tests: Likewise.
59807         * modules/avltree-list-tests: Likewise.
59808         * modules/avltree-oset-tests: Likewise.
59809         * modules/avltreehash-list-tests: Likewise.
59810         * modules/carray-list-tests: Likewise.
59811         * modules/crc-tests: Likewise.
59812         * modules/des-tests: Likewise.
59813         * modules/gc-arcfour-tests: Likewise.
59814         * modules/gc-arctwo-tests: Likewise.
59815         * modules/gc-des-tests: Likewise.
59816         * modules/gc-hmac-md5-tests: Likewise.
59817         * modules/gc-hmac-sha1-tests: Likewise.
59818         * modules/gc-md2-tests: Likewise.
59819         * modules/gc-md4-tests: Likewise.
59820         * modules/gc-md5-tests: Likewise.
59821         * modules/gc-pbkdf2-sha1-tests: Likewise.
59822         * modules/gc-rijndael-tests: Likewise.
59823         * modules/gc-sha1-tests: Likewise.
59824         * modules/gc-tests: Likewise.
59825         * modules/getaddrinfo-tests: Likewise.
59826         * modules/hmac-md5-tests: Likewise.
59827         * modules/hmac-sha1-tests: Likewise.
59828         * modules/linked-list-tests: Likewise.
59829         * modules/linkedhash-list-tests: Likewise.
59830         * modules/lock-tests: Likewise.
59831         * modules/md2-tests: Likewise.
59832         * modules/md4-tests: Likewise.
59833         * modules/md5-tests: Likewise.
59834         * modules/rbtree-list-tests: Likewise.
59835         * modules/rbtree-oset-tests: Likewise.
59836         * modules/rbtreehash-list-tests: Likewise.
59837         * modules/read-file-tests: Likewise.
59838         * modules/rijndael-tests: Likewise.
59839         * modules/stdint-tests: Likewise.
59840         * modules/tls-tests: Likewise.
59841
59842 2007-02-24  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59845         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59846         function; instead check whether isnan with a double argument links.
59847         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59848         function; instead check whether isnan with a 'long double' argument
59849         links.
59850         Reported by Eric Blake <ebb9@byu.net>.
59851
59852 2007-02-24  Bruno Haible  <bruno@clisp.org>
59853
59854         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59855         defined.
59856         * lib/isnanl.c: Remove all code. Just include isnan.c.
59857         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59858
59859 2007-02-25  Jim Meyering  <jim@meyering.net>
59860
59861         Avoid conflicting types for 'unsetenv' on FreeBSD.
59862         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59863         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59864         in stdlib.h.
59865
59866 2007-02-24  Bruno Haible  <bruno@clisp.org>
59867
59868         * modules/isnanl-nolibm-tests: New file.
59869         * tests/test-isnanl.c: New file.
59870
59871         * modules/isnanl-nolibm: New file.
59872         * lib/isnanl.h: New file.
59873         * lib/isnanl.c: New file.
59874         * m4/isnanl.m4: New file.
59875
59876 2007-02-24  Bruno Haible  <bruno@clisp.org>
59877
59878         * modules/isnan-nolibm-tests: New file.
59879         * tests/test-isnan.c: New file.
59880
59881         * modules/isnan-nolibm: New file.
59882         * lib/isnan.h: New file.
59883         * lib/isnan.c: New file.
59884         * m4/isnan.m4: New file.
59885
59886 2007-02-24  Bruno Haible  <bruno@clisp.org>
59887
59888         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59889         assume that an exponent fits in 20 bits.
59890
59891 2007-02-24  Jim Meyering  <jim@meyering.net>
59892
59893         * m4/regex.m4: Update the description of the configure-time option,
59894         --without-included-regex, to state accurately what the defaults are,
59895         and perhaps to give people an idea why using this option is risky.
59896
59897 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59898
59899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59900         loops on small arguments.  This attempts to avoid the problem
59901         Bruno Haible reported for AIX 4.3.2 in
59902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59903
59904 2007-02-23  Bruno Haible  <bruno@clisp.org>
59905
59906         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59907         Needed for help2man.
59908
59909 2007-02-23  Karl Berry  <karl@gnu.org>
59910
59911         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59912         exists, foo.h should be cvs-ignored, not committed.
59913
59914 2007-02-23  Eric Blake  <ebb9@byu.net>
59915
59916         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59917         * lib/stat-time.h (includes): Likewise.
59918         * lib/utimecmp.c (includes): Likewise.
59919         * lib/utimens.h (includes): Likewise.
59920         * lib/getdate.y (includes): Also include "timespec.h" for use
59921         internal to the module.
59922         * modules/utimens (Depends-on): Revert yesterday's patch.
59923         * modules/nanosleep (Depends-on): Add missing dependency.
59924
59925 2007-02-22  Bruno Haible  <bruno@clisp.org>
59926
59927         * lib/glob.c: Don't include getlogin_r.h.
59928
59929 2007-02-22  Jim Meyering  <jim@meyering.net>
59930
59931         * modules/utimens (Depends-on): Add timespec, required for
59932         utimens.h's inclusion of timespec.h.
59933
59934 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59935
59936         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59937         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59938         Schwab in
59939         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59940         I'll try to think of a better way to fix the Solaris problem.
59941
59942         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59943         like glibc; on Solaris 10, it fails with errno == EINVAL.
59944         POSIX says the behavior is unspecified if the first argument is NULL,
59945         so play it safe and never pass NULL to the system getcwd.
59946
59947 2007-02-21  Jim Meyering  <jim@meyering.net>
59948
59949         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59950         of gettimeofday.  It would conflict with the one now always
59951         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59952         an IRIX 6.5 build failure.
59953
59954 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59955
59956         Minor fixups to port to Solaris 10 with Sun C 5.8.
59957         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59958         * modules/getcwd (Depends-on): Add dirfd.
59959         * lib/putenv.c (putenv): #undef it.
59960         (rpl_putenv): New decl.
59961         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59962
59963 2007-02-20  Bruno Haible  <bruno@clisp.org>
59964
59965         * modules/stdio-tests: New file.
59966         * tests/test-stdio.c: New file.
59967
59968         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59969         (Depends-on): Add stdio.
59970         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59971         (Include): Use <stdio.h> instead of vsnprintf.h.
59972         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59973         HAVE_DECL_VSNPRINTF.
59974         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59975
59976         * modules/snprintf (Files): Remove lib/snprintf.h.
59977         (Depends-on): Add stdio.
59978         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59979         (Include): Use <stdio.h> instead of snprintf.h.
59980         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59981         HAVE_DECL_SNPRINTF.
59982         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59983         * lib/getaddrinfo.c: Likewise.
59984
59985         * modules/stdio: New file.
59986         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59987         * lib/snprintf.h: Remove file.
59988         * lib/vsnprintf.h: Remove file.
59989         * lib/.cppi-disable: Remove snprintf.h.
59990         * m4/stdio_h.m4: New file.
59991         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59992
59993 2007-02-20  Jim Meyering  <jim@meyering.net>
59994
59995         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59996         used by e.g., mingw.  From Bruno Haible.
59997
59998 2007-02-19  Bruno Haible  <bruno@clisp.org>
59999
60000         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60001         warnings.
60002         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60003
60004 2007-02-19  Bruno Haible  <bruno@clisp.org>
60005
60006         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60007         from mingw users.
60008
60009 2007-02-19  Bruno Haible  <bruno@clisp.org>
60010
60011         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60012         warnings.
60013         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60014
60015 2007-02-19  Jim Meyering  <jim@meyering.net>
60016
60017         Don't use FD after a successful "fdopendir (fd)".
60018         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60019         Reset it by calling dirfd on the just-obtained DIR*.
60020
60021         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
60022         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
60023
60024 2007-02-18  Bruno Haible  <bruno@clisp.org>
60025
60026         * lib/readlink.c: Include <unistd.h>.
60027         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
60028         HAVE_READLINK.
60029         * modules/readlink (Depends-on): Add unistd.
60030         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60031         (Include): Add <unistd.h>.
60032
60033         * lib/getlogin_r.h: Remove file.
60034         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
60035         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
60036         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
60037         HAVE_DECL_GETLOGIN_R.
60038         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
60039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60040         (Include): Use <unistd.h> instead of getlogin_r.h.
60041
60042         * lib/getcwd.h: Remove file.
60043         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
60044         * lib/xgetcwd.c: Likewise.
60045         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
60046         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
60047         * modules/getcwd (Files): Remove lib/getcwd.h.
60048         (Depends-on): Add unistd.
60049         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60050         (Include): Use <unistd.h> instad of getcwd.h.
60051
60052         * lib/ftruncate.c: Include <unistd.h> first.
60053         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60054         Set HAVE_FTRUNCATE.
60055         * modules/ftruncate (Depends-on): Add unistd.
60056         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60057
60058         * lib/fchdir.c: Include <unistd.h> first.
60059         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60061         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60062         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60063         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60064
60065         * lib/dup2.c: Include <unistd.h> first.
60066         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60067         HAVE_DUP2.
60068         * modules/dup2 (Depends-on): Add unistd.
60069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60070
60071         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60072         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60073         REPLACE_CHOWN. Don't define chown as a macro here.
60074         * modules/chown (Depends-on): Add unistd.
60075         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60076
60077         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60078         Add definition for GL_LINK_WARNING.
60079         (chown, dup2): New declarations.
60080         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60081         link warning.
60082         (ftruncate): New declaration.
60083         (getcwd): New declaration, taken from old getcwd.h.
60084         (getlogin_r): New declaration, taken from old getlogin_r.h.
60085         (readlink): New declaration.
60086         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60087         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60088         (gl_PREREQ_UNISTD): Remove macro.
60089         (gl_UNISTD_MODULE_INDICATOR): New macro.
60090         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60091         many new variables. Don't set UNISTD_H.
60092         * modules/unistd (Description): Change.
60093         (Depends-on): Add link-warning.
60094         (configure.ac): Update.
60095         (Makefile.am): Create unistd.h always. Substitute many new variables
60096         into it.
60097
60098 2007-02-18  Bruno Haible  <bruno@clisp.org>
60099
60100         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60101         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60102         HAVE_GETSUBOPT.
60103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60104         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60105         * lib/getsubopt.h: Remove file.
60106         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60107         (Depends-on): Add stdlib.
60108         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60109         (Includes): Use <stdlib.h> instead of getsubopt.h.
60110         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60111         Set HAVE_GETSUBOPT.
60112         * lib/getsubopt.c: Don't include getsubopt.h.
60113
60114 2007-02-18  Bruno Haible  <bruno@clisp.org>
60115
60116         * modules/fchdir (Depends-on): Add dup2.
60117
60118 2007-02-18  Bruno Haible  <bruno@clisp.org>
60119
60120         * lib/stdlib_.h: Handle glibc's special invocation convention
60121         specially.
60122
60123 2007-02-18  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/stdlib-tests: New file.
60126         * tests/test-stdlib.c: New file.
60127
60128         * modules/mkstemp (Files): Remove lib/mkstemp.h.
60129         (Depends-on): Add stdlib.
60130         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60131         (Includes): Use <stdlib.h> instead of mkstemp.h.
60132         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60133         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
60134         * lib/mkstemp.c: Don't include mkstemp.h.
60135         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
60136         * lib/stdlib--.h: Don't include mkstemp.h.
60137
60138         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
60139         (Depends-on): Add stdlib.
60140         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60141         (Includes): Use <stdlib.h> instead of mkdtemp.h.
60142         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
60143         HAVE_MKDTEMP.
60144         * lib/mkdtemp.c: Don't include mkdtemp.h.
60145         * lib/clean-temp.c: Don't include mkdtemp.h.
60146
60147         * modules/exit (Files): Remove lib/exit.h.
60148         (Depends-on): Add stdlib.
60149         (Makefile.am): Remove lib_SOURCES.
60150         (Include): Use <stdlib.h> instead of exit.h.
60151         * lib/argmatch.c: Don't include exit.h.
60152         * lib/execute.c: Likewise.
60153         * lib/pagealign_alloc.c: Likewise.
60154         * lib/pipe.c: Likewise.
60155         * lib/wait-process.c: Likewise.
60156         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
60157         * lib/exitfail.c: Likewise.
60158         * lib/savewd.c: Likewise.
60159         * lib/xsetenv.c: Likewise.
60160
60161         * modules/stdlib: New file.
60162         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
60163         and extra comments about mkstemp().
60164         * lib/exit.h: Remove file.
60165         * lib/mkdtemp.h: Remove file.
60166         * lib/mkstemp.h: Remove file.
60167         * m4/stdlib_h.m4: New file.
60168         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
60169
60170 2007-02-18  Bruno Haible  <bruno@clisp.org>
60171
60172         * modules/math-tests: New file.
60173         * tests/test-math.c: New file.
60174
60175         * modules/math: New file.
60176         * modules/mathl (Files): Remove lib/mathl.h.
60177         (Depends-on): Add math.
60178         (Makefile.am): Don't mention mathl.h.
60179         (Include): Use <math.h> instead of mathl.h.
60180         * lib/math_.h: New file.
60181         * lib/mathl.h: Remove file.
60182         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
60183         mathl.h.
60184         * lib/asinl.c: Likewise.
60185         * lib/atanl.c: Likewise.
60186         * lib/ceill.c: Likewise.
60187         * lib/cosl.c: Likewise.
60188         * lib/expl.c: Likewise.
60189         * lib/floorl.c: Likewise.
60190         * lib/frexpl.c: Likewise.
60191         * lib/ldexpl.c: Likewise.
60192         * lib/logl.c: Likewise.
60193         * lib/sincosl.c: Likewise.
60194         * lib/sinl.c: Likewise.
60195         * lib/sqrtl.c: Likewise.
60196         * lib/tanl.c: Likewise.
60197         * lib/trigl.c: Likewise.
60198         * m4/math_h.m4: New file.
60199         * MODULES.html.sh (Mathematics): Add math.
60200
60201 2007-02-17  Bruno Haible  <bruno@clisp.org>
60202
60203         * modules/wctype-tests: New file.
60204         * tests/test-wctype.c: New file.
60205
60206         * modules/wchar-tests: New file.
60207         * tests/test-wchar.c: New file.
60208
60209         * modules/unistd-tests: New file.
60210         * tests/test-unistd.c: New file.
60211
60212         * modules/time-tests: New file.
60213         * tests/test-time.c: New file.
60214
60215         * modules/sysexits-tests: New file.
60216         * tests/test-sysexits.c: New file.
60217
60218         * modules/sys_time-tests: New file.
60219         * tests/test-sys_time.c: New file.
60220
60221         * modules/sys_stat-tests: New file.
60222         * tests/test-sys_stat.c: New file.
60223
60224         * modules/sys_socket-tests: New file.
60225         * tests/test-sys_socket.c: New file.
60226
60227         * modules/sys_select-tests: New file.
60228         * tests/test-sys_select.c: New file.
60229
60230         * modules/string-tests: New file.
60231         * tests/test-string.c: New file.
60232
60233         * modules/stdbool-tests: New file.
60234         * tests/test-stdbool.c: New file.
60235
60236         * modules/netinet_in-tests: New file.
60237         * tests/test-netinet_in.c: New file.
60238
60239         * modules/inttypes-tests: New file.
60240         * tests/test-inttypes.c: New file.
60241
60242         * modules/fcntl-tests: New file.
60243         * tests/test-fcntl.c: New file.
60244
60245         * modules/byteswap-tests: New file.
60246         * tests/test-byteswap.c: New file.
60247
60248         * modules/arpa_inet-tests: New file.
60249         * tests/test-arpa_inet.c: New file.
60250
60251 2007-02-17  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
60254         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
60255         if the corresponding module is not enabled. Emit link warnings if
60256         the function is used nevertheless.
60257         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
60258         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
60259         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
60260         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
60261         * modules/inttypes (Depends-on): Add link-warning.
60262         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60263         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
60264         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
60265         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
60266         * modules/imaxdiv (configure.ac): Likewise.
60267         * modules/strtoimax (configure.ac): Likewise.
60268         * modules/strtoumax (configure.ac): Likewise.
60269
60270 2007-02-17  Bruno Haible  <bruno@clisp.org>
60271
60272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
60273         gl_STRING_MODULE_INDICATOR_DEFAULTS.
60274         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
60275         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
60276
60277 2007-02-17  Bruno Haible  <bruno@clisp.org>
60278
60279         * modules/link-warning: New file.
60280         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
60281         * lib/string_.h (GL_LINK_WARNING): Remove definition.
60282         * modules/string (Depends-on): Add link-warning.
60283         (Makefile.am): Copy the contents of build-aux/link-warning.h into
60284         string.h.
60285         * MODULES.html.sh (Support for building libraries and executables): Add
60286         link-warning.
60287
60288 2007-02-17  Bruno Haible  <bruno@clisp.org>
60289
60290         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
60291         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
60292         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
60293         long lines.
60294
60295 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
60296             Bruno Haible  <bruno@clisp.org>
60297
60298         * modules/tmpfile: New file.
60299         * lib/tmpfile.c: New file.
60300         * m4/tmpfile.m4: New file.
60301         * MODULES.html.sh (func_all_modules): New section "Input/output".
60302
60303 2007-02-15  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
60306         (supports_delete_on_close): New function.
60307         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
60308
60309 2007-02-14  Bruno Haible  <bruno@clisp.org>
60310
60311         * modules/mbspcasecmp-tests: New file.
60312         * tests/test-mbspcasecmp.sh: New file.
60313         * tests/test-mbspcasecmp.c: New file.
60314
60315         New module mbspcasecmp.
60316         * modules/mbspcasecmp: New file.
60317         * lib/mbspcasecmp.c: New file.
60318         * lib/string_.h (strncasecmp): Change warning message.
60319         (mbspcasecmp): New declaration.
60320         * m4/mbspcasecmp.m4: New file.
60321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60322         GNULIB_MBSPCASECMP.
60323         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
60324         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
60325
60326 2007-02-14  Bruno Haible  <bruno@clisp.org>
60327
60328         * modules/mbsncasecmp-tests: New file.
60329         * tests/test-mbsncasecmp.sh: New file.
60330         * tests/test-mbsncasecmp.c: New file.
60331
60332         New module mbsncasecmp.
60333         * modules/mbsncasecmp: New file.
60334         * lib/mbsncasecmp.c: New file.
60335         * lib/string_.h (mbsncasecmp): New declaration.
60336         * m4/mbsncasecmp.m4: New file.
60337         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60338         GNULIB_MBSNCASECMP.
60339         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
60340         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
60341
60342 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
60343
60344         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
60345         Verify that it doesn't overlap with our flags.
60346         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
60347         do not have the desired effect in multibyte locales; instead, use
60348         mbscasecmp.
60349         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
60350         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
60351         we don't require GNU fnmatch ourselves (if our users require it, they
60352         should do so explicitly).
60353
60354         Fix regex code so it doesn't rely on strcasecmp.
60355         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
60356         Otherwise, include gnulib's langinfo.h.
60357         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
60358         undesirable behavior in non-C locales.  Instead, rely on localecharset.
60359         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
60360         * modules/regex (FILES): Remove m4/codeset.m4.
60361         (Depends-on): Add localcharset.  Remove strcase.
60362
60363 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60364
60365         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
60366         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
60367
60368 2007-02-13  Bruno Haible  <bruno@clisp.org>
60369
60370         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
60371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60372
60373 2007-02-12  Bruno Haible  <bruno@clisp.org>
60374
60375         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60376         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
60377         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
60378         time warning rather than a link error.
60379
60380 2007-02-12  Bruno Haible  <bruno@clisp.org>
60381
60382         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
60383         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60384         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60385
60386 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60387
60388         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
60389         args, not 2.
60390
60391 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
60392
60393         New module 'time', so that apps can include <time.h> as per
60394         POSIX and GNU instead of separate include files like time_r.h
60395         and timegm.h.  This implementation tries out a simpler approach
60396         for replacing decls in standard include files (as compared to
60397         the string module), somewhat as an experiment.
60398
60399         * config/srclist.txt: Comment out mktime.c for now.
60400         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
60401         since it doesn't apply any more.  Use generic wording instead.
60402         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
60403         'time'.
60404         * lib/time_.h, m4/time_h.m4, modules/time: New files.
60405         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
60406         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
60407         Don't include <sys/types.h>; no longer needed since we assume C89.
60408         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
60409         * lib/strftime.c: Likewise.
60410         * lib/time_r.c: Likewise.
60411         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
60412         * lib/nanosleep.c: Include <time.h> first, to check interface.
60413         * lib/strptime.c: Likewise.
60414         * lib/time_r.c: Likewise.
60415         * lib/timegm.c: Likewise.
60416         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
60417         needed.
60418         * lib/timegm.c: Don't include timegm.h; no longer needed.
60419         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
60420         time.h now handles any problems in that area.
60421         (struct timespec, nanosleep): Remove; time.h now arranges for these.
60422         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
60423         that time.h defines struct timespec.
60424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
60425         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
60426         handles that.
60427         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
60428         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
60429         needed.  Set REPLACE_LOCALTIME.
60430         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
60431         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
60432         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
60433         nanosleep; time_h.m4 now does that.  Don't require
60434         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
60435         module handles this now.
60436         * modules/getdate (Depends-on): Remove timespec.  Add time.
60437         * modules/nanosleep (Depends-on): Likewise.
60438         * modules/stat-time (Depends-on): Likewise.
60439         * modules/nanosleep (Include): Include time.h, not timespec.h.
60440         * modules/strptime (Files): Remove lib/strptime.h.
60441         (Depends-on): Add extensions, time.
60442         (Include): Include time.h, not strptime.h.
60443         * modules/time_r (Files): Remove lib/time_r.h.
60444         (Depends-on): Add time.
60445         (Include): Include time.h, not time_r.h.
60446         * modules/timegm: Likewise.
60447         * modules/timespec (Description): Now does timespec-related decls
60448         of our own, instead of struct timespec itself.
60449         (Depends-on): Add time; remove extensions.
60450         (Maintainer): Add self.
60451         * modules/utimecmp (Depends-on): Add time; remove timespec.
60452         * modules/utimens (Depends-on): Likewise.
60453         * modules/xnanosleep (Depends-on): Likewise.
60454
60455 2007-02-11  Bruno Haible  <bruno@clisp.org>
60456
60457         * lib/c-strstr.c: Include allocsa.h.
60458         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60459         * lib/c-strcasestr.c: Include allocsa.h.
60460         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60461         * lib/strcasestr.c: Include allocsa.h.
60462         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
60463         * lib/mbsstr.c: Include allocsa.h.
60464         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60465         allocsa/freesa instead of malloc/free.
60466         * lib/mbscasestr.c: Include allocsa.h.
60467         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
60468         allocsa/freesa instead of malloc/free.
60469         * modules/c-strstr (Depends-on): Add allocsa.
60470         * modules/c-strcasestr (Depends-on): Likewise.
60471         * modules/strcasestr (Depends-on): Likewise.
60472         * modules/mbsstr (Depends-on): Likewise.
60473         * modules/mbscasestr (Depends-on): Likewise.
60474
60475 2007-02-11  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
60478
60479         * modules/mbsspn-tests: New file.
60480         * tests/test-mbsspn.sh: New file.
60481         * tests/test-mbsspn.c: New file.
60482
60483 2007-02-11  Bruno Haible  <bruno@clisp.org>
60484
60485         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
60486
60487         * modules/mbspbrk-tests: New file.
60488         * tests/test-mbspbrk.sh: New file.
60489         * tests/test-mbspbrk.c: New file.
60490
60491 2007-02-11  Bruno Haible  <bruno@clisp.org>
60492
60493         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
60494         unneeded cast.
60495
60496         * modules/mbscspn-tests: New file.
60497         * tests/test-mbscspn.sh: New file.
60498         * tests/test-mbscspn.c: New file.
60499
60500 2007-02-11  Bruno Haible  <bruno@clisp.org>
60501
60502         * modules/mbscasecmp-tests: New file.
60503         * tests/test-mbscasecmp.sh: New file.
60504         * tests/test-mbscasecmp.c: New file.
60505
60506 2007-02-11  Bruno Haible  <bruno@clisp.org>
60507
60508         Ensure O(n) worst-case complexity of mbscasestr.
60509         * lib/mbscasestr.c: Include stdbool.h.
60510         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60511         functions.
60512         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
60513         the bookkeeping indicates that it's worth it.
60514         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
60515
60516         * modules/mbscasestr-tests: New file.
60517         * tests/test-mbscasestr1.c: New file.
60518         * tests/test-mbscasestr2.sh: New file.
60519         * tests/test-mbscasestr2.c: New file.
60520         * tests/test-mbscasestr3.sh: New file.
60521         * tests/test-mbscasestr3.c: New file.
60522         * tests/test-mbscasestr4.sh: New file.
60523         * tests/test-mbscasestr4.c: New file.
60524         * m4/locale-tr.m4: New file.
60525
60526 2007-02-11  Bruno Haible  <bruno@clisp.org>
60527
60528         Ensure O(n) worst-case complexity of mbsstr.
60529         * lib/mbsstr.c: Include stdbool.h.
60530         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
60531         functions.
60532         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
60533         bookkeeping indicates that it's worth it.
60534         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
60535
60536         * modules/mbsstr-tests: New file.
60537         * tests/test-mbsstr1.c: New file.
60538         * tests/test-mbsstr2.sh: New file.
60539         * tests/test-mbsstr2.c: New file.
60540         * tests/test-mbsstr3.sh: New file.
60541         * tests/test-mbsstr3.c: New file.
60542         * m4/locale-fr.m4: New file.
60543
60544 2007-02-11  Bruno Haible  <bruno@clisp.org>
60545
60546         * lib/mbsrchr.c (mbsrchr): Fix bug.
60547
60548         * modules/mbsrchr-tests: New file.
60549         * tests/test-mbsrchr.sh: New file.
60550         * tests/test-mbsrchr.c: New file.
60551
60552 2007-02-11  Bruno Haible  <bruno@clisp.org>
60553
60554         * lib/mbschr.c (mbschr): Fix bug.
60555
60556         * modules/mbschr-tests: New file.
60557         * tests/test-mbschr.sh: New file.
60558         * tests/test-mbschr.c: New file.
60559         * m4/locale-zh.m4: New file.
60560
60561 2007-02-11  Bruno Haible  <bruno@clisp.org>
60562
60563         Support for copying multibyte string iterators.
60564         * lib/mbiter.h: Include <string.h>.
60565         (mbiter_multi_copy): New function.
60566         (mbi_copy): New macro.
60567         * lib/mbuiter.h: Include <string.h>.
60568         (mbuiter_multi_copy): New function.
60569         (mbui_copy): New macro.
60570
60571 2007-02-11  Bruno Haible  <bruno@clisp.org>
60572
60573         New module mbslen.
60574         * modules/mbslen: New file.
60575         * lib/mbslen.c: New file.
60576         * lib/string_.h (mbslen): New declaration.
60577         * m4/mbslen.m4: New file.
60578         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60579         GNULIB_MBSLEN.
60580         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60581         * MODULES.html.sh (Internationalization functions): Add mbslen.
60582
60583 2007-02-11  Bruno Haible  <bruno@clisp.org>
60584
60585         Ensure O(n) worst-case complexity of strcasestr substitute.
60586         * lib/strcasestr.c: Include stdbool.h.
60587         (knuth_morris_pratt): New function.
60588         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60589         bookkeeping indicates that it's worth it.
60590         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60591
60592         * modules/strcasestr-tests: New file.
60593         * tests/test-strcasestr.c: New file.
60594
60595 2007-02-11  Bruno Haible  <bruno@clisp.org>
60596
60597         Ensure O(n) worst-case complexity of c_strcasestr.
60598         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60599         (knuth_morris_pratt): New function.
60600         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60601         the bookkeeping indicates that it's worth it.
60602         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60603
60604         * modules/c-strcasestr-tests: New file.
60605         * tests/test-c-strcasestr.c: New file.
60606
60607 2007-02-11  Bruno Haible  <bruno@clisp.org>
60608
60609         Ensure O(n) worst-case complexity of c_strstr.
60610         * lib/c-strstr.c: Include stdbool.h, string.h.
60611         (knuth_morris_pratt): New function.
60612         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60613         bookkeeping indicates that it's worth it.
60614         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60615
60616         * lib/c-strstr.c: Complete rewrite for maintainability.
60617
60618         * modules/c-strstr-tests: New file.
60619         * tests/test-c-strstr.c: New file.
60620
60621 2007-02-11  Bruno Haible  <bruno@clisp.org>
60622
60623         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60624         5.2.1 and earlier, whereby \055 was treated just like the range
60625         delimiter '-'.
60626         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60627
60628 2007-02-08  Bruno Haible  <bruno@clisp.org>
60629
60630         * modules/regex (Depends-on): Add stdbool.
60631         Reported by Dalibor Topic <robilad@kaffe.org>.
60632
60633 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60634
60635         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60636         Prefer returning from main to exiting from it.
60637         Remove unnecessary parens after sizeof.
60638
60639 2007-02-05  Bruno Haible  <bruno@clisp.org>
60640
60641         New module mbssep.
60642         * modules/mbssep: New file.
60643         * lib/mbssep.c: New file.
60644         * lib/string_.h (strsep): Add a conditional link warning.
60645         (mbssep): New declaration.
60646         * m4/mbssep.m4: New file.
60647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60648         GNULIB_MBSSEP.
60649         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60650         * MODULES.html.sh (Internationalization functions): Add mbssep.
60651
60652 2007-02-05  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60655         Optimize search in case of 1 delimiter.
60656
60657 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60658
60659         * lib/acl.h: Include sys/types.h before sys/acl.h.
60660
60661 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60662
60663         Merge upstream fix for glibc bugzilla #3957:
60664
60665         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60666
60667         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60668         bit for RE_HAT_LISTS_NOT_NEWLINE.
60669         (build_charclass_op): Remove bogus comment.
60670
60671 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60672
60673         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60674
60675 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60676
60677         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60678         * lib/memmem.c [!defined _LIBC]: Include config.h.
60679
60680 2007-02-04  Bruno Haible  <bruno@clisp.org>
60681
60682         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60683         warning message.
60684
60685 2007-02-04  Bruno Haible  <bruno@clisp.org>
60686
60687         New module mbstok_r.
60688         * modules/mbstok_r: New file.
60689         * lib/mbstok_r.c: New file.
60690         * lib/string_.h (strtok_r): Change argument names to match the
60691         comments. Add a conditional link warning.
60692         (mbstok_r): New declaration.
60693         * m4/mbstok_r.m4: New file.
60694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60695         GNULIB_MBSTOK_R.
60696         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60697         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60698
60699 2007-02-04  Bruno Haible  <bruno@clisp.org>
60700
60701         New module mbsspn.
60702         * modules/mbsspn: New file.
60703         * lib/mbsspn.c: New file.
60704         * lib/string_.h (strspn): Add a conditional link warning.
60705         (mbsspn): New declaration.
60706         * m4/mbsspn.m4: New file.
60707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60708         GNULIB_MBSSPN.
60709         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60710         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60711
60712 2007-02-04  Bruno Haible  <bruno@clisp.org>
60713
60714         New module mbspbrk.
60715         * modules/mbspbrk: New file.
60716         * lib/mbspbrk.c: New file.
60717         * lib/string_.h (strpbrk): Add a conditional link warning.
60718         (mbspbrk): New declaration.
60719         * m4/mbspbrk.m4: New file.
60720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60721         GNULIB_MBSPBRK.
60722         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60723         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60724
60725 2007-02-04  Bruno Haible  <bruno@clisp.org>
60726
60727         New module mbscspn.
60728         * modules/mbscspn: New file.
60729         * lib/mbscspn.c: New file.
60730         * lib/string_.h (strcspn): Add a conditional link warning.
60731         (mbscspn): New declaration.
60732         * m4/mbscspn.m4: New file.
60733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60734         GNULIB_MBSCSPN.
60735         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60736         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60737
60738 2007-02-04  Bruno Haible  <bruno@clisp.org>
60739
60740         New module mbscasestr, reduced goal of strcasestr.
60741         * modules/mbscasestr: New file.
60742         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60743         (mbscasestr): Renamed from strcasestr.
60744         * lib/strcasestr.c: Don't include mbuiter.h.
60745         (strcasestr): Remove support for multibyte locales.
60746         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60747         Change the conditional link warning.
60748         (mbscasestr): New declaration.
60749         * m4/mbscasestr.m4: New file.
60750         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60751         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60752         REPLACE_STRCASESTR.
60753         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60755         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60756         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60757         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60758         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60759         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60760         (Depends-on): Remove mbuiter.
60761         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60762
60763 2007-02-04  Bruno Haible  <bruno@clisp.org>
60764
60765         Simplify handling of strncasecmp.
60766         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60767         the conditional link warning.
60768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60769         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60770         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60771         * modules/strcase (configure.ac): Don't invoke
60772         gl_STRING_MODULE_INDICATOR.
60773         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60774
60775 2007-02-04  Bruno Haible  <bruno@clisp.org>
60776
60777         New module mbscasecmp, reduced goal of strcasecmp.
60778         * modules/mbscasecmp: New file.
60779         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60780         (mbscasecmp): Renamed from strcasecmp.
60781         * lib/strcasecmp.c: Don't include mbuiter.h.
60782         (strcasecmp): Remove support for multibyte locales.
60783         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60784         Change the conditional link warning.
60785         (mbscasecmp): New declaration.
60786         * m4/mbscasecmp.m4: New file.
60787         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60788         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60789         REPLACE_STRCASECMP.
60790         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60791         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60792         GNULIB_MBSCASECMP.
60793         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60794         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60795         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60796         (Depends-on): Remove mbuiter.
60797         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60798
60799 2007-02-04  Bruno Haible  <bruno@clisp.org>
60800
60801         New module mbsstr. Remove module strstr.
60802         * modules/mbsstr: New file.
60803         * modules/strstr: Remove file.
60804         * lib/mbsstr.c: Renamed from lib/strstr.c.
60805         (mbsstr): Renamed from strstr.
60806         * lib/string_.h (strstr): Remove declaration. Change the conditional
60807         link warning.
60808         (mbsstr): New declaration.
60809         * m4/mbsstr.m4: New file.
60810         * m4/strstr.m4: Remove file.
60811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60812         REPLACE_STRSTR.
60813         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60814         Don't initialize GNULIB_STRSTR.
60815         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60816         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60817         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60818         (Support for systems lacking ANSI C 89): Remove strstr.
60819
60820 2007-02-04  Bruno Haible  <bruno@clisp.org>
60821
60822         New module mbsrchr.
60823         * modules/mbsrchr: New file.
60824         * lib/mbsrchr.c: New file.
60825         * lib/string_.h (strrchr): Add a conditional link warning.
60826         (mbsrchr): New declaration.
60827         * m4/mbsrchr.m4: New file.
60828         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60829         GNULIB_MBSRCHR.
60830         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60831         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60832
60833 2007-02-04  Bruno Haible  <bruno@clisp.org>
60834
60835         New module mbschr.
60836         * modules/mbschr: New file.
60837         * lib/mbschr.c: New file.
60838         * lib/string_.h (strchr): Add a conditional link warning.
60839         (mbschr): New declaration.
60840         * m4/mbschr.m4: New file.
60841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60842         GNULIB_MBSCHR.
60843         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60844         * MODULES.html.sh (Internationalization functions): Add mbschr.
60845
60846 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60847
60848         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60849
60850         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60851
60852 2007-02-04  Bruno Haible  <bruno@clisp.org>
60853
60854         New module description section 'configure.ac-early'.
60855         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60856         (func_get_autoconf_early_snippet): New function.
60857         (func_import, func_create_testdir): Use it. Remove special cases for
60858         modules 'extensions' and 'lock'.
60859         * modules/extensions (configure.ac-early): Require
60860         gl_USE_SYSTEM_EXTENSIONS.
60861         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60862
60863 2007-02-04  Bruno Haible  <bruno@clisp.org>
60864
60865         Make use of gcj-4.3's -fsource and -ftarget option.
60866         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60867         and if so try the options -fsource and -ftarget.
60868         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60869         source_version, ftarget_option, target_version arguments.
60870         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60871         (is_envjavac_oldgcj_14_14_usable): Renamed from
60872         is_envjavac_gcj_14_14_usable.
60873         (is_envjavac_oldgcj_14_13_usable): Renamed from
60874         is_envjavac_gcj_14_13_usable.
60875         (is_gcj_present): Update.
60876         (is_gcj_43, is_gcj43_usable): New functions.
60877         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60878         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60879         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60880         try the options -fsource and -ftarget.
60881
60882 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60883
60884         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60885         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60886         larger value.
60887
60888 2007-02-03  Jim Meyering  <jim@meyering.net>
60889
60890         Give tools a better chance to allocate space for very large buffers.
60891         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60892
60893         Make pwd and readlink work also when run with an unreadable parent dir
60894         on systems with openat support.
60895         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60896         provided getcwd function, even when we have openat support.
60897         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60898
60899 2007-02-02  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60902         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60903         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60904         portability problems if one of these functions is only used on specific
60905         platforms.
60906         Reported by Paul Eggert.
60907
60908 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60911         is causing more trouble than it's curing.
60912         * lib/regex_internal.h (__mempcpy): Remove.
60913         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60914         (and make the code a tad smaller to boot).
60915         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60916
60917 2007-02-02  Jim Meyering  <jim@meyering.net>
60918
60919         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60920         section, not in the Makefile.am: one.
60921
60922 2007-02-02  Eric Blake  <ebb9@byu.net>
60923
60924         * lib/strchrnul.c: Always include config.h first.
60925
60926         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60927         gnulib strstr is not necessary here.
60928
60929 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60930
60931         * m4/socklen.m4: Fix typo.
60932
60933 2007-02-02  Eric Blake  <ebb9@byu.net>
60934
60935         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60936         * modules/netinet_in (Makefile.am): Likewise.
60937
60938 2007-02-01  Bruno Haible  <bruno@clisp.org>
60939
60940         * lib/string_.h (GL_LINK_WARNING): New macro.
60941         (strcasecmp, strstr, strcasestr): If provided by the system,
60942         conditionally define as a macro that leads to a warning instead of to
60943         an error.
60944         (strncasecmp): Conditionally define as a macro that leads to a warning.
60945
60946 2007-02-01  Karl Berry  <karl@gnu.org>
60947
60948         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60949
60950 2007-02-01  Bruno Haible  <bruno@clisp.org>
60951
60952         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60953         renamings.
60954
60955 2007-02-01  Eric Blake  <ebb9@byu.net>
60956
60957         * modules/regex (Depends-on): Revert dependence on mempcpy.
60958         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60959         module's definition of mempcpy.
60960         Reported by Paul Eggert.
60961
60962 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60965         the symbol XYZ before redefining it.  This fixes a problem with
60966         programs that don't use XYZ, when compiled on systems that define
60967         XYZ to something else.
60968
60969 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60972         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60973         writeable to group or other and (2) is intended to have a special
60974         mode bit that is set or cleared.  In such a case, the directory
60975         should be neither group- nor other-writeable until the special
60976         mode bits are right.
60977
60978 2007-01-31  Eric Blake  <ebb9@byu.net>
60979
60980         * modules/mountlist (Depends-on): Add strstr.
60981
60982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60983         bug.
60984         * modules/string (Makefile.am): Remove redundant replacement.
60985         * modules/regex (Depends-on): Add mempcpy.
60986
60987 2007-01-31  Bruno Haible  <bruno@clisp.org>
60988
60989         New module description field 'Link'.
60990         * gnulib-tool (func_usage): Document --extract-link-directive.
60991         (sed_extract_prog): Recognize 'Link' directive.
60992         (func_get_link_directive): New function.
60993         (func_import): Show summary of link directives.
60994         Handle --extract-link-directive option.
60995         * modules/acl (Link): New section.
60996         * modules/clock-time (Link): New section.
60997         * modules/euidaccess (Link): New section.
60998         * modules/gettext (Link): New section.
60999         * modules/iconv (Link): New section.
61000         * modules/lock (Link): New section.
61001         * modules/nanosleep (Link): New section.
61002         * modules/readline (Link): New section.
61003
61004 2007-01-27  Bruno Haible  <bruno@clisp.org>
61005
61006         Enforce the use of gnulib modules for unportable <string.h> functions.
61007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61008         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61009         (gl_HEADER_STRING_H_BODY): Require it.
61010         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61011         the symbol XYZ to one that gives a link error.
61012         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61013         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61014         * modules/mempcpy (configure.ac): Likewise.
61015         * modules/memrchr (configure.ac): Likewise.
61016         * modules/stpcpy (configure.ac): Likewise.
61017         * modules/stpncpy (configure.ac): Likewise.
61018         * modules/strcase (configure.ac): Likewise.
61019         * modules/strcasestr (configure.ac): Likewise.
61020         * modules/strchrnul (configure.ac): Likewise.
61021         * modules/strdup (configure.ac): Likewise.
61022         * modules/strndup (configure.ac): Likewise.
61023         * modules/strnlen (configure.ac): Likewise.
61024         * modules/strpbrk (configure.ac): Likewise.
61025         * modules/strsep (configure.ac): Likewise.
61026         * modules/strstr (configure.ac): Likewise.
61027         * modules/strtok_r (configure.ac): Likewise.
61028
61029 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
61030
61031         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
61032
61033 2007-01-30  Jim Meyering  <jim@meyering.net>
61034
61035         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
61036
61037 2007-01-29  Bruno Haible  <bruno@clisp.org>
61038
61039         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
61040         * lib/execute.c: Likewise.
61041         * lib/pipe.c: Likewise.
61042         * lib/printf-args.h: Likewise.
61043         * lib/printf-args.c: Likewise.
61044         * lib/printf-parse.c: Likewise.
61045         * lib/vasnprintf.c: Likewise.
61046
61047 2007-01-29  Eric Blake  <ebb9@byu.net>
61048
61049         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
61050         declaration.
61051
61052 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         * lib/strptime.h (strptime): Use 'restrict' for args where
61055         POSIX requires this.
61056         * lib/strptime.c (strptime): Likewise.
61057         Change license notice from LGPL to GPL, since gnulib-tool will
61058         change this as needed.
61059         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61060         defined.
61061         Include "strptime.h" first, to check interface.
61062         Do not #undef _LIBC and _NL_CURRENT.
61063         Do not include <stdlib.h>; no longer needed.
61064         Include "time_r.h" and declare ptime_locale_status
61065         only if _LIBC is not defined.
61066         (__P): Remove unused macro.
61067         (match_string): Bring back glibc version, but use it only if _LIBC
61068         is defined.
61069         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61070         Remove unnecessary assertion and abort() call.
61071         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61072         * m4/strptime.m4: Fix serial number comment.
61073         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61074         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61075         (Depends-on): Add time_r.
61076
61077 2007-01-29  Bruno Haible  <bruno@clisp.org>
61078
61079         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61080         strptime.
61081         * modules/strptime (Depends-on): Add stdbool.
61082         * lib/strptime.h: Include <time.h> always. Add comments.
61083
61084 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61085
61086         * modules/strptime: New file.
61087         * lib/strptime.h: New file.
61088         * lib/strptime.c: New file.
61089         * m4/strptime.m4: New file.
61090
61091 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61092
61093         * MODULES.html.sh: New module mpsort.
61094         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61095
61096         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61097         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61099         All uses changed.
61100         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61101         All uses changed.
61102         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61103         to _Restrict_.
61104         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61105         the parameter matches the prototype.
61106
61107 2007-01-28  Jim Meyering  <jim@meyering.net>
61108
61109         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61110         sys/time.h here, reverting that part of the previous patch:
61111         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61112
61113 2007-01-28  Bruno Haible  <bruno@clisp.org>
61114
61115         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61116         value of $(SYS_TIME_H).
61117         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61118         remove it conditionally, too. [added by Jim Meyering]
61119         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61120         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61121         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61122         GETTIMEOFDAY_REPLACEMENT to 1.
61123
61124 2007-01-28  Bruno Haible  <bruno@clisp.org>
61125
61126         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
61127         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
61128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
61129         Set UNISTD_H instead of UNISTD_H2.
61130         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
61131
61132 2007-01-28  Bruno Haible  <bruno@clisp.org>
61133
61134         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
61135         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
61136
61137 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61138
61139         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
61140         (func_create_testdir): Ensure C locale for `grep' and `tr'
61141         character ranges.
61142         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
61143         ACLOCAL_AMFLAGS parsing state machine.
61144
61145 2007-01-27  Bruno Haible  <bruno@clisp.org>
61146
61147         * modules/unistr/base: Update.
61148
61149 2007-01-27  Bruno Haible  <bruno@clisp.org>
61150
61151         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
61152         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
61153         * modules/unistr/u32-mbtouc-unsafe: Renamed from
61154         modules/unistr/u32-mbtouc.
61155         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
61156         * lib/unistr.h: Update.
61157         * lib/linebreak.c: Update.
61158         * modules/unistr/u32-mbtouc: Renamed from
61159         modules/unistr/u32-mbtouc-safe.
61160         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
61161         * lib/unistr.h: Update.
61162         * lib/unistr/u32-to-u8.c: Update.
61163         * lib/unistr/u32-to-u16.c: Update.
61164
61165 2007-01-27  Bruno Haible  <bruno@clisp.org>
61166
61167         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
61168         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
61169         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
61170         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
61171         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
61172         * modules/unistr/u16-mbtouc-unsafe: Renamed from
61173         modules/unistr/u16-mbtouc.
61174         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
61175         * lib/unistr.h: Update.
61176         * lib/linebreak.c: Update.
61177         * modules/linebreak: Update.
61178         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
61179         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
61180         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
61181         * modules/unistr/u16-mbtouc: Renamed from
61182         modules/unistr/u16-mbtouc-safe.
61183         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
61184         * lib/unistr.h: Update.
61185         * lib/unistr/u16-to-u8.c: Update.
61186         * modules/unistr/u16-to-u8: Update.
61187         * lib/unistr/u16-to-u32.c: Update.
61188         * modules/unistr/u16-to-u32: Update.
61189
61190 2007-01-27  Bruno Haible  <bruno@clisp.org>
61191
61192         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
61193         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
61194         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
61195         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
61196         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
61197         * modules/unistr/u8-mbtouc-unsafe: Renamed from
61198         modules/unistr/u8-mbtouc.
61199         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
61200         * lib/unistr.h: Update.
61201         * lib/striconveh.c: Update.
61202         * modules/striconveh: Update.
61203         * lib/linebreak.c: Update.
61204         * modules/linebreak: Update.
61205         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
61206         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
61207         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
61208         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
61209         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
61210         * lib/unistr.h: Update.
61211         * lib/striconveh.c: Update.
61212         * modules/striconveh: Update.
61213         * lib/unistr/u8-to-u16.c: Update.
61214         * modules/unistr/u8-to-u16: Update.
61215         * lib/unistr/u8-to-u32.c: Update.
61216         * modules/unistr/u8-to-u32: Update.
61217
61218 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61219
61220         Sync from Libtool.
61221         * lib/argz.c: Do not include strings.h nor memory.h, include
61222         string.h unconditionally.  Patch by Simon Josefsson.
61223
61224 2007-01-27  Bruno Haible  <bruno@clisp.org>
61225
61226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
61227         from gl_HEADER_STRING_H_BODY.
61228         (gl_HEADER_STRING_H_BODY): Require it.
61229         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
61230         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61231         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61232         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61234         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
61235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61236         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61237         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
61238         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61239         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61240         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
61241         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61242         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61243         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61244
61245 2007-01-27  Bruno Haible  <bruno@clisp.org>
61246
61247         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
61248         check_PROGRAMS into noinst_PROGRAMS.
61249         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
61250         check_PROGRAMS in this case.
61251         (func_import): Set for_test to false.
61252         (func_create_testdir): Set for_test to true.
61253
61254 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61255             Bruno Haible  <bruno@clisp.org>
61256
61257         * modules/strcasestr (Files): Remove lib/strcasestr.h.
61258         (Depends-on): Add string.
61259         (Includes): Use <string.h> instead of strcasestr.h.
61260         * modules/string (Makefile.am): Also substitute the value of
61261         REPLACE_STRCASESTR.
61262         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
61263         assume strcasestr is declared in <string.h> not <strings.h>. Also
61264         set REPLACE_STRCASESTR.
61265         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
61266         REPLACE_STRCASESTR.
61267         * lib/strcasestr.h: Remove file.
61268         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
61269         * lib/string_.h (strcasestr): New declaration.
61270
61271 2007-01-27  Bruno Haible  <bruno@clisp.org>
61272
61273         * lib/string_.h: Use 'extern'.
61274
61275 2007-01-27  Jim Meyering  <jim@meyering.net>
61276
61277         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
61278         of set-but-not-used local, "q".
61279
61280         * lib/mempcpy.c: Include <config.h> before <string.h>.
61281         This fixes a compilation error on HP-UX, due to the system's
61282         "restrict"-using mempcpy prototype.
61283
61284 2007-01-26  Bruno Haible  <bruno@clisp.org>
61285
61286         Small optimization.
61287         * lib/javacomp.c: Include c-strstr.h.
61288          (is_envjavac_gcj): Use c_strstr instead of strstr.
61289         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
61290
61291 2007-01-26  Bruno Haible  <bruno@clisp.org>
61292
61293         * MODULES.html.sh (Unicode string functions): Add the new modules.
61294
61295         * modules/uniconv/u32-strconv-to-locale: New file.
61296         * lib/uniconv/u32-strconv-to-locale.c: New file.
61297
61298         * modules/uniconv/u16-strconv-to-locale: New file.
61299         * lib/uniconv/u16-strconv-to-locale.c: New file.
61300
61301         * modules/uniconv/u8-strconv-to-locale: New file.
61302         * lib/uniconv/u8-strconv-to-locale.c: New file.
61303
61304         * modules/uniconv/u32-strconv-from-locale: New file.
61305         * lib/uniconv/u32-strconv-from-locale.c: New file.
61306
61307         * modules/uniconv/u16-strconv-from-locale: New file.
61308         * lib/uniconv/u16-strconv-from-locale.c: New file.
61309
61310         * modules/uniconv/u8-strconv-from-locale: New file.
61311         * lib/uniconv/u8-strconv-from-locale.c: New file.
61312
61313         * modules/uniconv/u32-strconv-to-enc: New file.
61314         * lib/uniconv/u32-strconv-to-enc.c: New file.
61315         * modules/uniconv/u32-strconv-to-enc-tests: New file.
61316         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
61317
61318         * modules/uniconv/u16-strconv-to-enc: New file.
61319         * lib/uniconv/u16-strconv-to-enc.c: New file.
61320         * lib/uniconv/u-strconv-to-enc.h: New file.
61321         * modules/uniconv/u16-strconv-to-enc-tests: New file.
61322         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
61323
61324         * modules/uniconv/u8-strconv-to-enc: New file.
61325         * lib/uniconv/u8-strconv-to-enc.c: New file.
61326         * modules/uniconv/u8-strconv-to-enc-tests: New file.
61327         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
61328
61329         * modules/uniconv/u32-strconv-from-enc: New file.
61330         * lib/uniconv/u32-strconv-from-enc.c: New file.
61331         * modules/uniconv/u32-strconv-from-enc-tests: New file.
61332         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
61333
61334         * modules/uniconv/u16-strconv-from-enc: New file.
61335         * lib/uniconv/u16-strconv-from-enc.c: New file.
61336         * modules/uniconv/u16-strconv-from-enc-tests: New file.
61337         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
61338
61339         * modules/uniconv/u8-strconv-from-enc: New file.
61340         * lib/uniconv/u8-strconv-from-enc.c: New file.
61341         * lib/uniconv/u-strconv-from-enc.h: New file.
61342         * modules/uniconv/u8-strconv-from-enc-tests: New file.
61343         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
61344
61345         * modules/uniconv/u32-conv-from-enc: New file.
61346         * lib/uniconv/u32-conv-from-enc.c: New file.
61347         * modules/uniconv/u32-conv-from-enc-tests: New file.
61348         * tests/uniconv/test-u32-conv-from-enc.c: New file.
61349
61350         * modules/uniconv/u16-conv-from-enc: New file.
61351         * lib/uniconv/u16-conv-from-enc.c: New file.
61352         * lib/uniconv/u-conv-from-enc.h: New file.
61353         * modules/uniconv/u16-conv-from-enc-tests: New file.
61354         * tests/uniconv/test-u16-conv-from-enc.c: New file.
61355
61356         * modules/uniconv/u8-conv-from-enc: New file.
61357         * lib/uniconv/u8-conv-from-enc.c: New file.
61358         * modules/uniconv/u8-conv-from-enc-tests: New file.
61359         * tests/uniconv/test-u8-conv-from-enc.c: New file.
61360
61361         * modules/uniconv/base: New file.
61362         * lib/uniconv.h: New file.
61363
61364 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         * doc/gnulib-tool.texi (Initial import): Update to match current
61367         behavior with strdup module.
61368         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
61369         * lib/memmem.h: Remove; all uses removed.  This is now done
61370         by <string.h>.
61371         * lib/mempcpy.h: Likewise.
61372         * lib/memrchr.h: Likewise.
61373         * lib/stpcpy.h: Likewise.
61374         * lib/stpncpy.h: Likewise.
61375         * lib/strcase.h: Likewise.
61376         * lib/strchrnul.h: Likewise.
61377         * lib/strdup.h: Likewise.
61378         * lib/strndup.h: Likewise.
61379         * lib/strnlen.h: Likewise.
61380         * lib/strpbrk.h: Likewise.
61381         * lib/strsep.h: Likewise.
61382         * lib/strstr.h: Likewise.
61383         * lib/strtok_r.h: Likewise.
61384         * lib/string_.h: New file.
61385         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
61386         Rely on <string.h> instead.
61387         * lib/canon-host.c: Likewise.
61388         * lib/chdir-long.c: Likewise.
61389         * lib/concatpath.c: Likewise.
61390         * lib/exclude.c: Likewise.
61391         * lib/fchdir.c: Likewise.
61392         * lib/getaddrinfo.c: Likewise.
61393         * lib/getcwd.c: Likewise.
61394         * lib/getsubopt.c: Likewise.
61395         * lib/glob.c: Likewise.
61396         * lib/hard-locale.c: Likewise.
61397         * lib/iconvme.c: Likewise.
61398         * lib/javacomp.c: Likewise.
61399         * lib/mempcpy.c: Likewise.
61400         * lib/memrchr.c: Likewise.
61401         * lib/regex_internal.h: Likewise.
61402         * lib/stpncpy.c: Likewise.
61403         * lib/strcasecmp.c: Likewise.
61404         * lib/strchrnul.c: Likewise.
61405         * lib/strdup.c: Likewise.
61406         * lib/striconv.c: Likewise.
61407         * lib/striconveh.c: Likewise.
61408         * lib/striconveha.c: Likewise.
61409         * lib/strncasecmp.c: Likewise.
61410         * lib/strndup.c: Likewise.
61411         * lib/strnlen.c: Likewise.
61412         * lib/strsep.c: Likewise.
61413         * lib/strstr.c: Likewise.
61414         * lib/strtok_r.c: Likewise.
61415         * lib/userspec.c: Likewise.
61416         * lib/w32spawn.h: Likewise.
61417         * lib/xstrndup.c: Likewise.
61418         * lib/mountlist.c (strstr): Remove decl.
61419         * m4/string_h.m4: New file.
61420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
61421         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
61422         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
61423         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
61424         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
61425         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
61426         Set REPLACE_STRCASECMP if necessary.
61427         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
61428         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
61429         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
61430         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
61431         HAVE_DECL_STRDUP if necessary.
61432         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
61433         since gl_FUNC_STRNDUP does that now.
61434         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
61435         Check for decl here...
61436         (gl_PREREQ_STRNLEN): ... not here.
61437         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
61438         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
61439         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
61440         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
61441         necessary.
61442         * modules/string: New file.
61443         * modules/memmem (Files): Remove special-purpose include file.
61444         (Depends-on): Add string.
61445         (Include): Include <string.h>, not the removed file.
61446         * modules/mempcpy: Likewise.
61447         * modules/memrchr: Likewise.
61448         * modules/stpcpy: Likewise.
61449         * modules/stpncpy: Likewise.
61450         * modules/strcase: Likewise.
61451         * modules/strchrnul: Likewise.
61452         * modules/strdup: Likewise.
61453         * modules/strndup: Likewise.
61454         * modules/strnlen: Likewise.
61455         * modules/strpbrk: Likewise.
61456         * modules/strsep: Likewise.
61457         * modules/strstr: Likewise.
61458         * modules/strtok_r: Likewise.
61459         * tests/test-dirname.c: Don't include "strdup.h", since
61460         <string.h> now suffices.
61461         * tests/test-memmem.c: Don't include "memmem.h", since
61462         <string.h> now suffices.
61463
61464 2007-01-25  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
61467         *resultp is 0.
61468
61469         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
61470         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
61471         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
61472         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
61473
61474         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
61475         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
61476         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
61477         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
61478         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
61479         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
61480
61481 2007-01-24  Bruno Haible  <bruno@clisp.org>
61482
61483         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
61484         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
61485         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
61486         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
61487         gl_FUNC_FTS_CORE.
61488         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
61489         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
61490         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61491         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
61492         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
61493         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
61494         gl_FUNC_FCHOWNAT.
61495         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
61496         gl_FUNC_STRFTIME.
61497         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
61498         Reported by Ralf Wildenhues.
61499
61500 2007-01-24  Bruno Haible  <bruno@clisp.org>
61501
61502         Drop AC_REQUIRE calls that are redundant with the module dependencies.
61503         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
61504         gl_GETADDRINFO.
61505         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
61506         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
61507         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
61508
61509 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
61510
61511         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
61512         Don't use 'exit'; just return from 'main'.
61513         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
61514
61515         * lib/fnmatch_.h: Readjust white space and comments to match
61516         glibc, to avoid spurious diffs.
61517
61518 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
61521         2004-12-01 change by Jakub Jelinek, since this code won't compile
61522         if !LIBC.  Problem reported by Bob Proulx.
61523
61524 2007-01-23  Bruno Haible  <bruno@clisp.org>
61525
61526         * lib/striconveh.c: Include c-strcaseeq.h.
61527         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
61528         * modules/striconveh (Depends-on): Add c-strcaseeq.
61529
61530 2007-01-23  Bruno Haible  <bruno@clisp.org>
61531
61532         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
61533
61534         * modules/c-strcaseeq: New file.
61535         * lib/c-strcaseeq.h: New file.
61536
61537         * modules/streq: New file.
61538         * lib/streq.h: New file.
61539
61540 2007-01-23  Bruno Haible  <bruno@clisp.org>
61541
61542         * modules/striconveha-tests: New file.
61543         * tests/test-striconveha.c: New file.
61544
61545         * lib/striconveha.h: Include <stdbool.h>.
61546         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
61547         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
61548         (mem_iconveha_notranslit): Renamed from mem_iconveha.
61549         (mem_iconveha): New function.
61550         (str_iconveha_notranslit): Renamed from str_iconveha.
61551         (str_iconveha): New function.
61552         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
61553         c-strcase.
61554
61555 2007-01-23  Bruno Haible  <bruno@clisp.org>
61556
61557         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61558         encodings without forgiving before trying any encoding with handler.
61559         (str_iconveha): Try all encodings without forgiving before trying any
61560         encoding with handler.
61561
61562 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         Import the following changes from libc.
61565
61566         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61567
61568         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61569
61570         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61571
61572         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61573         normal_bracket label.
61574
61575         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61576
61577         [BZ #361]
61578         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61579         to normal_bracket after fetching the next character.
61580
61581 2007-01-22  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61584         argument.
61585         * lib/striconveh.c (iconv_carefully_1): New function.
61586         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61587         argument.
61588         (str_cd_iconveh): Update.
61589         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61590         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61591         * tests/test-striconveh.c (MAGIC): New macro.
61592         (new_offsets): New function.
61593         (main): Test call with and without offsets.
61594
61595 2007-01-22  Bruno Haible  <bruno@clisp.org>
61596
61597         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61598         * modules/sys_select (Makefile.am): Likewise.
61599         * modules/sys_socket (Makefile.am): Likewise.
61600         * modules/sys_time (Makefile.am): Likewise.
61601
61602 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * modules/gettimeofday (License): Change from GPL to LGPL, since
61605         gettimeofday is a library function.
61606
61607 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61608
61609         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61610
61611 2007-01-21  Bruno Haible  <bruno@clisp.org>
61612
61613         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61614
61615 2007-01-21  Bruno Haible  <bruno@clisp.org>
61616
61617         * modules/striconveha: New file.
61618         * lib/striconveha.h: New file.
61619         * lib/striconveha.c: New file.
61620         * MODULES.html.sh (Internationalization functions): Add striconveha.
61621         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61622         string.
61623         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61624
61625 2007-01-21  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61628         * lib/striconveh.c (str_iconveh): Likewise.
61629
61630 2007-01-21  Bruno Haible  <bruno@clisp.org>
61631
61632         * lib/striconveh.h (mem_iconveh): New declaration.
61633         * lib/striconveh.c (mem_iconveh): New function.
61634         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61635
61636 2007-01-21  Bruno Haible  <bruno@clisp.org>
61637
61638         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61639
61640         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61641         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61642         original result buffer.
61643         (str_cd_iconveh): Update.
61644         * tests/test-striconveh.c (main): Update.
61645
61646         * lib/striconv.h (mem_cd_iconv): Change specification.
61647         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61648         result buffer.
61649         (str_cd_iconv): Update.
61650         * tests/test-striconv.c (main): Update.
61651
61652 2007-01-21  Bruno Haible  <bruno@clisp.org>
61653
61654         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61655
61656 2007-01-20  Jim Meyering  <jim@meyering.net>
61657
61658         * lib/userspec.c (parse_with_separator): If a user or group string
61659         starts with "+", skip the corresponding name-to-ID look-up, since
61660         such a look-up must fail: user and group names may not include "+".
61661
61662 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61663
61664         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61665         since we now assume the sys_time module.
61666         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61667         check for sys/time.h; no longer needed.
61668         * modules/poll (Depends-on): Depend on sys_time.
61669
61670 2007-01-18  Bruno Haible  <bruno@clisp.org>
61671
61672         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61673         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61674
61675         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61676         gettimeofday.
61677
61678         * tests/test-gettimeofday.c: Include <time.h>.
61679         (dummy): Remove variable.
61680
61681         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61682         gl_HEADER_SYS_TIME_H.
61683         (gl_HEADER_SYS_TIME_H): New macro.
61684
61685         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61686         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61687         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61688         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61689         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61690         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61691         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61692         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61693         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61694         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61695         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61696
61697         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61698         last change; it caused a compilation error when cross-compiling to
61699         Cygwin.
61700
61701 2007-01-18  Jim Meyering  <jim@meyering.net>
61702
61703         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61704         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61705         than the race-prone "test -d sys || mkdir sys".
61706         (configure.ac): Use AC_PROG_MKDIR_P.
61707         * modules/sys_select: Likewise.
61708         * modules/sys_socket: Likewise.
61709         * modules/sys_time: Likewise.
61710
61711 2007-01-18  Eric Blake  <ebb9@byu.net>
61712
61713         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61714         replace gettimeofday.
61715         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61716         name, to avoid infinite recursion.
61717
61718 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61719
61720         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61721         module sys_time.
61722         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61723         assume timespec.h defines struct timeval.
61724         * lib/settime.c: Likewise.
61725         * lib/utimens.c: Likewise.
61726         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61727         since we now assume the gettimeofday module.
61728         * lib/tempname.c (__gen_tempname): Likewise.
61729         * lib/gettimeofday.h: Remove.
61730         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61731         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61732         Include <time.h>, for 'time()'.
61733         (localtime_buffer_addr): Also use this workaround if
61734         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61735         to simplify the uses.  All uses changed.
61736         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61737         that #undef is inside {}, and 'const' follows type name consistently.
61738         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61739         (gettimeofday): Do not use the maximum possible value for
61740         tv->tv_usec, since that might break usages other than ls.c.
61741         Instead, we'll leave ls.c alone.  This undoes today's patch
61742         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61743         we've never observed the problem but might as well keep the
61744         canary.
61745         * lib/nanosleep.c: Include timespec.h first, for interface check.
61746         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61747         now assume the sys_time module.
61748         * lib/tempname.c: Likewise.
61749         * lib/timespec.h: Likewise.
61750         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61751         needed.
61752         * lib/strftime.c: Likewise.
61753         * lib/timespec.h: Likewise.
61754         * lib/posixtm.c: Include posixtm.h first, for interface check.
61755         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61756         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61757         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61758         * lib/sys_time_.h: New file.
61759         * lib/timespec.h (struct timespec): Use long int, not long.
61760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61761         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61762         Remove obsolescent call to AC_HEADER_TIME.
61763         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61765         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61766         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61767         Likewise.
61768         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61769         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61770         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61771         into the sys_time module.  Check for gettimeofday just once.
61772         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61773         for gettimeofday signature to just check the signature.  Merely
61774         compile it, since linking doesn't test signature.  Improve test for
61775         whether gettimeofday.o is actually needed.
61776         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61777         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61778         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61779         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61780         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61781         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61782         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61783         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61784         than worrying about sys/time.h.
61785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61786         Don't bother worrying about TIME_WITH_SYS_TIME.
61787         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61788         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61789         * m4/sys_time_h.m4: New file.
61790         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61791         Don't include sys/time.h.  Return from main rather than exiting.
61792         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61793         all uses changed.
61794         * modules/gethrxtime (Depends-on): Add sys_time.
61795         * modules/gettime (Depends-on): Likewise.
61796         * modules/gettimeofday (Depends-on): Likewise.
61797         * modules/nanosleep (Depends-on): Likewise.
61798         * modules/settime (Depends-on): Likewise.
61799         * modules/tempname (Depends-on): Likewise.
61800         * modules/utimens (Depends-on): Likewise.
61801         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61802         (Include): Change back to <sys/time.h>.
61803         (Maintainer): Add self.
61804         * modules/sys_time: New file.
61805         * modules/tempname (Depends-on): Add gettimeofday.
61806         * tests/test-gettimeofday.c: Include <sys/time.h>
61807         rather than gettimeofday.h.
61808
61809 2007-01-17  Bruno Haible  <bruno@clisp.org>
61810
61811         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61812         the license default to GPL.
61813         (func_create_testdir): Don't complain if a module is LGPL and its
61814         tests module depends on GPLed modules.
61815
61816 2007-01-17  Bruno Haible  <bruno@clisp.org>
61817
61818         * lib/gettimeofday.c (gettimeofday): Add code for the case
61819         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61820         maximum possible value for tv->tv_usec, rather than the minimum one.
61821
61822 2005-10-08  Martin Lambers  <marlam@marlam.de>
61823 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61824 2007-01-16  Bruno Haible  <bruno@clisp.org>
61825
61826         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61827         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61828         gl_FUNC_GETTIMEOFDAY.
61829         (Include): Add gettimeofday.h.
61830         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61831         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61832         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61833         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61834         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61835         * lib/gettimeofday.h: New file.
61836         * lib/gettimeofday.c: Include <sys/timeb.h>.
61837         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61838         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61839         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61840         fall back on time().
61841
61842         * tests/test-gettimeofday.c: New file.
61843         * modules/gettimeofday-tests: New file.
61844
61845 2007-01-16  Eric Blake  <ebb9@byu.net>
61846
61847         * modules/fnmatch (Depends-on): Depend on wchar.
61848         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61849         * m4/fnmatch.m4: Likewise.
61850         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61851         * m4/mbchar.m4: Likewise.
61852         * modules/mbswidth (Depends-on): Depend on wchar.
61853         * lib/mbswidth.c: Assume <wchar.h>.
61854         * m4/mbswidth.m4: Likewise.
61855         * modules/quotearg (Depends-on): Depend on wchar.
61856         * lib/quotearg.c: Assume <wchar.h>.
61857         * m4/quotearg.m4: Likewise.
61858         * modules/regex (Depends-on): Depend on wchar.
61859         * lib/regex_internal.h: Assume <wchar.h>.
61860         * m4/regex.m4: Likewise.
61861         * modules/stdint (Depends-on): Depend on wchar.
61862         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61863         * m4/stdint.m4: Likewise.
61864         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61865         * modules/strftime (Depends-on): Depend on wchar.
61866         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61867         * modules/strtol (Depends-on): Depend on wchar.
61868         * lib/strtol.c: Assume <wchar.h>.
61869         * modules/wcwidth (Depends-on): Depend on wchar.
61870         * lib/wcwidth.h: Assume <wchar.h>.
61871         * m4/wcwidth.m4: Likewise.
61872
61873 2007-01-16  Bruno Haible  <bruno@clisp.org>
61874
61875         * modules/csharpexec-script: New, created from...
61876         * modules/csharpexec: ... this.
61877
61878 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61879
61880         * modules/javaexec-script: New, created from...
61881         * modules/javaexec: ... this.
61882
61883 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61884
61885         * modules/poll (Dependencies): Add sys_select.
61886
61887 2007-01-15  Jim Meyering  <jim@meyering.net>
61888
61889         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61890         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61891         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61892         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61893
61894 2007-01-15  Bruno Haible  <bruno@clisp.org>
61895
61896         * modules/striconveh: New file.
61897         * lib/striconveh.h: New file.
61898         * lib/striconveh.c: New file.
61899         * MODULES.html.sh (Internationalization functions): Add striconveh.
61900
61901         * modules/striconveh-tests: New file.
61902         * tests/test-striconveh.c: New file.
61903
61904 2007-01-15  Bruno Haible  <bruno@clisp.org>
61905
61906         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61907         not from GNU libiconv or GNU libc.
61908
61909 2007-01-15  Bruno Haible  <bruno@clisp.org>
61910
61911         * doc/gnulib-intro.texi (Copyright): Explain the different license
61912         terms for module descriptions, autoconf macros, tests, documentation.
61913
61914 2007-01-14  Bruno Haible  <bruno@clisp.org>
61915
61916         * modules/striconv-tests: New file.
61917         * tests/test-striconv.c: New file.
61918
61919 2007-01-14  Bruno Haible  <bruno@clisp.org>
61920
61921         * modules/iconv-tests: New file.
61922         * tests/test-iconv.c: New file.
61923
61924 2007-01-14  Bruno Haible  <bruno@clisp.org>
61925
61926         * gnulib-tool (func_get_license): For test modules, use the license of
61927         the main module.
61928
61929 2007-01-14  Bruno Haible  <bruno@clisp.org>
61930
61931         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61932         if iconv is found to exist.
61933
61934 2007-01-14  Bruno Haible  <bruno@clisp.org>
61935
61936         * modules/c-ctype-tests: New file.
61937         * tests/test-c-ctype.c: New file.
61938
61939 2007-01-14  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/binary-io-tests: New file.
61942         * tests/test-binary-io.sh: New file.
61943         * tests/test-binary-io.c: New file.
61944
61945 2007-01-14  Bruno Haible  <bruno@clisp.org>
61946
61947         * modules/array-oset-tests: New file.
61948         * tests/test-array_oset.c: New file.
61949
61950 2007-01-14  Bruno Haible  <bruno@clisp.org>
61951
61952         * modules/array-list-tests: New file.
61953         * tests/test-array_list.c: New file.
61954
61955 2007-01-14  Bruno Haible  <bruno@clisp.org>
61956
61957         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61958         and make.
61959         Reported by Simon Josefsson in
61960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61961
61962 2007-01-14  Bruno Haible  <bruno@clisp.org>
61963
61964         * modules/allocsa-tests: New file.
61965         * tests/test-allocsa.c: New file.
61966
61967 2007-01-14  Bruno Haible  <bruno@clisp.org>
61968
61969         * modules/fchdir (Depends-on): Add absolute-header.
61970         * modules/unistd (Depends-on): Likewise.
61971
61972 2006-12-30  Bruno Haible  <bruno@clisp.org>
61973
61974         * modules/fchdir: New file.
61975         * modules/unistd (Files): Add lib/unistd_.h.
61976         (Makefile.am): Generate unistd.h from unistd_.h.
61977         * lib/fchdir.c: New file.
61978         * lib/dirent_.h: New file.
61979         * lib/unistd_.h: New file.
61980         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61981         * m4/fchdir.m4: New file.
61982         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61983         (gl_HEADER_UNISTD): Invoke it.
61984         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61985         function.
61986         * lib/backupfile.c (opendir, closedir): Undefine.
61987         * lib/chown.c (open, close): Undefine.
61988         * lib/clean-temp.c (open, close): Undefine.
61989         * lib/copy-file.c (open, close): Undefine.
61990         * lib/execute.c (open, close): Undefine.
61991         * lib/fsusage.c (open, close): Undefine.
61992         * lib/gc-gnulib.c (open, close): Undefine.
61993         * lib/getcwd.c (opendir, closedir): Undefine.
61994         * lib/glob.c (opendir, closedir): Undefine.
61995         * lib/javacomp.c (open, close): Undefine.
61996         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61997         * lib/openat-proc.c (open, close): Undefine.
61998         * lib/pagealign_alloc.c (open, close): Undefine.
61999         * lib/pipe.c (open, close): Undefine.
62000         * lib/progreloc.c (open, close): Undefine.
62001         * lib/savedir.c (opendir, closedir): Undefine.
62002         * lib/utime.c (open, close): Undefine.
62003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62004
62005 2007-01-10  Bruno Haible  <bruno@clisp.org>
62006
62007         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62008
62009 2007-01-12  Eric Blake  <ebb9@byu.net>
62010
62011         Provide a robust <wchar.h>.  Further simplifications are now
62012         possible in other modules, but not included here.
62013         * modules/wchar: New module.
62014         * m4/wchar.m4: New file.
62015         * lib/wchar_.h: Likewise.
62016         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62017         of the new module.
62018         * MODULES.html.sh (Extended multibyte and wide character utilities):
62019         New section.
62020
62021 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
62022
62023         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
62024         to a reasonable default for memory allocation.
62025         (xreadlink): Don't allocate a huge buffer, to work around a buggy
62026         file system that reports garbage st_size values for symlinks.
62027         Problem reported by Liyang Hu.
62028
62029 2007-01-11  Simon Josefsson  <simon@josefsson.org>
62030
62031         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
62032         Emacs .#* auto-save files).
62033
62034 2007-01-11  Bruno Haible  <bruno@clisp.org>
62035
62036         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
62037         directory.
62038
62039 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         Use @...@ consistently in lib/wctype_.h.
62042         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
62043         on it being set to 1 or 0.
62044         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
62045         go back to AC_SUBSTing it.
62046         * modules/wctype (Makefile.am): Undo previous change.
62047
62048 2007-01-10  Eric Blake  <ebb9@byu.net>
62049
62050         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
62051         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
62052         * modules/wctype (Makefile.am): Likewise.
62053         Reported by Chris McGuire.
62054
62055 2007-01-10  Jim Meyering  <jim@meyering.net>
62056
62057         fts.c: a small readability/maintainability improvement
62058         * lib/fts.c (fts_read): Make this code slightly more readable and
62059         maintainable by hoisting the "sp->fts_cur = p" assignments to
62060         immediately follow the statements that set P.  Derived from
62061         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62062
62063 2007-01-10  Eric Blake  <ebb9@byu.net>
62064
62065         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62066         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62068         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62069         Reported by Chris McGuire.
62070
62071 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62072
62073         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62074         in sed script.
62075
62076 2007-01-09  Bruno Haible  <bruno@clisp.org>
62077
62078         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62079         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62080         variables.
62081         (func_module): Use them.
62082
62083 2007-01-09  Bruno Haible  <bruno@clisp.org>
62084
62085         * modules/unistr/base: New file.
62086         * lib/unistr.h: New file.
62087
62088         * modules/unistr/u8-to-u16: New file.
62089         * lib/unistr/u8-to-u16.c: New file.
62090
62091         * modules/unistr/u8-to-u32: New file.
62092         * lib/unistr/u8-to-u32.c: New file.
62093
62094         * modules/unistr/u16-to-u8: New file.
62095         * lib/unistr/u16-to-u8.c: New file.
62096
62097         * modules/unistr/u16-to-u32: New file.
62098         * lib/unistr/u16-to-u32.c: New file.
62099
62100         * modules/unistr/u32-to-u8: New file.
62101         * lib/unistr/u32-to-u8.c: New file.
62102
62103         * modules/unistr/u32-to-u16: New file.
62104         * lib/unistr/u32-to-u16.c: New file.
62105
62106         * modules/unistr/u8-check: New file.
62107         * modules/unistr/u16-check: New file.
62108         * modules/unistr/u32-check: New file.
62109         * lib/unistr/u8-check.c: New file.
62110         * lib/unistr/u16-check.c: New file.
62111         * lib/unistr/u32-check.c: New file.
62112
62113         * modules/unistr/u8-chr: New file.
62114         * modules/unistr/u16-chr: New file.
62115         * modules/unistr/u32-chr: New file.
62116         * lib/unistr/u8-chr.c: New file.
62117         * lib/unistr/u16-chr.c: New file.
62118         * lib/unistr/u32-chr.c: New file.
62119
62120         * modules/unistr/u8-cmp: New file.
62121         * modules/unistr/u16-cmp: New file.
62122         * modules/unistr/u32-cmp: New file.
62123         * lib/unistr/u8-cmp.c: New file.
62124         * lib/unistr/u16-cmp.c: New file.
62125         * lib/unistr/u32-cmp.c: New file.
62126
62127         * modules/unistr/u8-cpy: New file.
62128         * modules/unistr/u16-cpy: New file.
62129         * modules/unistr/u32-cpy: New file.
62130         * lib/unistr/u8-cpy.c: New file.
62131         * lib/unistr/u16-cpy.c: New file.
62132         * lib/unistr/u32-cpy.c: New file.
62133         * lib/unistr/u-cpy.h: New file.
62134
62135         * modules/unistr/u8-cpy-alloc: New file.
62136         * modules/unistr/u16-cpy-alloc: New file.
62137         * modules/unistr/u32-cpy-alloc: New file.
62138         * lib/unistr/u8-cpy-alloc.c: New file.
62139         * lib/unistr/u16-cpy-alloc.c: New file.
62140         * lib/unistr/u32-cpy-alloc.c: New file.
62141         * lib/unistr/u-cpy-alloc.h: New file.
62142
62143         * modules/unistr/u8-endswith: New file.
62144         * modules/unistr/u16-endswith: New file.
62145         * modules/unistr/u32-endswith: New file.
62146         * lib/unistr/u8-endswith.c: New file.
62147         * lib/unistr/u16-endswith.c: New file.
62148         * lib/unistr/u32-endswith.c: New file.
62149         * lib/unistr/u-endswith.h: New file.
62150
62151         * modules/unistr/u8-mblen: New file.
62152         * modules/unistr/u16-mblen: New file.
62153         * modules/unistr/u32-mblen: New file.
62154         * lib/unistr/u8-mblen.c: New file.
62155         * lib/unistr/u16-mblen.c: New file.
62156         * lib/unistr/u32-mblen.c: New file.
62157
62158         * modules/unistr/u8-mbtouc: New file.
62159         * modules/unistr/u16-mbtouc: New file.
62160         * modules/unistr/u32-mbtouc: New file.
62161         * lib/unistr/u8-mbtouc.c: New file.
62162         * lib/unistr/u16-mbtouc.c: New file.
62163         * lib/unistr/u32-mbtouc.c: New file.
62164
62165         * modules/unistr/u8-mbtouc-safe: New file.
62166         * modules/unistr/u16-mbtouc-safe: New file.
62167         * modules/unistr/u32-mbtouc-safe: New file.
62168         * lib/unistr/u8-mbtouc-safe.c: New file.
62169         * lib/unistr/u16-mbtouc-safe.c: New file.
62170         * lib/unistr/u32-mbtouc-safe.c: New file.
62171
62172         * modules/unistr/u8-move: New file.
62173         * modules/unistr/u16-move: New file.
62174         * modules/unistr/u32-move: New file.
62175         * lib/unistr/u8-move.c: New file.
62176         * lib/unistr/u16-move.c: New file.
62177         * lib/unistr/u32-move.c: New file.
62178         * lib/unistr/u-move.h: New file.
62179
62180         * modules/unistr/u8-next: New file.
62181         * modules/unistr/u16-next: New file.
62182         * modules/unistr/u32-next: New file.
62183         * lib/unistr/u8-next.c: New file.
62184         * lib/unistr/u16-next.c: New file.
62185         * lib/unistr/u32-next.c: New file.
62186
62187         * modules/unistr/u8-prev: New file.
62188         * modules/unistr/u16-prev: New file.
62189         * modules/unistr/u32-prev: New file.
62190         * lib/unistr/u8-prev.c: New file.
62191         * lib/unistr/u16-prev.c: New file.
62192         * lib/unistr/u32-prev.c: New file.
62193
62194         * modules/unistr/u8-set: New file.
62195         * modules/unistr/u16-set: New file.
62196         * modules/unistr/u32-set: New file.
62197         * lib/unistr/u8-set.c: New file.
62198         * lib/unistr/u16-set.c: New file.
62199         * lib/unistr/u32-set.c: New file.
62200         * lib/unistr/u-set.h: New file.
62201
62202         * modules/unistr/u8-startswith: New file.
62203         * modules/unistr/u16-startswith: New file.
62204         * modules/unistr/u32-startswith: New file.
62205         * lib/unistr/u8-startswith.c: New file.
62206         * lib/unistr/u16-startswith.c: New file.
62207         * lib/unistr/u32-startswith.c: New file.
62208         * lib/unistr/u-startswith.h: New file.
62209
62210         * modules/unistr/u8-stpcpy: New file.
62211         * modules/unistr/u16-stpcpy: New file.
62212         * modules/unistr/u32-stpcpy: New file.
62213         * lib/unistr/u8-stpcpy.c: New file.
62214         * lib/unistr/u16-stpcpy.c: New file.
62215         * lib/unistr/u32-stpcpy.c: New file.
62216         * lib/unistr/u-stpcpy.h: New file.
62217
62218         * modules/unistr/u8-stpncpy: New file.
62219         * modules/unistr/u16-stpncpy: New file.
62220         * modules/unistr/u32-stpncpy: New file.
62221         * lib/unistr/u8-stpncpy.c: New file.
62222         * lib/unistr/u16-stpncpy.c: New file.
62223         * lib/unistr/u32-stpncpy.c: New file.
62224         * lib/unistr/u-stpncpy.h: New file.
62225
62226         * modules/unistr/u8-strcat: New file.
62227         * modules/unistr/u16-strcat: New file.
62228         * modules/unistr/u32-strcat: New file.
62229         * lib/unistr/u8-strcat.c: New file.
62230         * lib/unistr/u16-strcat.c: New file.
62231         * lib/unistr/u32-strcat.c: New file.
62232         * lib/unistr/u-strcat.h: New file.
62233
62234         * modules/unistr/u8-strchr: New file.
62235         * modules/unistr/u16-strchr: New file.
62236         * modules/unistr/u32-strchr: New file.
62237         * lib/unistr/u8-strchr.c: New file.
62238         * lib/unistr/u16-strchr.c: New file.
62239         * lib/unistr/u32-strchr.c: New file.
62240
62241         * modules/unistr/u8-strcmp: New file.
62242         * modules/unistr/u16-strcmp: New file.
62243         * modules/unistr/u32-strcmp: New file.
62244         * lib/unistr/u8-strcmp.c: New file.
62245         * lib/unistr/u16-strcmp.c: New file.
62246         * lib/unistr/u32-strcmp.c: New file.
62247
62248         * modules/unistr/u8-strcpy: New file.
62249         * modules/unistr/u16-strcpy: New file.
62250         * modules/unistr/u32-strcpy: New file.
62251         * lib/unistr/u8-strcpy.c: New file.
62252         * lib/unistr/u16-strcpy.c: New file.
62253         * lib/unistr/u32-strcpy.c: New file.
62254         * lib/unistr/u-strcpy.h: New file.
62255
62256         * modules/unistr/u8-strcspn: New file.
62257         * modules/unistr/u16-strcspn: New file.
62258         * modules/unistr/u32-strcspn: New file.
62259         * lib/unistr/u8-strcspn.c: New file.
62260         * lib/unistr/u16-strcspn.c: New file.
62261         * lib/unistr/u32-strcspn.c: New file.
62262         * lib/unistr/u-strcspn.h: New file.
62263
62264         * modules/unistr/u8-strdup: New file.
62265         * modules/unistr/u16-strdup: New file.
62266         * modules/unistr/u32-strdup: New file.
62267         * lib/unistr/u8-strdup.c: New file.
62268         * lib/unistr/u16-strdup.c: New file.
62269         * lib/unistr/u32-strdup.c: New file.
62270         * lib/unistr/u-strdup.h: New file.
62271
62272         * modules/unistr/u8-strlen: New file.
62273         * modules/unistr/u16-strlen: New file.
62274         * modules/unistr/u32-strlen: New file.
62275         * lib/unistr/u8-strlen.c: New file.
62276         * lib/unistr/u16-strlen.c: New file.
62277         * lib/unistr/u32-strlen.c: New file.
62278         * lib/unistr/u-strlen.h: New file.
62279
62280         * modules/unistr/u8-strmblen: New file.
62281         * modules/unistr/u16-strmblen: New file.
62282         * modules/unistr/u32-strmblen: New file.
62283         * lib/unistr/u8-strmblen.c: New file.
62284         * lib/unistr/u16-strmblen.c: New file.
62285         * lib/unistr/u32-strmblen.c: New file.
62286
62287         * modules/unistr/u8-strmbtouc: New file.
62288         * modules/unistr/u16-strmbtouc: New file.
62289         * modules/unistr/u32-strmbtouc: New file.
62290         * lib/unistr/u8-strmbtouc.c: New file.
62291         * lib/unistr/u16-strmbtouc.c: New file.
62292         * lib/unistr/u32-strmbtouc.c: New file.
62293
62294         * modules/unistr/u8-strncat: New file.
62295         * modules/unistr/u16-strncat: New file.
62296         * modules/unistr/u32-strncat: New file.
62297         * lib/unistr/u8-strncat.c: New file.
62298         * lib/unistr/u16-strncat.c: New file.
62299         * lib/unistr/u32-strncat.c: New file.
62300         * lib/unistr/u-strncat.h: New file.
62301
62302         * modules/unistr/u8-strncmp: New file.
62303         * modules/unistr/u16-strncmp: New file.
62304         * modules/unistr/u32-strncmp: New file.
62305         * lib/unistr/u8-strncmp.c: New file.
62306         * lib/unistr/u16-strncmp.c: New file.
62307         * lib/unistr/u32-strncmp.c: New file.
62308
62309         * modules/unistr/u8-strncpy: New file.
62310         * modules/unistr/u16-strncpy: New file.
62311         * modules/unistr/u32-strncpy: New file.
62312         * lib/unistr/u8-strncpy.c: New file.
62313         * lib/unistr/u16-strncpy.c: New file.
62314         * lib/unistr/u32-strncpy.c: New file.
62315         * lib/unistr/u-strncpy.h: New file.
62316
62317         * modules/unistr/u8-strnlen: New file.
62318         * modules/unistr/u16-strnlen: New file.
62319         * modules/unistr/u32-strnlen: New file.
62320         * lib/unistr/u8-strnlen.c: New file.
62321         * lib/unistr/u16-strnlen.c: New file.
62322         * lib/unistr/u32-strnlen.c: New file.
62323         * lib/unistr/u-strnlen.h: New file.
62324
62325         * modules/unistr/u8-strpbrk: New file.
62326         * modules/unistr/u16-strpbrk: New file.
62327         * modules/unistr/u32-strpbrk: New file.
62328         * lib/unistr/u8-strpbrk.c: New file.
62329         * lib/unistr/u16-strpbrk.c: New file.
62330         * lib/unistr/u32-strpbrk.c: New file.
62331         * lib/unistr/u-strpbrk.h: New file.
62332
62333         * modules/unistr/u8-strrchr: New file.
62334         * modules/unistr/u16-strrchr: New file.
62335         * modules/unistr/u32-strrchr: New file.
62336         * lib/unistr/u8-strrchr.c: New file.
62337         * lib/unistr/u16-strrchr.c: New file.
62338         * lib/unistr/u32-strrchr.c: New file.
62339
62340         * modules/unistr/u8-strspn: New file.
62341         * modules/unistr/u16-strspn: New file.
62342         * modules/unistr/u32-strspn: New file.
62343         * lib/unistr/u8-strspn.c: New file.
62344         * lib/unistr/u16-strspn.c: New file.
62345         * lib/unistr/u32-strspn.c: New file.
62346         * lib/unistr/u-strspn.h: New file.
62347
62348         * modules/unistr/u8-strstr: New file.
62349         * modules/unistr/u16-strstr: New file.
62350         * modules/unistr/u32-strstr: New file.
62351         * lib/unistr/u8-strstr.c: New file.
62352         * lib/unistr/u16-strstr.c: New file.
62353         * lib/unistr/u32-strstr.c: New file.
62354         * lib/unistr/u-strstr.h: New file.
62355
62356         * modules/unistr/u8-strtok: New file.
62357         * modules/unistr/u16-strtok: New file.
62358         * modules/unistr/u32-strtok: New file.
62359         * lib/unistr/u8-strtok.c: New file.
62360         * lib/unistr/u16-strtok.c: New file.
62361         * lib/unistr/u32-strtok.c: New file.
62362         * lib/unistr/u-strtok.h: New file.
62363
62364         * modules/unistr/u8-uctomb: New file.
62365         * modules/unistr/u16-uctomb: New file.
62366         * modules/unistr/u32-uctomb: New file.
62367         * lib/unistr/u8-uctomb.c: New file.
62368         * lib/unistr/u16-uctomb.c: New file.
62369         * lib/unistr/u32-uctomb.c: New file.
62370
62371         * MODULES.html.sh (Unicode string functions): Add the new modules.
62372
62373 2007-01-08  Bruno Haible  <bruno@clisp.org>
62374
62375         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
62376         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
62377         subdirectories.
62378
62379 2007-01-08  Karl Berry  <karl@gnu.org>
62380
62381         * doc/error.texi: mention that main() fns must set program_name
62382         when progname is used.
62383
62384 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
62387         WCTYPE_H is empty, for the benefit of builds from non-distclean
62388         directories.  Problem reported by Eric Blake in
62389         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
62390
62391 2007-01-08  Bruno Haible  <bruno@clisp.org>
62392
62393         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
62394         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
62395         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
62396         PROVIDE_CANONICALIZE_FILENAME_MODE.
62397         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
62398
62399 2007-01-08  Bruno Haible  <bruno@clisp.org>
62400
62401         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
62402         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
62403         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
62404         * lib/fts.c: Likewise.
62405         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
62406
62407 2006-12-25  Bruno Haible  <bruno@clisp.org>
62408
62409         * modules/utf8-ucs4-safe: New file.
62410         * lib/utf8-ucs4-safe.h: New file.
62411         * lib/unistr/utf8-ucs4-safe.c: New file.
62412
62413         * modules/utf16-ucs4-safe: New file.
62414         * lib/utf16-ucs4-safe.h: New file.
62415         * lib/unistr/utf16-ucs4-safe.c: New file.
62416
62417         * MODULES.html.sh (Unicode string functions): Add the new modules.
62418
62419 2007-01-08  Bruno Haible  <bruno@clisp.org>
62420
62421         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
62422         (Depends-on): Add unitypes.
62423         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62424         (u8_mbtouc_aux): Move out to separate file.
62425         (u8_mbtouc): Use ucs4_t, uint8_t types.
62426         * lib/unistr/utf8-ucs4.c: New file.
62427
62428         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
62429         (Depends-on): Add unitypes.
62430         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
62431         (u16_mbtouc_aux): Move out to separate file.
62432         (u16_mbtouc): Use ucs4_t, uint16_t types.
62433         * lib/unistr/utf16-ucs4.c: New file.
62434
62435         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
62436         (Depends-on): Add unitypes.
62437         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
62438         (u8_uctomb_aux): Move out to separate file.
62439         (u8_uctomb): Use ucs4_t, uint8_t types.
62440         * lib/unistr/ucs4-utf8.c: New file.
62441
62442         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
62443         (Depends-on): Add unitypes.
62444         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
62445         (u16_uctomb_aux): Move out to separate file.
62446         (u16_uctomb): Use ucs4_t, uint16_t types.
62447         * lib/unistr/ucs4-utf16.c: New file.
62448
62449 2006-12-25  Bruno Haible  <bruno@clisp.org>
62450
62451         * modules/unitypes: New file.
62452         * lib/unitypes.h: New file.
62453         * MODULES.html.sh (func_all_modules): New section "Unicode string
62454         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
62455         this section. Add unitypes.
62456
62457 2007-01-08  Bruno Haible  <bruno@clisp.org>
62458
62459         Avoid variable names that conflict with those from libtool.
62460         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
62461         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
62462         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
62463         library_names_spec to acl_library_names_spec, hardcode_* to
62464         acl_hardcode_*.
62465         Reported by Ralf Wildenhues.
62466
62467 2007-01-08  Bruno Haible  <bruno@clisp.org>
62468
62469         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
62470         definition.
62471         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
62472         definition.
62473         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
62474         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
62475         definition.
62476         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
62477         definition.
62478         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
62479         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
62480         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
62481         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
62482         definition.
62483         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
62484         definition.
62485         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
62486         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
62487         GC_USE_<algorithm>.
62488         * lib/gc-libgcrypt.c: Likewise.
62489         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
62490         * modules/gc-arctwo (configure.ac): Likewise.
62491         * modules/gc-des (configure.ac): Likewise.
62492         * modules/gc-hmac-md5 (configure.ac): Likewise.
62493         * modules/gc-hmac-sha1 (configure.ac): Likewise.
62494         * modules/gc-md2 (configure.ac): Likewise.
62495         * modules/gc-md4 (configure.ac): Likewise.
62496         * modules/gc-md5 (configure.ac): Likewise.
62497         * modules/gc-random (configure.ac): Likewise.
62498         * modules/gc-rijndael (configure.ac): Likewise.
62499         * modules/gc-sha1 (configure.ac): Likewise.
62500
62501 2007-01-08  Bruno Haible  <bruno@clisp.org>
62502
62503         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
62504         macro definition.
62505         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
62506         definition.
62507         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
62508         definition.
62509         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
62510         * modules/fcntl-safer (configure.ac): Likewise.
62511         * modules/fopen-safer (configure.ac): Likewise.
62512         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
62513         GNULIB_FWRITEERROR macro definition.
62514
62515 2007-01-08  Bruno Haible  <bruno@clisp.org>
62516
62517         * m4/gnulib-common.m4: New file.
62518         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
62519         (func_get_filelist): Add m4/gnulib-common.m4.
62520
62521 2007-01-08  Bruno Haible  <bruno@clisp.org>
62522
62523         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
62524         command.
62525
62526 2007-01-08  Jim Meyering  <jim@meyering.net>
62527
62528         Use a more robust test for a "can't happen" condition.
62529         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
62530         narrowed the st_size value.  Presuming the "can't happen" condition
62531         is true, that narrowing could conceivably convert an invalid st_size
62532         value into a valid one.  Instead, use a change based on Matthew
62533         Woehlke's original patch.
62534
62535         Slight readability improvement: use an assert-like macro
62536         in place of literal "abort ()" uses.
62537         * lib/fts.c (fts_assert): Define.
62538         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
62539         Use this macro instead of a bare 'abort'.
62540
62541 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
62542
62543         Don't worry about using IRIX 5.3's wctype.h broken definitions;
62544         simply work around them.
62545         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
62546         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
62547         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
62548         declaring.
62549         Don't bother to define as macros, since the standard doesn't require it.
62550         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
62551         longer worry about IRIX 5.3.
62552         (HAVE_WCTYPE_CTMP_BUG): Remove.
62553
62554 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62555
62556         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62557         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62558         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62559         Problems reported by Georg Schwarz for IRIX 5.3.
62560
62561         * gnulib-tool (autoconf_minversion): Take the maximum version number
62562         found, not the minimum.  Problem reported by James Youngman.
62563
62564 2007-01-03  Karl Berry  <karl@gnu.org>
62565
62566         * doc/error.texi: new file, explaining interaction with progname.
62567         * doc/gnulib.texi: include it.  Update copyright.
62568
62569 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62570
62571         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62572         AC_CANONICAL_HOST, to improve autobuild outputs.
62573
62574 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62575             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62576
62577         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62578         sockets, server sockets, and other file descriptors.  Count errors
62579         to compute the return value.  Reorder the code a bit to be easier
62580         to follow.  Don't set event bits that were not requested (except
62581         POLLERR and POLLHUP).
62582
62583 2007-01-01  Bruno Haible  <bruno@clisp.org>
62584
62585         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62586
62587 2007-01-03  Jim Meyering  <jim@meyering.net>
62588
62589         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62590
62591 2007-01-02  Bruno Haible  <bruno@clisp.org>
62592
62593         * modules/settime (Include): Require timespec.h.
62594         * modules/nanosleep (Include): Likewise.
62595
62596 2007-01-01  Bruno Haible  <bruno@clisp.org>
62597
62598         * gnulib-tool (func_emit_copyright_notice): Bump year.
62599         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62600
62601 2007-01-01  Bruno Haible  <bruno@clisp.org>
62602
62603         Improve support for OpenBSD.
62604         * build-aux/config.rpath (libname_spec): Export.
62605         (library_names_spec): New variable. Export.
62606         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62607         library_names_spec from the config.rpath output. Locate shared library
62608         through the name pattern in library_names_spec.
62609
62610 2007-01-01  Eric Blake  <ebb9@byu.net>
62611
62612         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62613
62614 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62617         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62618         assume the C locale, and avoid an "eval" that could cause trouble.
62619         Problem with SORT reported by Bob Proulx.
62620
62621         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62622         Define.  Trivial patch from Henning Nielsen Lund, originally
62623         sent to bug-grep@gnu.org today.
62624
62625 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62626
62627         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62628         struct stat.  Problem reported by Henning Nielsen Lund.
62629         * lib/acl.c: Include acl.h first, to check interface.  Don't
62630         bother to include sys/types.h and sys/stat.h again.
62631
62632 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62633
62634         Import the following change from libc; problem reported by
62635         Sven Verdoolaege.
62636
62637         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62638
62639         [BZ #1373]
62640         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62641
62642 2006-12-28  Jim Meyering  <jim@meyering.net>
62643
62644         * build-aux/announce-gen: Do not assume that the package
62645         builds any of tar.gz, tar.bz2, and .xdelta files.
62646         Suggestion from Simon Josefsson.
62647
62648 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62649
62650         * modules/announce-gen: New file.
62651
62652 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62655         handles its gotchas now.
62656         * lib/mbswidth.c: Likewise.
62657         * lib/wcwidth.h: Likewise.
62658         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62659         and iswcntrl; the wctype module does this stuff now.
62660         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62662         * modules/mbchar (Depends-on): Add wctype.
62663         * modules/mbswidth (Depends-on): Likewise.
62664         * modules/wcwidth (Depends-on): Likewise.
62665
62666 2006-12-27  Eric Blake  <ebb9@byu.net>
62667
62668         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62669         module uses more than what <wctype.h> is required to provide.
62670
62671 2006-12-26  Eric Blake  <ebb9@byu.net>
62672
62673         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62674
62675 2006-12-26  Eric Blake  <ebb9@byu.net>
62676
62677         * modules/absolute-header: New module.
62678         * modules/fcntl (Depends-on): Depend on it.
62679         * modules/inttypes (Depends-on): Likewise.
62680         * modules/stdint (Depends-on): Likewise.
62681         * modules/sys_stat (Depends-on): Likewise.
62682         * modules/wctype (Depends-on): Likewise.
62683         * MODULES.html.sh (Support for building libraries and
62684         executables): Document it.
62685
62686 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62687
62688         * gnulib-tool (SED): Remove, undoing previous change.
62689         The problem was that it broke coreutils on Solaris, because
62690         "sed --posix" leaked into a makefile.
62691         (sed): New alias, if 'alias' and GNU sed.
62692
62693 2006-12-24  Jim Meyering  <jim@meyering.net>
62694
62695         Work around an fchownat bug in glibc-2.4:
62696         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62697         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62698         in spite of the -P option.
62699         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62700         New macros.
62701         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62702         * modules/openat (Files): Add lib/fchownat.c.
62703         * lib/openat.c (fchownat): Don't define here.  Move to...
62704         * lib/fchownat.c: ...this new file.
62705
62706 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62707
62708         Fix bug reported by Bruno Haible in
62709         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62710         where quotearg.c didn't compile on Mac OS X 10.2 because it
62711         lacks <wchar.h> and wint_t.
62712         * lib/wctype_.h (__wctype_wint_t): New type.
62713         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62714         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62715         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62716         Arg is now of type __wctype_wint_t, not wint_t.
62717         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62718         substitute HAVE_WINT_T.
62719         * modules/wctype (Files): Add m4/wint_t.m4.
62720         (wctype.h): Substitute HAVE_WINT_T.
62721
62722 2006-12-23  Bruno Haible  <bruno@clisp.org>
62723
62724         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62725
62726 2006-12-23  Bruno Haible  <bruno@clisp.org>
62727
62728         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62729         S_ISLNK.
62730         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62731         mingw.
62732
62733 2006-12-22  Bruno Haible  <bruno@clisp.org>
62734
62735         * lib/copy-file.c: Include acl.h.
62736         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62737         Close the file descriptors only after being done with copy_acl.
62738         * modules/copy-file (Depends-on): Add acl.
62739
62740 2006-12-22  Bruno Haible  <bruno@clisp.org>
62741
62742         * gnulib-tool (SED): New variable.
62743         Use $SED instead of sed everywhere.
62744
62745 2006-12-22  Bruno Haible  <bruno@clisp.org>
62746
62747         * modules/no-c++: New file.
62748         * m4/no-c++.m4: New file.
62749         * MODULES.html.sh (Support for building libraries and executables):
62750         Add no-c++.
62751
62752 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62753
62754         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62755         Include <limits.h>, and use its INT_MAX to rewrite the
62756         j loop so that it does not overflow 'int'.  Problem reported by
62757         Ralf Wildenhues in
62758         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62759         Play it safe by shifting left by 1 rather than multiplying by 2,
62760         as GCC is less likely to optimize this away when the value
62761         is signed (when it assumes overflow leads to undefined behavior).
62762         Also, don't assume time_t uses two's complement.
62763
62764 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         * MODULES.html.sh: New module wctype.
62767         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62768         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62769         <wctype.h>, since the new wctype module should fix this.
62770         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62771         the wctype module should arrange for it.
62772         * lib/regex_internal.h: Likewise.
62773         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62774         since the wctype module should handle this now.
62775         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62776         * modules/fnmatch (Depends-on): Add wctype.
62777         * modules/quotearg (Depends-on): Likewise.
62778         * modules/regex (Depends-on): Likewise.
62779
62780 2006-12-19  Bruno Haible  <bruno@clisp.org>
62781
62782         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62783         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62784
62785 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62786
62787         * modules/savewd (Depends-on): Fix dependency on fcntl.
62788
62789 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62790
62791         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62792         conforms to C99, rather than relying on the user's environment
62793         setting of STDINT_H.
62794
62795 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62796         and Eric Blake  <ebb9@byu.net>
62797
62798         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62799         This is more consistent with the other defines here.
62800         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62801         Port to z/OS.  Problem reported by Paul Gilmartin.
62802         Change local vars to use gl_ prefix rather than ac_.
62803         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62804         with other defines.
62805         * modules/double-slash-root: New module.
62806         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62807         (Depends-on): Add double-slash-root.
62808         * MODULES.html.sh (File system functions): Mention new module.
62809
62810 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62811
62812         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62813         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62814         This is for the benefit of gzip, which doesn't do i18n.
62815
62816 2006-12-12  Jim Meyering  <jim@meyering.net>
62817
62818         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62819         Reported by Andreas Schwab <schwab@suse.de>.
62820
62821 2006-12-12  Bruno Haible  <bruno@clisp.org>
62822
62823         Merge these changes.
62824         2006-09-05  Bruno Haible  <bruno@clisp.org>
62825         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62826         iconv_alloc succeeded.
62827         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62828         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62829         test for " && dest " at the end - dest is always != NULL there. Call
62830         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62831         with 2xNULL arguments, also to flush the state storage. Handle the
62832         IRIX iconv behaviour. Realloc the final result, to throw away unused
62833         memory.
62834
62835 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62836
62837         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62838         and fchmodat unconditionally, since glibc 2.4 has them.
62839         Problem reported by Arkadiusz Miskiewicz.
62840
62841 2006-12-10  Bruno Haible  <bruno@clisp.org>
62842
62843         * gnulib-tool (func_import): Show the include files only for those
62844         modules that are copied and specified.
62845         Reported by Karl Berry.
62846
62847 2006-12-08  Jim Meyering  <jim@meyering.net>
62848
62849         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62850         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62851
62852         * build-aux/announce-gen: Add two new options, both optional:
62853         --bootstrap-tools=TOOL_LIST
62854               a comma-separated list of tools, e.g.,
62855               autoconf,automake,bison,gnulib
62856         --gnulib-snapshot-date=DATE
62857               if gnulib is in the bootstrap tool list,
62858               then report this as the snapshot date.
62859               If not specified, use the current date/time.
62860               If you specify a date here, be sure it's UTC.
62861
62862 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62863
62864         * tests/test-argp-2.sh: Fix test to match actual output.
62865         (func_compare): Fix sed script to be portable.
62866
62867 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62868
62869         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62870         workaround for this case.  It is not autoconfigured now; offhand
62871         it's hard to see how to autoconfigure it.
62872
62873 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62874
62875         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62876         a directory that is about to be chowned.  Such a directory's
62877         initial file permissions should permit the owner only and this
62878         should not be changed until after the chown, since the group and
62879         other bits would be incorrect if they granted permission before
62880         the chown.
62881
62882         Fix porting problem for iswctype reported by Georg Schwarz in:
62883         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62884         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62885         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62886         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62887         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62888
62889 2006-12-03  Jim Meyering  <jim@meyering.net>
62890
62891         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62892         p->fts_statp may not yet be defined.
62893         (fts_read): Instead, set it in the caller, once p->fts_statp is
62894         sure to be defined, and corresponds to a top-level directory.
62895         This bug made du -x fail.  Here's the coreutils test case:
62896         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62897         Reported by Mike Frysinger.
62898
62899 2006-12-01  Jim Meyering  <jim@meyering.net>
62900
62901         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62902         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62903         Reported by Simon Josefsson.
62904
62905 2006-11-30  Jim Meyering  <jim@meyering.net>
62906
62907         * m4/warning.m4: Use the all-permissive copyright notice
62908         recommended by RMS (rather than LGPL).
62909         * m4/vararrays.m4: Likewise.
62910         * m4/flexmember.m4: Likewise.
62911
62912 2006-11-29  Bruno Haible  <bruno@clisp.org>
62913
62914         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62915         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62916         using +=.
62917         Reported by Simon Josefsson <simon@josefsson.org>.
62918
62919 2006-11-28  James Youngman <jay@gnu.org>
62920
62921         * README: Advise users that they might find the bug-gnulib@gnu.org
62922         and autotools-announce@gnu.org mailing lists useful.
62923
62924 2006-11-28  Bruno Haible  <bruno@clisp.org>
62925
62926         * m4/ptrdiff_max.m4: Remove file.
62927
62928 2006-11-21  Bruno Haible  <bruno@clisp.org>
62929
62930         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62931         _AC_COMPUTE_INT.
62932         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62933         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62934         _AC_COMPUTE_INT.
62935         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62936         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62937         _AC_COMPUTE_INT.
62938         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62939
62940 2006-11-28  Jim Meyering  <jim@meyering.net>
62941
62942         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62943         warning from "gcc -Wshadow" about shadowing the builtin.
62944
62945 2006-11-27  Bruno Haible  <bruno@clisp.org>
62946
62947         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62948         _AC_COMPUTE_INT.
62949         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62950
62951 2006-11-27  Bruno Haible  <bruno@clisp.org>
62952             Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62955
62956 2006-11-26  Bruno Haible  <bruno@clisp.org>
62957
62958         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62959         noinst_LTLIBRARIES.
62960
62961 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62962             Bruno Haible  <bruno@clisp.org>
62963
62964         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62965         if compiling with "gcc -ansi".
62966
62967 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62968
62969         Fix some incompatibilities with gcc -ansi -pedantic.
62970         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62971         if compiling pedantically with GCC, unless it's C99 or later.
62972         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62973         it mishandles gcc -ansi -pedantic as well.
62974         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62975         if gcc -pedantic.
62976         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62977         initializers for struct if -pedantic, unless it's C99 or later.
62978
62979 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62980
62981         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62982         Don't close an fd more than once. Identical atimes indicate
62983         success, not failure.
62984
62985 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62986
62987         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62988
62989 2006-11-23  Jim Meyering  <jim@meyering.net>
62990
62991         * build-aux/announce-gen: New file.  From coreutils.
62992
62993 2006-11-22  Jim Meyering  <jim@meyering.net>
62994
62995         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62996         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62997         (fts_read): Use a temporary to narrow the overused st_size member
62998         before using it in a switch statement.  Reported by Matthew Woehlke.
62999
63000         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63001         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63002
63003 2006-11-20  Bruno Haible  <bruno@clisp.org>
63004
63005         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63006         changequote instead of pairs of brackets.
63007         Reported by Andreas Schwab <schwab@suse.de>.
63008
63009 2006-11-21  Jim Meyering  <jim@meyering.net>
63010
63011         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63012         so as to remain compatible with older compilers.
63013         Patch from Michael Deutschmann.
63014
63015 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63016
63017         * MODULES.html.sh (File system functions): Add openat.
63018
63019         * lib/openat.h (rpl_fstatat): New macro, if
63020         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63021         (fstatat): Define to rpl_fstatat under the same conditions,
63022         unless COMPILING_FSTATAT.
63023         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
63024         seems to have the bug.
63025         * lib/fstatat.c: New file.
63026         * modules/openat (Files): Add it.
63027
63028 2006-11-20  Bruno Haible  <bruno@clisp.org>
63029
63030         * Makefile: New file.
63031
63032 2006-11-20  Jim Meyering  <jim@meyering.net>
63033
63034         The beginnings of syntax-related checks for gnulib.
63035         * lib/Makefile: New file.
63036         * lib/t-idcache: New script.  Ensure that the two halves of
63037         idcache.c stay in sync.
63038
63039         * lib/idcache.c: Adjust comments in user- and group- portions to
63040         be more accurate, and to be consistent with one another.
63041
63042 2006-11-20  Jim Meyering  <jim@meyering.net>
63043
63044         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
63045         continue using the flexible array member (thus, this module performs
63046         half as many malloc calls), with the addition that...
63047         (getgroup, getuser): Consistently record a non-match via an empty
63048         "name" string, and map an empty string match to a NULL return value.
63049         * modules/idcache (Depends-on): Re-add flexmember.
63050
63051         * lib/idcache.c (getuser): Remove all uses of the register keyword.
63052         (getuidbyname, getgroup, getgidbyname): Likewise.
63053
63054         Use cleaner syntax: NULL rather than 0.
63055         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63056
63057 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63058
63059         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63060         It mishandled the case where the group was missing.
63061         Problem reported by Greg Schafer.
63062         * modules/idcache: Likewise.
63063
63064 2006-11-18  Jim Meyering  <jim@meyering.net>
63065
63066         * check-module (%exempt_header): Add exception for some
63067         conditionally-included headers.
63068
63069         * modules/i-ring (Depends-on): Add verify.
63070         (License): Change to LGPL.
63071
63072 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63073
63074         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63075         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63076         and inttostr.h.  Use snprintf rather than uinttostr, so that
63077         LGPLed code doesn't depend on GPLed.
63078
63079 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63080
63081         * modules/inline (License): Change from GPL to LGPL.
63082
63083 2006-11-17  Jim Meyering  <jim@meyering.net>
63084
63085         * modules/d-type (License): Switch to LGPL.
63086
63087 2006-11-15  Bruno Haible  <bruno@clisp.org>
63088
63089         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63090
63091 2006-11-15  Eric Blake  <ebb9@byu.net>
63092
63093         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63094         the module dependency.
63095
63096 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63097             Bruno Haible  <bruno@clisp.org>
63098
63099         * gnulib-tool (func_create_testdir): Add license consistency check.
63100
63101 2006-11-15  Eric Blake  <ebb9@byu.net>
63102
63103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63104         random "(cached)" in configure output.
63105
63106 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63107
63108         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63109         test for conforming inttypes.h is both announced and cached.
63110
63111         * MODULES.html.sh (seen_modules, seen_files): New variables.
63112         (func_module): Rewrite to use a few less gnulib-tool and sed
63113         invocations.  Avoid a couple of quadratic algorithms for ...
63114         (missed_modules, missed_files): ... these, with ...
63115         (func_append, func_tmpdir): ... these new functions, from
63116         gnulib-tool.  Analogously, install traps for cleanup.
63117
63118         * tests/test-gc.c (main): Remove unused variables.
63119         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63120
63121 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63122
63123         * modules/inttostr (License): Change to LGPL.
63124
63125 2006-11-14  Eric Blake  <ebb9@byu.net>
63126
63127         * modules/tempname (License): Change to LGPL.
63128
63129 2006-11-14  Eric Blake  <ebb9@byu.net>
63130
63131         * doc/functions.texi (Function Portability): *printf functions on
63132         Cygwin now understand all POSIX size specifiers.
63133
63134 2006-11-14  Bruno Haible  <bruno@clisp.org>
63135
63136         * modules/c-ctype (License): Change to LGPL.
63137
63138 2006-11-12  Bruno Haible  <bruno@clisp.org>
63139
63140         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
63141         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
63142         for GNOME libraries, for which the include files are installed in
63143         subdirectories of $prefix/include.
63144
63145 2006-11-12  Bruno Haible  <bruno@clisp.org>
63146
63147         * m4/lib-link.m4: Require at least autoconf-2.54.
63148         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
63149         name to underscores for the --with option.
63150
63151 2006-11-13  Bruno Haible  <bruno@clisp.org>
63152
63153         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
63154         the tests directory.
63155         Reported by Ralf Wildenhues.
63156
63157 2006-11-13  Bruno Haible  <bruno@clisp.org>
63158
63159         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
63160         (func_emit_initmacro_end): Undo the override here.
63161         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
63162         Works around the famous automake error in coreutils.
63163
63164 2006-11-13  Eric Blake  <ebb9@byu.net>
63165
63166         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
63167         element, not its node.
63168
63169 2006-11-12  Bruno Haible  <bruno@clisp.org>
63170
63171         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
63172         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
63173
63174 2006-11-12  Bruno Haible  <bruno@clisp.org>
63175
63176         * gnulib-tool: New option --local-symlink.
63177         (func_usage): Document it.
63178         (lsymbolic): New variable.
63179         (func_import, func_create_testdir): If --symlink was not specified,
63180         test whether --local-symlink was specified and the file comes from
63181         the local_gnulib_dir.
63182
63183 2006-11-12  Bruno Haible  <bruno@clisp.org>
63184
63185         * gnulib-tool (func_ln): New function.
63186         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
63187
63188 2006-11-12  Bruno Haible  <bruno@clisp.org>
63189
63190         Finish support for source files in subdirectories.
63191         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
63192         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
63193         AUTOMAKE_OPTIONS.
63194         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
63195
63196 2006-11-12  Bruno Haible  <bruno@clisp.org>
63197
63198         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63199         EXTRA_lib_SOURCES augmentation.
63200         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
63201
63202 2006-11-12  Jim Meyering  <jim@meyering.net>
63203
63204         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
63205         file descriptors.  This also averts a failure on systems with
63206         native openat support when a traversed directory lacks "x" access.
63207         * lib/fts_.h: Include "i-ring.h"
63208         (struct FTS) [fts_fd_ring]: New member.
63209         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
63210         (FCHDIR): Add parentheses.
63211         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
63212         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
63213         When descending, rather than simply closing the previous
63214         fts_cwd_fd value, push that file descriptor onto the ring.
63215         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
63216         (fts_open): Initialize the new fd_ring member.
63217         (fts_close): Clear the ring.
63218         (fts_safe_changedir): When possible, use our new fd_ring to skip
63219         the diropen and fstat and dev/ino comparison that would normally
63220         accompany a virtual `chdir ("..")'.
63221
63222         * modules/fts (Depends-on): Add i-ring.
63223         * modules/i-ring: New module.
63224         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
63225         * m4/i-ring.m4: New file.
63226
63227 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63228
63229         * gnulib-tool (func_create_testdir): Fix replacement of
63230         `build-aux' in configure.ac.  Run autotools in gltests
63231         subdirectory.
63232         (func_create_testdir, func_create_megatestdir, test): There is
63233         no need for '--force' in most autotool invocations in a new
63234         tree.  Actually fail the whole test if any of the tools, or the
63235         configure or make stages fail.
63236
63237         Sync from Automake.
63238         * build-aux/gnupload: Revert last change.  Add pointer to upload
63239         instructions of the GNU Maintenance Instructions.
63240         Suggestion by Karl Berry.
63241
63242 2006-11-10  Jim Meyering  <jim@meyering.net>
63243
63244         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
63245
63246 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
63249         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
63250         (bind_textdomain_codeset) [! ENABLE_NLS]:
63251         Evaluate all the arguments.  That way, callers get compatible behavior
63252         if the arguments have side effects.  Also, it avoids some GCC
63253         diagnostics in some cases; Joel E. Denny reported problems when Bison
63254         was configured with --enable-gcc-warnigs.
63255
63256 2006-11-10  Jim Meyering  <jim@meyering.net>
63257
63258         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
63259         relevant options in CFLAGS (like -O, -fno-inline) are taken into
63260         account.
63261
63262 2006-11-10  Jim Meyering  <jim@meyering.net>
63263
63264         * modules/inline: New file/module.
63265         * modules/xalloc (Files): Remove m4/inline.m4.
63266         (Depends-on): Add inline, instead.
63267         * modules/oset: Likewise.
63268         * modules/list: Likewise.
63269
63270 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
63271
63272         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
63273         Problem reported by Matthew Woehlke.
63274
63275 2006-11-09  Bruno Haible  <bruno@clisp.org>
63276
63277         * lib/tempname.c (gen_tempname): Remove variant that invokes
63278         __gen_tempname.
63279         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
63280         __gen_tempname.
63281
63282 2006-11-08  Bruno Haible  <bruno@clisp.org>
63283
63284         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
63285         to 'yes' instead of 'cross-compiling'.
63286
63287 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
63288
63289         * lib/quotearg.h (quotearg_free): New decl.
63290         * lib/quotearg.c (quotearg_free): New function.
63291         (slot0, nslots, slotvec0, slotvec):
63292         Now file-scope so that quotearg_free can get at them.
63293
63294 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63295
63296         Sync from Automake.
63297         * build-aux/gnupload: Add missing 'gnu' to example URL.
63298         Report by Karl Berry.
63299
63300 2006-11-08  Bruno Haible  <bruno@clisp.org>
63301
63302         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
63303         Suggested by Paul Eggert.
63304
63305 2006-11-08  Jim Meyering  <jim@meyering.net>
63306
63307         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
63308         It's already included if !_LIBC.
63309         (fts_safe_changedir): Add a comment.
63310
63311 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63312
63313         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
63314         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
63315         Matthew Woehlke.
63316
63317         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
63318         definitions up, to avoid colliding with change below.
63319         (static_inline) [HAVE_INLINE]: New macro.
63320         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
63321         Provide extern decls when !HAVE_INLINE.  Do not define unless
63322         static_inline is defined, either by us or by xmalloc.c.  Use
63323         static_inline rather than static inline.
63324         (XCALLOC): Optimize sizeof(T) = 1 case.
63325         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
63326
63327 2006-11-07  Bruno Haible  <bruno@clisp.org>
63328
63329         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
63330         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
63331         AC_C_INLINE.
63332         * modules/xalloc (Files): Add m4/inline.m4.
63333
63334 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63335
63336         * README: Fix typo.
63337         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
63338         (Miscellanous Notes): ...from this.
63339
63340 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63341
63342         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
63343         Mention that offsetof should be used instead of sizeof.
63344         From Bruno Haible.
63345
63346 2006-11-07  Bruno Haible  <bruno@clisp.org>
63347
63348         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
63349
63350 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63351
63352         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63353         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
63354         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63355         (gl_tree_add_before, gl_tree_add_after):
63356         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
63357         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
63358         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63359         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
63360         (gl_linked_add_after, gl_linked_add_at): Likewise.
63361         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
63362         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
63363         (gl_tree_add_before, gl_tree_add_after): Likewise.
63364         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
63365         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
63366         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
63367
63368 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63369
63370         * lib/gl_oset.h: Use C comment style, not C++ comment style.
63371
63372 2006-11-06  Bruno Haible  <bruno@clisp.org>
63373
63374         * m4/inline.m4: New file.
63375         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
63376         * modules/list (Files): Add m4/inline.m4.
63377         * modules/oset (Files): Likewise.
63378
63379 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         * lib/idcache.c: Include <stddef.h>, for offsetof.
63382         (struct userid.name): Change from char * to a flexible array member.
63383         All uses changed.
63384         * modules/idcache (Depends-on): Add flexmember.
63385
63386         * MODULES.html.sh (Core language properties): New module flexmember.
63387         * modules/flexmember, m4/flexmember.m4: New files.
63388
63389         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
63390         inline functions that are identical with the old xnmalloc_inline,
63391         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
63392         that we can avoid some unnecessary integer multiplications and
63393         divisions in the common case where the element size is known at
63394         compile time.
63395         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
63396         needed.
63397         (xnboundedmalloc): Remove.
63398         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
63399         arguments, for consistency with rest of this header.
63400         (xcharalloc): Rewrite using XNMALLOC.
63401         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
63402         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
63403         versions have been moved to lib/xalloc.h and renamed to be the
63404         non-*_inline versions.
63405         (xmalloc, xrealloc): Implement without reference to the xnmalloc
63406         and xnrealloc functions, since those functions are now inline and
63407         now call us.
63408         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
63409         renaming described above.
63410         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
63411         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
63412         captures the dependency in AC_C_INLINE.
63413
63414         New module canonicalize-lgpl, proposed by Charles Wilson in
63415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
63416         with a few small changes afterwards.
63417         * MODULES.html.sh (File system functions): New module
63418         canonicalize-lgpl.
63419         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
63420         and canonicalize_file_name.
63421         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
63422         * modules/canonicalize-lgpl: New files.
63423
63424 2006-11-05  Bruno Haible  <bruno@clisp.org>
63425
63426         * gnulib-tool (func_import, func_create_testdir): Create directories
63427         also for files in subdirectories of lib/.
63428
63429 2006-11-05  Bruno Haible  <bruno@clisp.org>
63430
63431         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
63432         ANSI C compliant.
63433
63434 2006-11-03  Bruno Haible  <bruno@clisp.org>
63435
63436         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
63437         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
63438         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
63439         (xnboundedmalloc): New inline function.
63440         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
63441         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
63442         xmalloc.
63443         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
63444         xmalloc.
63445         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
63446         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
63447         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
63448         xmalloc.
63449         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63450         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
63451         xmalloc.
63452         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
63453         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63454         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
63455         xmalloc.
63456         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
63457         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
63458         gl_tree_add_after): Use XMALLOC instead of xmalloc.
63459         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
63460         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
63461         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
63462         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
63463
63464 2006-11-03  Bruno Haible  <bruno@clisp.org>
63465
63466         * lib/c-ctype.h [C++]: Define functions without name mangling.
63467         * lib/fwriteerror.h [C++]: Likewise.
63468         * lib/gcd.h [C++]: Likewise.
63469         * lib/linebreak.h [C++]: Likewise.
63470
63471 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
63472
63473         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
63474         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
63475         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
63476         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
63477         Check for functions and headers just once.
63478         Check for declaration of canonicalize_file_name.
63479         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
63480
63481 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63482
63483         * gnulib-tool (func_import): Fix typo in actioncmd.
63484
63485 2006-11-02  Bruno Haible  <bruno@clisp.org>
63486
63487         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
63488         newline sequence in the Makefile.am snippet as a space, like "make"
63489         does.
63490         Reported by Roger Persson <perrog@gmail.com>.
63491
63492 2006-11-01  Bruno Haible  <bruno@clisp.org>
63493
63494         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
63495         already declared in <string.h>.
63496         * lib/strcase.h (strncasecmp): Don't declare it if yes.
63497
63498 2006-11-01  Bruno Haible  <bruno@clisp.org>
63499
63500         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
63501         * lib/strcase.h: Include <string.h>.
63502         (strcasecmp): Define to rpl_strcasecmp here.
63503
63504 2006-11-01  Bruno Haible  <bruno@clisp.org>
63505
63506         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
63507
63508 2006-11-01  Eric Blake  <ebb9@byu.net>
63509
63510         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
63511
63512         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
63513
63514 2006-10-29  Bruno Haible  <bruno@clisp.org>
63515
63516         Make it compile in C++ mode.
63517         * lib/full-write.c (full_rw): Add a cast.
63518
63519 2006-11-01  Bruno Haible  <bruno@clisp.org>
63520
63521         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
63522         be POSIX compliant.
63523         Reported by Roger Persson <perrog@gmail.com>.
63524
63525 2006-11-01  Eric Blake  <ebb9@byu.net>
63526
63527         * lib/getopt_.h: Fix comments.
63528
63529 2006-10-31  Eric Blake  <ebb9@byu.net>
63530
63531         * modules/tmpdir (Depends-on): Add sys_stat.
63532         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
63533         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
63534         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
63535         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
63536         tempname.
63537
63538 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
63539
63540         Avoid some C++ diagnostics reported by Bruno Haible.
63541         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
63542         xmalloc.
63543         (quotearg_alloc): Use xcharalloc rather than xmalloc.
63544         (struct slotvec): Move to top level.
63545         (quotearg_n_options): Rewrite to avoid xmalloc.
63546         * lib/xalloc.h (xcharalloc): New function.
63547         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
63548         [defined __cplusplus]: Add function template that provides result
63549         type propagation.  This part of the change is from Bruno Haible.
63550
63551 2006-10-29  Bruno Haible  <bruno@clisp.org>
63552
63553         Make it compile in C++ mode.
63554         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63555         * lib/strnlen1.c (strnlen1): Cast memchr result.
63556         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63557         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63558         (create_temp_dir): Rename local variable 'template'.
63559         (compile_csharp_using_sscli): Add cast.
63560         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63561         * lib/findprog.c (find_in_path): Likewise.
63562         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63563         * lib/wait-process.c (register_slave_subprocess): Likewise.
63564
63565 2006-10-22  Bruno Haible  <bruno@clisp.org>
63566
63567         * modules/tsearch: New file.
63568         * lib/tsearch.h: New file.
63569         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63570         * m4/tsearch.m4: New file.
63571         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63572
63573 2006-10-29  Eric Blake  <ebb9@byu.net>
63574
63575         * lib/arcfour.c: Assume config.h.
63576         * lib/arctwo.c: Likewise.
63577         * lib/base64.c: Likewise.
63578         * lib/check-version.c: Likewise.
63579         * lib/crc.c: Likewise.
63580         * lib/des.c: Likewise.
63581         * lib/gc-gnulib.c: Likewise.
63582         * lib/gc-libgcrypt.c: Likewise.
63583         * lib/gc-pbkdf2-sha1.c: Likewise.
63584         * lib/getaddrinfo.c: Likewise.
63585         * lib/getdelim.c: Likewise.
63586         * lib/getline.c: Likewise.
63587         * lib/hmac-md5.c: Likewise.
63588         * lib/hmac-sha1.c: Likewise.
63589         * lib/iconvme.c: Likewise.
63590         * lib/md2.c: Likewise.
63591         * lib/md4.c: Likewise.
63592         * lib/memxor.c: Likewise.
63593         * lib/read-file.c: Likewise.
63594         * lib/readline.c: Likewise.
63595         * lib/rijndael-alg-fst.c: Likewise.
63596         * lib/rijndael-api-fst.c: Likewise.
63597         * lib/xgetdomainname.c: Likewise.
63598
63599 2006-10-28  Eric Blake  <ebb9@byu.net>
63600
63601         * lib/xstrndup.c: Assume config.h.
63602
63603 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63604
63605         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63606         stat-macros.h is now for our own macros, whereas stat_h is for
63607         macros in the <sys/stat.h> name space.
63608         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63609         (STAT_MACROS_H): Remove.
63610         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63611         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63612         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63613         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63614         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63615         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63616         Move these macros to ...
63617         * lib/stat_.h: here.  Don't include stat-macros.h.
63618         * lib/canonicalize.c: Don't include stat-macros.h.
63619         * lib/chown.c: Likewise.
63620         * lib/euidaccess.c: Likewise.
63621         * lib/file-type.c: Likewise.
63622         * lib/filemode.c: Likewise.
63623         * lib/glob.c: Likewise.
63624         * lib/isapipe.c: Likewise.
63625         * lib/lchown.c: Likewise.
63626         * lib/lstat.c: Likewise.
63627         * lib/mkdir-p.c: Likewise.
63628         * lib/rmdir.c: Likewise.
63629         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63630         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63631         unless mkdir isn't declared, to speed up 'configure'.
63632         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63633         would define all the S_* symbols.
63634         * modules/canonicalize (Depends-on):
63635         Depend on sys_stat, not stat-macros.
63636         * modules/chown: Likewise.
63637         * modules/euidaccess: Likewise.
63638         * modules/filemode: Likewise.
63639         * modules/file-type: Likewise.
63640         * modules/glob: Likewise.
63641         * modules/isapipe: Likewise.
63642         * modules/lchown: Likewise.
63643         * modules/lstat: Likewise.
63644         * modules/mkancesdirs: Likewise.
63645         * modules/rmdir: Likewise.
63646         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63647         * modules/modechange: Likewise.
63648         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63649         (configure.ac): Remove gl_STAT_MACROS.
63650         * modules/sys_stat (Depends-on): Remove stat-macros.
63651
63652 2006-10-27  Bruno Haible  <bruno@clisp.org>
63653
63654         * m4/signed.m4: Remove file.
63655         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63656         invocation.
63657         * modules/vasnprintf (Files): Remove m4/signed.m4.
63658
63659 2006-10-27  Bruno Haible  <bruno@clisp.org>
63660
63661         Update to GNU gettext 0.16.
63662         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63663         m4/inttypes-h.m4, m4/signed.m4.
63664         * m4/gettext.m4: Update to GNU gettext 0.16.
63665         * m4/intl.m4: New file, from GNU gettext.
63666         * m4/intldir.m4: New file, from GNU gettext.
63667         * config/srclist.txt: Update
63668
63669 2006-10-27  Eric Blake  <ebb9@byu.net>
63670
63671         * MODULES.html.sh: Document tempname.
63672         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63673         dependencies.
63674         (Files): Move lib/tempname.c...
63675         * modules/tempname: ...to this new module.
63676         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63677         (gl_PREREQ_TEMPNAME): Move...
63678         * m4/tempname.m4: ...to this new file.
63679         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63680         * modules/sys_stat (Depends-on): Add stat-macros.
63681         * lib/stat_.h (includes): Pick up stat macros.
63682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63683         if stat macros are broken.
63684         * lib/tempname.c (includes): No need to include "stat-macros.h".
63685         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63686         (direxists, __path_search) [!_LIBC]: Don't compile these in
63687         gnulib; the tmpdir module covers that.
63688         * lib/tempname.h: New file.
63689
63690 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63691
63692         * COPYING: Explain how gnulib-tool converts licence headers.
63693         Almost all wording by Eric Blake.
63694
63695 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63696
63697         * lib/mbchar.h (is_basic_table): Make read-only.
63698         * lib/mbchar.c (is_basic_table): Likewise.
63699         Reported by John Darrington.
63700
63701 2006-10-25  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/progname.h (set_program_name): Undefine before defining.
63704
63705 2006-10-25  Bruno Haible  <bruno@clisp.org>
63706
63707         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63708         false for non-gcc C++ compilers.
63709         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63710
63711 2006-10-24  Bruno Haible  <bruno@clisp.org>
63712
63713         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63714         iconv implementations like Irix iconv.
63715
63716 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63717
63718         * modules/vararrays: New file.
63719         * m4/vararrays.m4: New file, taken from diffutils.
63720         * MODULES.html.sh: New module vararrays.
63721
63722 2006-10-24  Karl Berry  <karl@gnu.org>
63723
63724         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63725         Don't call GNU Unix.
63726
63727 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63728
63729         * users.txt: Add Libtool.
63730
63731         Sync from Libtool:
63732
63733         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63736         to gnulib's policy of including config.h unconditionally.
63737
63738 2006-10-24  Bruno Haible  <bruno@clisp.org>
63739
63740         * modules/wcwidth (Files): Add m4/wint_t.m4.
63741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63742         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63743
63744 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63745
63746         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63747         to pacify GCC with some -W flags enabled.  Problem reported by
63748         Bruno Haible.
63749
63750 2006-10-24  Jim Meyering  <jim@meyering.net>
63751
63752         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63753         Reported by Karl Berry.
63754
63755 2006-10-23  Bruno Haible  <bruno@clisp.org>
63756
63757         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63758
63759 2006-10-24  Bruno Haible  <bruno@clisp.org>
63760
63761         * lib/gl_list.h: Use C comment style, not C++ comment style.
63762
63763 2006-10-23  Eric Blake  <ebb9@byu.net>
63764
63765         * lib/getaddrinfo.c (includes): Add missing include.
63766
63767 2006-10-23  Bruno Haible  <bruno@clisp.org>
63768             Paul Eggert  <eggert@cs.ucla.edu>
63769
63770         Ability to rename obstack_free.
63771         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63772         obstack_free.
63773         (obstack_free): Invoke the __obstack_free macro.
63774         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63775
63776 2006-10-23  Bruno Haible  <bruno@clisp.org>
63777             Paul Eggert  <eggert@cs.ucla.edu>
63778
63779         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63780         __argc, __argv from the declaration. (They are defined as macros on
63781         mingw.)
63782
63783 2006-10-22  Bruno Haible  <bruno@clisp.org>
63784
63785         * doc/gnulib-intro.texi: New file.
63786         * doc/gnulib.texi: Include it.
63787
63788 2006-10-21  Bruno Haible  <bruno@clisp.org>
63789
63790         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63791         "Introduction", "Miscellanous Notes", "Particular Modules".
63792
63793 2006-10-21  Bruno Haible  <bruno@clisp.org>
63794
63795         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63796         Change mostlyclean-local rule to avoid sh syntax error from bash
63797         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63798
63799 2006-10-23  Jim Meyering  <jim@meyering.net>
63800
63801         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63802         in place of snprintf.
63803
63804         * modules/inttostr (Files): Add lib/uinttostr.c.
63805         * lib/uinttostr.c (inttostr): New file/function.
63806         * lib/inttostr.h (uinttostr): Declare.
63807         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63808         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63809         Add uinttostr.
63810         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63811
63812 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63813
63814         * lib/canonicalize.c (ELOOP): Define if not already defined.
63815         Problem reported by Bruno Haible in
63816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63817
63818 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63819
63820         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63821         Problem reported by Perry Smith and Ville Laurikari.
63822
63823         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63824         uses.
63825
63826 2006-10-19  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63829         for mingw.
63830
63831 2006-10-19  Bruno Haible  <bruno@clisp.org>
63832
63833         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63834         Needed for mingw.
63835
63836 2006-10-19  Bruno Haible  <bruno@clisp.org>
63837
63838         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63839
63840 2006-10-19  Bruno Haible  <bruno@clisp.org>
63841
63842         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63843         it.
63844
63845 2006-10-19  Bruno Haible  <bruno@clisp.org>
63846
63847         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63848         invocation.
63849
63850 2006-10-19  Bruno Haible  <bruno@clisp.org>
63851
63852         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63853         mountlist by default.
63854
63855 2006-10-16  Bruno Haible  <bruno@clisp.org>
63856
63857         * lib/c-strstr.c: Include c-strstr.h.
63858
63859 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63860
63861         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63862         in a slash.
63863
63864 2006-10-18  Bruno Haible  <bruno@clisp.org>
63865
63866         * lib/lock.h [C++]: Wrap definitions in extern "C".
63867
63868 2006-10-18  Bruno Haible  <bruno@clisp.org>
63869
63870         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63871         gl_LIBOBJS list.
63872
63873 2006-10-18  Bruno Haible  <bruno@clisp.org>
63874
63875         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63876
63877 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63878
63879         * lib/xstrtol.h: Include gettext.h.
63880         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63881         Problem reported by Eric Blake.
63882         * modules/xstrtol (Depends-on): Add gettext-h.
63883
63884 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63885
63886         * lib/strftime.c (advance): New macro.
63887         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63888         incomplete type, so you can't add 0 to it.  Problem and patch
63889         reported by Eelco Dolstra for dietlibc.
63890
63891 2006-10-18  Jim Meyering  <jim@meyering.net>
63892
63893         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63894         type for a local, and rename it: s/up/user_proc/.
63895
63896 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63897
63898         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63899         READ_UTMP_USER_PROCESS.
63900         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63901
63902 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63905         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63906
63907 2006-10-17  Eric Blake  <ebb9@byu.net>
63908
63909         * lib/sigprocmask.c (sigprocmask): Fix typo.
63910
63911         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63912
63913         * modules/clean-temp (Makefile.am): Don't add to make output...
63914         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63915         config.h.
63916
63917 2006-10-17  Bruno Haible  <bruno@clisp.org>
63918
63919         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63920         differently if DEFAULT_TEXT_DOMAIN is set.
63921
63922 2006-10-16  Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/clean-temp.c: Include fwriteerror.h.
63925
63926 2006-10-16  Bruno Haible  <bruno@clisp.org>
63927
63928         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63929
63930 2006-10-16  Bruno Haible  <bruno@clisp.org>
63931
63932         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63933         * lib/sigprocmask.h: Include <sys/types.h>.
63934         (sigset_t): Use the system's definition if present.
63935
63936 2006-10-17  Eric Blake  <ebb9@byu.net>
63937
63938         * lib/xvasprintf.c (includes): Assume config.h.
63939         * lib/xasprintf.c (includes): Likewise.
63940
63941 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63942
63943         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63944         at least as wide as intmax_t.
63945
63946 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63947
63948         (Imported from Automake.)
63949         * build-aux/gnupload: Update to version 1.1 of directive file.
63950
63951 2006-10-16  Eric Blake  <ebb9@byu.net>
63952
63953         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63954         match Automake 1.10a.
63955
63956 2006-10-14  Bruno Haible  <bruno@clisp.org>
63957
63958         * modules/sigprocmask: New file.
63959         * lib/sigprocmask.h: New file.
63960         * lib/sigprocmask.c: New file.
63961         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63962         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63963         request sigprocmask.o.
63964         (gl_PREREQ_SIGPROCMASK): New macro.
63965         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63966         (Depends-on): Add sigprocmask.
63967         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63968         gt_SIGNALBLOCKING. Test for 'raise' only once.
63969         * lib/fatal-signal.c: Include sigprocmask.h.
63970         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63971         unblock_fatal_signals): Define always.
63972         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63973         sigprocmask.
63974
63975 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63976
63977         Sync from Automake.
63978         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63979         which incorrectly sets the mode of an existing destination
63980         directory.  In some cases the unpatched install-sh could do the
63981         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63982         system.  We hope this is rare in practice, but it's clearly worth
63983         fixing.  Problem reported by Alex Unleashed in
63984         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63985         Also, don't bother to check for -m bugs unless we're using -m;
63986         suggested by Stepan Kasal.
63987
63988 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63989
63990         Sync from Automake.
63991         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63992         `-c' flag, so they appear at the same position as in %FASTDEP%
63993         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63994         which ignores unknown options only after the first non-option.
63995         Bug report against M4 by Nelson H. F. Beebe.
63996
63997 2006-10-13  Jim Meyering  <jim@meyering.net>
63998
63999         Fix a bug in yesterday's change.
64000         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64001         p->fts_statp->st_dev would be used uninitialized.
64002         Ensures that we always call fts_stat on the very first entry.
64003         Miklos Szeredi reported that find -xdev stopped working.
64004
64005 2006-10-12  Bruno Haible  <bruno@clisp.org>
64006
64007         * gnulib-tool (func_get_automake_snippet): Append an automatically
64008         computed EXTRA_DIST augmentation.
64009         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64010         * modules/alloca-opt (Makefile.am): Likewise.
64011         * modules/allocsa (Makefile.am): Likewise.
64012         * modules/arcfour (Makefile.am): Likewise.
64013         * modules/arctwo (Makefile.am): Likewise.
64014         * modules/argmatch (Makefile.am): Likewise.
64015         * modules/argz (Makefile.am): Likewise.
64016         * modules/atexit (Makefile.am): Likewise.
64017         * modules/backupfile (Makefile.am): Likewise.
64018         * modules/byteswap (Makefile.am): Likewise.
64019         * modules/c-strtod (Makefile.am): Likewise.
64020         * modules/c-strtold (Makefile.am): Likewise.
64021         * modules/calloc (Makefile.am): Likewise.
64022         * modules/canon-host (Makefile.am): Likewise.
64023         * modules/canonicalize (Makefile.am): Likewise.
64024         * modules/chdir-long (Makefile.am): Likewise.
64025         * modules/chdir-safer (Makefile.am): Likewise.
64026         * modules/check-version (Makefile.am): Likewise.
64027         * modules/chown (Makefile.am): Likewise.
64028         * modules/cloexec (Makefile.am): Likewise.
64029         * modules/close-stream (Makefile.am): Likewise.
64030         * modules/closeout (Makefile.am): Likewise.
64031         * modules/crc (Makefile.am): Likewise.
64032         * modules/csharpexec (Makefile.am): Likewise.
64033         * modules/cycle-check (Makefile.am): Likewise.
64034         * modules/des (Makefile.am): Likewise.
64035         * modules/dev-ino (Makefile.am): Likewise.
64036         * modules/dirfd (Makefile.am): Likewise.
64037         * modules/dirname (Makefile.am): Likewise.
64038         * modules/dup2 (Makefile.am): Likewise.
64039         * modules/eealloc (Makefile.am): Likewise.
64040         * modules/error (Makefile.am): Likewise.
64041         * modules/euidaccess (Makefile.am): Likewise.
64042         * modules/exclude (Makefile.am): Likewise.
64043         * modules/exitfail (Makefile.am): Likewise.
64044         * modules/fcntl-safer (Makefile.am): Likewise.
64045         * modules/fcntl (Makefile.am): Likewise.
64046         * modules/file-type (Makefile.am): Likewise.
64047         * modules/fileblocks (Makefile.am): Likewise.
64048         * modules/filemode (Makefile.am): Likewise.
64049         * modules/filenamecat (Makefile.am): Likewise.
64050         * modules/fnmatch (Makefile.am): Likewise.
64051         * modules/fopen-safer (Makefile.am): Likewise.
64052         * modules/fpending (Makefile.am): Likewise.
64053         * modules/fprintftime (Makefile.am): Likewise.
64054         * modules/free (Makefile.am): Likewise.
64055         * modules/fsusage (Makefile.am): Likewise.
64056         * modules/ftruncate (Makefile.am): Likewise.
64057         * modules/fts (Makefile.am): Likewise.
64058         * modules/gc-arcfour (Makefile.am): Likewise.
64059         * modules/gc-des (Makefile.am): Likewise.
64060         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64061         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64062         * modules/gc-md4 (Makefile.am): Likewise.
64063         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64064         * modules/gc-sha1 (Makefile.am): Likewise.
64065         * modules/gc (Makefile.am): Likewise.
64066         * modules/getaddrinfo (Makefile.am): Likewise.
64067         * modules/getcwd (Makefile.am): Likewise.
64068         * modules/getdelim (Makefile.am): Likewise.
64069         * modules/getdomainname (Makefile.am): Likewise.
64070         * modules/getgroups (Makefile.am): Likewise.
64071         * modules/gethostname (Makefile.am): Likewise.
64072         * modules/gethrxtime (Makefile.am): Likewise.
64073         * modules/getline (Makefile.am): Likewise.
64074         * modules/getloadavg (Makefile.am): Likewise.
64075         * modules/getlogin_r (Makefile.am): Likewise.
64076         * modules/getndelim2 (Makefile.am): Likewise.
64077         * modules/getopt (Makefile.am): Likewise.
64078         * modules/getpagesize (Makefile.am): Likewise.
64079         * modules/getpass-gnu (Makefile.am): Likewise.
64080         * modules/getpass (Makefile.am): Likewise.
64081         * modules/getsubopt (Makefile.am): Likewise.
64082         * modules/gettime (Makefile.am): Likewise.
64083         * modules/gettimeofday (Makefile.am): Likewise.
64084         * modules/getugroups (Makefile.am): Likewise.
64085         * modules/getusershell (Makefile.am): Likewise.
64086         * modules/glob (Makefile.am): Likewise.
64087         * modules/group-member (Makefile.am): Likewise.
64088         * modules/hard-locale (Makefile.am): Likewise.
64089         * modules/hash (Makefile.am): Likewise.
64090         * modules/hmac-md5 (Makefile.am): Likewise.
64091         * modules/hmac-sha1 (Makefile.am): Likewise.
64092         * modules/human (Makefile.am): Likewise.
64093         * modules/idcache (Makefile.am): Likewise.
64094         * modules/imaxabs (Makefile.am): Likewise.
64095         * modules/imaxdiv (Makefile.am): Likewise.
64096         * modules/inet_ntop (Makefile.am): Likewise.
64097         * modules/inet_pton (Makefile.am): Likewise.
64098         * modules/intprops (Makefile.am): Likewise.
64099         * modules/inttostr (Makefile.am): Likewise.
64100         * modules/inttypes (Makefile.am): Likewise.
64101         * modules/isapipe (Makefile.am): Likewise.
64102         * modules/javaversion (Makefile.am): Likewise.
64103         * modules/lchmod (Makefile.am): Likewise.
64104         * modules/lchown (Makefile.am): Likewise.
64105         * modules/localcharset (Makefile.am): Likewise.
64106         * modules/long-options (Makefile.am): Likewise.
64107         * modules/lstat (Makefile.am): Likewise.
64108         * modules/malloc (Makefile.am): Likewise.
64109         * modules/mathl (Makefile.am): Likewise.
64110         * modules/mbchar (Makefile.am): Likewise.
64111         * modules/md2 (Makefile.am): Likewise.
64112         * modules/md4 (Makefile.am): Likewise.
64113         * modules/md5 (Makefile.am): Likewise.
64114         * modules/memcasecmp (Makefile.am): Likewise.
64115         * modules/memchr (Makefile.am): Likewise.
64116         * modules/memcmp (Makefile.am): Likewise.
64117         * modules/memcoll (Makefile.am): Likewise.
64118         * modules/memcpy (Makefile.am): Likewise.
64119         * modules/memmem (Makefile.am): Likewise.
64120         * modules/memmove (Makefile.am): Likewise.
64121         * modules/mempcpy (Makefile.am): Likewise.
64122         * modules/memrchr (Makefile.am): Likewise.
64123         * modules/memset (Makefile.am): Likewise.
64124         * modules/memxor (Makefile.am): Likewise.
64125         * modules/mkancesdirs (Makefile.am): Likewise.
64126         * modules/mkdir-p (Makefile.am): Likewise.
64127         * modules/mkdir (Makefile.am): Likewise.
64128         * modules/mkdtemp (Makefile.am): Likewise.
64129         * modules/mkstemp (Makefile.am): Likewise.
64130         * modules/mktime (Makefile.am): Likewise.
64131         * modules/modechange (Makefile.am): Likewise.
64132         * modules/mountlist (Makefile.am): Likewise.
64133         * modules/nanosleep (Makefile.am): Likewise.
64134         * modules/obstack (Makefile.am): Likewise.
64135         * modules/openat (Makefile.am): Likewise.
64136         * modules/pagealign_alloc (Makefile.am): Likewise.
64137         * modules/pathmax (Makefile.am): Likewise.
64138         * modules/physmem (Makefile.am): Likewise.
64139         * modules/poll (Makefile.am): Likewise.
64140         * modules/posixtm (Makefile.am): Likewise.
64141         * modules/posixver (Makefile.am): Likewise.
64142         * modules/putenv (Makefile.am): Likewise.
64143         * modules/quote (Makefile.am): Likewise.
64144         * modules/quotearg (Makefile.am): Likewise.
64145         * modules/raise (Makefile.am): Likewise.
64146         * modules/read-file (Makefile.am): Likewise.
64147         * modules/readline (Makefile.am): Likewise.
64148         * modules/readlink (Makefile.am): Likewise.
64149         * modules/readtokens (Makefile.am): Likewise.
64150         * modules/readutmp (Makefile.am): Likewise.
64151         * modules/realloc (Makefile.am): Likewise.
64152         * modules/regex (Makefile.am): Likewise.
64153         * modules/rename-dest-slash (Makefile.am): Likewise.
64154         * modules/rename (Makefile.am): Likewise.
64155         * modules/rijndael (Makefile.am): Likewise.
64156         * modules/rmdir (Makefile.am): Likewise.
64157         * modules/rpmatch (Makefile.am): Likewise.
64158         * modules/safe-read (Makefile.am): Likewise.
64159         * modules/safe-write (Makefile.am): Likewise.
64160         * modules/same-inode (Makefile.am): Likewise.
64161         * modules/same (Makefile.am): Likewise.
64162         * modules/save-cwd (Makefile.am): Likewise.
64163         * modules/savedir (Makefile.am): Likewise.
64164         * modules/setenv (Makefile.am): Likewise.
64165         * modules/settime (Makefile.am): Likewise.
64166         * modules/sha1 (Makefile.am): Likewise.
64167         * modules/sig2str (Makefile.am): Likewise.
64168         * modules/snprintf (Makefile.am): Likewise.
64169         * modules/stat-macros (Makefile.am): Likewise.
64170         * modules/stat-time (Makefile.am): Likewise.
64171         * modules/stdbool (Makefile.am): Likewise.
64172         * modules/stdint (Makefile.am): Likewise.
64173         * modules/stdlib-safer (Makefile.am): Likewise.
64174         * modules/stpcpy (Makefile.am): Likewise.
64175         * modules/stpncpy (Makefile.am): Likewise.
64176         * modules/strcase (Makefile.am): Likewise.
64177         * modules/strcasestr (Makefile.am): Likewise.
64178         * modules/strchrnul (Makefile.am): Likewise.
64179         * modules/strcspn (Makefile.am): Likewise.
64180         * modules/strdup (Makefile.am): Likewise.
64181         * modules/strerror (Makefile.am): Likewise.
64182         * modules/strftime (Makefile.am): Likewise.
64183         * modules/strndup (Makefile.am): Likewise.
64184         * modules/strnlen (Makefile.am): Likewise.
64185         * modules/strpbrk (Makefile.am): Likewise.
64186         * modules/strsep (Makefile.am): Likewise.
64187         * modules/strstr (Makefile.am): Likewise.
64188         * modules/strtod (Makefile.am): Likewise.
64189         * modules/strtoimax (Makefile.am): Likewise.
64190         * modules/strtok_r (Makefile.am): Likewise.
64191         * modules/strtol (Makefile.am): Likewise.
64192         * modules/strtoll (Makefile.am): Likewise.
64193         * modules/strtoul (Makefile.am): Likewise.
64194         * modules/strtoull (Makefile.am): Likewise.
64195         * modules/strtoumax (Makefile.am): Likewise.
64196         * modules/strverscmp (Makefile.am): Likewise.
64197         * modules/sys_socket (Makefile.am): Likewise.
64198         * modules/sys_stat (Makefile.am): Likewise.
64199         * modules/sysexits (Makefile.am): Likewise.
64200         * modules/time_r (Makefile.am): Likewise.
64201         * modules/timegm (Makefile.am): Likewise.
64202         * modules/timespec (Makefile.am): Likewise.
64203         * modules/tmpfile-safer (Makefile.am): Likewise.
64204         * modules/trim (Makefile.am): Likewise.
64205         * modules/unistd-safer (Makefile.am): Likewise.
64206         * modules/unlinkdir (Makefile.am): Likewise.
64207         * modules/unlocked-io (Makefile.am): Likewise.
64208         * modules/userspec (Makefile.am): Likewise.
64209         * modules/utime (Makefile.am): Likewise.
64210         * modules/utimecmp (Makefile.am): Likewise.
64211         * modules/utimens (Makefile.am): Likewise.
64212         * modules/vasnprintf (Makefile.am): Likewise.
64213         * modules/vasprintf (Makefile.am): Likewise.
64214         * modules/vsnprintf (Makefile.am): Likewise.
64215         * modules/xalloc (Makefile.am): Likewise.
64216         * modules/xgetcwd (Makefile.am): Likewise.
64217         * modules/xnanosleep (Makefile.am): Likewise.
64218         * modules/xreadlink (Makefile.am): Likewise.
64219         * modules/xstrtod (Makefile.am): Likewise.
64220         * modules/xstrtol (Makefile.am): Likewise.
64221         * modules/xstrtold (Makefile.am): Likewise.
64222         * modules/yesno (Makefile.am): Likewise.
64223         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
64224
64225 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64226
64227         * modules/error (Makefile.am): Distribute files through
64228         EXTRA_DIST, not lib_SOURCES.
64229
64230 2006-10-12  Eric Blake  <ebb9@byu.net>
64231
64232         * modules/error (Makefile.am): Distribute files in /lib.
64233         * modules/obstack (Makefile.am): Likewise.
64234
64235 2006-10-12  Bruno Haible  <bruno@clisp.org>
64236
64237         * modules/acl (Makefile.am): Distribute all files in lib/ through
64238         EXTRA_DIST.
64239         * modules/arcfour (Makefile.am): Likewise.
64240         * modules/arctwo (Makefile.am): Likewise.
64241         * modules/argmatch (Makefile.am): Likewise.
64242         * modules/argz (Makefile.am): Likewise.
64243         * modules/atexit (Makefile.am): Likewise.
64244         * modules/backupfile (Makefile.am): Likewise.
64245         * modules/c-strtod (Makefile.am): Likewise.
64246         * modules/c-strtold (Makefile.am): Likewise.
64247         * modules/calloc (Makefile.am): Likewise.
64248         * modules/canon-host (Makefile.am): Likewise.
64249         * modules/canonicalize (Makefile.am): Likewise.
64250         * modules/chdir-long (Makefile.am): Likewise.
64251         * modules/chdir-safer (Makefile.am): Likewise.
64252         * modules/check-version (Makefile.am): Likewise.
64253         * modules/chown (Makefile.am): Likewise.
64254         * modules/cloexec (Makefile.am): Likewise.
64255         * modules/close-stream (Makefile.am): Likewise.
64256         * modules/closeout (Makefile.am): Likewise.
64257         * modules/crc (Makefile.am): Likewise.
64258         * modules/cycle-check (Makefile.am): Likewise.
64259         * modules/des (Makefile.am): Likewise.
64260         * modules/dirfd (Makefile.am): Likewise.
64261         * modules/dirname (Makefile.am): Likewise.
64262         * modules/dup2 (Makefile.am): Likewise.
64263         * modules/euidaccess (Makefile.am): Likewise.
64264         * modules/exclude (Makefile.am): Likewise.
64265         * modules/exitfail (Makefile.am): Likewise.
64266         * modules/fcntl-safer (Makefile.am): Likewise.
64267         * modules/file-type (Makefile.am): Likewise.
64268         * modules/fileblocks (Makefile.am): Likewise.
64269         * modules/filemode (Makefile.am): Likewise.
64270         * modules/filenamecat (Makefile.am): Likewise.
64271         * modules/fnmatch (Makefile.am): Likewise.
64272         * modules/fopen-safer (Makefile.am): Likewise.
64273         * modules/fpending (Makefile.am): Likewise.
64274         * modules/fprintftime (Makefile.am): Likewise.
64275         * modules/free (Makefile.am): Likewise.
64276         * modules/fsusage (Makefile.am): Likewise.
64277         * modules/ftruncate (Makefile.am): Likewise.
64278         * modules/fts (Makefile.am): Likewise.
64279         * modules/gc (Makefile.am): Likewise.
64280         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64281         * modules/getaddrinfo (Makefile.am): Likewise.
64282         * modules/getcwd (Makefile.am): Likewise.
64283         * modules/getdelim (Makefile.am): Likewise.
64284         * modules/getdomainname (Makefile.am): Likewise.
64285         * modules/getgroups (Makefile.am): Likewise.
64286         * modules/gethostname (Makefile.am): Likewise.
64287         * modules/gethrxtime (Makefile.am): Likewise.
64288         * modules/getline (Makefile.am): Likewise.
64289         * modules/getloadavg (Makefile.am): Likewise.
64290         * modules/getlogin_r (Makefile.am): Likewise.
64291         * modules/getopt (Makefile.am): Likewise.
64292         * modules/getpass (Makefile.am): Likewise.
64293         * modules/getpass-gnu (Makefile.am): Likewise.
64294         * modules/getsubopt (Makefile.am): Likewise.
64295         * modules/gettime (Makefile.am): Likewise.
64296         * modules/gettimeofday (Makefile.am): Likewise.
64297         * modules/getugroups (Makefile.am): Likewise.
64298         * modules/getusershell (Makefile.am): Likewise.
64299         * modules/glob (Makefile.am): Likewise.
64300         * modules/group-member (Makefile.am): Likewise.
64301         * modules/hard-locale (Makefile.am): Likewise.
64302         * modules/hash (Makefile.am): Likewise.
64303         * modules/hmac-md5 (Makefile.am): Likewise.
64304         * modules/hmac-sha1 (Makefile.am): Likewise.
64305         * modules/human (Makefile.am): Likewise.
64306         * modules/idcache (Makefile.am): Likewise.
64307         * modules/imaxabs (Makefile.am): Likewise.
64308         * modules/imaxdiv (Makefile.am): Likewise.
64309         * modules/inet_ntop (Makefile.am): Likewise.
64310         * modules/inet_pton (Makefile.am): Likewise.
64311         * modules/inttostr (Makefile.am): Likewise.
64312         * modules/isapipe (Makefile.am): Likewise.
64313         * modules/lchown (Makefile.am): Likewise.
64314         * modules/long-options (Makefile.am): Likewise.
64315         * modules/lstat (Makefile.am): Likewise.
64316         * modules/malloc (Makefile.am): Likewise.
64317         * modules/mathl (Makefile.am): Likewise.
64318         * modules/mbchar (Makefile.am): Likewise.
64319         * modules/md2 (Makefile.am): Likewise.
64320         * modules/md4 (Makefile.am): Likewise.
64321         * modules/md5 (Makefile.am): Likewise.
64322         * modules/memcasecmp (Makefile.am): Likewise.
64323         * modules/memchr (Makefile.am): Likewise.
64324         * modules/memcmp (Makefile.am): Likewise.
64325         * modules/memcoll (Makefile.am): Likewise.
64326         * modules/memcpy (Makefile.am): Likewise.
64327         * modules/memmem (Makefile.am): Likewise.
64328         * modules/memmove (Makefile.am): Likewise.
64329         * modules/mempcpy (Makefile.am): Likewise.
64330         * modules/memrchr (Makefile.am): Likewise.
64331         * modules/memset (Makefile.am): Likewise.
64332         * modules/memxor (Makefile.am): Likewise.
64333         * modules/mkancesdirs (Makefile.am): Likewise.
64334         * modules/mkdir (Makefile.am): Likewise.
64335         * modules/mkdir-p (Makefile.am): Likewise.
64336         * modules/mkdtemp (Makefile.am): Likewise.
64337         * modules/mkstemp (Makefile.am): Likewise.
64338         * modules/mktime (Makefile.am): Likewise.
64339         * modules/modechange (Makefile.am): Likewise.
64340         * modules/mountlist (Makefile.am): Likewise.
64341         * modules/nanosleep (Makefile.am): Likewise.
64342         * modules/openat (Makefile.am): Likewise.
64343         * modules/pagealign_alloc (Makefile.am): Likewise.
64344         * modules/physmem (Makefile.am): Likewise.
64345         * modules/poll (Makefile.am): Likewise.
64346         * modules/posixtm (Makefile.am): Likewise.
64347         * modules/posixver (Makefile.am): Likewise.
64348         * modules/putenv (Makefile.am): Likewise.
64349         * modules/quote (Makefile.am): Likewise.
64350         * modules/quotearg (Makefile.am): Likewise.
64351         * modules/raise (Makefile.am): Likewise.
64352         * modules/read-file (Makefile.am): Likewise.
64353         * modules/readline (Makefile.am): Likewise.
64354         * modules/readlink (Makefile.am): Likewise.
64355         * modules/readtokens (Makefile.am): Likewise.
64356         * modules/readutmp (Makefile.am): Likewise.
64357         * modules/realloc (Makefile.am): Likewise.
64358         * modules/regex (Makefile.am): Likewise.
64359         * modules/rename (Makefile.am): Likewise.
64360         * modules/rename-dest-slash (Makefile.am): Likewise.
64361         * modules/rijndael (Makefile.am): Likewise.
64362         * modules/rmdir (Makefile.am): Likewise.
64363         * modules/rpmatch (Makefile.am): Likewise.
64364         * modules/safe-read (Makefile.am): Likewise.
64365         * modules/safe-write (Makefile.am): Likewise.
64366         * modules/same (Makefile.am): Likewise.
64367         * modules/save-cwd (Makefile.am): Likewise.
64368         * modules/savedir (Makefile.am): Likewise.
64369         * modules/setenv (Makefile.am): Likewise.
64370         * modules/settime (Makefile.am): Likewise.
64371         * modules/sha1 (Makefile.am): Likewise.
64372         * modules/sig2str (Makefile.am): Likewise.
64373         * modules/snprintf (Makefile.am): Likewise.
64374         * modules/stdlib-safer (Makefile.am): Likewise.
64375         * modules/stpcpy (Makefile.am): Likewise.
64376         * modules/stpncpy (Makefile.am): Likewise.
64377         * modules/strcase (Makefile.am): Likewise.
64378         * modules/strcasestr (Makefile.am): Likewise.
64379         * modules/strchrnul (Makefile.am): Likewise.
64380         * modules/strcspn (Makefile.am): Likewise.
64381         * modules/strdup (Makefile.am): Likewise.
64382         * modules/strerror (Makefile.am): Likewise.
64383         * modules/strftime (Makefile.am): Likewise.
64384         * modules/strndup (Makefile.am): Likewise.
64385         * modules/strnlen (Makefile.am): Likewise.
64386         * modules/strpbrk (Makefile.am): Likewise.
64387         * modules/strsep (Makefile.am): Likewise.
64388         * modules/strstr (Makefile.am): Likewise.
64389         * modules/strtod (Makefile.am): Likewise.
64390         * modules/strtoimax (Makefile.am): Likewise.
64391         * modules/strtok_r (Makefile.am): Likewise.
64392         * modules/strtol (Makefile.am): Likewise.
64393         * modules/strtoll (Makefile.am): Likewise.
64394         * modules/strtoul (Makefile.am): Likewise.
64395         * modules/strtoull (Makefile.am): Likewise.
64396         * modules/strtoumax (Makefile.am): Likewise.
64397         * modules/strverscmp (Makefile.am): Likewise.
64398         * modules/time_r (Makefile.am): Likewise.
64399         * modules/timegm (Makefile.am): Likewise.
64400         * modules/tmpfile-safer (Makefile.am): Likewise.
64401         * modules/unistd-safer (Makefile.am): Likewise.
64402         * modules/unlinkdir (Makefile.am): Likewise.
64403         * modules/userspec (Makefile.am): Likewise.
64404         * modules/utime (Makefile.am): Likewise.
64405         * modules/utimecmp (Makefile.am): Likewise.
64406         * modules/utimens (Makefile.am): Likewise.
64407         * modules/vasnprintf (Makefile.am): Likewise.
64408         * modules/vasprintf (Makefile.am): Likewise.
64409         * modules/vsnprintf (Makefile.am): Likewise.
64410         * modules/xalloc (Makefile.am): Likewise.
64411         * modules/xgetcwd (Makefile.am): Likewise.
64412         * modules/xnanosleep (Makefile.am): Likewise.
64413         * modules/xreadlink (Makefile.am): Likewise.
64414         * modules/xstrtod (Makefile.am): Likewise.
64415         * modules/xstrtol (Makefile.am): Likewise.
64416         * modules/xstrtold (Makefile.am): Likewise.
64417         * modules/yesno (Makefile.am): Likewise.
64418
64419 2006-10-12  Jim Meyering  <jim@meyering.net>
64420
64421         * m4/getloadavg.m4: Revert the change below.
64422
64423         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
64424         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
64425         fail with a symlink, which is what coreutils' ./bootstrap now
64426         creates by default.
64427
64428 2006-10-12  Bruno Haible  <bruno@clisp.org>
64429
64430         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
64431         mingw.
64432         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
64433         MSVC and mingw explicitly.
64434
64435 2006-10-11  Simon Josefsson  <jas@extundo.com>
64436             Bruno Haible  <bruno@clisp.org>
64437
64438         Add support for multiple gnulib-tool invocations in the scope of a
64439         single configure.ac file.
64440         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
64441         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
64442         with the same contents as the _LIBADD variable.
64443         (func_emit_initmacro_start, func_emit_initmacro_end,
64444         func_emit_initmacro_done): New functions.
64445         (func_import, func_create_testdir): Invoke them. Allow the identifiers
64446         gl_LIBOBJS and gl_LTLIBOBJS.
64447
64448 2006-10-11  Bruno Haible  <bruno@clisp.org>
64449
64450         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
64451         (func_create_testdir): Don't create po/Makefile.am, don't invoke
64452         autoreconf. Instead, invoke autopoint explicitly but move back the
64453         *.m4 files from gnulib.
64454
64455 2006-10-11  Bruno Haible  <bruno@clisp.org>
64456
64457         * gnulib-tool (func_usage): Make module names after --create-testdir
64458         optional.
64459         (func_create_testdir): If no module was specified, use nearly all
64460         modules.
64461
64462 2006-10-12  Jim Meyering  <jim@meyering.net>
64463
64464         Big performance improvement for fts-based tools that use FTS_NOSTAT.
64465         Avoid spurious inode-mismatch problems on non-POSIX file systems.
64466         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
64467         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
64468         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
64469         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
64470         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
64471         (fts_set_stat_required): New function.
64472         (fts_open): Defer the calls to fts_stat, if possible or requested.
64473         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
64474         into fts_stat itself.
64475         (fts_read): Perform any required (deferred) fts_stat call.
64476         (fts_build): Likewise, for the directory we're about to open and read.
64477         In the readdir loop, carefully decide whether each entry will require
64478         an eventual call to fts_stat, using dirent.d_type info if available.
64479         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
64480         a command line argument into this function.  Update all callers.
64481         Map a return value of FTS_DOT to FTS_D for a command line argument.
64482         * modules/fts (Depends-on): Add d-type.  Alphabetize.
64483         Thanks to Miklos Szeredi for his tenacity and for the initial
64484         bug report about "find" failing on a FUSE-based file system.
64485
64486         * lib/fts.c (fts_open): Use consistent indentation.
64487
64488 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64489
64490         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
64491         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
64492         reported by Jim Meyering.  All uses of cache variables renamed
64493         to match Autoconf's.
64494         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
64495         the other one.
64496
64497         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64498         Fix misspelling in diagnostic.
64499
64500 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64501
64502         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
64503         defined.  Problem reported by Matthew Woehlke.
64504
64505         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
64506         Add support for Tandem NonStop R series.
64507         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
64508         Use new macro.
64509
64510         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
64511         (has_trailing_slash): Omit size arg; all callers changed.
64512         Omit 'inline', since it doesn't help performance and we'd
64513         need to configure it.
64514         Don't count //, ///, etc. as having a trailing slash.
64515         As a side effect, this removes a C99ism reported by Matthew Woehlke.
64516         (rpl_rename_dest_slash): On failure, use rename's errno rather
64517         than (in some cases) an incorrect or junk errno.
64518         Simplify code by removing need to compute length; this does
64519         cause it to make two passes instead of one over the file name,
64520         but it's worth it.
64521
64522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
64523         change, since Autoconf's version may no longer be appropriate now
64524         that we are using CVS Autoconf's version.  Add support for Tandem.
64525
64526 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64527             Bruno Haible  <bruno@clisp.org>
64528
64529         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
64530         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
64531         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
64532         gl_AC_TYPE_LONG_LONG.
64533
64534         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
64535         instead of HAVE_LONG_LONG.
64536         * lib/printf-args.c (printf_fetchargs): Likewise.
64537         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
64538         * lib/vasnprintf.c (VASNPRINTF): Likewise.
64539         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
64540         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
64541         gl_AC_TYPE_LONG_LONG.
64542
64543 2006-10-11  Bruno Haible  <bruno@clisp.org>
64544
64545         * m4/longlong.m4: Add comments.
64546         * m4/ulonglong.m4: Likewise.
64547
64548 2006-10-10  Bruno Haible  <bruno@clisp.org>
64549
64550         Make it possible to #define stpcpy, strdup to aliases.
64551         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
64552         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
64553
64554 2006-10-10  Bruno Haible  <bruno@clisp.org>
64555
64556         Make it possible to #define gcd to an alias.
64557         * lib/gcd.c: Include config.h.
64558
64559 2006-10-10  Bruno Haible  <bruno@clisp.org>
64560
64561         Make it possible to #define c_isascii to an alias.
64562         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64563         defined. Undefine the macros before defining them, to avoid gcc
64564         warnings.
64565         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64566         define NO_C_CTYPE_MACROS early.
64567
64568 2006-10-10  Bruno Haible  <bruno@clisp.org>
64569
64570         Make it possible to #define set_program_name to an alias.
64571         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64572         ENABLE_RELOCATABLE early.
64573
64574 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64575
64576         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64577         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64578         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64579         More generally, don't assume that 64-bit signed int is available
64580         if unsigned int is, and vice versa.
64581         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64582         unsigned symbols, not on their signed counterparts.
64583         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64584         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64585         (UINT64_C, UINTMAX_C):
64586         Likewise.
64587         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64588         unsigned counterparts.
64589         (Have_long_long, Unsigned): New macros.
64590         (Int): Renamed from INT.
64591         (strtoimax): Use the new macros.
64592         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64593         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64594         * modules/inttypes (inttypes.h): Substitute
64595         HAVE_UNSIGNED_LONG_LONG_INT.
64596         * modules/stdint (stdint.h): Likewise.
64597         (Files): Add m4/ulonglong.m4.
64598
64599 2006-10-10  Bruno Haible  <bruno@clisp.org>
64600
64601         Fix a gcc -Wshadow warning.
64602         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64603         to 'bucket'.
64604         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64605         gl_linked_indexof_from_to): Likewise.
64606         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64607         Likewise.
64608         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64609         Likewise.
64610         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64611         Reported by Eric Blake.
64612
64613 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64614
64615         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64616         for NetBSD.  Problem reported by Bruno Haible.
64617
64618 2006-10-09  Jim Meyering  <jim@meyering.net>
64619
64620         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64621         Patch from Bruno Haible.
64622
64623 2006-10-09  Jim Meyering  <jim@meyering.net>
64624
64625         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64626         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64627         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64628
64629 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64630
64631         Don't include <config.h> twice; this doesn't work in some cases,
64632         e.g., when config.h has "#define intmax_t long long int" and
64633         we include <config.h>, <inttypes.h>, <config.h> in that order.
64634         Problem reported by Matthew Woehlke in:
64635         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64636         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64637         * lib/fts-cycle.c: Don't include config.h.
64638         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64639         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64640         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64641         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64642         inttypes.h.
64643         * lib/xstrtoumax.c: Likewise.
64644         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64645         __strtol and the like, so that this module is more like its siblings.
64646         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64647         Remove; no longer needed now that we assume gnulib inttypes.h.
64648
64649 2006-10-08  Bruno Haible  <bruno@clisp.org>
64650
64651         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64652         option.
64653
64654 2006-10-07  Jim Meyering  <jim@meyering.net>
64655
64656         * modules/inttypes (inttypes.h): Revert what seems to have been
64657         an inadvertent part of today's change: use "|", not "/" in the
64658         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64659
64660 2006-10-07  Bruno Haible  <bruno@clisp.org>
64661
64662         * modules/sublist: New file.
64663
64664 2006-10-07  Bruno Haible  <bruno@clisp.org>
64665
64666         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64667         * modules/argz (argz.h): Likewise.
64668         * modules/arpa_inet (arpa/inet.h): Likewise.
64669         * modules/byteswap (byteswap.h): Likewise.
64670         * modules/configmake (configmake.h): Likewise.
64671         * modules/fcntl (fcntl.h): Likewise.
64672         * modules/fnmatch (fnmatch.h): Likewise.
64673         * modules/getopt (getopt.h): Likewise.
64674         * modules/glob (glob.h): Likewise.
64675         * modules/inttypes (inttypes.h): Likewise.
64676         * modules/netinet_in (netinet/in.h): Likewise.
64677         * modules/poll (poll.h): Likewise.
64678         * modules/stdbool (stdbool.h): Likewise.
64679         * modules/stdint (stdint.h): Likewise.
64680         * modules/sys_select (sys/select.h): Likewise.
64681         * modules/sys_socket (sys/socket.h): Likewise.
64682         * modules/sys_stat (sys/stat.h): Likewise.
64683         * modules/sysexits (sysexits.h): Likewise.
64684         * modules/unistd (unistd.h): Likewise.
64685         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64686         Add a "DO NOT EDIT" comment to the generated file.
64687         (func_import): Likewise for gnulib-comp.m4.
64688
64689 2006-10-07  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/gl_sublist.h: New file.
64692         * lib/gl_sublist.c: New file.
64693
64694 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64695
64696         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64697         name (relative to the original working directory) and the file
64698         name component (relative to the temporary working directory).  All
64699         callers changed.
64700         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64701         * lib/mkdir-p.c (make_dir_parents): Likewise.
64702         * lib/mkdir-p.h (make_dir_parents): Likewise.
64703
64704 2006-10-06  Eric Blake  <ebb9@byu.net>
64705
64706         Define several macros for use by the clean-temp module.
64707         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64708         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64709         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64710
64711         * lib/clean-temp.h (close_stream_temp): New declaration.
64712         * lib/clean-temp.c (includes): Pull in headers according to what
64713         other modules are in use.
64714         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64715
64716 2006-10-06  Bruno Haible  <bruno@clisp.org>
64717
64718         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64719         instead of fopen, fwriteerror.
64720
64721 2006-10-06  Bruno Haible  <bruno@clisp.org>
64722
64723         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64724         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64725         int.
64726         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64727         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64728         Return an error indicator.
64729         Suggested by Eric Blake.
64730
64731 2006-10-06  Bruno Haible  <bruno@clisp.org>
64732
64733         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64734         Reported by Eric Blake.
64735
64736 2006-10-06  Bruno Haible  <bruno@clisp.org>
64737
64738         * modules/closeout (Description): Mention stderr too.
64739
64740 2006-10-06  Bruno Haible  <bruno@clisp.org>
64741         and Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         * lib/closeout.c (close_stdout): Also close stderr.
64744         * lib/closeout.h: Update comment.
64745
64746 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64749         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64750         * lib/dirchownmod.c: Include lchown.h.
64751         * lib/lchown.c: Don't include files that lchown.h now includes.
64752         Don't declare chown, since lchown.h now does that.
64753         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64754         (lchown): Define to rpl_chown if lchown is declared but
64755         does not exist.  Declare using a prototype if lchown is not
64756         declared.  Add a copyright notice.
64757         * lib/mkstemp.h: Include <unistd.h>.
64758         * lib/openat.c: Include lchown.h.
64759
64760         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64761         we now test for that separately.
64762         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64763         rather than O_NOFOLLOW, when testing whether it's possible to
64764         avoid a race condition reliably.
64765         * lib/savewd.c (savewd_chdir): Likewise.
64766
64767         Remove macros that are no longer needed now that stdint.h is
64768         reliable.
64769         * lib/fsusage.c (UINTMAX_MAX): Remove.
64770         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64771         * lib/utimecmp.c (SIZE_MAX): Remove.
64772
64773         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64774
64775         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64776         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64777         O_NOATIME works.
64778
64779 2006-10-05  Bruno Haible  <bruno@clisp.org>
64780
64781         * lib/gl_list.h (gl_sortedlist_search_from_to,
64782         gl_sortedlist_indexof_from_to): New declarations.
64783         (gl_list_implementation): New fields sortedlist_search_from_to,
64784         sortedlist_indexof_from_to.
64785         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64786         inline functions.
64787         * lib/gl_list.c (gl_sortedlist_search_from_to,
64788         gl_sortedlist_indexof_from_to): New functions.
64789         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64790         function.
64791         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64792         (gl_array_sortedlist_search_from_to): New function.
64793         (gl_array_list_implementation): Update.
64794         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64795         function.
64796         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64797         (gl_carray_sortedlist_search_from_to): New function.
64798         (gl_carray_list_implementation): Update.
64799         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64800         gl_linked_sortedlist_indexof_from_to): New functions.
64801         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64802         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64803         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64804         gl_tree_sortedlist_indexof_from_to): New functions.
64805         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64806         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64807         Update.
64808         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64809         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64810         Update.
64811
64812 2006-10-05  Bruno Haible  <bruno@clisp.org>
64813
64814         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64815         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64816         (struct gl_list_implementation): Add fields search_from_to,
64817         indexof_from_to. Remove fields search, indexof.
64818         (gl_list_search): Use the search_from_to method.
64819         (gl_list_search_from, gl_list_search_from_to): New functions.
64820         (gl_list_indexof): Use the indexof_from_to method.
64821         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64822         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64823         (gl_list_search_from, gl_list_search_from_to): New functions.
64824         (gl_list_indexof): Use the indexof_from_to method.
64825         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64826         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64827         gl_array_indexof. Add start_index, end_index arguments.
64828         (gl_array_search_from_to): Renamed from gl_array_search. Add
64829         start_index, end_index arguments.
64830         (gl_array_remove, gl_array_list_implementation): Update.
64831         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64832         gl_carray_indexof. Add start_index, end_index arguments.
64833         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64834         start_index, end_index arguments.
64835         (gl_carray_remove, gl_carray_list_implementation): Update.
64836         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64837         gl_linked_search. Add start_index, end_index arguments.
64838         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64839         start_index, end_index arguments.
64840         (gl_linked_remove): Update.
64841         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64842         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64843         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64844         field to 'size_t'.
64845         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64846         gl_tree_search. Add start_index, end_index arguments.
64847         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64848         start_index, end_index arguments.
64849         (gl_tree_remove): Update.
64850         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64851         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64852         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64853         function.
64854         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64855         gl_tree_search. Add start_index, end_index arguments.
64856         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64857         start_index, end_index arguments.
64858         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64859         Update.
64860         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64861
64862 2006-10-05  Bruno Haible  <bruno@clisp.org>
64863
64864         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64865
64866         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64867         fwriteerror_temp): New declarations.
64868         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64869         (descriptors): New variable.
64870         (cleanup): First, close the descriptors.
64871         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64872         fclose_temp, fwriteerror_temp): New functions.
64873
64874 2006-10-04  Jim Meyering  <jim@meyering.net>
64875
64876         * lib/fts.c (fts_open): Tiny comment change.
64877
64878 2006-10-04  Bruno Haible  <bruno@clisp.org>
64879
64880         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64881         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64882         gl_LOCK_BODY.
64883         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64884         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64885         gl_LOCK_EARLY_BODY.
64886         (gl_LOCK): Require gl_LOCK_BODY.
64887
64888 2006-10-04  Bruno Haible  <bruno@clisp.org>
64889
64890         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64891         (gl_oset_search_atleast): New declaration.
64892         (struct gl_oset_implementation): Add field 'search_atleast'.
64893         (gl_oset_search_atleast): New inline function.
64894         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64895         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64896         (gl_array_oset_implementation): Update.
64897         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64898         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64899         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64900
64901 2006-10-04  Bruno Haible  <bruno@clisp.org>
64902
64903         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64904
64905 2006-10-03  Bruno Haible  <bruno@clisp.org>
64906
64907         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64908         from gl_avltreehash_list_implementation.
64909
64910 2006-10-03  Bruno Haible  <bruno@clisp.org>
64911
64912         * lib/gl_oset.c (gl_oset_add): Fix return type.
64913
64914 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64915
64916         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64917
64918 2006-10-02  Eric Blake  <ebb9@byu.net>
64919
64920         * modules/strnlen (Depends-on): Add extensions.
64921
64922 2006-10-02  Eric Blake  <ebb9@byu.net>
64923
64924         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64925         definition in 2.60+.
64926
64927 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64928
64929         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64930         checks.
64931
64932 2006-10-02  Bruno Haible  <bruno@clisp.org>
64933
64934         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64935         to the AUTOMAKE_OPTIONS.
64936         Reported by Jim Meyering.
64937
64938 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64939
64940         Work around bug in Solaris 10 /proc file system:
64941         /proc/self/fd/NNN/.. isn't the parent directory of
64942         the directory whose file descriptor is NNN.  This needs to
64943         be worked around at run time, not compile time, since a
64944         program might be built on Solaris 8, where things work, and
64945         run on Solaris 10.
64946         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64947         to use the following interface instead:
64948         (OPENAT_BUFFER_SIZE): New macro.
64949         (openat_proc_name): New function.
64950         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64951         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64952         Likewise.
64953         * lib/openat-proc.c: New file.
64954         * modules/openat (Files): Add lib/openat-proc.c.
64955         (Depends-on): Add same-inode, stdbool.
64956         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64957
64958 2006-09-29  Bruno Haible  <bruno@clisp.org>
64959
64960         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64961         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64962         argument. Set stdout_closed before testing for ferror, not after.
64963         (fwriteerror, fwriteerror_no_ebadf): New functions.
64964
64965 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64966
64967         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64968
64969 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64970
64971         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64972         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64973
64974 2006-09-28  Jim Meyering  <jim@meyering.net>
64975
64976         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64977         Include <unistd.h>.
64978
64979 2006-09-28  Bruno Haible  <bruno@clisp.org>
64980
64981         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64982         * modules/linkedhash-list (Depends-on): Likewise.
64983         * modules/rbtreehash-list (Depends-on): Likewise.
64984
64985 2006-09-28  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/strndup.h: Simplify the redefinition of strndup.
64988         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64989         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64990
64991 2006-09-28  Bruno Haible  <bruno@clisp.org>
64992
64993         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64994         * lib/gl_linkedhash_list.c: Likewise.
64995         * lib/gl_rbtreehash_list.c: Likewise.
64996
64997 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64998
64999         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65000         getaddrinfo.
65001
65002         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65003         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65004         it causes <stdio_ext.h> to cause a compile-time error.
65005         Problem reported by Nelson H. F. Beebe.
65006         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65007         of HAVE_DECL___PENDING.
65008
65009         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65010         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65011         declaration.
65012
65013 2006-09-27  Jim Meyering  <jim@meyering.net>
65014
65015         This file could end up with a definition for a function
65016         named __strndup, rather than rpl_strndup on a system with
65017         incomplete weak_alias support.
65018         * lib/strndup.c (strndup): Rename from __strndup.
65019         Remove #defines that used to map __strndup to strndup.
65020         Don't use K&R prototypes.
65021         Remove LIBC-related code, since this file is not sync'd with glibc.
65022         * lib/strndup.h: Revamp, accordingly.
65023         * m4/strndup.m4: Modernize.
65024
65025 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         * modules/savewd (Depends-on): Add 'raise'.
65028         * lib/savewd.c: Include <signal.h>, for 'raise'.
65029
65030 2006-09-26  Jim Meyering  <jim@meyering.net>
65031
65032         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
65033         when we detect Darwin 8.7.0's acl_get_file bug.
65034         Rearrange to perform the new (below) run-test while $LIBS
65035         contains any acl-related library.  Set USE_ACL at the end.
65036         (gl_ACL_GET_FILE): New function.
65037
65038 2006-09-26  Eric Blake  <ebb9@byu.net>
65039
65040         * lib/verror.c: Include <config.h> unconditionally.
65041
65042 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
65043
65044         * modules/clock-time (Maintainer): Add self.
65045         * modules/getlogin_r (Depends-on): Add extensions.
65046
65047 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65048
65049         * modules/clock-time: New module.
65050         * modules/nanosleep (Depends-on): Add clock-time.
65051         * modules/gethrxtime (Depends-on): Likewise.
65052         * modules/gettime (Depends-on): Likewise.
65053         * modules/settime (Depends-on): Likewise.
65054
65055         * modules/fts-lgpl: Depend on openat.
65056         * modules/mkancesdirs: Depend on savewd.
65057         * modules/mkdir-p: Likewise.
65058
65059 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65060
65061         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65062
65063         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65064         `gl_have_arbitrary_file_name_length_limit' to
65065         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65066         actually works between configure runs.
65067
65068 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65069             Bruno Haible  <bruno@clisp.org>
65070
65071         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65072
65073 2006-09-25  Jim Meyering  <jim@meyering.net>
65074
65075         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65076         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65077
65078 2006-09-25  Eric Blake  <ebb9@byu.net>
65079
65080         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65081         exec's in 2006-09-18 patch when shuffling fds.
65082
65083 2006-09-25  Bruno Haible  <bruno@clisp.org>
65084
65085         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65086         Reported by Jim Meyering.
65087
65088 2006-09-24  Jim Meyering  <jim@meyering.net>
65089
65090         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65091         compare a pointer against a literal "0".  That caused failures with
65092         at least HP-UX's hpcc.
65093
65094 2006-09-22  Simon Josefsson  <jas@extundo.com>
65095
65096         * modules/gc-sha1:
65097         * modules/gc-md4:
65098         * modules/gc-hmac-sha1:
65099         * modules/gc-hmac-md5:
65100         * modules/gc-des:
65101         * modules/gc-arcfour: Distribute more files.
65102
65103 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65104
65105         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65106         (gl_linked_iterator_from_to): Initialize struct completely.
65107         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65108         (gl_tree_iterator_from_to): Likewise
65109         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65110         * lib/gl_array_list.c [lint] (gl_array_iterator)
65111         (gl_array_iterator_from_to): Likewise.
65112         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65113         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65114         (gl_carray_iterator_from_to): Likewise.
65115
65116         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65117         * lib/md4.c (md4_process_block): Remove unused variable.
65118         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65119         parentheses for clarity.
65120
65121 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65122
65123         * modules/bison-i18n (Depends-on): Add gettext.
65124
65125 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65126
65127         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
65128         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
65129         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
65130         also add missing comma that caused broken test.
65131         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
65132         stdlib.h, for `abort'.
65133         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
65134         variables.
65135         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
65136         include unistd.h if present, for `rmdir'.
65137         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
65138         variables.
65139         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
65140         in the process include standard headers for prototypes.
65141         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
65142         gets declared on GNU/Linux.
65143         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
65144         unistd.h, for `rmdir'.
65145         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
65146
65147         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
65148         always true.
65149         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
65150
65151         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
65152
65153 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65154
65155         * gnulib-tool (func_version): Create output all at once.  This
65156         may help avoid triggering unnecessary SIGPIPEs, and at any
65157         rate it doesn't hurt.
65158
65159 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65160             Bruno Haible  <bruno@clisp.org>
65161
65162         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
65163         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65164         * m4/signed.m4 (bh_C_SIGNED): Likewise.
65165
65166         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
65167         (gl_FUNC_VASPRINTF): Invoke it.
65168
65169 2006-09-22  Bruno Haible  <bruno@clisp.org>
65170
65171         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
65172         getloadavg.c as first argument.
65173
65174 2006-09-22  Bruno Haible  <bruno@clisp.org>
65175
65176         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
65177         at the beginning of the gl_INIT macro.
65178         * modules/getloadavg (configure.ac): Pass $gl_source_base to
65179         gl_GETLOADAVG.
65180
65181 2006-09-22  Bruno Haible  <bruno@clisp.org>
65182
65183         * gnulib-tool (func_create_megatestdir): Don't include the config-h
65184         module.
65185         Suggested by Ralf Wildenhues.
65186
65187 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65188
65189         Import this patch from libc:
65190
65191         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
65192
65193         * lib/regex_internal.c (re_string_reconstruct): Handle
65194         offset < pstr->valid_raw_len && pstr->offsets_needed case.
65195         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
65196         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
65197         re_string_context_at.
65198
65199         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
65200         now requires it.
65201         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
65202         gl_REGEX now does it for us.
65203         (gl_REGEX): Add test taken from
65204         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
65205
65206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
65207         Check that large offsets work.  Modernize Autoconf usages.
65208         Prefer "yes" to mean a good thing rather than a bad.
65209         Don't put "#define mkstemp" in config.h, as this might interfere
65210         with standard system headers that "#define mkstemp mkstemp64".
65211
65212         * modules/mkstemp (Depends-on): Add extensions, so that
65213         mkstemp is visible on some platforms.
65214         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
65215         (Include): Change to "mkstemp.h" from <stdlib.h>.
65216         (Files): Add mkstemp.h.
65217
65218         * lib/mkstemp.h: New file, since some standard headers
65219         #define mkstemp.
65220         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
65221         Include "mkstemp.h".
65222         Make the _LIBC code resemble glibc original more,
65223         e.g., use K&R style.
65224         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
65225         (mkstemp): Remove, since mkstemp.h does this for us.
65226         * lib/stdlib--.h: Include mkstemp.h.
65227
65228         Import this patch from libc:
65229
65230         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65231
65232         * lib/tempname.c (__gen_tempname): Change attempts_min
65233         into a macro.  Use preprocessor to decide how to initialize
65234         attempts [Coverity CID 67].
65235
65236 2006-09-20  Bruno Haible  <bruno@clisp.org>
65237
65238         * lib/mkdtemp.c: Import from libc.
65239         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
65240                 * sysdeps/posix/tempname.c (__gen_tempname): Change
65241                 attempts_min into a macro.  Use preprocessor to decide how to
65242                 initialize attempts [Coverity CID 67].
65243         2001-11-27  Paul Eggert  <eggert@twinsun.com>
65244                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
65245                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
65246
65247 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65248
65249         * gnulib-tool (func_exit): New function, to allow to pass the
65250         exit status portably through the trap.  Use everywhere.
65251         (--help, --version): Signal a write error.
65252         (trap): catch SIGPIPE, for write errors.
65253         Exit at the end of the trap, with the correct exit status.
65254
65255 2006-09-19  Karl Berry  <karl@gnu.org>
65256
65257         * doc/gnulib.texi: note about the license texinfo files.
65258
65259 2006-09-19  Eric Blake  <ebb9@byu.net>
65260
65261         * gnulib-tool: Avoid space-tab.
65262
65263 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65264
65265         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
65266         that prevented coreutils 6.1 from building.  Problem reported
65267         by Petter Reinholdtsen.
65268
65269 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
65270
65271         * gnulib-tool (avoidlist): Fix typo that broke options like
65272         --avoid=lock that are used by coreutils bootstrap.
65273
65274 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
65275
65276         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
65277         more systematically.
65278
65279 2006-09-18  Jim Meyering  <jim@meyering.net>
65280
65281         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
65282
65283 2006-09-18  Bruno Haible  <bruno@clisp.org>
65284
65285         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
65286
65287 2006-09-18  Bruno Haible  <bruno@clisp.org>
65288
65289         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
65290         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
65291         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
65292         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
65293         * m4/gettext.m4: Require autoconf >= 2.52.
65294         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
65295         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
65296         of gl_cv_header_inttypes_h.
65297
65298 2006-09-18  Bruno Haible  <bruno@clisp.org>
65299
65300         * lib/javaversion.c: Include configmake.h.
65301
65302 2006-09-18  Bruno Haible  <bruno@clisp.org>
65303
65304         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
65305         avoid that the while loops be executed in a subshell.
65306
65307 2006-09-18  Bruno Haible  <bruno@clisp.org>
65308
65309         * MODULES.html.sh (func_module): Break long lines.
65310         Suggested by Bruce Korb <bkorb@gnu.org>.
65311
65312 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65313
65314         Speed up by a factor of 1.12.
65315         * gnulib-tool (nl): New variable.
65316         (func_import): Rewrite include directive extraction to only read each
65317         directive once.
65318
65319 2006-09-17  Bruno Haible  <bruno@clisp.org>
65320
65321         * modules/javaversion (Makefile.am): Remove DEFS setting.
65322         (Depends-on): Add configmake, for PKGDATADIR definition.
65323
65324 2006-09-17  Bruno Haible  <bruno@clisp.org>
65325
65326         * gnulib-tool (func_create_testdir): Rewrite all files at once.
65327
65328 2006-09-17  Bruno Haible  <bruno@clisp.org>
65329
65330         * gnulib-tool (func_append): New function, stolen from libtool.m4.
65331         (func_modules_transitive_closure, func_modules_add_dummy,
65332         func_modules_to_filelist, func_import, func_create_testdir,
65333         func_create_megatestdir, ...): Use it wherever possible.
65334         Suggested by Ralf Wildenhues.
65335
65336 2006-09-16  Karl Berry  <karl@gnu.org>
65337
65338         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
65339         to avoid sectioning errors.
65340         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
65341         [ifinfo]: blank line after @center-ed titles.
65342         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
65343         Spell FSF address consistently with others.
65344         (These changes approved by rms.)
65345
65346 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65347
65348         Speed up by a factor of 1.61.
65349         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
65350         already checked module names again.
65351
65352 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65353
65354         Speed up by a factor of 1.13.
65355         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
65356         for new_files, and the input to func_add_or_update.
65357
65358 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65359
65360         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
65361         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
65362
65363 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         * modules/mkancesdirs (Depends-on): Add fcntl.
65366         * modules/savewd: New file.
65367         * MODULES.html.sh (File system functions): Add savewd.
65368
65369         * modules/configmake (Makefile.am): Add support for the
65370         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
65371
65372 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65373
65374         * m4/savewd.m4: New file.
65375
65376 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65377
65378         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
65379         (dirchownmod): New arg FD.  All callers changed.
65380         Use FD rather than opening the directory ourself, as opening is
65381         now the caller's responsibility.
65382         * lib/dirchownmod.h: Likewise.
65383         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
65384         hosts that require <sys/types.h> before <sys/stat.h>.  Include
65385         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
65386         (test_dir): Remove.
65387         (mkancesdirs): Return length of prefix of FILE that has already
65388         been made, or -2 if there is a child doing the work.  Redo
65389         algorithm so that it is O(N) rather than O(N**2).  Optimize away
65390         ".", and treat ".." specially since it might stray back into
65391         already-created areas.  Use a subprocess if necessary.  New arg
65392         WD; all users changed.  MAKE_DIR function should now return 1
65393         if it creates a directory that is not readable.  Return -2 if
65394         a child process is spun off.
65395         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
65396         Adjust signature to match code.
65397         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
65398         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
65399         all users changed.
65400         * lib/savewd.c, lib/savewd.h: New files.
65401
65402 2006-09-15  Jim Meyering  <jim@meyering.net>
65403
65404         * modules/rename-dest-slash: New module.
65405         * MODULES.html.sh (posix_compat): Add it here.
65406
65407         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
65408
65409 2006-09-15  Jim Meyering  <jim@meyering.net>
65410
65411         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
65412         file.
65413
65414         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
65415
65416 2006-09-15  Jim Meyering  <jim@meyering.net>
65417
65418         * lib/rename-dest-slash.c (has_trailing_slash): Use
65419         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
65420         (rpl_rename_dest_slash): Perform the cheaper trailing slash
65421         test before testing whether SRC is a directory.
65422         Suggestions from Bruno Haible.
65423
65424         Avoid a warning about an unused variable.
65425         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
65426         into the #ifdef block where it's used.
65427
65428         * lib/rename-dest-slash.c: New file.
65429
65430 2006-09-14  Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/allocsa.c: Include <config.h> unconditionally.
65433         * lib/asnprintf.c: Likewise.
65434         * lib/asprintf.c: Likewise.
65435         * lib/c-strcasecmp.c: Likewise.
65436         * lib/c-strcasestr.c: Likewise.
65437         * lib/c-strncasecmp.c: Likewise.
65438         * lib/c-strstr.c: Likewise.
65439         * lib/classpath.c: Likewise.
65440         * lib/clean-temp.c: Likewise.
65441         * lib/concatpath.c: Likewise.
65442         * lib/copy-file.c: Likewise.
65443         * lib/csharpcomp.c: Likewise.
65444         * lib/csharpexec.c: Likewise.
65445         * lib/execute.c: Likewise.
65446         * lib/fatal-signal.c: Likewise.
65447         * lib/findprog.c: Likewise.
65448         * lib/fwriteerror.c: Likewise.
65449         * lib/gl_array_list.c: Likewise.
65450         * lib/gl_array_oset.c: Likewise.
65451         * lib/gl_avltree_list.c: Likewise.
65452         * lib/gl_avltree_oset.c: Likewise.
65453         * lib/gl_avltreehash_list.c: Likewise.
65454         * lib/gl_carray_list.c: Likewise.
65455         * lib/gl_linked_list.c: Likewise.
65456         * lib/gl_linkedhash_list.c: Likewise.
65457         * lib/gl_list.c: Likewise.
65458         * lib/gl_oset.c: Likewise.
65459         * lib/gl_rbtree_list.c: Likewise.
65460         * lib/gl_rbtree_oset.c: Likewise.
65461         * lib/gl_rbtreehash_list.c: Likewise.
65462         * lib/imaxabs.c: Likewise.
65463         * lib/imaxdiv.c: Likewise.
65464         * lib/javacomp.c: Likewise.
65465         * lib/javaexec.c: Likewise.
65466         * lib/javaversion.c: Likewise.
65467         * lib/linebreak.c: Likewise.
65468         * lib/localcharset.c: Likewise.
65469         * lib/lock.c: Likewise.
65470         * lib/mbchar.c: Likewise.
65471         * lib/mbswidth.c: Likewise.
65472         * lib/mkdtemp.c: Likewise.
65473         * lib/pipe.c: Likewise.
65474         * lib/printf-args.c: Likewise.
65475         * lib/printf-parse.c: Likewise.
65476         * lib/progname.c: Likewise.
65477         * lib/progreloc.c: Likewise.
65478         * lib/readlink.c: Likewise.
65479         * lib/sh-quote.c: Likewise.
65480         * lib/stpcpy.c: Likewise.
65481         * lib/stpncpy.c: Likewise.
65482         * lib/strcasecmp.c: Likewise.
65483         * lib/strcasestr.c: Likewise.
65484         * lib/strcspn.c: Likewise.
65485         * lib/striconv.c: Likewise.
65486         * lib/strncasecmp.c: Likewise.
65487         * lib/strnlen1.c: Likewise.
65488         * lib/strstr.c: Likewise.
65489         * lib/strtok_r.c: Likewise.
65490         * lib/tls.c: Likewise.
65491         * lib/tmpdir.c: Likewise.
65492         * lib/unicodeio.c: Likewise.
65493         * lib/unsetenv.c: Likewise.
65494         * lib/vasnprintf.c: Likewise.
65495         * lib/vasprintf.c: Likewise.
65496         * lib/wait-process.c: Likewise.
65497         * lib/xallocsa.c: Likewise.
65498         * lib/xsetenv.c: Likewise.
65499         * lib/xstriconv.c: Likewise.
65500
65501 2006-09-13  Simon Josefsson  <jas@extundo.com>
65502
65503         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
65504         that internally, suggested by Ralf Wildenhues
65505         <Ralf.Wildenhues@gmx.de>.
65506
65507 2006-09-13  Simon Josefsson  <jas@extundo.com>
65508
65509         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
65510         @LIBOBJS@.
65511         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65512
65513 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65514
65515         * lib/_fpending.c: Include <config.h> unconditionally, since we no
65516         longer worry about uses that don't define HAVE_CONFIG_H.
65517         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
65518         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
65519         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
65520         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
65521         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
65522         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
65523         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
65524         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
65525         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
65526         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
65527         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
65528         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
65529         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
65530         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
65531         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
65532         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
65533         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
65534         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
65535         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
65536         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
65537         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
65538         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
65539         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
65540         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
65541         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
65542         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
65543         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
65544         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
65545         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
65546         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
65547         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
65548         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
65549         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
65550         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
65551         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
65552         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
65553         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
65554         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65555         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65556         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65557         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65558         Likewise.
65559
65560 2006-09-13  Eric Blake  <ebb9@byu.net>
65561
65562         * lib/getopt.c: Fix typo in last commit.
65563
65564 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65565
65566         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65567         dgettext.
65568
65569 2006-09-12  Jim Meyering  <jim@meyering.net>
65570
65571         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65572         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65573         Reported by Nelson H. F. Beebe.
65574
65575 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65576
65577         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65578         program_invocation_name and program_invocation_short_name are
65579         initialized.
65580         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65581         and program_invocation_short_name to argp.h, so they are visible
65582         to user programs.
65583         * lib/argp.h: Likewise
65584
65585 2006-09-10  Bruno Haible  <bruno@clisp.org>
65586
65587         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65588         m4/inttypes_h.m4, m4/uintmax_t.m4.
65589
65590 2006-09-10  Bruno Haible  <bruno@clisp.org>
65591
65592         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65593         gl_AC_TYPE_UINTMAX_T.
65594
65595 2006-09-10  Bruno Haible  <bruno@clisp.org>
65596
65597         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65598
65599 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65600
65601         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65602         convention.  Text proposed by Bruno Haible.
65603         (struct argp_option): Document the use of N_() wrappers.
65604
65605         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65606         '\v', and translate the two parts separately, instead of feeding
65607         the whole string to gettext.  This allows to exclude
65608         '\v' from the strings visible to the translator by writing doc
65609         strings as N_("..") "\v" N_("..").
65610
65611 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65612
65613         * config/srclist.txt: Undo latest change; the bug was fixed.
65614
65615 2006-09-09  Bruno Haible  <bruno@clisp.org>
65616
65617         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65618         assignments if building a library without libtool.
65619         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65620         in func_emit_lib_Makefile_am.
65621         (func_import): When building a static library libfoo.a, arrange to
65622         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65623         (func_create_testdir): Likewise.
65624         * modules/gc (configure.ac, Makefile.am): If building statically,
65625         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65626         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65627         * modules/striconv (configure.ac, Makefile.am): Likewise.
65628         Based on a suggestion by Ralf Wildenhues.
65629
65630 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65631
65632         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65633         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65634         Also:
65635
65636         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65637         Add year_2050_test to catch glibc bug 2821
65638         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65639
65640         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65641         Prefer #ifdef to #if.
65642
65643         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65644         Return from 'main' instead of calling 'exit'.
65645
65646 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65647
65648         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65649         returned the maximum time_t value rather than (time_t) -1.
65650         Problem originally reported by William Bardwell
65651         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65652
65653         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65654         Moved to here ...
65655         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65656         ... from here.
65657
65658 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65659
65660         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65661         2821 is fixed.
65662
65663 2006-09-08  Jim Meyering  <jim@meyering.net>
65664
65665         Don't make generated files read-only.  That would bother too many
65666         people.  However, do retain the ability to work when targets are
65667         read-only: remove the destination and temporary files before writing
65668         them (when generated via sed or echo), or by using the -f option for
65669         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65670         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65671         * modules/byteswap, modules/configmake, modules/fcntl:
65672         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65673         * modules/localcharset, modules/netinet_in, modules/poll:
65674         * modules/stdbool, modules/stdint, modules/sys_select:
65675         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65676
65677 2006-09-08  Jim Meyering  <jim@meyering.net>
65678
65679         Avoid new build failure on FreeBSD 6.0.
65680         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65681         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65682         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65683
65684 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65685
65686         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65687
65688 2006-09-07  Jim Meyering  <jim@meyering.net>
65689
65690         Fix global typo in last change: use chmod u-w, not chmod u-x.
65691         Spotted by Paul Eggert and Bruce Korb.
65692         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65693         * modules/byteswap, modules/configmake, modules/fcntl:
65694         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65695         * modules/localcharset, modules/netinet_in, modules/poll:
65696         * modules/stdbool, modules/stdint, modules/sys_select:
65697         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65698
65699 2006-09-06  Jim Meyering  <jim@meyering.net>
65700
65701         Make generated files be read-only.
65702         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65703         Ensure that each generated file is now read-only.
65704         * modules/argz: Likewise.
65705         * modules/arpa_inet: Likewise.
65706         * modules/byteswap: Likewise.
65707         * modules/configmake: Likewise.
65708         * modules/fcntl: Likewise.
65709         * modules/fnmatch: Likewise.
65710         * modules/getopt: Likewise.
65711         * modules/glob: Likewise.
65712         * modules/inttypes: Likewise.
65713         * modules/netinet_in: Likewise.
65714         * modules/poll: Likewise.
65715         * modules/stdbool: Likewise.
65716         * modules/stdint: Likewise.
65717         * modules/sys_select: Likewise.
65718         * modules/sys_socket: Likewise.
65719         * modules/sys_stat: Likewise.
65720         * modules/sysexits: Likewise.
65721         * modules/localcharset: Same as above, but continue using temporary
65722         file named "t-$@" (why different?) rather than the "$@-t" used
65723         everywhere else.
65724
65725         * modules/sysexits (Makefile.am): Replace literal occurrences
65726         of "sysexit.h" more readable, and more consistent, "$@".
65727
65728 2006-09-06  Bruno Haible  <bruno@clisp.org>
65729
65730         * modules/striconv: New file.
65731         * modules/xstriconv: New file.
65732         * MODULES.html.sh (Internationalization functions): Add striconv,
65733         xstriconv.
65734
65735 2006-09-06  Bruno Haible  <bruno@clisp.org>
65736
65737         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65738         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65739         not using libtool correctly.
65740
65741 2006-09-06  Bruno Haible  <bruno@clisp.org>
65742
65743         * lib/striconv.h: New file.
65744         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65745         iconvstring.c.
65746         * lib/xstriconv.h: New file.
65747         * lib/xstriconv.c: New file.
65748
65749 2006-09-06  Bruno Haible  <bruno@clisp.org>
65750
65751         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65752         lib_..._LDFLAGS.
65753
65754 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65755
65756         * lib/argz_.h: Sync from Libtool.
65757
65758         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65759                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65760
65761         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65762
65763 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65764
65765         * modules/trim: New file.
65766
65767 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65768
65769         * lib/trim.h: New file.
65770         * lib/trim.c: New file.
65771
65772 2006-09-05  Bruno Haible  <bruno@clisp.org>
65773
65774         * MODULES.html.sh (String handling): Add trim.
65775
65776 2006-09-04  Karl Berry  <karl@gnu.org>
65777
65778         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65779         until next release.
65780
65781 2006-09-03  Bruno Haible  <bruno@clisp.org>
65782
65783         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65784         correctly.
65785
65786 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65789         not gl_GETLOADAVG.  Omit unneeded semicolons.
65790         Problems reported by Ralf Wildenhues in
65791         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65792         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65793         at the end, which is the usual gnulib style.
65794
65795         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65796         of doing all the work ourselves.
65797         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65798         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65799
65800 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65801
65802         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65803         Problem reported by Ralf Wildenhues in
65804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65805
65806         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65807         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65808
65809 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65810
65811         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65812         yesterday's patch by changing test -n to test -z.
65813
65814 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65815
65816         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65817         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65818         the former is now obsolescent.
65819
65820         * modules/chdir-long (Depends-on): Add fcntl.
65821
65822 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65823
65824         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65825         obsolescent, and programs should use gnulib instead.
65826         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65827         but with prefixes changed.
65828
65829 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65832         or stdbool.h, because they might not exist while configuring.
65833
65834         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65835         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65836         does that for us.
65837         (O_DIRECTORY): Remove.
65838
65839 2006-08-31  Eric Blake  <ebb9@byu.net>
65840
65841         * gnulib-tool: Don't let emacs change spaces to TAB.
65842
65843 2006-08-31  Bruno Haible  <bruno@clisp.org>
65844
65845         * gnulib-tool: When calling func_import more than once, do it in a
65846         subshell.
65847         Reported by Eric Blake <ebb9@byu.net>.
65848
65849 2006-08-31  Bruno Haible  <bruno@clisp.org>
65850
65851         * gnulib-tool (nl): Remove variable.
65852         (sed_transform_lib_file): Use more robust test for config-h module.
65853         (func_import): Fix typo in 2006-08-25 patch.
65854
65855 2006-08-31  Bruno Haible  <bruno@clisp.org>
65856
65857         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65858         specified, augment Makefile.am variables instead of assigning them.
65859
65860 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65861
65862         Work around a bug in both the Linux and SunOS 64-bit kernels:
65863         nanosleep mishandles sleeps for longer than 2**31 seconds.
65864         Problem reported by Frank v Waveren in
65865         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65867         Check for nanosleep bug.
65868         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65869
65870 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         Work around a bug in both the Linux and SunOS 64-bit kernels:
65873         nanosleep mishandles sleeps for longer than 2**31 seconds.
65874         Problem reported by Frank v Waveren in
65875         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65876         * lib/nanosleep.c (BILLION): New constant.
65877         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65878         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65879         implementation.
65880
65881 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65882
65883         * modules/nanosleep (Depends-on): Add gettime.
65884
65885 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65886         and Simon Josefsson  <jas@extundo.com>
65887         and Oskar Liljeblad  <oskar@osk.mine.nu>
65888
65889         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65890         * gnulib-tool (func_import): New license type 'unmodifiable license
65891         text'.
65892         * modules/fdl: Use it.  Longer description.
65893         * module/gpl, module/lgpl: New files.
65894
65895 2006-08-30  Jim Meyering  <jim@meyering.net>
65896
65897         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65898         shadowing the parameter.
65899
65900 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65901
65902         Sync from Libtool:
65903
65904         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65905
65906         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65907         sharing with gnulib.  Report by Eric Blake.
65908
65909 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65910
65911         * modules/isapipe: New file.
65912         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65913
65914 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * modules/configmake (Makefile.am): Add a comment, and omit
65917         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65918         by Bruno Haible.
65919
65920 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         * m4/isapipe.m4: New file.
65923
65924 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65925
65926         * lib/isapipe.c, lib/isapipe.h: New files.
65927
65928 2006-08-29  Jim Meyering  <jim@meyering.net>
65929
65930         * modules/configmake (Makefile.am): Make configmake.h depend on
65931         Makefile.  Otherwise, a stale configmake.h could hang around.
65932
65933 2006-08-29  Eric Blake  <ebb9@byu.net>
65934
65935         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65936         resolution of upstream bug 3044.
65937
65938 2006-08-29  Bruno Haible  <bruno@clisp.org>
65939
65940         * modules/localcharset (Depends-on): Add configmake.
65941         (Makefile.am): Remove setting of LIBDIR through DEFS.
65942
65943 2006-08-29  Bruno Haible  <bruno@clisp.org>
65944
65945         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65946         defined.
65947
65948 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65949
65950         * modules/fcntl: New file.
65951         * modules/chdir-safer (Depends-on): Add fcntl.
65952         * modules/fts: Likewise.
65953         * modules/mkdir-p: Likewise.
65954
65955         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65956         This undoes the most recent change, since we're now addressing the
65957         problem in a different way.
65958
65959         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65960         into output, since the output might be called Makefile.am even
65961         if $makefile_name is something different.
65962         (func_import): Use $makefile_am rather than
65963         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65964         empty.
65965
65966         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65967
65968 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65969
65970         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65971         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65972         recent change to stdint.m4, since we're now addressing the problem in a
65973         different way.
65974
65975 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         * m4/fcntl_h.m4: New file.
65978
65979 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65980
65981         * lib/fcntl_.h: New file.
65982         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65983         the fcntl module.
65984         * lib/dirchownmod.c: Likewise.
65985         * lib/fts.c: Likewise.
65986
65987         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65988         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65989         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65990         just before including <inttypes.h>, to avoid circular inclusion.
65991
65992 2006-08-28  Jim Meyering  <jim@meyering.net>
65993
65994         * doc/visibility.texi: Actually read and correct the grammar of the
65995         sentence affected by yesterday's change.
65996
65997 2006-08-28  Eric Blake  <ebb9@byu.net>
65998
65999         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66000         needs wrapper.
66001
66002 2006-08-28  Eric Blake  <ebb9@byu.net>
66003
66004         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66005
66006 2006-08-28  Eric Blake  <ebb9@byu.net>
66007
66008         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66009
66010 2006-08-28  Bruno Haible  <bruno@clisp.org>
66011
66012         * modules/c-strstr: New file, from GNU gettext.
66013         * MODULES.html.sh (String handling): Add c-strstr.
66014
66015 2006-08-28  Bruno Haible  <bruno@clisp.org>
66016
66017         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66018         macros.
66019         Reported by Eric Blake.
66020
66021 2006-08-28  Bruno Haible  <bruno@clisp.org>
66022
66023         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
66024         (VASNPRINTF): Return a string of length > INT_MAX without failing.
66025         * lib/vasprintf.c: Include errno.h, limits.h.
66026         (EOVERFLOW): New fallback definition.
66027         (vasprintf): Test here whether the string length is > INT_MAX.
66028         * lib/vsnprintf.c: Include errno.h, limits.h.
66029         (EOVERFLOW): New fallback definition.
66030         (vsnprintf): Fix bug when generated string was too long for the buffer.
66031         Test here whether the string length is > INT_MAX.
66032
66033 2006-08-28  Bruno Haible  <bruno@clisp.org>
66034
66035         * lib/inttypes_.h (SCNX*): Remove definitions.
66036         Reported by Eric Blake.
66037
66038 2006-08-28  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/c-strstr.h: New file, from GNU gettext.
66041         * lib/c-strstr.c: New file, from GNU gettext.
66042
66043 2006-08-28  Bruno Haible  <bruno@clisp.org>
66044
66045         * gnulib-tool: Reorder some statements.
66046
66047 2006-08-28  Bruno Haible  <bruno@clisp.org>
66048
66049         * gnulib-tool: New option --makefile-name.
66050         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
66051         $makefile_name.
66052         (func_import): Write $makefile_name to the cache file, and read it from
66053         there unless explicitly specified. Use $makefile_name as file name
66054         instead of Makefile.am. Adjust the recommendations accordingly.
66055
66056 2006-08-28  Bruno Haible  <bruno@clisp.org>
66057
66058         * gnulib-tool (func_verify_module): Check against misapplying patch.
66059
66060 2006-08-28  Bruno Haible  <bruno@clisp.org>
66061
66062         * gnulib-tool (func_relativize, func_relconcat): New functions.
66063         Give an error if --local-dir is given with --update.
66064         Remove trailing slashes from $local_gnulib_dir.
66065         (func_import): Store the relativized $local_gnulib_dir in
66066         gnulib-cache.m4, and read it from there if not specified explicitly.
66067
66068 2006-08-28  Bruno Haible  <bruno@clisp.org>
66069
66070         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66071         is the current directory. Respect also $local_gnulib_dir.
66072
66073 2006-08-28  Bruno Haible  <bruno@clisp.org>
66074             Simon Josefsson  <jas@extundo.com>
66075
66076         BeOS portability.
66077         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66078
66079 2006-08-27  Jim Meyering  <jim@meyering.net>
66080
66081         * doc/visibility.texi: Remove duplicate word: "pointer".
66082
66083 2006-08-26  Bruno Haible  <bruno@clisp.org>
66084
66085         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66086         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66087         (Makefile.am): Create inttypes.h from inttypes_.h.
66088         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66089
66090         * modules/imaxabs: New file.
66091
66092         * modules/imaxdiv: New file.
66093
66094 2006-08-26  Bruno Haible  <bruno@clisp.org>
66095
66096         * m4/inttypes.m4: New file.
66097         * m4/_inttypes_h.m4: Remove file.
66098         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66099         PRI_MACROS_BROKEN.
66100         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66101
66102         * m4/imaxabs.m4: New file.
66103
66104         * m4/imaxdiv.m4: New file.
66105
66106 2006-08-26  Bruno Haible  <bruno@clisp.org>
66107
66108         * lib/inttypes_.h: New file.
66109         * lib/inttypes.h: Remove file.
66110         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66111
66112         * lib/imaxabs.c: New file.
66113
66114         * lib/imaxdiv.c: New file.
66115
66116 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66117
66118         New config-h module, so that "make" output needn't be cluttered
66119         by -DHAVE_CONFIG_H.
66120         * MODULES.html.sh (Support for building libraries and executables):
66121         Add config-h.
66122         * modules/config-h: New file.
66123         * gnulib-tool (nl, sed_transform_lib_file): New vars.
66124         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
66125         the config-h module is used.
66126
66127         New configmake module, so that "make" output needn't be cluttered
66128         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
66129         * MODULES.html.sh (Support for building libraries and executables):
66130         Add configmake.
66131         * modules/configmake: New file.
66132
66133 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66134
66135         * m4/config-h.m4: New file.
66136
66137 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66138
66139         * config/srclist.txt: Add elisp-comp.
66140
66141 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         * MODULES.html.sh (Support for building libraries and executables):
66144         Add elisp-comp.
66145         * build-aux/elisp-comp: New file.
66146         * modules/elisp-comp: New file.
66147
66148 2006-08-24  Bruno Haible  <bruno@clisp.org>
66149
66150         * gnulib-tool (func_create_testdir): Use non-default values of
66151         sourcebase and m4base.
66152
66153 2006-08-24  Bruno Haible  <bruno@clisp.org>
66154
66155         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
66156         HTML structure.
66157
66158 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66159
66160         * modules/openat (Depends-on): Add lchown.
66161
66162 2006-08-23  Bruno Haible  <bruno@clisp.org>
66163
66164         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
66165         of gl_LOCK_EARLY instead of gl_LOCK.
66166
66167 2006-08-23  Bruno Haible  <bruno@clisp.org>
66168
66169         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
66170         on OSF/1 to no.
66171         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
66172
66173 2006-08-23  Bruno Haible  <bruno@clisp.org>
66174
66175         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
66176         as unusable.
66177
66178         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
66179         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
66180         (gl_LOCK): New macro.
66181
66182 2006-08-22  Simon Josefsson  <jas@extundo.com>
66183
66184         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
66185         to md5 module.
66186
66187 2006-08-22  Simon Josefsson  <jas@extundo.com>
66188
66189         * MODULES.html.sh: Add "Support for maintaining and release
66190         projects".
66191
66192         * build-aux/gnupload: New file, from coreutils.
66193
66194 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66195
66196         Avoid the need for AC_LIBSOURCES in m4 macros.
66197         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
66198         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
66199         * modules/check-version (EXTRA_DIST): Add check-version.h.
66200         * modules/crc (EXTRA_DIST): Add crc.h.
66201         * modules/des (EXTRA_DIST): Add des.h.
66202         * modules/gc (EXTRA_DIST): Add gc.h.
66203         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
66204         * modules/getline (EXTRA_DIST): Add getline.h.
66205         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
66206         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
66207         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
66208         * modules/md2 (EXTRA_DIST): Add md2.h.
66209         * modules/md4 (EXTRA_DIST): Add md4.h.
66210         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
66211         * modules/read-file (EXTRA_DIST): Add read-file.h.
66212         * modules/readline (EXTRA_DIST): Add readline.h.
66213         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
66214         rijndael-api-fst.h.
66215
66216 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66217
66218         * m4/rijndael.m4 (gl_ARCFOUR):
66219         * m4/arctwo.m4 (gl_ARCTWO):
66220         * m4/check-version.m4 (gl_CHECK_VERSION):
66221         * m4/crc.m4 (gl_CRC):
66222         * m4/des.m4 (gl_DES):
66223         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
66224         * m4/gc.m4 (gl_GC):
66225         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
66226         * m4/getline.m4 (gl_FUNC_GETLINE):
66227         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
66228         * m4/hmac-md5.m4 (gl_HMAC_MD5):
66229         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
66230         * m4/md2.m4 (gl_MD2):
66231         * m4/md4.m4 (gl_MD4):
66232         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
66233         * m4/read-file.m4 (gl_FUNC_READ_FILE):
66234         * m4/readline.m4 (gl_FUNC_READLINE):
66235         * m4/rijndael.m4 (gl_RIJNDAEL):
66236         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66237         to get the necessary .h files and whatnot.
66238
66239 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
66242         gnulib rather than the other way around.
66243         * config/srclistvars.sh (COREUTILS): Remove.
66244
66245 2006-08-22  Jim Meyering  <jim@meyering.net>
66246
66247         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
66248
66249         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
66250
66251 2006-08-22  Eric Blake  <ebb9@byu.net>
66252
66253         * modules/regexprops-generic: New file.
66254         * MODULES.html.sh (Support for building documentation): List it.
66255
66256 2006-08-22  Eric Blake  <ebb9@byu.net>
66257
66258         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
66259         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66260         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
66261         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66262
66263 2006-08-22  Bruno Haible  <bruno@clisp.org>
66264
66265         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
66266         and lib_LTLIBRARIES like the other lib_* variables.
66267
66268 2006-08-22  Bruno Haible  <bruno@clisp.org>
66269
66270         * build-aux/x-to-1.in: New file, from GNU gettext.
66271
66272 2006-08-22  Bruno Haible  <bruno@clisp.org>
66273
66274         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
66275         <utmpx.h> exists.
66276
66277 2006-08-22  Bruno Haible  <bruno@clisp.org>
66278
66279         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
66280         <utmpx.h> exists.
66281
66282 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66283
66284         BeOS portability.
66285         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
66286         exist.
66287         Problem reported by Bruno Haible.
66288
66289 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66290
66291         Avoid the need for AC_LIBSOURCES in m4 macros.
66292         * modules/acl (EXTRA_DIST): Add acl.h.
66293         * modules/argmatch (Files): Add m4/argmatch.m4.
66294         (configure.ac): Add gl_ARGMATCH.
66295         (EXTRA_DIST): Renamed from lib_SOURCES, for
66296         consistency with the other modules.  Remove argmatch.c.
66297         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
66298         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
66299         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
66300         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
66301         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
66302         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
66303         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
66304         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
66305         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
66306         * modules/closeout (EXTRA_DIST): Add closeout.h.
66307         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
66308         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
66309         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
66310         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
66311         dirname.h; remove basename.c and stripslash.c.
66312         * modules/exclude (EXTRA_DIST): Add exclude.h.
66313         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
66314         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
66315         * modules/file-type (EXTRA_DIST): Add file-type.h.
66316         * modules/filemode (EXTRA_DIST): Add filemode.h.
66317         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
66318         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66319         * modules/fpending (EXTRA_DIST): Add __fpending.h.
66320         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
66321         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
66322         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
66323         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
66324         * modules/getdate (EXTRA_DIST): Add getdate.c.
66325         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
66326         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
66327         * modules/getpass (EXTRA_DIST): Add getpass.h.
66328         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
66329         * modules/group-member (EXTRA_DIST): Add group-member.h.
66330         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
66331         * modules/hash (EXTRA_DIST): Add hash.h.
66332         * modules/human (EXTRA_DIST): Add human.h.
66333         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
66334         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
66335         * modules/lchown (EXTRA_DIST): Add lchown.h.
66336         * modules/long-options (EXTRA_DIST): Add long-options.h.
66337         * modules/lstat (EXTRA_DIST): Add lstat.h.
66338         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
66339         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
66340         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
66341         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
66342         * modules/memxor (EXTRA_DIST): Add memxor.h.
66343         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
66344         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
66345         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
66346         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
66347         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
66348         * modules/physmem (EXTRA_DIST): Add physmem.h.
66349         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
66350         * modules/posixver (EXTRA_DIST): Add posixver.h.
66351         * modules/quote (EXTRA_DIST): Add quote.h.
66352         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
66353         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
66354         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
66355         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
66356         regex_internal.h regexec.c.
66357         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
66358         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
66359         * modules/same (EXTRA_DIST): Add same.h.
66360         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
66361         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
66362         * modules/savedir (EXTRA_DIST): Add savedir.h.
66363         * modules/sha1 (EXTRA_DIST): Add sha1.h.
66364         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
66365         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
66366         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
66367         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
66368         * modules/strdup (EXTRA_DIST): Add strdup.h.
66369         * modules/strftime (EXTRA_DIST): Add strftime.h.
66370         * modules/strndup (EXTRA_DIST): Add strndup.h.
66371         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
66372         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
66373         * modules/time_r (EXTRA_DIST): Add time_r.h.
66374         * modules/timespec (EXTRA_DIST): Add timespec.h.
66375         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
66376         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
66377         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
66378         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
66379         * modules/userspec (EXTRA_DIST): Add userspec.h.
66380         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
66381         * modules/utimens (EXTRA_DIST): Add utimens.h.
66382         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
66383         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
66384         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
66385         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
66386         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
66387         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
66388         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
66389         * modules/yesno (EXTRA_DIST): Add yesno.h.
66390
66391 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
66392
66393         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
66394
66395         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
66396         * m4/dev-ino.m4, same-inode.m4: Remove.
66397
66398         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
66399         * m4/acl.m4 (AC_FUNC_ACL):
66400         * m4/backupfile.m4 (gl_BACKUPFILE):
66401         * m4/c-strtod.m4 (gl_C99_STRTOLD):
66402         * m4/canon-host.m4 (gl_CANON_HOST):
66403         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66404         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
66405         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
66406         * m4/cloexec.m4 (gl_CLOEXEC):
66407         * m4/close-stream.m4 (gl_CLOSE_STREAM):
66408         * m4/closeout.m4 (gl_CLOSEOUT):
66409         * m4/dirfd.m4 (gl_FUNC_DIRFD):
66410         * m4/dirname.m4 (gl_DIRNAME):
66411         * m4/exclude.m4 (gl_EXCLUDE):
66412         * m4/exitfail.m4 (gl_EXITFAIL):
66413         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
66414         * m4/file-type.m4 (gl_FILE_TYPE):
66415         * m4/filemode.m4 (gl_FILEMODE):
66416         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
66417         * m4/fpending.m4 (gl_FUNC_FPENDING):
66418         * m4/fprintftime.m4 (gl_FPRINTFTIME):
66419         * m4/fts.m4 (gl_FUNC_FTS):
66420         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
66421         * m4/getdate.m4 (gl_GETDATE):
66422         * m4/gethrxtime.m4 (gl_GETHRXTIME):
66423         * m4/getpagesize.m4 (gl_GETPAGESIZE):
66424         * m4/getpass.m4 (gl_FUNC_GETPASS):
66425         * m4/gettime.m4 (gl_GETTIME):
66426         * m4/getugroups.m4 (gl_GETUGROUPS):
66427         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
66428         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
66429         * m4/hard-locale.m4 (gl_HARD_LOCALE):
66430         * m4/hash.m4 (gl_HASH):
66431         * m4/idcache.m4 (gl_IDCACHE):
66432         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
66433         * m4/lchown.m4 (gl_FUNC_LCHOWN):
66434         * m4/long-options.m4 (gl_LONG_OPTIONS):
66435         * m4/lstat.m4 (gl_FUNC_LSTAT):
66436         * m4/md5.m4 (gl_MD5):
66437         * m4/memcasecmp.m4 (gl_MEMCASECMP):
66438         * m4/memcoll.m4 (gl_MEMCOLL):
66439         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
66440         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
66441         * m4/memxor.m4 (gl_MEMXOR):
66442         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
66443         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
66444         * m4/modechange.m4 (gl_MODECHANGE):
66445         * m4/mountlist.m4 (gl_MOUNTLIST):
66446         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66447         * m4/openat.m4 (gl_FUNC_OPENAT):
66448         * m4/pathmax.m4 (gl_PATHMAX):
66449         * m4/physmem.m4 (gl_PHYSMEM):
66450         * m4/posixtm.m4 (gl_POSIXTM):
66451         * m4/posixver.m4 (gl_POSIXVER):
66452         * m4/quote.m4 (gl_QUOTE):
66453         * m4/quotearg.m4 (gl_QUOTEARG):
66454         * m4/readtokens.m4 (gl_READTOKENS):
66455         * m4/readutmp.m4 (gl_READUTMP):
66456         * m4/regex.m4 (gl_REGEX):
66457         * m4/safe-read.m4 (gl_SAFE_READ):
66458         * m4/safe-write.m4 (gl_SAFE_WRITE):
66459         * m4/same.m4 (gl_SAME):
66460         * m4/save-cwd.m4 (gl_SAVE_CWD):
66461         * m4/savedir.m4 (gl_SAVEDIR):
66462         * m4/settime.m4 (gl_SETTIME):
66463         * m4/sha1.m4 (gl_SHA1):
66464         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
66465         * m4/stat-macros.m4 (gl_STAT_MACROS):
66466         * m4/stat-time.m4 (gl_STAT_TIME):
66467         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
66468         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
66469         * m4/strdup.m4 (gl_FUNC_STRDUP):
66470         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
66471         * m4/strndup.m4 (gl_FUNC_STRNDUP):
66472         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
66473         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
66474         * m4/time_r.m4 (gl_TIME_R):
66475         * m4/timespec.m4 (gl_TIMESPEC):
66476         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
66477         * m4/unlinkdir.m4 (gl_UNLINKDIR):
66478         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
66479         * m4/userspec.m4 (gl_USERSPEC):
66480         * m4/utimecmp.m4 (gl_UTIMECMP):
66481         * m4/utimens.m4 (gl_UTIMENS):
66482         * m4/xalloc.m4 (gl_XALLOC):
66483         * m4/xgetcwd.m4 (gl_XGETCWD):
66484         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
66485         * m4/xreadlink.m4 (gl_XREADLINK):
66486         * m4/xstrtod.m4 (gl_XSTRTOD):
66487         * m4/yesno.m4 (gl_YESNO):
66488         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
66489         to get the necessary .h files and whatnot.
66490
66491 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
66492             Bruno Haible  <bruno@clisp.org>
66493
66494         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
66495         /bin/sh understanding of '!' conditional negation.
66496
66497 2006-08-21  Jim Meyering  <jim@meyering.net>
66498
66499         * modules/openat (Depends-on): Really alphabetize.
66500
66501         * modules/acl (Depends-on): Add error and quote.
66502
66503         * check-module (find_included_lib_files): Add at-func.c to the
66504         ok-to-include-more-than-once white list.
66505
66506         * modules/openat (Depends-on): Add lstat.  Alphabetize.
66507
66508 2006-08-21  Bruno Haible  <bruno@clisp.org>
66509
66510         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66511         Emit a pkgdata_DATA variable only if some snippets add contents to it.
66512         Reported by Martin Lambers <marlam@marlam.de>.
66513
66514 2006-08-21  Bruno Haible  <bruno@clisp.org>
66515
66516         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
66517         specify an installation location, don't emit a noinst_LIBRARIES or
66518         noinst_LTLIBRARIES assignment.
66519
66520 2006-08-21  Bruno Haible  <bruno@clisp.org>
66521
66522         BeOS portability.
66523         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
66524         BeOS has mbrtowc() but no <wctype.h>.
66525
66526 2006-08-21  Bruno Haible  <bruno@clisp.org>
66527
66528         BeOS portability.
66529         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
66530         exist.
66531
66532 2006-08-21  Bruno Haible  <bruno@clisp.org>
66533
66534         BeOS portability.
66535         * lib/mbchar.h: Include <wctype.h> only if it exists.
66536
66537 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         Remove files that are no longer needed by their respective modules.
66540         * m4/obstack.m4: Remove.
66541         * m4/strerror_r.m4: Remove.
66542         * m4/uint32_t.m4: Remove.
66543         * m4/uintptr_t.m4: Remove.
66544         * m4/ullong_max.m4: Remove.
66545         * m4/xstrtoimax.m4: Remove.
66546         * m4/xstrtoumax.m4: Remove.
66547
66548         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
66549         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
66550         dependencies now capture this.
66551
66552         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
66553         Do not use AC_LIBSOURCES, since gnulib modules now do this.
66554         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66555         * m4/human.m4 (gl_HUMAN): Likewise.
66556         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66557         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66558
66559         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66560
66561         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66562         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66563         stdint.
66564         * m4/human.m4 (gl_HUMAN): Likewise.
66565         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66566         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66567         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66568         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66569         * m4/xstrtol (gl_XSTRTOL): Likewise.
66570
66571         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66572         AC_TYPE_LONG_LONG_INT.
66573         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66574         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66575         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66576         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66577
66578         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66579         on stdbool.
66580
66581         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66582         (gl_PREREQ_XSTRTOUL): Remove.
66583
66584         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66585
66586         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66587         mode.
66588
66589 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66590
66591         Add and change modules to make it easier for coreutils to use
66592         gnulib-tool.
66593         * modules/backupfile (Files): Remove m4/d-ino.m4.
66594         (Depends-on): Add d-ino.
66595         * modules/cycle-check (Depends-on): Add stdint.
66596         (lib_SOURCES): Add cycle-check.h.
66597         * modules/d-ino: New module.
66598         * modules/d-type: New module.
66599         * modules/error (Files): Remove m4/strerror_r.m4.
66600         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66601         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66602         m4/inttypes_h.m4, m4/uintmax_t.m4.
66603         (Depends-on): Add stdint.
66604         (lib_SOURCES): Add fsusage.h.
66605         * modules/getcwd (Files): Remove d-ino.m4.
66606         (Depends-on): Add d-ino.
66607         * modules/getndelim2 (Depends-on): Add stdint.
66608         * modules/glob (Files): Remove m4/d-type.m4.
66609         (Depends-on): Add d-type.
66610         * modules/host-os: New module.
66611         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66612         m4/inttypes_h.m4, m4/uintmax_t.m4.
66613         * Depends-on: Add stdint.
66614         (lib_SOURCES): Add human.h.
66615         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66616         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66617         m4/uintmax_t.m4, m4/ulonglong.m4.
66618         (Depends-on): Add stdint.
66619         (EXTRA_DIST): Add inttostr.h.
66620         * modules/lchmod: New module.
66621         * modules/link-follow: New module.
66622         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66623         (Depends-on): Add lchmod.
66624         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66625         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66626         (Depends-on): Add stdint.
66627         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66628         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66629         (Depends-on): Add stdint.
66630         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66631         * modules/perl: New module.
66632         * modules/regex (Depends-on): Add stdint.
66633         * modules/rmdir-errno: New module.
66634         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66635         m4/intmax_t.m4.
66636         (Depends-on): Add stdint.
66637         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66638         m4/uintmax_t.m4.
66639         (Depends-on): Add stdint.
66640         * modules/unlink-busy: New module.
66641         * modules/utimecmp (Depends-on): Add stdint.
66642         * modules/uptime: New module.
66643         * modules/winsz-ioctl: New module.
66644         * modules/winsz-termios: New module.
66645         * modules/xnanosleep (Depends-on): Add nanosleep.
66646         * modules/ullong_max: Remove.
66647         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66648         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66649         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66650         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66651         (Depends-on): Add inttypes.
66652         (lib_SOURCES): Add xstrtol.h.
66653         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66654         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66655         * MODULES.html.sh: Move 'assert' into the assert section.
66656         Move 'dummy' into the linking section.
66657         Remove ullong_max.
66658         Add section for compatibility checks for POSIX:2001 functions,
66659         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66660         winsz-ioctl, and winsz-termios into it.
66661         Add lchmod.
66662         Add top-level Misc section and put host-os, perl, and uptime
66663         into it.
66664
66665 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66666
66667         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66668         now assume the stdint module.  Do not include inttypes.h.
66669         * lib/fsusage.h: Likewise.
66670         * lib/getndelim2.c: Likewise.
66671         * lib/human.h: Likewise.
66672         * lib/inttostr.h: Likewise.
66673         * lib/obstack.c: Likewise.
66674         * lib/regex_internal.h: Likewise.
66675         * lib/tempname.c: Likewise.
66676         * lib/utimecmp.c: Likewise.
66677         * lib/xstrtol.h: Likewise.
66678
66679         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66680
66681         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66682         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66683         * lib/xtime.h: Likewise.
66684
66685 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66686
66687         * modules/openat (Files): Add lib/fchmodat.c.
66688         Fixes problem reported by Jay Youngman.
66689
66690 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66691
66692         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66693         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66694
66695 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66696             Bruno Haible  <bruno@clisp.org>
66697
66698         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66699         and is a script that invokes bison. Tighten the code. Add comments.
66700
66701 2006-08-18  Jim Meyering  <jim@meyering.net>
66702
66703         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66704         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66705         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66706         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66707
66708 2006-08-18  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/bison-i18n: New file.
66711         * MODULES.html.sh (Internationalization functions): Add it.
66712
66713 2006-08-18  Bruno Haible  <bruno@clisp.org>
66714
66715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66716         sys/statvfs.h. When getmntinfo was found, check its declaration and
66717         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66718
66719 2006-08-18  Bruno Haible  <bruno@clisp.org>
66720
66721         * m4/bison-i18n.m4: New file, from bison.
66722
66723 2006-08-18  Bruno Haible  <bruno@clisp.org>
66724
66725         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66726         (ME_DUMMY): Treat "kernfs" as a dummy.
66727         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66728
66729 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66730
66731         Update from coreutils.
66732
66733         2006-08-15  Jim Meyering  <jim@meyering.net>
66734
66735         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66736
66737         2006-01-17  Jim Meyering  <jim@meyering.net>
66738
66739         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66740
66741         2006-01-11  Jim Meyering  <jim@meyering.net>
66742
66743         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66744         Check for the lchmod function.
66745
66746 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66747
66748         Update from coreutils.
66749
66750         * lib/__fpending.h: Add copyright notice.
66751         * lib/fprintftime.h: Likewise.
66752         * lib/savedir.c: Use (C) in copyright notice.
66753         * lib/savedir.h: Likewise.
66754
66755         2006-08-15  Jim Meyering  <jim@meyering.net>
66756
66757         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66758         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66759         in support of the EXPECTED_ERRNO macro.
66760         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66761         definitions.  Instead, define the appropriate symbols and include
66762         "at-func.c".
66763         * lib/mkdirat.c (mkdirat): Likewise.
66764         * lib/fchmodat.c (fchmodat): Likewise.
66765         (ENOSYS): Remove definition.
66766         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66767         it.  Don't include "unistd--.h" -- it wasn't ever used.
66768
66769         2006-01-17  Jim Meyering  <jim@meyering.net>
66770
66771         Rewrite fts.c not to change the current working directory,
66772         by using openat, fstatat, fdopendir, etc..
66773
66774         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66775         (HAVE_OPENAT_SUPPORT): Define.
66776         [_LIBC] (fchdir): Don't undef or define; no longer used.
66777         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66778         Now, this `function' always succeeds, and consumes its file descriptor
66779         parameter -- so callers must not close such FDs.  Update callers.
66780         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66781         (diropen): Add parameter, SP.  Adjust all callers.
66782         Implement using diropen_fd, rather than open.
66783         (fts_open): Initialize new member, fts_cwd_fd.
66784         Remove fts_rft-setting code.
66785         (fts_close): Close fts_cwd_fd, if necessary.
66786         (__opendir2): Define in terms of opendir or opendirat,
66787         depending on whether the FST_NOCHDIR flag is set.
66788         (fts_build): Since fts_safe_changedir consumes its FD, and since
66789         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66790         and close the dup'd file descriptor upon failure.
66791         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66792         (fts_safe_changedir): Tweak semantics to reflect that this function
66793         now calls cwd_advance_fd and hence consumes its FD argument.
66794         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66795         [struct FTS] (fts_rft): Remove now-unused member.
66796         [struct FTS] (fts_cycle.state): Improve comment.
66797
66798         * lib/openat.c (openat_needs_fchdir): New function.
66799         * lib/openat.h (openat_needs_fchdir): Declare it.
66800
66801 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66802
66803         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66804         Problem and fix reported by Pádraig Brady in
66805         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66806
66807 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66810
66811 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * lib/memcoll.c (memcoll): Optimize for the common case where the
66814         arguments are bytewise equal.
66815
66816 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66817
66818         * doc/regexprops-generic.texi: Add a copyright notice.
66819
66820 2006-08-15  Bruno Haible  <bruno@clisp.org>
66821
66822         * modules/tmpdir (License): Change to LGPL.
66823
66824 2006-08-15  Bruno Haible  <bruno@clisp.org>
66825
66826         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66827         module.
66828
66829 2006-08-14  Simon Josefsson  <jas@extundo.com>
66830
66831         * config/srclist.txt: Add gnupload.
66832
66833 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         Change copyright notice from LGPL 2 to GPL 2, since that's the
66836         standard form used in the gnulib repository.
66837         * tests/test-lock.c: Likewise.
66838         * tests/test-stdint.c: Likewise.
66839         * tests/test-tls.c: Likewise.
66840
66841         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66842         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66843         Add copyright notice.
66844
66845         * check-module: Add copyright notice.  Output a copyright
66846         notice if "--version" is specified.
66847         * modules/COPYING: New file.
66848         * tests/test-getaddrinfo.c: Add copyright notice.
66849         * tests/test-verify.c: Likewise.
66850
66851 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66852
66853         Change copyright notice from LGPL 2 to GPL 2, since that's the
66854         standard form used in the gnulib repository.
66855         * lib/lock.c: LGPL -> GPL.
66856         * lib/lock.h: Likewise.
66857         * lib/strnlen1.c: Likewise.
66858         * lib/strnlen1.h: Likewise.
66859         * lib/tls.c: Likewise.
66860         * lib/tls.h: Likewise.
66861         * lib/tmpdir.c: Likewise.
66862
66863         * lib/TODO: Remove; this belongs only in coreutils.
66864
66865 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         Add copyright notices to long-enough files that lack them, since
66868         otherwise the files aren't clearly free.  Use the same notice that
66869         getdate.texi already uses.
66870         * doc/alloca-opt.texi: Add copyright notice.
66871         * doc/alloca.texi: Likewise.
66872         * doc/ctime.texi: Likewise.
66873         * doc/functions.texi: Likewise.
66874         * doc/gcd.texi: Likewise.
66875         * doc/gnulib-tool.texi: Likewise.
66876         * doc/inet_ntoa.texi: Likewise.
66877         * doc/visibility.texi: Likewise.
66878
66879         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66880         * doc/quote.texi: Add copyright notice.
66881
66882         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66883         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66884         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66885         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66886         is now obsolete, and give a pointer to the Sun list.
66887         Add copyright notice.
66888
66889 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66890
66891         * config/srclistvars.sh: Add copyright notice.
66892
66893 2006-08-14  Eric Blake  <ebb9@byu.net>
66894
66895         Import the following change from libc:
66896
66897         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66898
66899         Upstream bug 2997.
66900         * lib/misc/error.c: Add space between program name and message if file
66901         name is missing.
66902
66903 2006-08-12  Karl Berry  <karl@gnu.org>
66904
66905         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66906         remove, these originate in gnulib now.
66907
66908 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66909
66910         * doc/Makefile (standards.info standards.html standards.dvi):
66911         Also depend on make-stds.texi.
66912
66913 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66916         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66917
66918         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66919         in wchar_t.  Problem reported by Eric Blake.
66920
66921         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66922         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66923         Also, help the compiler to keep LEN in a register.
66924
66925 2006-08-11  Eric Blake  <ebb9@byu.net>
66926
66927         * users.txt: Sort.  Add tar.
66928
66929 2006-08-11  Bruno Haible  <bruno@clisp.org>
66930
66931         * users.txt: New file.
66932
66933 2006-08-11  Bruno Haible  <bruno@clisp.org>
66934
66935         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66936         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66937
66938 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         * modules/snprintf (Depends-on): Remove minmax.
66941         (Maintainer): Add self and Bruno.
66942
66943 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66944
66945         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66946         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66947         (EOVERFLOW): Define if the system does not.
66948         Do not include "minmax.h"; it wasn't used.
66949         (snprintf): Don't assume size_t promotes to an unsigned type.
66950         Fix bug when generated string was too long for the buffer: the
66951         buffer's contents are supposed to be the initial prefix of the
66952         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66953         exceeds INT_MAX; do the check ourselves.
66954
66955         Import the following changes from libc:
66956
66957         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66958
66959         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66960         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66961         set wc to the byte which couldn't be converted.
66962         (re_string_reconstruct): Don't clear valid_raw_len before calling
66963         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66964         tip_context using re_string_context_at.
66965
66966         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66967
66968         * lib/posix/regex.h: g++ still cannot handled [restrict].
66969
66970         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66971
66972         * lib/posix/regex.h: Remove special handling for VMS.
66973
66974 2006-08-10  Jim Meyering  <jim@meyering.net>
66975
66976         * modules/same-inode: New module.
66977         * modules/dev-ino: New module.
66978         * modules/cycle-check: Depend on these modules, rather than simply
66979         including their .h files.
66980         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66981         required via m4/cycle-check.m4.
66982         * modules/same: Depend on new same-inode module, rather than
66983         including same-inode.h.
66984         * modules/chdir-safer: New file.
66985
66986         * modules/chown (Depends-on): Add stat-macros.
66987
66988 2006-08-10  Jim Meyering  <jim@meyering.net>
66989
66990         * m4/cycle-check.m4: New file.
66991         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66992         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66993
66994 2006-08-10  Eric Blake  <ebb9@byu.net>
66995
66996         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66997         in from original proposal.
66998
66999 2006-08-10  Eric Blake  <ebb9@byu.net>
67000         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67001
67002         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67003         namespace.
67004
67005 2006-08-10  Bruno Haible  <bruno@clisp.org>
67006
67007         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67008         as well.
67009
67010 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67011
67012         Sync from coreutils.
67013
67014         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67015
67016         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67017         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67018
67019 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * modules/restrict: Remove; no longer needed now that we assume
67022         Autoconf 2.59 or later.
67023         * MODULES.html.sh: Remove 'restrict'.
67024         * modules/argp (Depends-on): Remove 'restrict'.
67025         * modules/base64 (Depends-on): Likewise.
67026         * modules/gc (Depends-on): Likewise.
67027         * modules/getaddrinfo (Depends-on): Likewise.
67028         * modules/glob (Depends-on): Likewise.
67029         * modules/inet_ntop (Depends-on): Likewise.
67030         * modules/inet_pton (Depends-on): Likewise.
67031         * modules/memxor (Depends-on): Likewise.
67032         * modules/regex (Depends-on): Likewise.
67033         * modules/strtok_r (Depends-on): Likewise.
67034         * modules/time_r (Depends-on): Likewise.
67035
67036 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
67039         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
67040         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67041         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
67042         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
67043         * m4/memxor.m4 (gl_MEMXOR): Likewise.
67044         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
67045         gl_C_RESTRICT replaced by AC_C_RESTRICT.
67046
67047         Merge from coreutils.
67048         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
67049         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
67050         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67051         * m4/time_r.m4 (gl_TIME_R): Likewise.
67052
67053 2006-08-09  Karl Berry  <karl@gnu.org>
67054
67055         * config/srclist.txt: no more gettext-tools, per Bruno.
67056
67057 2006-08-08  Eric Blake  <ebb9@byu.net>
67058
67059         * modules/verror: New module.
67060         * MODULES.html.sh: Document it.
67061
67062 2006-08-08  Eric Blake  <ebb9@byu.net>
67063
67064         * lib/verror.h, lib/verror.c: New files.
67065
67066 2006-08-08  Eric Blake  <ebb9@byu.net>
67067
67068         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67069         verror_at_line output complies with GNU Coding Standards even when
67070         file is NULL.
67071
67072 2006-08-07  Bruno Haible  <bruno@clisp.org>
67073
67074         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67075         versions of AIX.
67076         Reported by Ralf Wildenhues.
67077
67078 2006-08-07  Bruno Haible  <bruno@clisp.org>
67079
67080         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67081         in an AC_DEFUN. Needed so that the autoconf snippets can use
67082         AC_REQUIRE.
67083
67084 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67085
67086         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67087         Initialize pkgdata_DATA.
67088         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67089         overriding it.
67090
67091 2006-08-06  Eric Blake  <ebb9@byu.net>
67092
67093         * lib/error.h: Fold in some upstream changes from glibc.
67094         * lib/error.c: Likewise.
67095
67096 2006-08-04  Bruno Haible  <bruno@clisp.org>
67097
67098         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67099         Make the mostlyclean-local rule depend on mostlyclean-generic.
67100         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67101
67102 2006-07-31  Bruno Haible  <bruno@clisp.org>
67103
67104         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67105         <stdlib.h>, <string.h>.
67106
67107 2006-07-30  Bruno Haible  <bruno@clisp.org>
67108
67109         * modules/readlink (License): Change to LGPL.
67110
67111 2006-07-30  Bruno Haible  <bruno@clisp.org>
67112
67113         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67114         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67115         set PKGDATADIR to point to it.
67116
67117 2006-07-30  Bruno Haible  <bruno@clisp.org>
67118
67119         * modules/csharpexec (configure.ac): Comment out macro invocation.
67120         * modules/javaexec (configure.ac): Likewise.
67121         * modules/javacomp-script (configure.ac): Likewise.
67122
67123         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
67124
67125 2006-07-30  Bruno Haible  <bruno@clisp.org>
67126
67127         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
67128         linked-list.
67129
67130 2006-07-30  Bruno Haible  <bruno@clisp.org>
67131
67132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
67133
67134 2006-07-30  Bruno Haible  <bruno@clisp.org>
67135
67136         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67137         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
67138         get removed.
67139
67140 2006-07-29  Bruno Haible  <bruno@clisp.org>
67141
67142         Make it possible for gnulib-tool to work with locally modified or
67143         augmented gnulib repositories.
67144         * gnulib-tool (func_usage): Document --local-dir option.
67145         (local_gnulib_dir): New variable.
67146         Handle --local-dir option.
67147         (func_lookup_file): New function.
67148         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
67149         (func_get_description, func_get_filelist, func_get_description,
67150         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
67151         func_get_automake_snippet, func_get_include_directive,
67152         func_get_license, func_get_maintainer): Use func_lookup_file.
67153         (func_import, func_create_testdir): Use func_lookup_file.
67154
67155 2006-07-29  Bruno Haible  <bruno@clisp.org>
67156
67157         * modules/setenv (Depends-on): Add unistd.
67158
67159 2006-07-29  Bruno Haible  <bruno@clisp.org>
67160
67161         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
67162
67163 2006-07-29  Bruno Haible  <bruno@clisp.org>
67164
67165         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
67166
67167 2006-07-29  Bruno Haible  <bruno@clisp.org>
67168
67169         * gnulib-tool (import, update): If there is no Makefile.am, look at
67170         aclocal.m4, instead of bailing out.
67171
67172 2006-07-29  Bruno Haible  <bruno@clisp.org>
67173
67174         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
67175         Categorize the options by when they are useful.
67176
67177 2006-07-29  Bruno Haible  <bruno@clisp.org>
67178
67179         * gnulib-tool (func_usage): Document option --no-libtool.
67180         Handle option --no-libtool.
67181         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
67182         for changed semantics of $libtool variable.
67183         (func_import): Likewise. If libtool is not used, show this through
67184         an option --no-libtool.
67185         (func_create_testdir): Update.
67186
67187 2006-07-29  Bruno Haible  <bruno@clisp.org>
67188
67189         * gnulib-tool (func_import): Extend error message about missing
67190         --doc-base.
67191
67192 2006-07-29  Bruno Haible  <bruno@clisp.org>
67193
67194         * gnulib-tool (func_import): Don't create the $docbase directory if
67195         there is no file to store there.
67196
67197 2006-07-29  Bruno Haible  <bruno@clisp.org>
67198
67199         * gnulib-tool (autoconf_minversion): If a --dir option is given and
67200         relevant, look for configure.ac there, not in the current directory.
67201         Also use a simple search for AC_PREREQ, not "autoconf --trace".
67202
67203 2006-07-29  Bruno Haible  <bruno@clisp.org>
67204
67205         * gnulib-tool (SORT): New variable.
67206         (func_usage): Undocument --assume-autoconf option.
67207         Remove --assume-autoconf option handling.
67208         (autoconf_minversion): Determine from the contents of configure.ac.
67209         (func_import): Remove autoconf_minversion handling.
67210         Suggested by Eric Blake.
67211
67212 2006-07-29  Bruno Haible  <bruno@clisp.org>
67213
67214         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
67215
67216 2006-07-29  Bruno Haible  <bruno@clisp.org>
67217
67218         * config/srclist.txt (*setenv.[ch]): Remove rules.
67219
67220 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67221
67222         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
67223
67224 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67225
67226         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
67227         arpa/inet.h.
67228
67229 2006-07-28  Simon Josefsson  <jas@extundo.com>
67230
67231         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
67232         * modules/inet_pton (Depends-on): Likewise.
67233
67234 2006-07-28  Simon Josefsson  <jas@extundo.com>
67235
67236         * m4/netinet_in_h.m4: New file.
67237
67238 2006-07-28  Simon Josefsson  <jas@extundo.com>
67239
67240         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
67241         #include's.
67242
67243 2006-07-28  Simon Josefsson  <jas@extundo.com>
67244
67245         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
67246         #include's.
67247
67248 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
67249
67250         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
67251         setgid on directories only if they set these bits.
67252         * lib/modechange.h: Remove obsolete comment about masks.
67253
67254 2006-07-28  Eric Blake  <ebb9@byu.net>
67255
67256         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
67257         macro expansion.
67258
67259 2006-07-28  Bruno Haible  <bruno@clisp.org>
67260
67261         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
67262
67263 2006-07-28  Bruno Haible  <bruno@clisp.org>
67264
67265         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
67266
67267 2006-07-28  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
67270         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
67271         Define fallbacks.
67272         Avoids link error on FreeBSD 4.x.
67273         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67274
67275         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
67276         encoding.
67277         * lib/mbswidth.c (iswcntrl): Likewise.
67278
67279 2006-07-27  Bruno Haible  <bruno@clisp.org>
67280
67281         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
67282         test.
67283
67284 2006-07-27  Bruno Haible  <bruno@clisp.org>
67285
67286         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
67287         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
67288         defined.
67289
67290 2006-07-26  Eric Blake  <ebb9@byu.net>
67291
67292         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
67293
67294 2006-07-26  Eric Blake  <ebb9@byu.net>
67295
67296         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
67297         like mingw that lack mkstemp.
67298         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
67299         avoid compilation warning on mingw.
67300
67301 2006-07-26  Bruno Haible  <bruno@clisp.org>
67302
67303         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
67304         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
67305         INT_FAST*_MIN, INTPTR_MIN.
67306
67307 2006-07-25  Bruno Haible  <bruno@clisp.org>
67308
67309         * modules/version-etc (Depends-on): Add stdarg.
67310
67311 2006-07-25  Bruno Haible  <bruno@clisp.org>
67312
67313         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
67314         complex commands.
67315
67316 2006-07-25  Bruno Haible  <bruno@clisp.org>
67317
67318         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
67319         defined in <stdarg.h> or config.h.
67320
67321 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67322
67323         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
67324         (gl_STDIO_SAFER): Remove.
67325
67326 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
67327
67328         * MODULES.html.sh (File stream based Input/Output):
67329         Add fopen-safer, tmpfile-safer; remove stdio-safer.
67330         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
67331         * modules/fopen-safer, modules/tmpfile-safer: New files.
67332         * modules/stdio-safer: Remove.
67333
67334 2006-07-24  Bruno Haible  <bruno@clisp.org>
67335
67336         * modules/tmpdir: New file.
67337         * MODULES.html.sh (File system functions): Add it.
67338
67339 2006-07-24  Bruno Haible  <bruno@clisp.org>
67340
67341         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
67342         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
67343
67344 2006-07-24  Bruno Haible  <bruno@clisp.org>
67345
67346         * modules/clean-temp: New file.
67347
67348 2006-07-24  Bruno Haible  <bruno@clisp.org>
67349
67350         * m4/tmpdir.m4: New file, from GNU gettext.
67351
67352 2006-07-24  Bruno Haible  <bruno@clisp.org>
67353
67354         * lib/tmpdir.h: New file, from GNU gettext.
67355         * lib/tmpdir.c: New file, from GNU gettext.
67356
67357 2006-07-24  Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/clean-temp.h: New file, from GNU gettext.
67360         * lib/clean-temp.c: New file, from GNU gettext.
67361
67362 2006-07-23  Eric Blake  <ebb9@byu.net>
67363
67364         * modules/stdio-safer (Files): Add tmpfile-safer.c.
67365         (Depends-on): Add binary-io.
67366
67367 2006-07-23  Eric Blake  <ebb9@byu.net>
67368
67369         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
67370
67371 2006-07-23  Eric Blake  <ebb9@byu.net>
67372
67373         * lib/tmpfile-safer.c: New file.
67374         * lib/stdio-safer.h (fopen_safer): Add prototype.
67375         * lib/stdio--.h (tmpfile): Make safer.
67376
67377 2006-07-23  Bruno Haible  <bruno@clisp.org>
67378
67379         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
67380         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
67381         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
67382         gl_linked_remove_at): Use it.
67383
67384 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67385         and Simon Josefsson <jas@extundo.com>
67386
67387         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
67388
67389         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
67390
67391 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67392
67393         * modules/close-stream: New file.
67394         * modules/closeout (Description): Make it clear that it exits
67395         with a diagnostic on error.
67396         (Depends-on): Add close-stream.  Remove fpending, stdbool.
67397         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
67398
67399 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * m4/close-stream.m4: New file.
67402
67403 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67404
67405         * lib/close-stream.c, lib/close-stream.h: New files.
67406
67407 2006-07-22  Bruno Haible  <bruno@clisp.org>
67408
67409         Merge from GNU gettext 0.15.
67410
67411         2006-05-01  Bruno Haible  <bruno@clisp.org>
67412
67413                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
67414
67415         2006-07-22  Bruno Haible  <bruno@clisp.org>
67416
67417                 * modules/javaversion: New file.
67418                 * MODULES.html.sh (Java): Add javaversion.
67419
67420         2006-03-12  Bruno Haible  <bruno@clisp.org>
67421
67422                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
67423
67424         2005-12-04  Bruno Haible  <bruno@clisp.org>
67425
67426                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
67427                 (untested).
67428
67429         2006-06-21  Bruno Haible  <bruno@clisp.org>
67430
67431                 Avoid warnings from recent versions of mcs.
67432                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
67433                 -o, -L, -r any more. Use options documented since mcs-1.0
67434                 instead. Similarly for -g.
67435
67436         2005-12-04  Bruno Haible  <bruno@clisp.org>
67437
67438                 * build-aux/csharpcomp.sh.in: Suffix for resources is
67439                 .resources, not .resource.
67440
67441         2005-07-09  Bruno Haible  <bruno@clisp.org>
67442
67443                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
67444                 add a .dll suffix.
67445                 Reported by Mark Junker <mjscod@gmx.de>.
67446
67447         2006-07-22  Bruno Haible  <bruno@clisp.org>
67448
67449                 * modules/gettext: Upgrade to gettext-0.15.
67450                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
67451                 m4/visibility.m4.
67452                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
67453
67454 2006-07-22  Bruno Haible  <bruno@clisp.org>
67455
67456         Merge from GNU gettext 0.15.
67457
67458         2006-03-25  Bruno Haible  <bruno@clisp.org>
67459
67460                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
67461
67462         2006-07-21  Bruno Haible  <bruno@clisp.org>
67463
67464                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
67465                 "1.1".
67466
67467         2006-05-09  Bruno Haible  <bruno@clisp.org>
67468
67469                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
67470                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
67471                 for the conftestver execution.
67472
67473         2006-05-01  Bruno Haible  <bruno@clisp.org>
67474
67475                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
67476                 optional target-version argument. Verify that the compiler
67477                 groks source of the specified source-version, or add -source
67478                 option as necessary. Verify that the compiler produces
67479                 bytecode in the specified target-version, or add -target and
67480                 -source options as necessary. Make the result of the test
67481                 available as variable CONF_JAVAC. Also log error output in
67482                 config.log.
67483
67484         2006-03-11  Bruno Haible  <bruno@clisp.org>
67485
67486                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
67487
67488         2006-05-09  Bruno Haible  <bruno@clisp.org>
67489
67490                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
67491                 CLASSPATH_SEPARATOR to a semicolon.
67492
67493         2006-03-12  Bruno Haible  <bruno@clisp.org>
67494
67495                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
67496                 available as variable CONF_JAVA, for subsequent autoconf
67497                 tests. Also log error output in config.log.
67498
67499         2006-07-19  Bruno Haible  <bruno@clisp.org>
67500
67501                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
67502                 that getline works on glibc2 systems. Needed to avoid trouble
67503                 in relocatable.c.
67504                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
67505
67506         2005-12-04  Bruno Haible  <bruno@clisp.org>
67507
67508                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
67509                 launcher (untested).
67510
67511         2005-12-04  Bruno Haible  <bruno@clisp.org>
67512
67513                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
67514
67515         2006-07-22  Bruno Haible  <bruno@clisp.org>
67516
67517                 * gettext.m4: Update from GNU gettext-0.15.
67518                 * nls.m4: Likewise.
67519                 * po.m4: Likewise.
67520                 * inttypes-pri.m4: Likewise.
67521                 * inttypes-h.m4: Renamed from inttypes.m4.
67522                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
67523
67524 2006-07-22  Bruno Haible  <bruno@clisp.org>
67525
67526         Merge from GNU gettext 0.15.
67527
67528         2005-07-05  Bruno Haible  <bruno@clisp.org>
67529
67530                 * printf-args.c (printf_fetchargs): Work around broken
67531                 definition of wint_t on mingw.
67532
67533         2005-02-12  Bruno Haible  <bruno@clisp.org>
67534
67535                 * xallocsa.h: Add extern "C" for C++.
67536
67537         2006-05-17  Bruno Haible  <bruno@clisp.org>
67538
67539                 Cygwin portability.
67540                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
67541
67542         2006-04-30  Bruno Haible  <bruno@clisp.org>
67543
67544                 * progreloc.c: Include <mach-o/dyld.h> if available.
67545                 (find_executable): Use _NSGetExecutablePath when possible.
67546
67547         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67548
67549                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
67550                 function.
67551
67552         2005-12-29  Bruno Haible  <bruno@clisp.org>
67553
67554                 * progreloc.c (set_program_name_and_installdir): Fix
67555                 compilation error.
67556
67557         2005-12-04  Bruno Haible  <bruno@clisp.org>
67558
67559                 Cygwin portability.
67560                 * progreloc.c: Include <windows.h> also on Cygwin.
67561                 (find_executable): Add support for Cygwin.
67562                 (set_program_name_and_installdir): Handle also platforms with
67563                 nonempty EXEEXT.
67564
67565         2006-07-11  Bruno Haible  <bruno@clisp.org>
67566
67567                 * javacomp.c: Fix a comment.
67568                 Reported by Jim Meyering.
67569
67570         2006-04-30  Bruno Haible  <bruno@clisp.org>
67571
67572                 * javacomp.h (compile_java_class): Add source_version,
67573                 target_version arguments.
67574                 * javacomp.c: Rewritten to choose only a compiler that
67575                 respects the specified source_version and target_version.
67576
67577         2006-06-27  Bruno Haible  <bruno@clisp.org>
67578
67579                 Assume correct S_ISDIR macro.
67580                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67581
67582         2006-07-22  Bruno Haible  <bruno@clisp.org>
67583
67584                 * javaversion.h: New file, from GNU gettext.
67585                 * javaversion.c: New file, from GNU gettext.
67586                 * javaversion.java: New file, from GNU gettext.
67587                 * javaversion.class: New file, from GNU gettext.
67588
67589         2006-05-17  Bruno Haible  <bruno@clisp.org>
67590
67591                 Cygwin portability.
67592                 * javaexec.c (execute_java_class): Test for jview program
67593                 also on Cygwin.
67594
67595         2006-04-09  Bruno Haible  <bruno@clisp.org>
67596
67597                 * fatal-signal.c: Don't include string.h.
67598                 (at_fatal_signal): Use a copying loop instead of memcpy.
67599
67600         2005-12-04  Bruno Haible  <bruno@clisp.org>
67601
67602                 * csharpexec.c: Add support for 'clix' launcher (untested).
67603                 (execute_csharp_using_sscli): New function.
67604                 (execute_csharp_program): Call it.
67605
67606         2006-06-21  Bruno Haible  <bruno@clisp.org>
67607
67608                 Avoid warnings from recent versions of mcs.
67609                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67610                 -o, -L, -r any more. Use options documented since mcs-1.0
67611                 instead. Similarly for -g.
67612
67613         2005-07-09  Bruno Haible  <bruno@clisp.org>
67614
67615                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67616                 add a .dll suffix.
67617                 Reported by Mark Junker <mjscod@gmx.de>.
67618
67619         2006-06-17  Bruno Haible  <bruno@clisp.org>
67620
67621                 * config.charset: Update for NetBSD 3.0.
67622
67623         2006-05-17  Bruno Haible  <bruno@clisp.org>
67624
67625                 Cygwin portability.
67626                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67627
67628         2006-05-16  Bruno Haible  <bruno@clisp.org>
67629
67630                 * localcharset.c [CYGWIN]: Include <windows.h>.
67631                 (get_charset_aliases): For Cygwin, return the same CPxxx
67632                 aliases list as under WIN32.
67633                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67634                 the environment variables. Fall back to GetACP().
67635
67636         2006-04-05  Bruno Haible  <bruno@clisp.org>
67637
67638                 * config.charset: Update Juan Manuel Guerrero's address.
67639
67640         2005-02-12  Bruno Haible  <bruno@clisp.org>
67641
67642                 * allocsa.h: Add extern "C" for C++.
67643
67644         2005-02-10  Bruno Haible  <bruno@clisp.org>
67645
67646                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67647                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67648
67649         2006-07-22  Bruno Haible  <bruno@clisp.org>
67650
67651                 * gettext.h: Update to GNU gettext-0.15.
67652
67653 2006-07-22  Bruno Haible  <bruno@clisp.org>
67654
67655         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67656         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67657         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67658
67659 2006-07-21  Eric Blake  <ebb9@byu.net>
67660
67661         * modules/stdlib-safer: New file.
67662         * MODULES.html.sh (File stream based Input/Output): Add
67663         stdlib-safer.
67664
67665 2006-07-21  Eric Blake  <ebb9@byu.net>
67666
67667         * lib/stdlib-safer.h: New file from coreutils, required by
67668         stdlib--.h.
67669
67670 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67671
67672         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67673
67674 2006-07-20  Bruno Haible  <bruno@clisp.org>
67675
67676         * gnulib-tool: Recognize new option --assume-autoconf.
67677         (autoconf_minversion): New variable.
67678         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67679
67680 2006-07-20  Bruno Haible  <bruno@clisp.org>
67681
67682         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67683
67684 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67685
67686         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67687         Reindent and repaginate.
67688
67689 2006-07-19  Derek Price  <derek@ximbiot.com>
67690
67691         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67692         Correct grammar.
67693
67694 2006-07-17  Bruno Haible  <bruno@clisp.org>
67695
67696         * modules/list: New file.
67697         * modules/array-list: New file.
67698         * modules/carray-list, modules/carray-list-tests: New files.
67699         * modules/linked-list, modules/linked-list-tests: New files.
67700         * modules/avltree-list, modules/avltree-list-tests: New files.
67701         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67702         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67703         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67704         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67705         * modules/oset: New file.
67706         * modules/array-oset: New file.
67707         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67708         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67709         * tests/test-carray_list.c: New file.
67710         * tests/test-linked_list.c: New file.
67711         * tests/test-avltree_list.c: New file.
67712         * tests/test-rbtree_list.c: New file.
67713         * tests/test-linkedhash_list.c: New file.
67714         * tests/test-avltreehash_list.c: New file.
67715         * tests/test-rbtreehash_list.c: New file.
67716         * tests/test-avltree_oset.c: New file.
67717         * tests/test-rbtree_oset.c: New file.
67718         * MODULES.html.sh (Container data structures): New section.
67719
67720 2006-07-17  Bruno Haible  <bruno@clisp.org>
67721
67722         * m4/gl_list.m4: New file.
67723
67724 2006-07-17  Bruno Haible  <bruno@clisp.org>
67725
67726         * lib/gl_list.h: New file.
67727         * lib/gl_list.c: New file.
67728         * lib/gl_array_list.h: New file.
67729         * lib/gl_array_list.c: New file.
67730         * lib/gl_carray_list.h: New file.
67731         * lib/gl_carray_list.c: New file.
67732         * lib/gl_linked_list.h: New file.
67733         * lib/gl_linked_list.c: New file.
67734         * lib/gl_anylinked_list1.h: New file.
67735         * lib/gl_anylinked_list2.h: New file.
67736         * lib/gl_avltree_list.h: New file.
67737         * lib/gl_avltree_list.c: New file.
67738         * lib/gl_anyavltree_list1.h: New file.
67739         * lib/gl_anyavltree_list2.h: New file.
67740         * lib/gl_rbtree_list.h: New file.
67741         * lib/gl_rbtree_list.c: New file.
67742         * lib/gl_anyrbtree_list1.h: New file.
67743         * lib/gl_anyrbtree_list2.h: New file.
67744         * lib/gl_anytree_list1.h: New file.
67745         * lib/gl_anytree_list2.h: New file.
67746         * lib/gl_linkedhash_list.h: New file.
67747         * lib/gl_linkedhash_list.c: New file.
67748         * lib/gl_anyhash_list1.h: New file.
67749         * lib/gl_anyhash_list2.h: New file.
67750         * lib/gl_avltreehash_list.h: New file.
67751         * lib/gl_avltreehash_list.c: New file.
67752         * lib/gl_rbtreehash_list.h: New file.
67753         * lib/gl_rbtreehash_list.c: New file.
67754         * lib/gl_anytreehash_list1.h: New file.
67755         * lib/gl_anytreehash_list2.h: New file.
67756
67757         * lib/gl_oset.h: New file.
67758         * lib/gl_oset.c: New file.
67759         * lib/gl_array_oset.h: New file.
67760         * lib/gl_array_oset.c: New file.
67761         * lib/gl_avltree_oset.h: New file.
67762         * lib/gl_avltree_oset.c: New file.
67763         * lib/gl_rbtree_oset.h: New file.
67764         * lib/gl_rbtree_oset.c: New file.
67765         * lib/gl_anytree_oset.h: New file.
67766
67767 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67768
67769         * m4/mkancesdirs.m4: New file.
67770         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67771         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67772         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67773         it.
67774
67775 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67778         * lib/mkancesdirs.h: New files.
67779         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67780         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67781         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67782         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67783         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67784         callers changed.  Revamp internals significantly, by not
67785         attempting to create directories that are temporarily more
67786         permissive than the final results.  Do not attempt to use
67787         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67788         This removes some race conditions, fixes some bugs, and simplifies
67789         things.  Use new dirchownmod function to do owner and mode changes.
67790         * lib/mkdir-p.h: Likewise.
67791         * lib/modechange.c (octal_to_mode): New function.
67792         (struct mode_change): New member mentioned.
67793         (make_node_op_equals): New arg mentioned.  All callers changed.
67794         (mode_compile): Keep track of which mode bits the user has explicitly
67795         mentioned.
67796         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67797         New arg PMODE_BITS, to keep track of which mode bits the user
67798         mentioned; it treats S_ISUID and S_ISGID speciall.
67799         All callers changed.
67800         * lib/modechange.h: Likewise.
67801
67802 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67803
67804         * MODULES.html.sh: Add mkancestors.
67805         * modules/mkancesdirs: New module.
67806         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67807         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67808         The chdir-safer and afs files are now orphans; I'll remove them
67809         unless someone speaks up.
67810         Add lib/dirchownmod.c, lib/dirchownmod.h.
67811         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67812         Add lchown, mkancesdirs.
67813         (Maintainer): Add self.
67814
67815 2006-07-15  Karl Berry  <karl@gnu.org>
67816
67817         * gnulib-tool: help message wording/arrangement.
67818
67819 2006-07-14  Simon Josefsson  <jas@extundo.com>
67820
67821         * doc/gnulib.texi (Libtool and Windows): New section.
67822
67823 2006-07-12  Simon Josefsson  <jas@extundo.com>
67824
67825         * modules/gendocs (License): Fix license, approved by Karl.
67826
67827 2006-07-12  Eric Blake  <ebb9@byu.net>
67828
67829         * MODULES.html.sh: Add gendocs.
67830
67831 2006-07-11  Eric Blake  <ebb9@byu.net>
67832
67833         * modules/fdl: New module, to install doc/fdl.texi.
67834         * MODULES.html.sh: Add new section for documentation modules.
67835         * gnulib-tool: Avoid space-tab.
67836         (--doc-base): New option, to manage files from doc.
67837
67838 2006-07-11  Eric Blake  <ebb9@byu.net>
67839
67840         * m4/absolute-header.m4: Fix comments to match recent change.
67841
67842 2006-07-11  Eric Blake  <ebb9@byu.net>
67843
67844         * gnulib-tool: List --doc-base before --tests-base.
67845
67846 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67847
67848         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67849
67850 2006-07-11  Bruno Haible  <bruno@clisp.org>
67851
67852         * README: Mention where to put documentation.
67853
67854 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67855
67856         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67857
67858 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67859
67860         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67861         to stdint.m4.
67862
67863 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67864
67865         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67866         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67867         "no/such/file/stdint.h" when there is no such file, so that
67868         the resulting C code can be parsed by dodgy compilers.
67869         Problems reported by Bob Proulx.
67870
67871 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67872
67873         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67874         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67875         macros into the GNU _D_EXACT_NAMLEN.
67876         * lib/savedir.c:  Likewise.
67877         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67878
67879 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67880         and Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67883         * m4/savedir.m4:
67884         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67885         macros into the GNU _D_EXACT_NAMLEN.
67886
67887 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67890         around the absolute name, to work around a problem with the HP-UX
67891         11.23 native C compiler, reported by Bob Proulx.
67892
67893 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67894
67895         * doc/maintain.texi, make-stds.texi: Sync from
67896         <http://savannah.gnu.org/projects/gnustandards>.
67897
67898 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67901
67902 2006-07-09  Jim Meyering  <jim@meyering.net>
67903
67904         * m4/glob.m4: Remove a doubled word in a comment.
67905
67906 2006-07-09  Jim Meyering  <jim@meyering.net>
67907
67908         * lib/argp-pv.c: Remove a doubled word in a comment.
67909         * lib/check-version.c (check_version): Likewise.
67910         * lib/javacomp.c (compile_java_class): Likewise.
67911
67912 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67915         for the benefit of people using Autoconf 2.60.  If you want to
67916         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67917         (or m4/onceonly.m4, if pre-2.57) manually.
67918
67919 2006-07-08  Jim Meyering  <jim@meyering.net>
67920
67921         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67922         comment.
67923         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67924         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67925         comment.
67926
67927 2006-07-08  Jim Meyering  <jim@meyering.net>
67928
67929         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67930
67931 2006-07-07  Simon Josefsson  <jas@extundo.com>
67932
67933         * tests/test-crc.c: Change expected crc value, the test vector
67934         were probably computed using the old broken crc.c?
67935
67936 2006-07-06  Simon Josefsson  <jas@extundo.com>
67937
67938         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67939         now the canonical place for the M4 file).
67940
67941         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67942         from the sys_socket dependency now.
67943
67944         * modules/inet_pton (Files): Ditto.
67945
67946         * modules/inet_ntop (Files): Ditto.
67947
67948 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67949
67950         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67951         not gl_PREREQ_GETUSERSHELL.
67952
67953 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67954
67955         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67956         with only one argument, for Autoconf 2.60.
67957         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67958         expand to nothing, so add a shell command to avoid syntax error.
67959         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67960
67961 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67962
67963         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67964
67965 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67966
67967         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67968         no longer needed.  Check for isblank decl.
67969         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67970         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67971         of existence.
67972
67973 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67974
67975         * lib/getloadavg.c: Use __VMS, not VMS.
67976         * lib/getopt.c: Likewise.
67977         * lib/getpagesize.h: Likewise.
67978         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67979         and probably does not work.
67980
67981 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67982
67983         * lib/.cppi-disable: Add wcwidth.
67984         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67985         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67986         (ISGRAPH): Remove.  All uses changed to isgraph.
67987         (FOLD) [!defined _LIBC]: Remove special case.
67988         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67989         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67990         HAVE_ISBLANK.
67991         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67992         case.
67993
67994 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67995
67996         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67997         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67998         brackets.  Other minor changes to suppress some compiler
67999         warnings.
68000
68001 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68002         and Paul Eggert  <eggert@cs.ucla.edu>
68003
68004         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68005         of invoking obsolescent AC_HEADER_DIRENT macro.
68006         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68007         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68008         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68009         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68010         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68011         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68012         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68013         * m4/readdir.m4: Remove; no longer needed.
68014
68015 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68016         and Paul Eggert  <eggert@cs.ucla.edu>
68017
68018         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68019         Don't worry about this obsolete case any more.
68020         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68021         directories.
68022         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
68023         worry about this obsolete case any more.
68024         * lib/fts.c: Likewise.
68025         * lib/getcwd.c: Likewise.
68026         * lib/glob.h: Likewise.
68027         * lib/savedir.c: Likewise.
68028
68029 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
68032         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
68033         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
68034         needed.
68035         All uses removed.
68036         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68037         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68038         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
68039         needed.
68040         * m4/getdate.m4 (gl_GETDATE): Likewise.
68041         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68042         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68043         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68044         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68045         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68046         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68047         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
68048         needed.
68049
68050 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68051
68052         * lib/memcasecmp.c: Include <limits.h>.
68053         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68054         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68055         Don't assume isdigit succeeds only on '0' through '9'.
68056
68057 2006-07-05  Eric Blake  <ebb9@byu.net>
68058
68059         * modules/getaddrinfo (Depends-on): Add snprintf.
68060
68061 2006-07-05  Eric Blake  <ebb9@byu.net>
68062
68063         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68064         to avoid 'header present but could not be compiled' on cygwin.
68065
68066 2006-07-05  Eric Blake  <ebb9@byu.net>
68067
68068         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68069         missing from netdb.h.
68070         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68071
68072 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68073
68074         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68075         no longer needed.
68076         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68077         * m4/getdate.m4 (gl_GETDATE): Likewise.
68078         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68079         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68080         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68081         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68082         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68083
68084 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68085
68086         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68087         All uses of is_space replaced by isspace.
68088         * lib/exit.h: Don't talk about STDC_HEADERS.
68089         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68090         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68091         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68092         replaced by isprint etc.
68093         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68094         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68095         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68096         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68097         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68098         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68099
68100 2006-07-05  Bruno Haible  <bruno@clisp.org>
68101
68102         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68103         the function exists, before testing against AIX.
68104         Reported by Martin Lambers <marlam@marlam.de>.
68105
68106 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68107
68108         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68109         From Mark D. Baushke.
68110
68111 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68112
68113         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68114         to the absolute name, not just one, to bypass Sun C 5.8's
68115         "warning: #include of /usr/include/... may be non-portable".
68116
68117 2006-07-04  Eric Blake  <ebb9@byu.net>
68118
68119         * modules/dirname-tests: New test module.
68120         * tests/test-dirname.c: New file, replacing dirname.c
68121         TEST_DIRNAME section that was recently deleted.
68122
68123 2006-07-04  Bruno Haible  <bruno@clisp.org>
68124
68125         Assume ANSI C header files and <ctype.h> functions.
68126         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
68127         (mbsnwidth): Use isprint, iscntrl instead.
68128
68129 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68130
68131         Merge from coreutils.
68132         * MODULES.html.sh: Add xstrtold.
68133         * modules/xstrtold: New file.
68134         * modules/cycle-check (Files): Add lib/same-inode.h.
68135         * modules/dirname (Files): Add m4/double-slash-root.m4.
68136         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
68137         * modules/mkdir-p (Files): Add lib/same-inode.h.
68138         * modules/same (Files): Add lib/same-inode.h.
68139
68140 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68141
68142         * m4/absolute-header.m4: Renamed from full-header-path.m4.
68143         This is to keep the terminology clean; POSIX talks about
68144         "absolute pathnames", not "full pathnames", but the GNU
68145         Coding Standards say to use "path" for something else;
68146         so use "absolute" to keep both sides happy.
68147         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
68148         Set gl_absolute_header, not gl_full_header_path.
68149         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
68150         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
68151         All uses changed.
68152
68153         Merge from coreutils.
68154
68155         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68156
68157         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
68158         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
68159         want to require the building of c-strtod.o.
68160         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
68161         needs -lm directly.
68162         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
68163
68164         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68165
68166         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
68167         --as-needed option if available.  Problem reported by Albert Chin in
68168         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
68169         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
68170         cc merely issues a bunch of annoying warnings for --as-needed
68171         (this problem was reported by Bob Proulx).  Also, try linking with
68172         -lm to detect a bug in binutils 2.16 (this problem was reported
68173         by Ralf Wildenhues).
68174
68175         2006-06-18  Jim Meyering  <jim@meyering.net>
68176
68177         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
68178         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
68179         macro.
68180         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
68181         also check for glibc-2.4's abort-inducing bug.
68182
68183         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
68184         Low-probability clean-up should be to use rmdir to get rid of
68185         the just-created directory, not unlink.
68186
68187         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
68188         configure fail, and request a bug report to inform us about it.
68189         Add a comment that, barring reports to the contrary, in 2007 we'll
68190         assume ftruncate is universally available.
68191
68192         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68193
68194         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
68195
68196         2006-03-12  Jim Meyering  <jim@meyering.net>
68197
68198         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
68199         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
68200         * m4/same.m4 (gl_SAME): Likewise.
68201         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
68202
68203         2006-03-11  Eric Blake  <ebb9@byu.net>
68204
68205         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
68206         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
68207         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
68208         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
68209
68210 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
68211
68212         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
68213         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
68214         reported by Mark D. Baushke, one in
68215         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
68216
68217         Merge from coreutils.
68218
68219         * lib/.cppi-disable: Add stdint_.h.
68220         * lib/.cvsignore: Add stdint.h.
68221
68222         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
68223
68224         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
68225         both double and long double versions.
68226         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
68227         * lib/xstrtold.c: New file.
68228         * lib/xstrtod.h (xstrtold): New decl.
68229
68230         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68231
68232         * lib/filemode.c (setst): Remove.
68233         (strmode): Rewrite to avoid setst.  This makes the code shorter,
68234         (arguably) clearer, and the generated code is a bit smaller on my
68235         Debian GNU/Linux stable x86 host.
68236
68237         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
68238
68239         * lib/filemode.c: Include "filemode.h" first, to test the interface.
68240         Assume that filemode.h includes sys/types.h and sys/stat.h.
68241         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
68242         (ftypelet): Reorder to put common cases first, for efficiency.
68243         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
68244         to do 'M'.
68245         (strmode): Renamed from mode_string, and now stores 12 bytes instead
68246         of 10, for compatibility with FreeBSD.  All callers changed.
68247         (filemodestring): Now stores 12 bytes instead of 10, and sets file
68248         types that can't be deduced solely from st_mode.  First arg is now a
68249         const pointer.
68250         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
68251         (strmode): Renamed from mode_string.
68252         (filemodestring): New decl.
68253         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
68254         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
68255         needed.
68256         (S_ISPORT, S_ISWHT): New macros, if not already defined.
68257
68258         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68259
68260         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
68261         fsusage.h now does that.  Include fsusage.h first, to test interface.
68262         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
68263         at most one method (the old code could have generated decls that
68264         didn't conform to C89, not that this was ever exercised).
68265         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
68266
68267         2006-03-19  Jim Meyering  <jim@meyering.net>
68268
68269         Work even in a chroot where d_ino values for entries in "/"
68270         don't match the stat.st_ino values for the same names.
68271         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
68272         number, iterate through all entries again, using lstat instead.
68273         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
68274         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
68275
68276         * lib/getcwd.c (__getcwd): Clarify a comment.
68277         Use memcpy in place of a call to strcpy.
68278
68279         2006-03-12  Jim Meyering  <jim@meyering.net>
68280
68281         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
68282         matches that of the current directory (which we're about to chdir ".."
68283         out of), then save the dev-ino of the parent, instead.
68284
68285         * lib/same-inode.h (SAME_INODE): New file/macro.
68286         * lib/chdir-safer.c (SAME_INODE): Remove definition.
68287         Include "same-inode.h", instead.
68288         * lib/same.c: Likewise.
68289         * lib/cycle-check.h: Include "same-inode.h".
68290         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
68291         * lib/cycle-check.c (SAME_INODE): Remove definition.
68292         * lib/root-dev-ino.h: Include "same-inode.h".
68293
68294         2006-03-11  Eric Blake  <ebb9@byu.net>
68295
68296         * lib/same.c (same_name): s/base_name/last_component/
68297         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
68298         * lib/filenamecat.c (file_name_concat): Likewise.
68299
68300         2006-03-11  Eric Blake  <ebb9@byu.net>,
68301                     Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
68304         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
68305         drive prefix.
68306         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
68307         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
68308         (last_component): New method.
68309         * lib/dirname.c (dir_len): Determine when drive letters need a
68310         subsequent slash.  Preserve // when it is special.
68311         (dir_name): Don't append dot when drive letter is absolute.
68312         [TEST_DIRNAME]: Move into a full-blown gnulib test.
68313         * lib/basename.c (base_name): New semantics - malloc the result.
68314         Preserve // when it is special.  Preserve relative files that look
68315         like drive letters.
68316         (base_len): Preserve // when it is special.
68317         (last_component): New method, similar to old base_name semantics.
68318         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
68319         base_name.  Strip redundant slashes from ///.
68320
68321 2006-07-03  Jim Meyering  <jim@meyering.net>
68322
68323         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
68324         macro is used before the first cycle_check call.
68325
68326 2006-07-03  Eric Blake  <ebb9@byu.net>
68327
68328         * modules/dirname (Depends-on): Add xstrndup.
68329
68330 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
68333         test cases, so that config.log is a bit easier to follow.
68334
68335 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
68338         both are 64 bits, since this seems to be the tradition, and this
68339         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
68340         we ever run into a host that prefers long long to long in this
68341         case, we'll need another configure-time test.  Problem reported by
68342         Jim Meyering.
68343
68344 2006-07-02  Eric Blake  <ebb9@byu.net>
68345
68346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
68347
68348 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68349
68350         * modules/inttypes (Depends-on): No longer depends on stdint.
68351         * modules/stdint (Description): Say more about assumptions.
68352         Say that the fast types might differ.  Say macros are used.
68353         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
68354         (Makefile.am): Revise list of substituted symbols to match
68355         new stdint.m4.
68356         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
68357         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
68358         * tests/test-stdint.c (verify_same_types)
68359         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
68360         the code conforms to C99/C89.
68361         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
68362         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
68363
68364 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
68367         but fix a bug, by requiring at least 64 bits.
68368         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
68369         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
68370         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
68371         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68372
68373         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
68374         changes.  Make 2.59 a prerequisite.  Check and substitute for
68375         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
68376         inttypes.h.  Do not use special include files; just use the
68377         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
68378         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
68379         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
68380         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
68381         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
68382         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
68383         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
68384         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
68385         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
68386         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
68387         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
68388         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
68389         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
68390         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
68391         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
68392         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
68393         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
68394         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
68395         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
68396         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
68397         WINT_MAX.  Check for C99 conformance more strictly, by detecting
68398         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
68399         not check for things that C99 does not require, e.g., int8_t.  If
68400         a test isn't needed unless <stdint.h> isn't working, and is
68401         unlikely to be needed for any other reason, then don't do it
68402         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
68403         size_t, since we assume C89 freestanding at least.  Do not check
68404         for sig_atomic_t, wchar_t, or wint_t, since the code now does
68405         the right thing even if the types are not defined.  Instead use:
68406         (gl_STDINT_TYPE_PROPERTIES): New macro.
68407         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
68408         testing whether <sys/types.h> clashes, as Autoconf does this for
68409         us now.  All uses removed.
68410         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
68411         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
68412         (gl_CHECK_TYPE_SAME):
68413         Remove; no longer needed.
68414         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
68415         exists, since we'll return 0 anyway in that case.
68416         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
68417
68418 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
68419
68420         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
68421         possible collision with system files.
68422         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
68423         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
68424         WCHAR_MIN and WCHAR_MAX in this case.
68425         (<stddef.h>): Do not include; no longer needed.
68426         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
68427         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
68428         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
68429         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
68430         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
68431         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
68432         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
68433         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
68434         !defined(__c99))]: Include in this case too, since it's harmless
68435         now.
68436         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
68437         dangerous to do so.
68438         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
68439         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
68440         (_STDINT_MIN, _STDINT_MAX): New macros.
68441         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
68442         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
68443         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
68444         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
68445         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
68446         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
68447         macros, not typedefs; this simplifies things quite a bit.
68448         Use long int for all types narrower than int64_t.
68449         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
68450         Define in terms of long long int or int64_t or long int,
68451         not int64_t or int32_t.  This saves some compile-time testing.
68452         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
68453         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
68454         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
68455         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
68456         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
68457         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
68458         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
68459         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
68460         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
68461         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
68462         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68463         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68464         undef any previous version and define our own version, for
68465         simplicity and consistency with the new macros for types.
68466         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
68467         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
68468         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
68469         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
68470         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
68471         @WINT_T_SUFFIX@ to keep things simple here.
68472         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
68473         Simplify by assuming typical 8/16/32/64 host, since we're
68474         already doing that elsewhere anyway.
68475         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
68476         and assume long long int is 64 bits if available.  This
68477         speeds up 'configure'.
68478
68479 2006-07-01  Eric Blake  <ebb9@byu.net>
68480
68481         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
68482         Reported by Andreas Buening.
68483
68484 2006-07-01  Eric Blake  <ebb9@byu.net>
68485
68486         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
68487
68488 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68489
68490         * lib/getaddrinfo.c: fixed typo
68491
68492 2006-06-29  Jim Meyering  <jim@meyering.net>
68493
68494         * modules/strftime (Maintainer): Add my name, since with the
68495         FPRINTFTIME changes strftime.c has forked from glibc.
68496
68497 2006-06-29  Eric Blake  <ebb9@byu.net>
68498
68499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
68500
68501 2006-06-29  Eric Blake  <ebb9@byu.net>
68502
68503         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
68504
68505 2006-06-29  Eric Blake  <ebb9@byu.net>
68506
68507         * lib/stat_.h: New file.
68508
68509 2006-06-29  Eric Blake  <ebb9@byu.net>
68510
68511         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
68512         unused static function.
68513
68514 2006-06-29  Eric Blake  <ebb9@byu.net>
68515
68516         * doc/functions.texi (Function Portability): Document missing lstat
68517         on mingw.
68518
68519 2006-06-29  Eric Blake  <ebb9@byu.net>
68520
68521         * MODULES.html.sh: Add sys_stat.
68522         * modules/sys_stat: New module.
68523         * modules/mkstemp (Depends-on): Add sys_stat.
68524
68525 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68526
68527         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
68528
68529 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68530
68531         * m4/c-bs-a.m4: Removed.
68532
68533 2006-06-29  Derek R. Price  <derek@ximbiot.com>
68534
68535         * lib/strftime.c: Assume strftime() exists.
68536
68537 2006-06-29  Derek Price  <derek@ximbiot.com>
68538
68539         * modules/c-bs-a: Removed - \a is C89.
68540         * MODULES.html.sh: Remove c-bs-a.
68541
68542 2006-06-29  Bruno Haible  <bruno@clisp.org>
68543
68544         * modules/wcwidth (License): Change to LGPL.
68545
68546 2006-06-28  Simon Josefsson  <jas@extundo.com>
68547
68548         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
68549         on _WIN32.
68550
68551         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
68552         getnameinfo.
68553
68554 2006-06-28  Simon Josefsson  <jas@extundo.com>
68555
68556         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68557
68558 2006-06-28  Simon Josefsson  <jas@extundo.com>
68559
68560         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68561         functions there.  It will succeed on Windows XP, but on Windows
68562         2000 and (presumably) earlier, it will fail, and use the internal
68563         re-implementation.
68564         (use_win32_p): New function.
68565         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68566         Support AI_NUMERICSERV to disable getservbyname.
68567         (getnameinfo): New function, only supports
68568         NI_NUMERICHOST|NI_NUMERICSERV for now.
68569
68570         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68571         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68572         getnameinfo.
68573
68574 2006-06-28  Eric Blake  <ebb9@byu.net>
68575
68576         * modules/wcwidth: New file.
68577         * modules/mbchar (Depends-on): Add wcwidth.
68578         * modules/mbswidth (Depends-on): Add wcwidth.
68579         * MODULES.html.sh: Add wcwidth.
68580
68581 2006-06-28  Eric Blake  <ebb9@byu.net>
68582
68583         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68585
68586 2006-06-28  Eric Blake  <ebb9@byu.net>
68587
68588         * lib/xvasprintf.h: Fix comments.
68589
68590 2006-06-28  Eric Blake  <ebb9@byu.net>
68591
68592         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68593         * lib/mbswidth.c (wcwidth): Move from here...
68594         * lib/wcwidth.h: ...to this new file.
68595
68596 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68597
68598         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68599
68600         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68601         it's obsolete.
68602         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68603
68604 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68605
68606         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68607         Autoconf 2.60 says this stuff was obsolete.
68608
68609 2006-06-28  Bruno Haible  <bruno@clisp.org>
68610
68611         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68612
68613 2006-06-28  Bruno Haible  <bruno@clisp.org>
68614
68615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68616         gt_TYPE_WCHAR_T.
68617
68618 2006-06-28  Bruno Haible  <bruno@clisp.org>
68619
68620         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68621         declaration for wcwidth.
68622         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68623
68624 2006-06-28  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68627         (mkdir): Define using _mkdir.
68628
68629 2006-06-28  Bruno Haible  <bruno@clisp.org>
68630
68631         * lib/getaddrinfo.h: Fix POSIX URL.
68632         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68633         _WIN32.
68634         (use_win32_p): Make static.
68635         (getaddrinfo): Reject service name if it is empty or does not consist
68636         solely of decimal digits, or if its value is > 65535.
68637         (getnameinfo): Remove useless casts.
68638
68639 2006-06-27  Simon Josefsson  <jas@extundo.com>
68640
68641         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68642         Eggert and Martin Lambers.
68643
68644 2006-06-27  Simon Josefsson  <jas@extundo.com>
68645
68646         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68647         Eggert and Martin Lambers.
68648
68649 2006-06-27  Bruno Haible  <bruno@clisp.org>
68650
68651         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68652         result to 0, not to empty.
68653         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68654
68655 2006-06-27  Bruno Haible  <bruno@clisp.org>
68656
68657         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68658
68659 2006-06-26  Simon Josefsson  <jas@extundo.com>
68660
68661         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68662         present.
68663
68664 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68667         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68669
68670 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68671
68672         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68673
68674 2006-06-26  Bruno Haible  <bruno@clisp.org>
68675
68676         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68677
68678 2006-06-26  Bruno Haible  <bruno@clisp.org>
68679
68680         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68681
68682 2006-06-26  Bruno Haible  <bruno@clisp.org>
68683
68684         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68685         SGI C compiler in pre-C99 mode.
68686         Suggested by Mark D. Baushke and Larry Jones.
68687
68688 2006-06-26  Bruno Haible  <bruno@clisp.org>
68689
68690         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68691         WCHAR_MAX.
68692         Reported by Mark D. Baushke and Larry Jones.
68693
68694 2006-06-26  Bruno Haible  <bruno@clisp.org>
68695
68696         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68697         in pre-C99 mode.
68698         Suggested by Mark D. Baushke and Larry Jones.
68699
68700 2006-06-23  Simon Josefsson  <jas@extundo.com>
68701             Bruno Haible  <bruno@clisp.org>
68702
68703         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68704         Emit mostlyclean-local rule.
68705         (func_emit_tests_Makefile_am): Likewise.
68706         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68707
68708 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68709
68710         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68711
68712 2006-06-23  Bruno Haible  <bruno@clisp.org>
68713
68714         * tests/test-stdint.c: Update to match ISO C 99 Technical
68715         Corrigendum 1.
68716
68717 2006-06-23  Bruno Haible  <bruno@clisp.org>
68718
68719         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68720
68721 2006-06-23  Bruno Haible  <bruno@clisp.org>
68722
68723         * lib/stdint_.h: Treat IRIX like OpenBSD.
68724
68725 2006-06-23  Bruno Haible  <bruno@clisp.org>
68726
68727         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68728         ISO C 99 Technical Corrigendum 1.
68729
68730 2006-06-22  Simon Josefsson  <jas@extundo.com>
68731
68732         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68733         MinGW.
68734
68735 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68738         needed.  Some compiler complained about some of them.  Problem reported
68739         by Larry Jones in
68740         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68741
68742 2006-06-21  Simon Josefsson  <jas@extundo.com>
68743
68744         * tests/test-getaddrinfo.c: New file.
68745
68746         * modules/getaddrinfo-tests: New file.
68747
68748         * MODULES.html.sh: Add inet_pton.
68749
68750         * modules/inet_pton: New file.
68751
68752 2006-06-21  Simon Josefsson  <jas@extundo.com>
68753
68754         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68755         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68756         of using the (limited) gnulib implementation on Windows XP.
68757
68758         * m4/inet_pton.m4: New file.
68759
68760 2006-06-21  Simon Josefsson  <jas@extundo.com>
68761
68762         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68763         variable.
68764
68765         * lib/socket_.h: Don't define WINVER.
68766
68767         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68768         slightly modified to work in gnulib.
68769
68770 2006-06-21  Simon Josefsson  <jas@extundo.com>
68771
68772         * doc/gnulib.texi (Windows sockets): Add.
68773
68774 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68775
68776         * lib/read-file.c (fread_file): Start with buffer allocation of
68777         0 bytes rather than 1 byte; this simplifies the code.
68778         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68779         code to free buffer and save/restore errno.
68780         (internal_read_file): Remove unused local.
68781
68782 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68785         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68786         Problem reported by Denis Excoffier in
68787         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68788
68789 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68790
68791         * modules/sys_socket, modules/socklen: Include sys/types since
68792         FreeBSD 4.x's sys/socket.h needs it.
68793
68794 2006-06-19  Simon Josefsson  <jas@extundo.com>
68795
68796         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68797
68798 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68801
68802 2006-06-19  Bruno Haible  <bruno@clisp.org>
68803
68804         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68805         and FULL_PATH_INTTYPES_H in angle brackets.
68806         Reported by Mark D. Baushke <mdb@gnu.org>.
68807
68808 2006-06-17  Eric Blake  <ebb9@byu.net>
68809
68810         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68811         errno.
68812
68813 2006-06-17  Bruno Haible  <bruno@clisp.org>
68814
68815         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68816         <sys/inttypes.h>.
68817
68818 2006-06-17  Bruno Haible  <bruno@clisp.org>
68819
68820         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68821         whether errno is declared. Assume <errno.h> declares errno.
68822
68823 2006-06-17  Bruno Haible  <bruno@clisp.org>
68824
68825         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68826
68827 2006-06-17  Bruno Haible  <bruno@clisp.org>
68828
68829         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68830         problem on Solaris 2.5.1.
68831
68832 2006-06-16  Eric Blake  <ebb9@byu.net>
68833
68834         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68835         * lib/unicodeio.c [!defined errno]: Likewise.
68836         * lib/strtol.c [!defined errno]: Likewise.
68837         * lib/strtod.c [!defined errno]: Likewise.
68838
68839 2006-06-15  Eric Blake  <ebb9@byu.net>
68840
68841         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68842
68843 2006-06-15  Eric Blake  <ebb9@byu.net>
68844
68845         * config/srclist.txt (ssize_t.m4): Lose sync.
68846
68847 2006-06-15  Bruno Haible  <bruno@clisp.org>
68848
68849         * modules/stdint (Files): Include m4/full-header-path.m4,
68850         m4/size_max.m4, m4/wchar_t.m4.
68851         (Makefile.am): Many more substitutions.
68852         * modules/stdint-tests: New file.
68853         * tests/test-stdint.c: New file.
68854
68855 2006-06-15  Bruno Haible  <bruno@clisp.org>
68856
68857         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68858         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68859         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68860         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68861         gl_CHECK_TYPE_SAME): New macros.
68862
68863 2006-06-15  Bruno Haible  <bruno@clisp.org>
68864
68865         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68866
68867 2006-06-15  Bruno Haible  <bruno@clisp.org>
68868
68869         * lib/stdint_.h: Rewritten to be fully auto-configured.
68870         Fixes bug on HP-UX/IA64.
68871
68872 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         * lib/getdate.y (__attribute__): Don't define if already defined.
68875         Problem reported by Larry Jones.
68876         * lib/utimens.c (__attribute__): Likewise.
68877
68878 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68879
68880         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68881         reported by Andreas Schwab.
68882
68883 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68884             Bruno Haible  <bruno@clisp.org>
68885
68886         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68887         check for the declaration of strnlen and a run test that exposes the
68888         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68889         rpl_strndup.
68890
68891 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68892             Bruno Haible  <bruno@clisp.org>
68893
68894         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68895
68896 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68897
68898         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68899         compile test, for Tru64 4.0D.
68900
68901 2006-05-28  Karl Berry  <karl@gnu.org>
68902
68903         * config/srclist.txt (printf-args.c): lose sync.
68904
68905 2006-05-26  Martin Lambers  <marlam@marlam.de>
68906
68907         * lib/getpass.c: Updates the test for the native W32 API, and adds
68908         missing includes, thus fixing compilation warnings.
68909
68910 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68911
68912         * lib/exclude.c (exclude_fnmatch): New function.
68913         (excluded_file_name): Call exclude_fnmatch.
68914         * lib/exclude.h (excluded_file_name): New prototype
68915
68916 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68917
68918         * lib/tempname.c (small_open, large_open): New macros.
68919         (__open, __open64) [!_LIBC]: Remove.
68920         (__gen_tempname): Use small_open and large_open instead of __open
68921         and __open64.  This fixes a portability bug on HP-UX 11.11i
68922         reported by Simon Wing-Tang in
68923         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68924
68925 2006-05-24  Bruno Haible  <bruno@clisp.org>
68926
68927         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68928         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68929         Reported by Thorsten Maerz <torte@netztorte.de> via
68930         Aaron Stone <aaron@serendipity.cx>.
68931
68932 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68935         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68936         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68937         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68938         not really conditional on the cache.
68939         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68940
68941 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68944         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68945         (my_usleep): Don't mishandle maximum value.
68946
68947 2006-05-19  Jim Meyering  <jim@meyering.net>
68948
68949         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68950
68951 2006-05-17  Bruno Haible  <bruno@clisp.org>
68952
68953         Cygwin portability.
68954         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68955
68956 2006-05-17  Bruno Haible  <bruno@clisp.org>
68957
68958         * lib/stdint_.h: Fix recognition of Cygwin.
68959
68960 2006-05-15  Bruno Haible  <bruno@clisp.org>
68961
68962         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68963         on libtool patch by Ralf Wildenhues.
68964
68965 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68968         test for C99 conformance; (bool) 0.5 is an integer constant
68969         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68970         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68971
68972 2006-05-11  Simon Josefsson  <jas@extundo.com>
68973
68974         * m4/xvasprintf.m4: Fix obvious typo.
68975
68976 2006-05-11  Jim Meyering  <jim@meyering.net>
68977
68978         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68979         James Lemley.
68980
68981 2006-05-10  Simon Josefsson  <jas@extundo.com>
68982
68983         * lib/md4.c: Typo fix, update copyright years.
68984         (K1, K2): Don't use L because it turn computations into 64-bit on
68985         64-bit platforms.
68986
68987 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68990         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68991         unwanted sign propagation, e.g., on hosts with 64-bit int.
68992         There still are some problems with reeelly weird theoretical hosts
68993         (e.g., 33-bit int) but it's not worth worrying about now.
68994         * lib/sha1.c (rol): Likewise.
68995         (K1, K2, K3, K4): Remove unnecessary L suffix.
68996
68997 2006-05-10  Bruno Haible  <bruno@clisp.org>
68998
68999         * lib/des.c: Cast to avoid warnings.
69000
69001 2006-05-09  Bruno Haible  <bruno@clisp.org>
69002
69003         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69004         (Depends-on): Depend also on xsize, stdarg.
69005         (configure.ac): Add gl_XVASPRINTF.
69006
69007 2006-05-09  Bruno Haible  <bruno@clisp.org>
69008
69009         * m4/xvasprintf.m4: New file.
69010
69011 2006-05-09  Bruno Haible  <bruno@clisp.org>
69012
69013         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69014         (EOVERFLOW): Define fallback value.
69015         (xstrcat): New function.
69016         (xvasprintf): Recognize the special case of a string concatenation.
69017
69018 2006-05-08  Eric Blake  <ebb9@byu.net>
69019
69020         * gnulib-tool (func_version): Base copyright year on CVS date.
69021         (func_emit_copyright_notice): New function.
69022         (func_emit_lib_Makefile_am): Use it.
69023         (func_emit_tests_Makefile_am): Likewise.
69024         (func_import): Likewise.
69025
69026 2006-05-08  Bruno Haible  <bruno@clisp.org>
69027
69028         * modules/stdarg: New file.
69029         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
69030
69031 2006-05-08  Bruno Haible  <bruno@clisp.org>
69032
69033         * m4/stdarg.m4: New file, from GNU gettext.
69034
69035 2006-05-08  Bruno Haible  <bruno@clisp.org>
69036
69037         * config/srclist.txt (build-aux/config.rpath): different from latest
69038         release.
69039
69040 2006-05-08  Bruno Haible  <bruno@clisp.org>
69041
69042         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
69043
69044 2006-05-05  Jim Meyering  <jim@meyering.net>
69045
69046         * m4/warning.m4: New file, derived from bison's file by the same name.
69047
69048 2006-05-03  Bruno Haible  <bruno@clisp.org>
69049
69050         * lib/stdint_.h: Shorter URL.
69051         * lib/inttypes.h: Likewise.
69052
69053 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69056
69057 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69058
69059         * lib/verify.h: Document the internals better.  Most of this change
69060         was written by Bruno Haible.
69061
69062 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         * doc/verify.texi: New file, partly based on a proposal by
69065         Bruno Haible.
69066
69067 2006-05-02  Bruno Haible  <bruno@clisp.org>
69068
69069         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69070         test from here...
69071         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69072
69073 2006-04-29  Bruno Haible  <bruno@clisp.org>
69074
69075         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69076         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69077
69078 2006-04-29  Bruno Haible  <bruno@clisp.org>
69079
69080         * gnulib-tool: Make --update option actually work.
69081
69082 2006-04-29  Bruno Haible  <bruno@clisp.org>
69083
69084         * doc/gcd.texi: New file.
69085         * doc/gnulib.texi: Include it.
69086
69087 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         * lib/getdate.y (get_date): When adding relative date, start with the
69090         initial time, not with the result of the first mktime call.
69091
69092 2006-04-25  Bruno Haible  <bruno@clisp.org>
69093
69094         * gnulib-tool (func_import): Output the include directives in three
69095         blocks, sorted separately.
69096         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69097
69098 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69099
69100         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69101         to define main with arguments, for C++.  Reported by Eric Blake.
69102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69103         Prefer 'int main ()' to 'int main (void)', for C++.
69104         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69105         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69106         for 'main', for C99 and C++.
69107
69108 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69111         Don't assume that exit status -1 is valid.
69112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69113         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69114         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69115         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69116         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69117         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69118         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69119         functions can be used without declaring them, or that you can
69120         exit with status -1.
69121         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69122
69123 2006-04-24  Karl Berry  <karl@gnu.org>
69124
69125         * config/srclist.txt (longdouble.m4): sync lost.
69126
69127 2006-04-24  Eric Blake  <ebb9@byu.net>
69128
69129         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
69130
69131 2006-04-24  Bruno Haible  <bruno@clisp.org>
69132
69133         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
69134         poll() implementation in AIX.
69135         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69136
69137 2006-04-24  Bruno Haible  <bruno@clisp.org>
69138
69139         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
69140         assigned exactly once.
69141
69142 2006-04-23  Claudio Fontana  <claudio@gnu.org>
69143             Bruno Haible  <bruno@clisp.org>
69144
69145         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
69146         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
69147         for AM_CPPFLAGS.
69148
69149 2006-04-23  Bruno Haible  <bruno@clisp.org>
69150
69151         * modules/copy-file: Depend on unistd.
69152         * modules/execute: Likewise.
69153         * modules/fatal-signal: Likewise.
69154         * modules/findprog: Likewise.
69155         * modules/mkdtemp : Likewise.
69156         * modules/pipe: Likewise.
69157         * modules/wait-process: Likewise.
69158
69159 2006-04-23  Bruno Haible  <bruno@clisp.org>
69160
69161         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
69162         condition was already detected.
69163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69164
69165 2006-04-23  Bruno Haible  <bruno@clisp.org>
69166
69167         * lib/copy-file.c: Include <unistd.h> unconditionally.
69168         * lib/execute.c: Likewise.
69169         * lib/fatal-signal.c: Likewise.
69170         * lib/findprog.c: Likewise.
69171         * lib/mkdtemp.c: Likewise.
69172         * lib/pipe.h: Likewise.
69173         * lib/pipe.c: Likewise.
69174         * lib/wait-process.h: Likewise.
69175
69176 2006-04-23  Bruno Haible  <bruno@clisp.org>
69177
69178         * gnulib-tool (func_usage): Fix --import description. Document
69179         --update.
69180         (func_import): Create temporary file in a temporary directory, if
69181         --dry-run is specified. Silence errors from 'grep' when there are no
69182         m4 files in $m4dir.
69183         (func_create_testdir): Silence errors from 'grep' when there are no
69184         m4 files in $m4dir.
69185         Reported by Karl Berry <karl@freefriends.org>.
69186
69187 2006-04-20  Bruno Haible  <bruno@clisp.org>
69188
69189         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
69190         one argument, so that the code will be portable to Autoconf 2.60.
69191         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
69192         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69193         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
69194
69195 2006-04-19  Derek Price  <derek@ximbiot.com>
69196             Eric Blake  <ebb9@byu.net>
69197
69198         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
69199         rather than "/full/path.h".  Update comment to match.  Shorten &
69200         generalize m4_translit call via AS_TR_CPP.
69201
69202 2006-04-19  Derek Price  <derek@ximbiot.com>
69203             Eric Blake  <ebb9@byu.net>
69204
69205         * lib/inttypes.h: Correct grammar in comment.
69206
69207 2006-04-18  Derek Price  <derek@ximbiot.com>
69208             Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * modules/inttypes: New file.
69211         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
69212
69213 2006-04-18  Derek Price  <derek@ximbiot.com>
69214             Paul Eggert  <eggert@cs.ucla.edu>
69215
69216         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
69217         New files.
69218
69219 2006-04-18  Derek Price  <derek@ximbiot.com>
69220             Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         * lib/inttypes.h: New file.
69223         * lib/strtoimax.c: Assume <inttypes.h>.
69224
69225 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
69226
69227         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
69228         isn't mounted.  Problem reported by Kir Kolyshkin.
69229
69230 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69231
69232         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
69233         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
69234         Derek R. Price.
69235         * lib/regex.h (RE_DUP_MAX): Update comment to match current
69236         implementation.
69237
69238 2006-04-12  Eric Blake  <ebb9@byu.net>
69239
69240         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
69241         is now done automatically by the corresponding Autoconf macro.
69242
69243 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
69244
69245         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
69246         time_r.h.
69247
69248 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69249
69250         Merge regex changes from libc, removing some of our
69251         POSIX-conformance changes that were rejected and redoing them in a
69252         less-intrusive way.
69253
69254         * lib/regcomp.c (re_compile_internal, init_dfa):
69255         Length arg is now size_t, not Idx.  All uses changed.
69256         (peek_token): Forward decl now says internal_function.
69257         (__re_error_msgid, __re_error_msgid_idx):
69258         Now static rather than extern with attribute_hidden.
69259         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
69260         For some reason libc prefers K&R style defns for external functions.
69261         (regerror) [!defined _LIBC]: Likewise.
69262         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
69263         (seek_collating_symbol_entry, lookup_collation_sequence_value):
69264         (build_range_exp, build_collating_symbol):
69265         Use K&R-style defn.
69266         (re_compile_fastmap): Use '\0' to memset, not 0.
69267         (utf8_sb_map): Make the calculations more obvious.
69268         (init_dfa, parse_bracket_exp, build_charclass_op):
69269         Call calloc and cast result, as glibc does.
69270         (init_word_char, fetch_token, peek_token, peek_token_bracket):
69271         (build_range_exp, build_collating_symbol):
69272         Now internal functions.
69273
69274         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
69275
69276         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
69277         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
69278         Don't depend on VMS; depend on __VMS instead, for POSIX
69279         namespace cleanness.
69280         (regoff_t): Define to ssize_t, not long int.
69281
69282         Remove the REG_ macros named below.  Instead, make the old names
69283         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
69284         __USE_GNU_REGEX.
69285         (REG_BACKSLASH_ESCAPE_IN_LISTS):
69286         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
69287         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
69288         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
69289         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
69290         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
69291         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
69292         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
69293         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
69294         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
69295         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
69296         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
69297         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
69298         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
69299         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
69300         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
69301         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
69302         (REG_NREGS):
69303         Remove.  All uses replaced by the old RE_* names.
69304         (RE_BACKSLASH_ESCAPE_IN_LISTS):
69305         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
69306         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
69307         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
69308         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
69309         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
69310         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
69311         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
69312         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
69313         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
69314         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
69315         Don't bother having these macros be independent of each others'
69316         values, since they no longer exist in the POSIX name space.
69317
69318         Rename the following member names back to their old names,
69319         unless !__USE_GNU_REGEX.  All uses changed back.
69320         (buffer): Renamed from re_buffer.
69321         (allocated): Renamed from re_allocated.
69322         (used): Renamed from re_used.
69323         (syntax): Renamed from re_syntax.
69324         (fastmap): Renamed from re_fastmap.
69325         (translate): Renamed from re_translate.
69326         (can_be_null): Renamed from re_can_be_null.
69327         (regs_allocated): Renamed from re_regs_allocated.
69328         (fastmap_accurate): Renamed from re_fastmap_accurate.
69329         (no_sub): Renamed from re_no_sub.
69330         (not_bol): Renamed from re_not_bol.
69331         (not_eol): Renamed from re_not_eol.
69332         (newline_anchor): Renamed from re_newline_anchor.
69333         (num_regs): Renamed from rm_num_regs.
69334         (start): Renamed from rm_start.
69335         (end): Renamed from rm_end.
69336
69337         (free_state): Move up a bit.
69338
69339         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
69340         #define to be empty.
69341         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
69342         when that is what is intended.
69343         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
69344         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
69345         (MAX): New macro.
69346         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
69347         All uses changed back to re_malloc, etc.  It's now the caller's
69348         responsibility to check for overflow; all callers changed.
69349         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
69350         (re_x2nrealloc): Remove.
69351         (free_state): Remove decl.
69352
69353         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
69354         (re_set_registers, re_exec):
69355         Use K&R-style defn.
69356
69357         2006-01-31  Roland McGrath  <roland@redhat.com>
69358
69359         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
69360         Reported by Mike Frysinger <vapier@gentoo.org>.
69361
69362         2006-01-15  Andreas Jaeger  <aj@suse.de>
69363
69364         [BZ #1950]
69365         * lib/regex_internal.c (re_string_reconstruct): Adjust for
69366         build_wcs_upper_buffer change.
69367         (build_wcs_upper_buffer): Change return type.
69368
69369         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
69370
69371         * lib/regex_internal.h: Include <stdint.h> if available.
69372
69373         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
69374
69375         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
69376
69377         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69378
69379         * lib/regcomp.c: Adjust for changed secondary hash function.
69380
69381         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
69382
69383         * lib/regex.h: Pretty printing.
69384         Clean up namespace a bit.
69385
69386         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
69387
69388         * lib/regexec.c (update_cur_sifted_state, check_arrival,
69389         check_arrival_add_next_nodes): Avoid using uninitialized variable.
69390
69391         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
69392                     Ulrich Drepper  <drepper@redhat.com>
69393
69394         [BZ #1302]
69395         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
69396         changed.
69397         (bitset_word_t): Renamed from bitset_word.  All uses changed.
69398
69399         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
69400
69401         [BZ #281]
69402         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
69403         * lib/regcomp.c: Remove unnecessary uses of
69404         unsigned RE_TRANSLATE_TYPE.
69405         * lib/regex_internal.h: Likewise.
69406         * lib/regex_internal.c: Likewise.
69407         * lib/regexec.c: Likewise.
69408         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
69409
69410         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
69411
69412         * lib/regexec.c (find_recover_state): Remove unnecessary
69413         initialization.
69414         (transit_state_bkref): Make DFA a const pointer.
69415         (get_subexp): Likewise.
69416         (check_arrival): Likewise.
69417         (update_cur_sifted_state): Likewise.
69418         (re_search_internal): Likewise.
69419         (prune_impossible_nodes): Likewise.
69420         (acquire_init_state_context): Likewise.
69421         (proceed_next_node): Likewise.
69422         (set_regs): Likewise.
69423         (free_fail_stack_return): Likewise.
69424         (check_arrival_expand_ecl): Mark DFA parameter as const.
69425         (check_arrival_expand_ecl_sub): Likewise.
69426         (check_subexp_limits): Likewise.
69427         (sub_epsilon_src_nodes):  Likewise.
69428         (add_epsilon_src_nodes):  Likewise.
69429         (merge_state_array): Likewise.
69430         (update_regs): Likewise.
69431         (build_trtable): Likewise.
69432         (sift_states_backward): Mark MCTX parameter as const.
69433         (build_sifted_states): Likewise.
69434         (update_cur_sifted_state): Likewise.
69435         (sift_states_mkref): Likewise.
69436         (check_arrival_expand_ecl): Mark eclosure as const.
69437         (check_dst_limits_calc_pos_1): Likewise.
69438         * lib/regex_internal.h (re_match_context_t): Make dfa a const
69439         pointer.
69440
69441         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
69442
69443         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
69444         (transit_state_sb): Likewise.
69445         (transit_state_mb): Likewise.
69446         (sift_states_iter_mb): Likewise.
69447         (check_arrival_add_next_nodes): Likewise.
69448         (check_node_accept_bytes): Change first parameter to pointer-to-const.
69449         [_LIBC] (re_search_2_stub): Use mempcpy.
69450
69451         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
69452         mbrtowc for very simple UTF-8 case.
69453
69454         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
69455         a pointer-to-const.
69456         (re_acquire_state_context): Likewise.
69457         * lib/regex_internal.h: Adjust prototypes.
69458
69459         * lib/regex.c: Prevent using C++ compilers.
69460
69461         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
69462         (re_acquire_state_context): Likewise.
69463
69464 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * modules/regex (Depends-on): Add ssize_t.
69467
69468 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
69471         translation table.
69472
69473 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
69474
69475         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
69476
69477 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
69478             Bruno Haible  <bruno@clisp.org>
69479
69480         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
69481         <sys/types.h> and <inttypes.h>.
69482
69483 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69484
69485         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
69486         `__error_t_defined', so argp.h will not typedef the former.
69487
69488 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
69491         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
69492         glibc names.  Even if glibc is changed to conform to POSIX, the
69493         traditional names will be available anyway, since regex depends on
69494         the extensions module.  Also, fix a longstanding typo in the
69495         implementation of Spencer ERE test #75 from grep 2.3.  Problems
69496         reported by Emanuele Giaquinta.  Also, change sense of cached
69497         variable, so that the message makes sense.
69498
69499 2006-03-24  Simon Josefsson  <jas@extundo.com>
69500
69501         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
69502         including some doc fixes.
69503         (base64_encode_alloc): Fix +1 bug on allocation failures.
69504
69505 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69506
69507         * lib/base64.c (base64_encode): Do not read past end of array with
69508         unsanitized input on systems with CHAR_BIT > 8.
69509
69510 2006-03-24  Eric Blake  <ebb9@byu.net>
69511
69512         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
69513
69514 2006-03-22  Karl Berry  <karl@gnu.org>
69515
69516         * config/srclist.txt (*setenv.[ch]): get from coreutils.
69517         * config/srclistvars.sh (COREUTILS): new var.
69518
69519 2006-03-17  Jim Meyering  <jim@meyering.net>
69520
69521         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
69522         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
69523
69524 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69525
69526         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
69527         no longer needs it.  Instead, check that regoff_t is as least
69528         as wide as ptrdiff_t.
69529
69530         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
69531         so that our regex.h stays compatible with the installed regex.
69532         This is helpful for installers who configure --without-included-regex.
69533         Problem reported by Emanuele Giaquinta.
69534
69535 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
69538         Typedef to long int, not to off_, as POSIX will likely change
69539         in that direction.
69540
69541 2006-03-15  Eric Blake  <ebb9@byu.net>
69542
69543         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
69544
69545 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69546
69547         * lib/argp-help.c (validate_uparams): Fix typo
69548         * lib/argp-parse.c (argp_default_options): Consistently begin help
69549         messages with a lowercase letter.
69550
69551 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
69552
69553         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
69554         overrun buffers and shouldn't be used (much as gets shouldn't be
69555         used).
69556         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69557
69558 2006-03-08  Simon Josefsson  <jas@extundo.com>
69559
69560         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69561         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69562
69563 2006-03-08  Simon Josefsson  <jas@extundo.com>
69564
69565         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69566         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69567
69568 2006-03-08  Simon Josefsson  <jas@extundo.com>
69569
69570         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69571         signal that configure disabled the device.
69572
69573 2006-03-08  Simon Josefsson  <jas@extundo.com>
69574
69575         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69576         languages.
69577
69578 2006-03-07  Simon Josefsson  <jas@extundo.com>
69579
69580         * modules/getopt (Depends-on): Add unistd.
69581
69582         * modules/unistd: New file.
69583
69584 2006-03-07  Simon Josefsson  <jas@extundo.com>
69585
69586         * modules/gc-random: New file.
69587
69588 2006-03-07  Simon Josefsson  <jas@extundo.com>
69589
69590         * m4/unistd_h.m4: New file.
69591
69592 2006-03-07  Simon Josefsson  <jas@extundo.com>
69593
69594         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69595         test to be side-effect free by storing the result in the cache
69596         variable gl_cv_lib_readline, and moving the assignment of
69597         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69598         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69599
69600 2006-03-07  Simon Josefsson  <jas@extundo.com>
69601
69602         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69603         error on missing devices (the functions will return an error).
69604
69605         * m4/gc.m4: Move random stuff to gc-random.m4
69606
69607 2006-03-07  Simon Josefsson  <jas@extundo.com>
69608
69609         * lib/unistd_.h: New file.
69610
69611 2006-03-07  Simon Josefsson  <jas@extundo.com>
69612
69613         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69614
69615 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69618         Problem reported by Juan Manuel Guerrero.
69619
69620 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69621
69622         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69623         the unistd module.
69624         * lib/getlogin_r.c: Likewise.
69625         * lib/getlogin_r.h: Likewise.
69626         * lib/glob.c: Likewise.
69627         * lib/pagealign_alloc.c: Likewise.
69628         * lib/unistd_.h: Remove; no longer needed.
69629
69630 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69631
69632         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69633         Add unistd.
69634         * modules/c-stack (Depends-on): Add unistd.
69635         * modules/getlogin_r: Likewise.
69636         * modules/glob: Likewise.
69637         * modules/pagealign_alloc: Likewise.
69638         * modules/unistd (Files): Remove lib/unistd_.h.
69639         (EXTRA_DIST): Remove.
69640         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69641         need unistd_.h.
69642         (MOSTLYCLEANFILES): Remove unistd.h-t.
69643
69644 2006-03-03  Simon Josefsson  <jas@extundo.com>
69645
69646         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69647
69648 2006-03-03  Simon Josefsson  <jas@extundo.com>
69649
69650         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69651         libidn and bison.
69652
69653 2006-03-03  Simon Josefsson  <jas@extundo.com>
69654
69655         * build-aux/maint.mk: Add indent target.
69656
69657 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69658
69659         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69660         our replacement poll.h in any case, to avoid a differing
69661         declaration from a system header.  Seen on AIX.
69662
69663 2006-03-01  Simon Josefsson  <jas@extundo.com>
69664
69665         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69666         <kasal@ucw.cz>.
69667
69668 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69669
69670         * modules/gettime (Depends-on): Add extensions module.
69671         * modules/nanosleep (Depends-on): Likewise.
69672         * modules/settime (Depends-on): Likewise.
69673
69674 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69675
69676         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69677         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69678         pedantically.
69679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69680         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69681
69682         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69683         not "==".  Reported by Ralf Wildenhues.
69684
69685 2006-03-01  Karl Berry  <karl@gnu.org>
69686
69687         * doc/Copyright/request-*: new files, synced from gnuorg.
69688
69689 2006-03-01  Karl Berry  <karl@gnu.org>
69690
69691         * config/srclist.txt (Copyright/*): new entries.
69692
69693 2006-02-28  Simon Josefsson  <jas@extundo.com>
69694
69695         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69696
69697 2006-02-27  Simon Josefsson  <jas@extundo.com>
69698
69699         * lib/base64.h: Indent #define's.  From Jim Meyering
69700         <jim@meyering.net>.
69701
69702 2006-02-27  Jim Meyering  <jim@meyering.net>
69703
69704         Revert the change of 2006-02-24, so these files can continue
69705         to be sync'd from gettext.
69706         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69707         of `config.h'.
69708
69709 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * modules/intprops: New file.
69712         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69713         Add intprops.
69714         * modules/getloadavg (Files): Remove lib/intprops.h.
69715         (Depends-on): Add intprops.
69716         * modules/human: Likewise.
69717         * modules/inttostr: Likewise.
69718         * modules/openat: Likewise.
69719         * modules/sig2str: Likewise.
69720         * modules/userspec: Likewise.
69721         * modules/utimecmp: Likewise.
69722         * modules/xnanosleep: Likewise.
69723         * modules/xstrtol: Likewise.
69724
69725 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69726
69727         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69728         * modules/lock-tests (TESTS): Use $(EXEEXT).
69729         * modules/tls-tests: Likewise.
69730         * modules/argp-tests: Likewise.
69731         (check_PROGRAMS): New var, replacing...
69732         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69733
69734 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69735
69736         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69737         `config.h'.
69738
69739 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69742
69743 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69744
69745         Sync from coreutils.
69746         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69747         gl_CHDIR_SAFER.
69748
69749 2006-02-22  Jim Meyering  <jim@meyering.net>
69750
69751         Sync from coreutils.
69752         * m4/chdir-safer.m4: New file.
69753
69754 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69757         AT_FDCWD exceeds INT_MAX.
69758         * lib/openat.h (AT_FDCWD): Likewise.
69759
69760 2006-02-17  Eric Blake  <address@hidden>
69761
69762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69763
69764 2006-02-16  Simon Josefsson  <jas@extundo.com>
69765
69766         * modules/getaddrinfo (Depends-on): Add sys_socket.
69767
69768 2006-02-15  Simon Josefsson  <jas@extundo.com>
69769
69770         * build-aux/maint.mk: Add dsyntax-check rule.
69771
69772 2006-02-15  Eric Blake  <ebb9@byu.net>
69773
69774         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69775         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69776         'present but cannot compile' warnings on cygwin.
69777         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69778         use ws2tcpip.h if sys/socket.h works.
69779         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69780         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69781
69782 2006-02-14  Simon Josefsson  <jas@extundo.com>
69783
69784         * modules/maintainer-makefile (Files): Rename.
69785
69786         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69787         and (the local) Makefile.cfg to maint-cfg.mk.
69788
69789         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69790         to the latter.
69791
69792         * modules/maintainer-makefile: New module.
69793
69794         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69795         severaly stripped to make it possible to build it up from scratch
69796         with reliable tests.
69797
69798         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69799         fixes to permit overriding the default actions when configure and
69800         makefile are not available.
69801
69802 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         Sync from coreutils.
69805         * modules/lstat (Depends-on): Don't depend on xalloc.
69806         (License): Change from GPL to LGPL, since this is now simply a
69807         replacement for a libc function.
69808
69809 2006-02-14  Jim Meyering  <jim@meyering.net>
69810
69811         Sync from coreutils.
69812
69813         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69814         failure on deficient systems, and simplify gnulib lgpl dependencies.
69815         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69816         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69817
69818         * lib/xalloc-die.c: Remove unused definition of N_.
69819
69820 2006-02-14  Jim Meyering  <jim@meyering.net>
69821
69822         Sync from coreutils.
69823         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69824         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69825         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69826         double-quote uses of that variable, to accommodate the rare case in
69827         which getmntent is available in none of the libraries checked.  This
69828         happens at least on FreeBSD 5.0.
69829
69830 2006-02-13  Simon Josefsson  <jas@extundo.com>
69831
69832         * gnulib-tool (Usage): Fix --import, from
69833         karl@freefriends.org (Karl Berry).
69834
69835 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69836
69837         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69838
69839 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69840
69841         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69842         "autoupdate" on 2005-12-12.
69843
69844 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69845
69846         * modules/closeout (Depends-on): Remove atexit.
69847
69848 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69849
69850         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69851         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69852
69853 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69856         __EXTENSIONS__ if this causes compilation to fail.  Problem
69857         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69858         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69859
69860 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69863         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69865         All uses changed.
69866
69867 2006-01-26  Simon Josefsson  <jas@extundo.com>
69868
69869         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69870         prototype is visible on mingw32.
69871
69872         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69873         for mingw32.
69874
69875         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69876         mingw32).
69877
69878 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69879
69880         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69881         attempt to open for write; this always fails, at least on POSIX
69882         hosts.  This reinstates the 2006-01-09 change, which was
69883         inadvertently removed.
69884
69885 2006-01-26  Bruno Haible  <bruno@clisp.org>
69886
69887         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69888         Reported by Paul Eggert.
69889
69890 2006-01-26  Bruno Haible  <bruno@clisp.org>
69891             Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * lib/stdbool_.h (_Bool)
69894         [(! (defined __cplusplus || defined __BEOS__)
69895           && !defined __GNUC__
69896           && !(defined __HP_cc || defined __xlc__
69897                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69898                || defined __sgi))]:
69899         #define to signed char in these cases too; this simplifies
69900         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69901         etc., separately) and makes it more conservative.
69902
69903 2006-01-25  Simon Josefsson  <jas@extundo.com>
69904
69905         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69906         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69907         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69908
69909 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69910
69911         * lib/argp-namefrob.h: Bugfix. Remove stray #
69912
69913 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69914
69915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69916         so that we test the test.
69917         Check for yet another HP-UX cc bug involving *bool |= bool.
69918
69919 2006-01-25  Karl Berry  <karl@gnu.org>
69920
69921         * config/srclist.txt (vasnprintf.c): sync lost.
69922
69923 2006-01-25  Jim Meyering  <jim@meyering.net>
69924
69925         Sync from the stable (b5) branch of coreutils:
69926
69927         * lib/fts.c (fts_children): Don't let close() clobber errno from
69928         failed fchdir().
69929
69930         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69931         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69932         a dangling symlink.  That can also happen at least for ELOOP.
69933         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69934         FYI, this bug predates the inclusion of fts.c in coreutils.
69935
69936         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69937         in their own block, so pre-c99 compilers don't object.
69938
69939         Avoid the double-free (first in fts_read, second in fts_close) that
69940         would occur when an `active' directory is made inaccessible (e.g.,
69941         via chmod a-x) during a traversal.
69942         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69943         before returning.  Reproduce this failure by
69944         mkdir -p a/b; cd a; chmod a-x . b
69945         Reported by Stavros Passas.
69946
69947 2006-01-25  Jim Meyering  <jim@meyering.net>
69948
69949         * lib/fileblocks.c: Remove more useless parentheses.
69950         * lib/readutmp.h: Likewise.
69951
69952 2006-01-25  Bruno Haible  <bruno@clisp.org>
69953
69954         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69955         warnings.
69956         Reported by Paul Eggert.
69957
69958 2006-01-25  Bruno Haible  <bruno@clisp.org>
69959
69960         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69961         rid of a trap command. For Solaris sh.
69962         Reported by Mark D. Baushke <mdb@gnu.org>.
69963
69964 2006-01-24  Simon Josefsson  <jas@extundo.com>
69965
69966         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69967         Bruno.
69968
69969 2006-01-24  Karl Berry  <karl@gnu.org>
69970
69971         * config/srclist.txt (argp-namefrob.h): sync lost.
69972
69973 2006-01-24  Jim Meyering  <jim@meyering.net>
69974
69975         * modules/openat (Files): Add lib/intprops.h.
69976         From Mark D. Baushke.
69977
69978 2006-01-24  Jim Meyering  <jim@meyering.net>
69979
69980         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69981         Reported by Mark D. Baushke.
69982
69983 2006-01-24  Jim Meyering  <jim@meyering.net>
69984
69985         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69986
69987 2006-01-24  Bruno Haible  <bruno@clisp.org>
69988
69989         * modules/strnlen (Maintainer): Change from glibc to all.
69990
69991 2006-01-24  Bruno Haible  <bruno@clisp.org>
69992
69993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69994         Patch by Paul Eggert.
69995
69996 2006-01-24  Bruno Haible  <bruno@clisp.org>
69997
69998         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69999         already has it.
70000         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70001         2005-11-26.
70002
70003         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70004         'signed char' to avoid problems with the built-in _Bool type.
70005         Reported by Paul Eggert on 2005-11-26.
70006
70007 2006-01-24  Bruno Haible  <bruno@clisp.org>
70008
70009         * gnulib-tool (func_import): Avoid constructing complicated sed
70010         expressions inside backquote.
70011         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70012
70013 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70014
70015         These changes imported from libc.
70016         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70017         test and two separate function calls.
70018         * lib/strndup.c (__strndup): Add libc_hidden_def.
70019
70020 2006-01-23  Simon Josefsson  <jas@extundo.com>
70021
70022         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
70023         Remove the test_*_SOURCES variable: automake infers it by default.
70024         * modules/tls-tests: Likewise.
70025
70026 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         Work around porting bugs reported by Dieter in
70029         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
70030         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
70031         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
70032         Include "getopt.h" first, to check interface.
70033         (getenv): Declare only if defined HAVE_DECL_GETENV &&
70034         !HAVE_DECL_GETENV.
70035         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
70036         (__strndup): Revert to K&R-style function dfns, the glibc style.
70037         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
70038         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
70039         Include strnlen.h first, to get prototype properly.
70040         (strnlen): Renamed from __strnlen.
70041         Remove weak alias.
70042
70043 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
70046
70047 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70048
70049         * config/srclist.txt: Adjust to reflect glibc reorganization.
70050         This affects only comments.
70051
70052 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70053
70054          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70055          Reported by Bruce Korb <bkorb@gnu.org>.
70056
70057 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70058
70059         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70060         to pacify gcc -Wswitch-default.
70061
70062 2006-01-22  Bruno Haible  <bruno@clisp.org>
70063
70064         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70065         temporary buffer for sprintf, take into account the precision also
70066         for 'd', 'i', 'u', 'o', 'x', 'X'.
70067
70068 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70069
70070         * modules/argp-tests: New module
70071         * tests/test-argp.c: New file
70072         * tests/test-argp-2.sh: New file
70073
70074 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70075
70076         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70077         (__argp_base_name): Removed
70078         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70079         typo.
70080         (__argp_base_name): Provide macro definition or extern declaration
70081         depending on the configuration
70082
70083 2006-01-20  Simon Josefsson  <jas@extundo.com>
70084
70085         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70086
70087 2006-01-20  Simon Josefsson  <jas@extundo.com>
70088
70089         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70090
70091 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70094         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70095         Suggested by Bruno Haible.
70096
70097 2006-01-20  Karl Berry  <karl@gnu.org>
70098
70099         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70100         until changes propagate, I guess.
70101
70102 2006-01-19  Simon Josefsson  <jas@extundo.com>
70103
70104         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70105
70106 2006-01-19  Simon Josefsson  <jas@extundo.com>
70107
70108         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70109
70110 2006-01-19  Simon Josefsson  <jas@extundo.com>
70111
70112         * gnulib-tool: Set check_PROGRAMS.
70113
70114         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70115         modules/des-tests, modules/gc-arcfour-tests,
70116         modules/gc-arctwo-tests, modules/gc-des-tests,
70117         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70118         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70119         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70120         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70121         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70122         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
70123         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
70124         test_*_SOURCES.
70125
70126 2006-01-18  Simon Josefsson  <jas@extundo.com>
70127
70128         * modules/socklen (Depends-on): Depend on sys_socket.
70129
70130 2006-01-18  Simon Josefsson  <jas@extundo.com>
70131
70132         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70133         modules/des-tests, modules/gc-arcfour-tests,
70134         modules/gc-arctwo-tests, modules/gc-des-tests,
70135         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70136         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70137         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70138         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70139         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70140         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
70141         $(EXEEXT) to automake TESTS variable, for mingw32.
70142
70143 2006-01-17  Simon Josefsson  <jas@extundo.com>
70144
70145         * modules/socklen (Include): Need sys/socket.h.
70146
70147 2006-01-17  Bruno Haible  <bruno@clisp.org>
70148
70149         * modules/ssize_t (Include): Add <sys/types.h>.
70150
70151 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
70154         it's not portable and it doesn't work with cross-compiles.
70155         Problem reported by Bruno Haible.  Fix missing-$ typo in
70156         'test "gl_cv_ignore_unused_libraries" ...' that prevented
70157         -zignore from being used with Sun's C compiler.
70158
70159 2006-01-12  Simon Josefsson  <jas@extundo.com>
70160
70161         * lib/base64.c: Fix warning, reported by Bruno Haible
70162         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
70163
70164 2006-01-12  Bruno Haible  <bruno@clisp.org>
70165
70166         * modules/ldd: New file.
70167         * build-aux/ldd.sh.in: New file.
70168         * MODULES.html.sh (Support for building libraries and executables): Add
70169         ldd.
70170
70171 2006-01-12  Bruno Haible  <bruno@clisp.org>
70172
70173         * m4/ldd.m4: New file.
70174
70175 2006-01-12  Bruno Haible  <bruno@clisp.org>
70176
70177         * gnulib-tool (func_import, func_create_testdir): Don't go into an
70178         endless loop while replacing $auxdir with build-aux.
70179
70180 2006-01-11  Simon Josefsson  <jas@extundo.com>
70181
70182         * lib/stdint_.h (SIZE_MAX): Add missing (.
70183
70184 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
70185
70186         Sync from coreutils.
70187         * lib/md5.c: Fix commentary typos.
70188         (alignof, UNALIGNED_P): No need for a GCC-specific version.
70189         * lib/md5.h (__attribute__): Remove; unused.
70190         * lib/sha1.c: Fix commentary to match md5 better.
70191         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
70192         so that we don't need to worry about alignment.  All uses changed.
70193         This merges the 2005-10-28 md5 change into sha1.
70194
70195 2006-01-11  Jim Meyering  <jim@meyering.net>
70196
70197         Sync from coreutils.
70198         * lib/md5.c (OP): Fix spacing.
70199
70200 2006-01-11  Bruno Haible  <bruno@clisp.org>
70201
70202         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70203         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
70204         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
70205
70206 2006-01-11  Bruno Haible  <bruno@clisp.org>
70207
70208         Ensure automatic ordering between gl_LOCK and gl_ARGP.
70209         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
70210         the "early" section as well.
70211
70212 2006-01-11  Bruno Haible  <bruno@clisp.org>
70213
70214         Avoid "ar: no archive members specified" error on MacOS X.
70215         * gnulib-tool (func_modules_add_dummy): New function.
70216         (func_import, func_create_testdir): Invoke it.
70217
70218 2006-01-11  Bruno Haible  <bruno@clisp.org>
70219
70220         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
70221         with $auxdir in AC_CONFIG_FILES statements.
70222
70223 2006-01-11  Bruno Haible  <bruno@clisp.org>
70224
70225         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70226         Initialize also noinst_HEADERS to empty.
70227
70228 2006-01-11  Bruno Haible  <bruno@clisp.org>
70229
70230         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
70231         variables.
70232         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
70233         autoreconf.
70234
70235 2006-01-11  Bruno Haible  <bruno@clisp.org>
70236
70237         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
70238         overridable by the user.
70239         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70240
70241 2006-01-10  Simon Josefsson  <jas@extundo.com>
70242
70243         * modules/sys_socket: New file.
70244
70245 2006-01-10  Simon Josefsson  <jas@extundo.com>
70246
70247         * m4/sys_socket_h.m4: New file.
70248
70249 2006-01-10  Simon Josefsson  <jas@extundo.com>
70250
70251         * lib/socket_.h: New file.
70252
70253 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70254
70255         * modules/readutmp (Maintainer): Add myself.
70256
70257 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70258
70259         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
70260         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
70261         People who are still concerned with buggy memcmp implementations
70262         can invoke gl_FUNC_MEMCMP themselves.
70263
70264 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70265
70266         * lib/regex_internal.h (BITSET_WORD_BITS):
70267         Work around a bug in 64-bit PGC (before version 6.1-2), where the
70268         preprocessor mishandles large unsigned values as if they were signed.
70269         Problem reported by Claudio Fontana in
70270         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
70271
70272 2006-01-10  Jim Meyering  <jim@meyering.net>
70273
70274         Avoid the double-free (first in fts_read, second in fts_close) that
70275         would occur when an `active' directory is made inaccessible (e.g.,
70276         via chmod a-x) during a traversal.
70277         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70278         before returning.  Reproduce this failure by
70279         mkdir -p a/b; cd a; chmod a-x . b
70280         Reported by Stavros Passas.
70281
70282         Sync from coreutils.
70283         * lib/sha1.c: Tweak grammar in a comment.
70284
70285 2006-01-10  Jim Meyering  <jim@meyering.net>
70286
70287         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
70288         Patch by Joerg Sonnenberger.
70289
70290 2006-01-10  Bruno Haible  <bruno@clisp.org>
70291
70292         * modules/readutmp: Depend on module free.
70293         * modules/strtok_r: Depend on module restrict.
70294
70295 2006-01-10  Bruno Haible  <bruno@clisp.org>
70296
70297         * modules/gettext (configure.ac): Add an invocation of
70298         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
70299
70300 2006-01-10  Bruno Haible  <bruno@clisp.org>
70301
70302         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
70303         Reported by Werner Lemberg <wl@gnu.org>.
70304
70305 2006-01-10  Bruno Haible  <bruno@clisp.org>
70306
70307         * lib/localcharset.c: Update from GNU gettext.
70308
70309 2006-01-10  Bruno Haible  <bruno@clisp.org>
70310
70311         * lib/argp.h (__const): Remove macro. Use const instead.
70312         * lib/argp-fmtstream.h (__const): Likewise.
70313         * lib/glob_.h (__const): Remove macro.
70314         * lib/glob-libc.h: Use const instead of __const.
70315
70316 2006-01-10  Bruno Haible  <bruno@clisp.org>
70317
70318         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
70319         variable.
70320         Needed to avoid an automake error regarding the 'gettext' module.
70321
70322 2006-01-09  Simon Josefsson  <jas@extundo.com>
70323
70324         * modules/inet_ntop (Depends-on): Add restrict.
70325
70326 2006-01-09  Simon Josefsson  <jas@extundo.com>
70327
70328         * modules/gc-rijndael-tests (License): Put under LGPL.
70329
70330         * modules/gc-des-tests (License): Likewise.
70331
70332         * modules/gc-arcfour-tests (License): Likewise.
70333
70334         * modules/gc-arctwo-tests (License): Likewise.
70335
70336         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
70337
70338         * modules/gc-hmac-sha1-tests (Files): Likewise.
70339
70340         * modules/gc-hmac-md5-tests (License): Likewise.
70341
70342         * modules/gc-sha1-tests (License): Likewise.
70343
70344         * modules/gc-md5-tests (License): Likewise.
70345
70346         * modules/gc-md4-tests (License): Likewise.
70347
70348         * modules/gc-md2-tests (License): Likewise.
70349
70350         * modules/gc-tests (License): Likewise.
70351
70352         * modules/des-tests (License): Likewise.
70353
70354         * modules/md4-tests (License): Likewise.
70355
70356         * modules/md2-tests (License): Likewise.
70357
70358 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70359
70360         Sync from coreutils:
70361
70362         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
70363         * modules/lib-ignore: New file.
70364         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
70365         chdir-safer.m4, lchmod.m4.
70366         * modules/openat: Add mkdirat.c, openat-priv.h.
70367
70368 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70369
70370         Sync from coreutils.
70371         * m4/lib-ignore.m4: New file.
70372         * m4/lchmod.m4: New file.
70373
70374 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70375
70376         Sync from coreutils.
70377         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
70378         for write access: POSIX says that must fail.
70379         * lib/fts.c (diropen): Likewise.
70380         * lib/save-cwd.c (save_cwd): Likewise.
70381         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
70382         well, for minor improvements on hosts that lack O_DIRECTORY.
70383         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
70384         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
70385         Fall back on chown if open failed with EACCES.
70386
70387         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
70388         Report an error at compile-time if only a 1-second nominal clock
70389         resolution is found.
70390
70391         * lib/lchmod.h: New file.
70392         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
70393         (make_dir_parents): Use lchown rather than chown, and
70394         lchmod rather than chmod.
70395
70396         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
70397         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
70398         "proc" reported by n0dalus.
70399
70400         * lib/mountlist.c: Include <limits.h>.
70401         (dev_from_mount_options)
70402         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
70403         New function.  It no longer assumes "dev=" has the System V meaning
70404         on Linux (since it doesn't).  It also parses "dev=" more carefully.
70405         (read_file_system_list)
70406         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
70407         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
70408         dev= in that case.
70409
70410         * lib/posixtm.h (PDS_PRE_2000): New macro.
70411         * lib/posixtm.c (year): Arg is now syntax_bits rather than
70412         allow_century.  All usages changed.  Reject dates outside the range
70413         1969-1999 if PDS_PRE_2000 is used.
70414
70415 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
70416
70417         Sync from coreutils.
70418         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
70419         (Time of day items): Mention the possibility of leap seconds.
70420         Problem reported by Dr. David Alan Gilbert.
70421
70422 2006-01-09  Jim Meyering  <jim@meyering.net>
70423
70424         Sync from coreutils.
70425
70426         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
70427
70428         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
70429
70430         * lib/modechange.c (mode_compile): Reject an invalid mode string
70431         that starts with an octal digit.  From Andreas Gruenbacher.
70432
70433         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
70434         and dup to open_safer and dup_safer, respectively.
70435         (openat_permissive): Fix typo in comment.
70436
70437         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
70438         "gettext.h"; either no longer needed or are guaranteed by openat.h.
70439         (_): Remove; no longer needed.
70440         (openat): Renamed from rpl_openat; no need for rpl_openat
70441         since openat.h renames openat for us.
70442         Replace most of the body with a call to openat_permissive,
70443         to avoid duplicate code.
70444         Port to (probably hypothetical) environments were mode_t is
70445         wider than int.
70446         (openat_permissive): Require mode arg, so that we can check
70447         types better.  Put it just after flags.  Change cwd failure
70448         indicator from pointer-to-bool to pointer-to-errno-value.
70449         All callers changed.
70450         Invoke openat_save_fail and/or openat_restore_fail if
70451         cwd_errno is null, so that openat can call us.
70452         (openat_permissive, fdopendir, fstatat, unlinkat):
70453         Simplify errno handling to avoid some duplicate code,
70454         as it's OK to set errno on success.
70455         * lib/openat.h: Revamp code so that function macros depend on
70456         __OPENAT_PREFIX only, not also on AT_FDCWD.
70457         (openat_ro): Remove.  Caller changed to use openat_permissive.
70458         (openat_permissive): Now a macro, if not a function.
70459         (openat_restore_fail, openat_save_fail): Now always functions,
70460         since mkdirat needs them even if __OPENAT_PREFIX is defined.
70461
70462         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
70463         and openat.c.
70464         * lib/mkdirat.c: Include openat-priv.h.
70465         Remove definitions of macros defined therein.
70466         * lib/openat.c: Likewise.
70467
70468         * lib/mkdirat.c (mkdirat): New file and function.
70469         * lib/openat.h (mkdirat): Declare.
70470
70471         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
70472
70473         * lib/openat.h (openat_permissive): Declare.
70474         (openat_ro): Define.
70475
70476         * lib/openat.c (EXPECTED_ERRNO): New macro.
70477         (openat_permissive): New function -- used in remove.c rewrite.
70478         (all functions): Set errno just before returning, only if there
70479         was an actual failure.
70480         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
70481
70482         Emulate openat-family functions using Linux's procfs, if possible.
70483         Idea and some code based on Ulrich Drepper's glibc changes.
70484
70485         * lib/openat.c: (BUILD_PROC_NAME): New macro.
70486         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
70487         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
70488         before falling back on save_cwd and restore_cwd.
70489         (fdopendir, fstatat, unlinkat): Likewise.
70490
70491         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
70492         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
70493
70494         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
70495         as second argument to va_arg.  Otherwise, some versions of gcc
70496         warn that `if this code is reached, the program will abort'.
70497
70498 2006-01-09  Jim Meyering  <jim@meyering.net>
70499
70500         Sync from coreutils.
70501         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
70502         Require openat-priv.h.
70503
70504 2006-01-09  Bruno Haible  <bruno@clisp.org>
70505
70506         * modules/strnlen (Include): Use strnlen.h.
70507
70508 2006-01-09  Bruno Haible  <bruno@clisp.org>
70509
70510         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
70511
70512 2006-01-09  Bruno Haible  <bruno@clisp.org>
70513
70514         * lib/sysexit_.h (EX_OK): New macro.
70515         Suggested by Martin Lambers <marlam@marlam.de>.
70516
70517 2006-01-09  Bruno Haible  <bruno@clisp.org>
70518
70519         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
70520         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
70521
70522 2006-01-09  Bruno Haible  <bruno@clisp.org>
70523
70524         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
70525         numbers.
70526
70527 2006-01-09  Bruno Haible  <bruno@clisp.org>
70528
70529         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
70530         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
70531         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
70532         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
70533
70534 2006-01-09  Bruno Haible  <bruno@clisp.org>
70535
70536         * build-aux/javacomp.sh.in: New file, moved from lib/.
70537         * modules/javacomp-script (Files): Update.
70538         (configure.ac): Add AC_CONFIG_FILES invocation.
70539         (EXTRA_DIST): Remove variable.
70540
70541         * build-aux/javaexec.sh.in: New file, moved from lib/.
70542         * modules/javaexec (Files): Update.
70543         (configure.ac): Add AC_CONFIG_FILES invocation.
70544         (EXTRA_DIST): Remove javaexec.sh.in.
70545
70546         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
70547         * modules/csharpcomp-script (Files): Update.
70548         (configure.ac): Add AC_CONFIG_FILES invocation.
70549         (EXTRA_DIST): Remove variable.
70550
70551         * build-aux/csharpexec.sh.in: New file, moved from lib/.
70552         * modules/csharpexec (Files): Update.
70553         (configure.ac): Add AC_CONFIG_FILES invocation.
70554         (EXTRA_DIST): Remove csharpexec.sh.in.
70555
70556 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70557
70558         Sync from coreutils.
70559
70560         Add POSIX ACL support
70561         * lib/acl.h (copy_acl, set_acl): Add declarations.
70562         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70563         systems other than Linux.
70564         (chmod_or_fchmod): New function: use fchmod when possible,
70565         and chmod otherwise.
70566         (file_has_acl): Add a POSIX ACL implementation, with a
70567         Linux-specific subcase.
70568         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70569         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70570         acls are unsupported.
70571         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70572         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70573         are unsupported.
70574
70575 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70576
70577         Sync from coreutils.
70578         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70579
70580 2006-01-07  Bruno Haible  <bruno@clisp.org>
70581
70582         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70583         gl_EARLY.
70584
70585 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70586
70587         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70588         Problem reported for Mingw by Mark Junker.
70589
70590 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * README: Gnulib normally doesn't generate a tarball.
70593
70594 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70595
70596         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70597         long int, not int, for nanosecond counts, so that people who are
70598         used to POSIX struct timespec won't be surprised.  Reported by Jim
70599         Meyering.
70600
70601 2005-12-28  Bruno Haible  <bruno@clisp.org>
70602
70603         * build-aux/config.rpath: Update from GNU gettext.
70604
70605 2005-12-16  Jim Meyering  <jim@meyering.net>
70606
70607         * modules/fprintftime: New module.
70608         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70609
70610 2005-12-16  Jim Meyering  <jim@meyering.net>
70611
70612         * m4/fprintftime.m4: New file.
70613
70614 2005-12-16  Jim Meyering  <jim@meyering.net>
70615
70616         * lib/fprintftime.c, lib/fprintftime.h: New files.
70617
70618 2005-12-15  Simon Josefsson  <jas@extundo.com>
70619
70620         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70621         new m4/socklen.m4.
70622
70623 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70624
70625         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70626         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70627
70628 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70629
70630         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70631         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70632         struct uparams is valid. Fall back to the default values if it is
70633         not.
70634
70635 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70636
70637         * modules/argp (Files): Add argp-pin.c
70638         (Depends-on): dirname
70639         (lib_SOURCES): Add argp-pin.c
70640
70641 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70642
70643         * m4/argp.m4:  Check if program_invocation_name and
70644         program_invocation_short_name are declared and define appropriate
70645         macros if they are not.
70646
70647 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70648
70649         * lib/argp-help.c (__argp_base_name): New function
70650         (__argp_short_program_name): Rewrite using __argp_base_name
70651         * lib/argp-namefrob.h: Define program_invocation_name and
70652         program_invocation_short_name if requested
70653         (__argp_base_name): Add prototype
70654         * lib/argp-parse.c (argp_def): Use gettext wrappers
70655         (argp_default_parser): Use __argp_base_name
70656         * lib/argp-pin.c: New file. Defines program_invocation_name and
70657         program_invocation_short_name on systems that lack them.
70658
70659 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70662         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70663         porting problem reported by Georg Schwarz in
70664         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70665
70666 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70667
70668         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70669         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70670         porting problem reported by Georg Schwarz in
70671         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70672
70673 2005-12-05  Bruno Haible  <bruno@clisp.org>
70674
70675         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70676         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70677         Reported by Mark Junker <mjscod@gmx.de>.
70678
70679 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70682         Use implementation from Albert Chin, with some
70683         comments/corrections by Stepan Kasal and myself.
70684
70685 2005-12-02  Bruno Haible  <bruno@clisp.org>
70686
70687         * gnulib-tool (func_import): Accept GPLed build tool modules when
70688         --lgpl is given.
70689         * modules/csharpcomp-script: New file.
70690         * modules/csharpcomp: Depend on it.
70691         * modules/javacomp-script: New file.
70692         * modules/javacomp: Depend on it.
70693         Suggested by Simon Josefsson.
70694
70695 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70698         statement, to work around an HP-UX 10.20 compiler bug reported by
70699         Peter O'Gorman.
70700
70701 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70702
70703         * modules/savedir (Depends-on): Add openat.
70704
70705 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70706
70707         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70708         (uintmax_t) [defined uintmax_t]: Do not declare.
70709         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70710         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70711         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70712         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70713         sake of portability to weird hosts that C allows (though we don't
70714         know of any practical examples).
70715
70716         * lib/savedir.h (fdsavedir): New decl.
70717         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70718         contains most of the former guts of savedir.
70719         (savedir): Use savedirstream.
70720         Include "openat.h".
70721
70722 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         * modules/obstack (Files): Add m4/ulonglong.m4.
70725         Problem reported by Davide Angelocola.
70726
70727 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70728
70729         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70730         coreutils no longer futzes with rounding modes.
70731
70732 2005-11-14  Jim Meyering  <jim@meyering.net>
70733
70734         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70735         replacement of mkstemp.
70736
70737 2005-11-10  Simon Josefsson  <jas@extundo.com>
70738
70739         * lib/readline.c: Remove EOL.
70740
70741 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70742
70743         * modules/gethrxtime (Depends-on): Add gettime.
70744
70745 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70746
70747         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70748         or gettimeofday; no longer needed.
70749
70750 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70753         time business.
70754         (gethrxtime) [! (HAVE_NANOUPTIME
70755         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70756         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70757         our own approximation.
70758
70759 2005-11-08  Eric Blake  <ebb9@byu.net>
70760
70761         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70762
70763 2005-11-08  Eric Blake  <ebb9@byu.net>
70764
70765         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70766
70767 2005-11-04  Bruno Haible  <bruno@clisp.org>
70768
70769         * gnulib-tool: Implement --update mode.
70770
70771 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         Fix porting problem reported by Theodoros V. Kalamatianos.
70774         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70775         Don't assume that futimes failing means we must fail.
70776
70777 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70778
70779         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70780         variables to suggest the intended function of the PATH_MAX check.
70781
70782 2005-10-30  Kean Johnston  <jkj@sco.com>
70783
70784         Trivial changes to support SCO systems.
70785         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70786         as PATH_MAX.
70787         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70788         where __ptr is null when no I/O is pending.
70789
70790 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70793         leave errno alone.  Problem reported by Dmitry V. Levin.
70794
70795 2005-10-28  Simon Josefsson  <jas@extundo.com>
70796
70797         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70798         Test more.
70799
70800         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70801
70802         * modules/md2, modules/md2-tests: New files.
70803
70804 2005-10-28  Simon Josefsson  <jas@extundo.com>
70805
70806         * m4/inet_ntop.m4: More tests.
70807
70808         * m4/gc-md2.m4, md2.m4: New file.
70809
70810 2005-10-28  Simon Josefsson  <jas@extundo.com>
70811
70812         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70813         "restrict" keywords, as per POSIX.  Protect the function
70814         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70815         Don't use K&R prototypes.  Check the sprintf return values.
70816         Re-define EAFNOSUPPORT if not present.  Indent.
70817
70818         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70819         suggested by Bruno Haible <bruno@clisp.org>.
70820
70821         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70822
70823         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70824
70825         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70826         libgcrypt).
70827
70828         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70829
70830         * lib/md2.h, lib/md2.c: New files.
70831
70832 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70833
70834         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70835         errno alone.  Problem reported by Frederic Jolliton.
70836
70837 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * modules/verify (License): Change from GPL to LGPL.  This is a
70840         tiny module and there are apparently near-equivalents that are
70841         under the BSD license.
70842
70843 2005-10-24  Simon Josefsson  <jas@extundo.com>
70844
70845         * modules/sha1: Relicense to LGPL.
70846
70847 2005-10-24  Simon Josefsson  <jas@extundo.com>
70848
70849         * lib/md4.h: Shrink buffer size, now that we changed the type.
70850
70851 2005-10-23  Simon Josefsson  <jas@extundo.com>
70852
70853         * gnulib-tool (func_import): Fix --tests-base.
70854
70855 2005-10-22  Simon Josefsson  <jas@extundo.com>
70856
70857         * modules/arcfour (Depends-on): Need stdint.
70858
70859 2005-10-22  Simon Josefsson  <jas@extundo.com>
70860
70861         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70862         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70863
70864 2005-10-22  Simon Josefsson  <jas@extundo.com>
70865
70866         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70867         suggested by Bruno Haible <bruno@clisp.org>.
70868
70869 2005-10-22  Simon Josefsson  <jas@extundo.com>
70870
70871         * lib/crc.h: Include stddef.h, for size_t.
70872
70873 2005-10-22  Simon Josefsson  <jas@extundo.com>
70874
70875         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70876         arcfour_context struct (simplify test vector testing in GNU
70877         Shishi).
70878
70879 2005-10-21  Simon Josefsson  <jas@extundo.com>
70880
70881         * modules/des, modules/des-tests: New files.
70882
70883         * modules/gc-des, modules/gc-des-tests: New files.
70884
70885         * tests/test-des.c, tests/test-gc-des.c: New file.
70886
70887 2005-10-21  Simon Josefsson  <jas@extundo.com>
70888
70889         * modules/arctwo, modules/arctwo-tests: New files.
70890
70891         * tests/test-arctwo.c: New file.
70892
70893         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70894
70895         * tests/test-gc-arctwo.c: New file.
70896
70897 2005-10-21  Simon Josefsson  <jas@extundo.com>
70898
70899         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70900         Bruno Haible <bruno@clisp.org>.
70901
70902         * m4/gc-des.m4: New file.
70903
70904 2005-10-21  Simon Josefsson  <jas@extundo.com>
70905
70906         * m4/arctwo.m4: New file.
70907
70908         * m4/gc-arctwo.m4: New file.
70909
70910 2005-10-21  Simon Josefsson  <jas@extundo.com>
70911
70912         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70913         block.
70914
70915 2005-10-21  Simon Josefsson  <jas@extundo.com>
70916
70917         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70918         <bruno@clisp.org>.
70919
70920         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70921
70922         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70923         Bruno Haible <bruno@clisp.org>.
70924
70925         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70926         <bruno@clisp.org>.
70927
70928 2005-10-21  Simon Josefsson  <jas@extundo.com>
70929
70930         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70931
70932 2005-10-21  Simon Josefsson  <jas@extundo.com>
70933
70934         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70935
70936 2005-10-21  Simon Josefsson  <jas@extundo.com>
70937
70938         * lib/des.h, lib/des.c: New files.
70939
70940         * lib/gc-gnulib.c: Support DES.c
70941
70942 2005-10-21  Simon Josefsson  <jas@extundo.com>
70943
70944         * lib/arctwo.h, lib/arctwo.c: New files.
70945
70946         * lib/gc-gnulib.c: Support ARCTWO.
70947
70948 2005-10-21  Simon Josefsson  <jas@extundo.com>
70949
70950         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70951         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70952
70953 2005-10-21  Simon Josefsson  <jas@extundo.com>
70954
70955         * gnulib-tool (func_import, func_create_testdir): Define automake
70956         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70957         Makefile.am snippet),
70958         suggested by Bruno Haible <bruno@clisp.org>.
70959
70960         * modules/gc (Makefile.am): Use it.
70961
70962 2005-10-21  Bruno Haible  <bruno@clisp.org>
70963
70964         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70965         patch.
70966
70967 2005-10-19  Simon Josefsson  <jas@extundo.com>
70968
70969         * tests/test-gc-rijndael.c: New file.
70970
70971         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70972
70973 2005-10-19  Simon Josefsson  <jas@extundo.com>
70974
70975         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70976         interface too.
70977
70978 2005-10-19  Simon Josefsson  <jas@extundo.com>
70979
70980         * tests/test-gc-arcfour.c: New file.
70981
70982         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70983
70984 2005-10-19  Simon Josefsson  <jas@extundo.com>
70985
70986         * modules/gc-md4, modules/gc-md4-tests: New file.
70987
70988         * tests/test-gc-md4.c: New file.
70989
70990 2005-10-19  Simon Josefsson  <jas@extundo.com>
70991
70992         * m4/gc-md4.m4: New file.
70993
70994 2005-10-19  Simon Josefsson  <jas@extundo.com>
70995
70996         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70997         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70998         <kasal@ucw.cz>.
70999
71000 2005-10-19  Simon Josefsson  <jas@extundo.com>
71001
71002         * m4/gc-arcfour.m4: New file.
71003
71004         * m4/gc-rijndael.m4: New file.
71005
71006 2005-10-19  Simon Josefsson  <jas@extundo.com>
71007
71008         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71009
71010 2005-10-19  Simon Josefsson  <jas@extundo.com>
71011
71012         * lib/gc-gnulib.c: Support ARCFOUR.
71013
71014 2005-10-19  Simon Josefsson  <jas@extundo.com>
71015
71016         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71017         support.
71018
71019         * lib/gc.h: Add ECB enum type.
71020
71021         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
71022
71023 2005-10-18  Simon Josefsson  <jas@extundo.com>
71024
71025         * tests/test-md5.c: New file.
71026
71027         * modules/md5-tests: New file.
71028
71029 2005-10-18  Simon Josefsson  <jas@extundo.com>
71030
71031         * tests/test-md4.c: New file.
71032
71033         * modules/md4, modules/md4-tests: New files.
71034
71035 2005-10-18  Simon Josefsson  <jas@extundo.com>
71036
71037         * m4/md4.m4: New file.
71038
71039 2005-10-18  Simon Josefsson  <jas@extundo.com>
71040
71041         * lib/md4.h, lib/md4.c: New files, based on md5.?.
71042
71043 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
71044
71045         * gnulib-tool (func_create_testdir): Omit the second check whether
71046         BUILT_SOURCES in nonempty.
71047
71048 2005-10-17  Simon Josefsson  <jas@extundo.com>
71049
71050         * tests/test-rijndael.c: New file.
71051
71052 2005-10-17  Simon Josefsson  <jas@extundo.com>
71053
71054         * modules/sha1: Depend on stdint instead of md5.
71055
71056         * modules/md5: Depend on stdint, remove uint32_t.
71057
71058 2005-10-17  Simon Josefsson  <jas@extundo.com>
71059
71060         * modules/gc-sha1-tests: New file.
71061
71062         * tests/test-gc-sha1.c: New file.
71063
71064 2005-10-17  Simon Josefsson  <jas@extundo.com>
71065
71066         * m4/md5.m4: Remove call to uint32_t.m4.
71067
71068 2005-10-17  Simon Josefsson  <jas@extundo.com>
71069
71070         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71071
71072         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71073         md5.h.
71074
71075         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71076
71077         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71078
71079 2005-10-17  Simon Josefsson  <jas@extundo.com>
71080
71081         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71082
71083 2005-10-17  Simon Josefsson  <jas@extundo.com>
71084
71085         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71086
71087 2005-10-17  Simon Josefsson  <jas@extundo.com>
71088
71089         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71090
71091         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71092
71093 2005-10-17  Bruno Haible  <bruno@clisp.org>
71094
71095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71096         that it can also be used in a test.
71097
71098 2005-10-16  Bruno Haible  <bruno@clisp.org>
71099
71100         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71101         TESTS_ENVIRONMENT, so that individual tests can augment it.
71102
71103         * gnulib-tool (func_create_testdir): Use an intermediate target for
71104         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71105         macros, like $(ALLOCA_H), which cannot be passed through the command
71106         line.
71107
71108 2005-10-15  Simon Josefsson  <jas@extundo.com>
71109
71110         * modules/rijndael-tests: New file.
71111
71112         * modules/rijndael: New file.
71113
71114 2005-10-15  Simon Josefsson  <jas@extundo.com>
71115
71116         * m4/rijndael.m4: New file.
71117
71118 2005-10-15  Simon Josefsson  <jas@extundo.com>
71119
71120         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71121
71122         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
71123
71124 2005-10-14  Simon Josefsson  <jas@extundo.com>
71125
71126         * tests/test-arcfour.c: New file.
71127
71128         * modules/arcfour, modules/arcfour-tests: New files.
71129
71130 2005-10-14  Simon Josefsson  <jas@extundo.com>
71131
71132         * m4/arcfour.m4: New file.
71133
71134 2005-10-14  Simon Josefsson  <jas@extundo.com>
71135
71136         * lib/arcfour.h, lib/arcfour.c: New files.
71137
71138 2005-10-14  Roland McGrath  <roland@redhat.com>
71139
71140         Import from libc.  [BZ #1331]
71141         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
71142         macro argument.
71143         Reported by Matej Vela <vela@debian.org>.
71144
71145 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71146
71147         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
71148         include <wchar.h>; no longer needed.
71149
71150 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71151
71152         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
71153
71154 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
71155         and  Ulrich Drepper  <drepper@redhat.com>
71156
71157         Import from libc.
71158         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
71159         instead of inline stream orientation test and two separate
71160         function calls.  Pay no attention to USE_IN_LIBIO.
71161
71162 2005-10-13  Simon Josefsson  <jas@extundo.com>
71163
71164         * modules/gc-hmac-md5-tests: New file.
71165
71166         * tests/test-gc-hmac-sha1.c: New file.
71167
71168         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
71169
71170         * modules/gc-hmac-md5-tests: New file.
71171
71172         * tests/test-gc-md5.c: New file.
71173
71174         * modules/gc-md5-tests: New file.
71175
71176 2005-10-13  Simon Josefsson  <jas@extundo.com>
71177
71178         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
71179         Move memory allocation outside of loop.
71180
71181 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
71184         intermediate directory is in a read-only file system.  Problem
71185         reported by Eric Blake.
71186
71187 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
71188
71189         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
71190
71191 2005-10-12  Simon Josefsson  <jas@extundo.com>
71192
71193         * tests/test-hmac-sha1.c: New file.
71194
71195         * modules/hmac-sha1-tests: New file.
71196
71197         * modules/hmac-sha1: New file.
71198
71199 2005-10-12  Simon Josefsson  <jas@extundo.com>
71200
71201         * modules/gc-sha1: New file.
71202
71203 2005-10-12  Simon Josefsson  <jas@extundo.com>
71204
71205         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
71206
71207         * tests/test-gc-pbkdf2-sha1.c: New file.
71208
71209 2005-10-12  Simon Josefsson  <jas@extundo.com>
71210
71211         * modules/gc-md5, modules/gc-hmac-md5: New files.
71212
71213         * modules/gc (Files): Remove md5, memxor and hmac files.
71214
71215 2005-10-12  Simon Josefsson  <jas@extundo.com>
71216
71217         * m4/gc-pbkdf2-sha1.m4: New file.
71218
71219         * m4/gc-hmac-sha1.m4: New file.
71220
71221         * m4/gc-sha1: New file.
71222
71223         * m4/hmac-sha1.m4: New file.
71224
71225 2005-10-12  Simon Josefsson  <jas@extundo.com>
71226
71227         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
71228
71229         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
71230
71231 2005-10-12  Simon Josefsson  <jas@extundo.com>
71232
71233         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
71234         suggested by Bruno Haible <bruno@clisp.org>.
71235
71236 2005-10-12  Simon Josefsson  <jas@extundo.com>
71237
71238         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
71239
71240 2005-10-12  Simon Josefsson  <jas@extundo.com>
71241
71242         * lib/gc-pbkdf2-sha1.c: New file.
71243
71244         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
71245
71246 2005-10-12  Simon Josefsson  <jas@extundo.com>
71247
71248         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
71249
71250         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
71251
71252 2005-10-12  Simon Josefsson  <jas@extundo.com>
71253
71254         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
71255         GC_USE_HMAC_MD5, respectively.
71256
71257         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
71258         (gc_md5): Fix typo.
71259
71260         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
71261
71262         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
71263
71264         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
71265
71266 2005-10-12  Bruno Haible  <bruno@clisp.org>
71267
71268         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
71269         Reported by Stepan Kasal <kasal@ucw.cz>.
71270
71271 2005-10-11  Simon Josefsson  <jas@extundo.com>
71272
71273         * tests/test-crc.c: New file.
71274
71275         * modules/crc, modules/crc-tests: New files.
71276
71277 2005-10-11  Simon Josefsson  <jas@extundo.com>
71278
71279         * m4/crc.m4: New file.
71280
71281 2005-10-11  Simon Josefsson  <jas@extundo.com>
71282
71283         * lib/gc.h: Add gc_hash and gc_hash_buffer.
71284
71285         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
71286
71287         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
71288
71289 2005-10-11  Simon Josefsson  <jas@extundo.com>
71290
71291         * lib/crc.h, lib/crc.c: New files.
71292
71293         * lib/gc.h (gc_hash_buffer): Add doc.
71294
71295 2005-10-11  Bruno Haible  <bruno@clisp.org>
71296
71297         * modules/c-strcasestr: New file.
71298         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
71299
71300 2005-10-11  Bruno Haible  <bruno@clisp.org>
71301
71302         * modules/c-strcase: New file.
71303         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
71304
71305 2005-10-11  Bruno Haible  <bruno@clisp.org>
71306
71307         * lib/strcasecmp.c: Include limits.h.
71308         (strcasecmp): Avoid integer overflow on exotic platforms.
71309         * lib/strncasecmp.c: Include limits.h.
71310         (strncasecmp): Avoid integer overflow on exotic platforms.
71311         Reported by Paul Eggert.
71312
71313 2005-10-11  Bruno Haible  <bruno@clisp.org>
71314
71315         * lib/c-strcasestr.h: New file, from GNU gettext.
71316         * lib/c-strcasestr.c: New file, from GNU gettext.
71317
71318 2005-10-11  Bruno Haible  <bruno@clisp.org>
71319
71320         * lib/c-strcase.h: New file, from GNU gettext.
71321         * lib/c-strcasecmp.c: New file, from GNU gettext.
71322         * lib/c-strncasecmp.c: New file, from GNU gettext.
71323
71324 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71325
71326         * modules/mempcpy (License): GPL -> LGPL.
71327         * modules/strchrnul (License): Likewise.
71328         * modules/sysexits (License): Likewise.
71329
71330 2005-10-08  Simon Josefsson  <jas@extundo.com>
71331
71332         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
71333
71334 2005-10-07  Simon Josefsson  <jas@extundo.com>
71335
71336         * m4/memxor.m4: Remove gl_C_RESTRICT call.
71337
71338 2005-10-06  Simon Josefsson  <jas@extundo.com>
71339
71340         * tests/test-hmac-md5.c: New file.
71341
71342         * modules/hmac-md5-tests: New file.
71343
71344         * modules/hmac-md5: New file.
71345
71346 2005-10-06  Simon Josefsson  <jas@extundo.com>
71347
71348         * m4/hmac-md5.m4: New file.
71349
71350         * m4/memxor.m4: Require gl_C_RESTRICT.
71351
71352 2005-10-06  Simon Josefsson  <jas@extundo.com>
71353
71354         * lib/memxor.c (memxor): Avoid casts and warnings.
71355
71356 2005-10-06  Simon Josefsson  <jas@extundo.com>
71357
71358         * lib/hmac-md5.c: New file.
71359
71360         * lib/hmac.h: New file.
71361
71362 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
71365         promotes to int, not unsigned int, to catch the AIX 5.3
71366         compiler bug.
71367
71368 2005-10-05  Simon Josefsson  <jas@extundo.com>
71369
71370         * modules/memxor: New file.
71371
71372         * modules/iconv (Files): Move config.rpath to havelib, it is used
71373         there.
71374
71375         * modules/havelib (Files): Add config.rpath.
71376
71377 2005-10-05  Simon Josefsson  <jas@extundo.com>
71378
71379         * m4/memxor.m4: New file.
71380
71381 2005-10-05  Simon Josefsson  <jas@extundo.com>
71382
71383         * lib/memxor.c (memxor): Fix compiler error.
71384
71385         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
71386         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
71387
71388         * lib/memxor.h, lib/memxor.c: New files.
71389
71390         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
71391         we assume all systems have it, suggested by Jim Meyering
71392         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
71393         any systems lack sys/socket.h; mingw32 is known to lack it, but we
71394         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
71395         same reasons.
71396
71397 2005-10-05  Simon Josefsson  <jas@extundo.com>
71398
71399         * config/srclist.txt: Add glibc bug 1423 for md5.h.
71400
71401 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71402
71403         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
71404         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
71405         needed, since the source code now assumes these .h files.
71406
71407 2005-10-05  Derek Price  <derek@ximbiot.com>
71408
71409         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
71410
71411 2005-10-05  Bruno Haible  <bruno@clisp.org>
71412
71413         * modules/stdint (License): Change to LGPL.
71414
71415 2005-10-04  Simon Josefsson  <jas@extundo.com>
71416
71417         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
71418         D. Baushke" <mdb@gnu.org>.
71419
71420 2005-10-04  Bruno Haible  <bruno@clisp.org>
71421
71422         * lib/verify.h (verify_true): Provide alternative definition for C++.
71423
71424 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
71427         (SSIZE_MAX): New macro, if not already defined.
71428         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
71429         than 2 GiB.
71430
71431 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         Sync from coreutils.
71434         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
71435         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
71436         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
71437         ULLONG_MAX doesn't work with 2.7.2.1.
71438
71439 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
71442         From Ben Pfaff.
71443
71444         * modules/exclude (Depends-on): Depend on verify.
71445         * modules/strtoimax (Depends-on): Likewise.
71446         * modules/utimecmp (Depends-on): Likewise.
71447
71448 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
71449
71450         * lib/exclude.c: Include verify.h.
71451         (verify): Remove.  All callers changed to use verify.h's version.
71452         * lib/strtoimax.c: Likewise.
71453         * lib/utimecmp.c: Likewis.e
71454
71455         Sync from coreutils.
71456         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
71457         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
71458         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
71459         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
71460         bother returning ENOSYS if settimeofday or stime fails; just let
71461         them return whatever errno they want to return.
71462         * lib/utimens.c: Include unistd.h, for dup2.
71463         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
71464         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
71465
71466 2005-10-02  Jim Meyering  <jim@meyering.net>
71467
71468         Sync from coreutils.
71469         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
71470         from glibc-2.2.5 that fails for read-only files.
71471
71472 2005-10-02  Jim Meyering  <jim@meyering.net>
71473
71474         Sync from coreutils.
71475         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
71476         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
71477         `#if HAVE_CONFIG_H'.
71478         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
71479         Remove AT_FDCWD test.
71480         Do not consume the fd unless successful.
71481         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
71482         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
71483         block, so that we don't even try to compile it if settimeofday is
71484         available.  This works around a compilation failure on OSF1 V5.1,
71485         due to stime requiring a `long int*' while tv_sec is `int'.
71486
71487 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
71488
71489         Sync from coreutils.
71490         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
71491         against `yes', rather than just testing for nonempty.
71492
71493 2005-10-01  Simon Josefsson  <jas@extundo.com>
71494
71495         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
71496         and Darwin.
71497
71498         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
71499         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
71500         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
71501         freeaddrinfo and gai_strerror are declared by the POSIX headers.
71502         Check if struct addrinfo is declared.
71503
71504 2005-10-01  Simon Josefsson  <jas@extundo.com>
71505
71506         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
71507         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
71508         AI_* and EAI_* definitions.  Protect function declarations.
71509
71510 2005-10-01  Jim Meyering  <jim@meyering.net>
71511
71512         Sync from coreutils.
71513
71514         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
71515         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
71516         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
71517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71518         in the inet and nsl libraries.  Required on Solaris 5.7.
71519
71520 2005-10-01  Jim Meyering  <jim@meyering.net>
71521
71522         Sync from coreutils.
71523         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
71524         in the inet and nsl libraries.  Required on Solaris 5.7.
71525
71526 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
71527
71528         * lib/getdelim.c (getdelim): Remove unused variables.
71529
71530 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
71533         so that the code works even with ancient cpp.  Portability problem
71534         with GCC 2.7.2.1 reported by Thomas M.Ott.
71535
71536 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * modules/regex (Depends-on): Add strcase.
71539
71540         * modules/gethostname (Licence): Change from GPL to LGPL, since
71541         gethostname.c is a trivial implementation of a standard library
71542         function.
71543         * modules/poll (License): Change from GPL to LGPL, since it's
71544         derived from LGPL code.
71545
71546 2005-09-27  Jim Meyering  <jim@meyering.net>
71547
71548         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
71549         HAVE_CONFIG_H.
71550
71551         * lib/intprops.h (signed_type_or_expr__): Define.
71552         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
71553         for unsigned types.
71554
71555 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71556
71557         * lib/verify.h (verify_expr): Remove, replacing with:
71558         (verify_true): New macro that returns true instead of void.
71559         (verify_type__): Remove.
71560         (verify): Use verify_true rather than verify_type__.
71561
71562 2005-09-26  Bruno Haible  <bruno@clisp.org>
71563
71564         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71565         is necessary.
71566         (lib_SOURCES): Remove mbchar.c.
71567         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71568         (Files): Add m4/mbrtowc.m4.
71569         * modules/mbiter: Likewise.
71570         * modules/mbuiter: Likewise.
71571
71572 2005-09-26  Bruno Haible  <bruno@clisp.org>
71573
71574         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71575         compile mbchar.c if they are not both present.
71576         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71577         * m4/mbiter.m4 (gl_MBITER): Likewise.
71578         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71579         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71580         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71581
71582 2005-09-25  Jim Meyering  <jim@meyering.net>
71583
71584         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71585         also uses socklen_t.
71586
71587 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71588
71589         * lib/utimens.c (ENOSYS): Define if not already defined.
71590         (futimens): Support having a null PATH if the file descriptor
71591         is nonnegative.
71592
71593         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71594         Remove.
71595         (__attribute): Define to empty unless GCC 3.1 or later.
71596         This works around a core dump on OpenBSD 3.4, which has GCC
71597         2.95.3, which dumps core when given __attribute__(()).  It also
71598         simplifies other tests, since we really don't want to bother with
71599         worrying about which ancient version of GCC supported what.
71600         Original problem reported by Yoann Vandoorselaere, with part of
71601         the fix suggested by Derek Price.
71602
71603 2005-09-24  Jim Meyering  <jim@meyering.net>
71604
71605         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71606         so we can once again use a positive bitfield width of 1 -- now we
71607         don't have to explain why we were using a bitfield width of 2.
71608
71609 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71610
71611         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71612         and similarly for the other external symbols.  Problem reported
71613         by James Gallager.
71614
71615         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71616         bug reported by Jim Meyering.
71617
71618         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71620         not needed, since socklen is a prerequisite module.
71621
71622 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71625         Problem reported by Eric Blake.
71626         (getaddrinfo): Initialize se so that it's not garbage.
71627         Redo internal storage allocation so that it doesn't make unportable
71628         assumptions about alignment.
71629         Fix a memory leak.
71630
71631         * lib/utimens.c (futimens): Use futimesat if available.
71632         Prefer it to futimes since it doesn't have the futimes bug.
71633
71634         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71635         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71636         Instead, declare a function that returns a pointer to an array,
71637         and use verify_type__ to declare the size of the array.
71638         Problem and germ of a solution reported by Bruno Haible.
71639         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71640         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71641
71642 2005-09-23  Jim Meyering  <jim@meyering.net>
71643
71644         Sync from coreutils.
71645         Correct build failure (socklen_t not defined) on at least
71646         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71647         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71648
71649 2005-09-23  Jim Meyering  <jim@meyering.net>
71650
71651         * modules/getaddrinfo (Depends-on): Add socklen.
71652
71653 2005-09-23  Bruno Haible  <bruno@clisp.org>
71654
71655         * tests/test-verify.c: New file.
71656
71657 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         Sync from coreutils.
71660
71661         * modules/argmatch (Depends-on): Add verify.
71662         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71663         unistd-safer.
71664         * modules/save-cwd (Depends-on): Likewise.
71665
71666         * modules/openat (Files): Add lib/openat-die.c.
71667         (Depends-on): Remove error, exitfail.
71668         Add dirname.
71669
71670         * modules/verify: New file.
71671         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71672         with "verify" module.
71673
71674 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71675
71676         Sync from coreutils.
71677
71678         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71679         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71680         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71681         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71682         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71683         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71684         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71685         Don't bother checking for string.h, stdlib.h, unistd.h.
71686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71687         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71688         module's job.
71689         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71690         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71691
71692         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71693         (gl_GETDATE): Use it.
71694
71695         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71696
71697 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         Sync from coreutils.
71700
71701         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71702         stat-time.h.
71703         * lib/argmatch.h: Include verify.h
71704         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71705         (ARGMATCH_ASSERT): Remove; unused.
71706         * lib/canonicalize.c: Assume STDC_HEADERS.
71707         * lib/exclude.c: Include "strcase.h".
71708         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71709         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71710         and stdio-safer.h.
71711         (getusershell): Call fopen, not fopen_safer.
71712         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71713         Do not include unistd-safer.h.
71714         (save_cwd): Don't call fd_safer; no longer needed
71715         now that we include fcntl--.h.
71716
71717         * lib/getdate.y (relative_time): New type.
71718         (RELATIVE_TIME_0): New constant.
71719         (parser_control): Use relative_time instead of doing it ourselves.
71720         (%union): Add new relative_time rel member.
71721         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71722         Now typeless.
71723         (relunit, relunit_snumber): Now of type rel.
71724         (zone, rel, relunit, get_date): Adjust to above changes.
71725
71726         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71727         Do not include unistd-safer.h.
71728         (getloadavg): Don't call fd_safer; no longer needed
71729         now that we include fcntl--.h.
71730
71731         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71732         (make_dir_parents): Treat ENOSYS like EEXIST.
71733
71734         Improve quality of diagnostics on restore_cwd failure.
71735         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71736         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71737         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71738         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71739         each time through the loop.  Do not diagnose restore_cwd failure;
71740         that is the caller's job (and perhaps the caller does not care).
71741
71742         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71743         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71744         If the file already exists but is not a directory, don't bother
71745         to try to make its parents.
71746         Close potential file descriptor leak if we can't chdir("/") (!).
71747         Don't always return true if chdir($PWD) fails; return true only
71748         if the requested action was done successfully (except for the
71749         chdir($PWD)).
71750         Don't log final directory unless we actually made it.
71751         Refactor to avoid duplicate code to fix up permissions.
71752         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71753
71754         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71755         to make it a bit faster and (I hope) clearer.
71756         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71757         Fix bug in formats like %2N.
71758
71759         * lib/verify.h: New file.
71760
71761 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         Sync from coreutils.
71764         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71765
71766 2005-09-22  Jim Meyering  <jim@meyering.net>
71767
71768         Sync from coreutils.
71769
71770         * m4/lstat.m4 (gl_FUNC_LSTAT):
71771         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71772         Remove obsolete comment.
71773         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71774         * m4/xstrtod.m4: Likewise.
71775
71776         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71777
71778 2005-09-22  Jim Meyering  <jim@meyering.net>
71779
71780         Sync from coreutils.
71781
71782         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71783
71784         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71785         the .tm_year member, since otherwise gcc-4.0 would now warn about
71786         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71787
71788         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71789         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71790
71791         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71792         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71793         when run in a time zone for which daylight savings time is in effect
71794         for the starting date.
71795
71796         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71797         stop us from restricting permissions of just-created absolute-named
71798         directories.
71799         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71800         to restore initial working directory.
71801         * lib/mkdir-p.c (make_dir_parents): New parameter:
71802         different_working_dir, to tell caller if/when we change the working
71803         directory and are unable to return to the initial one.
71804         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71805         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71806         `return false'.  This fixes a bug introduced on 2004-07-30.
71807
71808         * lib/openat.c (fdopendir): Be sure to close the supplied
71809         file descriptor before returning.  This makes our replacement
71810         implementation a little closer to Solaris's, where fdopendir
71811         ties the file descriptor to the returned DIR* pointer.
71812         * lib/openat.c (unlinkat): New function.
71813         * lib/openat.h (unlinkat): Add prototype.
71814         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71815         (openat_restore_fail): Rename from openat_restore_die.
71816         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71817
71818         Provide an alternative to exiting immediately upon save_cwd or
71819         restore_cwd failure.  Now, an application can arrange e.g.,
71820         to perform a longjump in that case.
71821         * lib/openat.c: Include dirname.h.
71822         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71823         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71824         and openat_restore_die rather than calling error directly.
71825         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71826
71827         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71828         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71829         define.
71830
71831         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71832         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71833                             int utc, int nanoseconds);
71834         Background:
71835         date should not have to allocate a megabyte of virtual memory to
71836         handle a format argument like +%1048575T.  When implemented with
71837         strftime, it must allocate such a buffer, use strftime to fill it
71838         in, print it, then free it.
71839         With fprintftime, it simply prints everything and exits.
71840         With no need for memory allocation, that's one fewer way to fail.
71841         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71842         optional field width, not before, so we accept %9:z, not %:9z.
71843         (my_strftime): Be sure to use L_('x') for literals.
71844
71845         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71846         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71847         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71848         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71849         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71850         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71851         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71852         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71853         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71854         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71855         * lib/xgethostname.c, lib/xreadlink.c:
71856         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71857
71858         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71859         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71860         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71861         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71862         and don't include <sys/file.h>).
71863
71864 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71865
71866         Sync from coreutils.
71867
71868         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71869         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71870         [!LDAV_DONE]: Avoid unused variable warning.
71871
71872 2005-09-21  Bruno Haible  <bruno@clisp.org>
71873
71874         * lib/unicodeio.h (unicode_to_mb): New declaration.
71875
71876 2005-09-20  Derek Price  <derek@ximbiot.com>
71877
71878         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71879         getaddrinfo.h.
71880
71881 2005-09-20  Bruno Haible  <bruno@clisp.org>
71882
71883         * gnulib-tool: Remove trailing slashes from the values specified for
71884         --source-base, --m4-base, --tests-base, --aux-dir.
71885         Suggested by Simon Josefsson <jas@extundo.com>.
71886
71887 2005-09-20  Bruno Haible  <bruno@clisp.org>
71888
71889         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71890         func_modules_to_filelist, func_import, func_create_testdir): Make all
71891         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71892         change when gnulib-tool is invoked in a different locale.
71893
71894 2005-09-19  Simon Josefsson  <jas@extundo.com>
71895
71896         * m4/socklen.m4: Fix typo.
71897
71898 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71899
71900         Use a consistent style for including <config.h>.
71901         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71902         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71903         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71904         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71905         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71906         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71907         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71908         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71909         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71910         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71911         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71912         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71913         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71914         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71915         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71916         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71917         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71918         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71919         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71920         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71921         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71922         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71923         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71924         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71925         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71926         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71927         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71928         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71929         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71930         lib/xstrtoumax.c, lib/yesno.c:
71931         Standardize inclusion of config.h.
71932         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71933         lib/inttostr.h:  Removed inclusion of config.h from header files.
71934         * lib/inttostr.c:  Adjusted in-tree users.
71935         * lib/timespec.h: Remove superfluous warning to include config.h.
71936         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71937         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71938         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71939         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71940         config.h with HAVE_CONFIG_H.
71941
71942 2005-09-19  Jim Meyering  <jim@meyering.net>
71943
71944         * modules/pathmax (License): Change to LGPL.
71945
71946 2005-09-19  Derek Price  <derek@ximbiot.com>
71947
71948         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71949
71950 2005-09-19  Bruno Haible  <bruno@clisp.org>
71951
71952         * gnulib-tool (import): Provide default for --tests-base.
71953
71954 2005-09-19  Bruno Haible  <bruno@clisp.org>
71955
71956         * doc/quote.texi: New file, extracted from gnulib.texi.
71957         * doc/ctime.texi: New file, extracted from gnulib.texi.
71958         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71959         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71960         * doc/gnulib.texi: Include them.
71961
71962 2005-09-18  Bruno Haible  <bruno@clisp.org>
71963
71964         Portability fix.
71965         * gnulib-tool (func_readlink): New function.
71966         (func_ln_if_changed): Use it.
71967
71968 2005-09-18  Bruno Haible  <bruno@clisp.org>
71969
71970         * gnulib-tool: Support --with-tests also with --import.
71971         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71972         (func_import): Use variables $testsbase and $inctests. Emit a
71973         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71974         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71975         SUBDIRS += $testsdir.
71976         (func_create_testdir): Update.
71977
71978 2005-09-18  Bruno Haible  <bruno@clisp.org>
71979
71980         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71981         instead of $dry_run.
71982         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71983         (func_ln_if_changed): Don't handle dry-run here.
71984         (func_import): In dry-run mode, detect more precisely which actions
71985         would be performed, and don't use "...ing" verbs.
71986
71987 2005-09-18  Bruno Haible  <bruno@clisp.org>
71988
71989         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71990         (func_import): Use join on two temporary files instead of three nested
71991         loops, in order to determine which files are new or old.
71992
71993 2005-09-18  Bruno Haible  <bruno@clisp.org>
71994
71995         * gnulib-tool (func_import): Comment out code that spits out the
71996         new files with --dry-run.
71997
71998 2005-09-18  Bruno Haible  <bruno@clisp.org>
71999
72000         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72001
72002 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72003
72004         * lib/stat-time.h: New file.
72005         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72006         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72007         in a different way.
72008         (timespec_cmp): New function.
72009         * lib/utimecmp.c: Include stat-time.h.
72010         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72011         members exist, not on the obsolescent ST_MTIM_NSEC.
72012         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72013
72014 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72017
72018 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         * MODULES.html.sh (File system functions): Add stat-time.
72021         * modules/stat-time: New file.
72022         * modules/timespec (Files): Remove m4/st_mtim.m4; this
72023         is now done in a different way, by the stat-time module.
72024         * modules/utimecmp (Depends-on): Add stat-time.
72025
72026 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72027
72028         * m4/st_mtim.m4: Remove.  Superseded by...
72029         * m4/stat-time.m4: New file.
72030         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
72031         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
72032
72033 2005-09-15  Derek Price  <derek@ximbiot.com>
72034
72035         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
72036
72037 2005-09-15  Derek Price  <derek@ximbiot.com>
72038
72039         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
72040         * lib/regex_internal.c: Ditto, using this...
72041         (__GNUC_PREREQ): ...new macro.
72042         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
72043         using...
72044         (__GNUC_PREREQ): ...this new macro.
72045
72046         * lib/strstr.h: Include string.h. Define strstr as a macro here.
72047
72048 2005-09-15  Derek Price  <derek@ximbiot.com>
72049             Paul Eggert  <eggert@cs.ucla.edu>
72050
72051         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
72052         changes, consolidating in...
72053         * lib/regex_internal.h: ...this file.
72054
72055 2005-09-13  Jim Meyering  <jim@meyering.net>
72056
72057         * lib/canon-host.c: Filter through gnu indent and reword comments
72058         slightly.
72059         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72060
72061 2005-09-13  Derek Price  <derek@ximbiot.com>
72062
72063         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72064         failure.
72065         Reported by Jim Meyering  <jim@meyering.net>.
72066
72067 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72068
72069         * lib/base64.c: Typo.
72070         (base64_encode): Put b64str in initialized data section.
72071
72072 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72073
72074         Merge glibc and coreutils changes into gnulib, plus a few
72075         extra fixes.
72076         * lib/md5.c: Use #error rather than a string.
72077         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72078         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72079         (__attribute__): Define to empty for non recent-GCC.
72080         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72081         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72082         Renamed from their non-__ counterparts, with new macros replacing
72083         them if not _LIBC.  Add __THROW attribute.
72084         (rol): Remove.
72085         (struct md5_ctx): Align buffer if using GCC.
72086         * lib/sha1.h (struct sha1_ctx): Likewise.
72087         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72088         The old name was backwards.
72089         (NOTSWAP): Remove; not used.
72090         (rol): New macro, moved here from md5.h.
72091         (sha1_process_block): Remove a FIXME that doesn't make sense.
72092
72093 2005-09-12  Derek Price  <derek@ximbiot.com>
72094
72095         Return usable errors from canon-host.
72096         * lib/canon-host.h: New file.
72097         * lib/canon-host.c (canon_host): Wrap...
72098         (canon_host_r): ...this new function, which now relies exclusively on
72099         getaddrinfo.
72100         (ch_strerror): New function.
72101         (last_cherror): New global.
72102         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72103         interface.
72104         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72105         void *.
72106         (freeaddrinfo): Free ai->ai_canonname when set.
72107
72108 2005-09-12  Derek Price  <derek@ximbiot.com>
72109
72110         Make canon-host require getaddrinfo.
72111         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72112         AC_LIBSOURCE canon-host.h.  Call...
72113         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72114         gl_GETADDRINFO.
72115         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72116
72117 2005-09-12  Derek Price  <derek@ximbiot.com>
72118
72119         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72120         LGPL.
72121         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72122
72123 2005-09-12  Derek Price  <derek@ximbiot.com>
72124
72125         * lib/gai_strerror.c: Include config.h when available.  Include
72126         getaddrinfo.h before other headers to test interface.
72127         Reported by Larry Jones <lawrence.jones@ugs.com>.
72128
72129 2005-09-12  Derek Price  <derek@ximbiot.com>
72130             Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         * modules/glob (Files): Add glob-libc.h.
72133
72134 2005-09-12  Derek Price  <derek@ximbiot.com>
72135             Paul Eggert  <eggert@cs.ucla.edu>
72136
72137         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
72138         glob_.h, glob-libc.h.
72139         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
72140
72141 2005-09-12  Derek Price  <derek@ximbiot.com>
72142             Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
72145         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
72146         protecting things that should be done only in gnulib contexts.
72147         * lib/glob_.h: New file, containing only the glob things needed for
72148         gnulib.
72149         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
72150         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
72151         (glob, globfree, glob_pattern_p): Now defined simply in terms of
72152         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
72153         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
72154         and to respect the namespace rules better.
72155
72156 2005-09-08  Simon Josefsson  <jas@extundo.com>
72157
72158         * modules/socklen: New file.
72159
72160 2005-09-08  Simon Josefsson  <jas@extundo.com>
72161
72162         * m4/socklen.m4: New file.
72163
72164 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * modules/utimens (Files): Add m4/utimbuf.m4, since
72167         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
72168         Reported by Sergey Poznyakoff.
72169
72170 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72171
72172         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
72173         definitions, since that's the preferred style in glibc.
72174         Fix a minor spacing issue, and update copyright notice to match
72175         glibc's.
72176
72177 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72178
72179         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
72180
72181 2005-09-06  Simon Josefsson  <jas@extundo.com>
72182
72183         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
72184         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
72185
72186 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
72189         warning.
72190
72191 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         * config/srclist.txt: Add glibc bug 1302.
72194
72195 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
72196
72197         Change bitset word type from unsigned int to unsigned long int,
72198         as this has better performance on typical 64-bit hosts.
72199         Port bitset code to hosts with unusual word sizes.
72200         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
72201         (build_collating_symbol):
72202         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
72203         argument is a bitset.  This is merely a style issue, but it makes
72204         it clearer that an entire array is expected.
72205         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
72206         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
72207         Port to the case where bitset_word is not the same as unsigned int.
72208         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72209         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
72210         Likewise.
72211         * lib/regexec.c (check_dst_limits_calc_pos_1,
72212         check_subexp_matching_top):
72213         (build_trtable, group_nodes_into_DFAstates):
72214         Likewise.
72215         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
72216         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
72217         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
72218         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
72219         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
72220         * lib/regcomp.c (optimize_subexps, lower_subexp):
72221         Work even if bitset_word has holes in its bitwise representation.
72222         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
72223         * lib/regexec.c (check_dst_limits_calc_pos_1,
72224         check_subexp_matching_top):
72225         Likewise.
72226         * lib/regex_internal.c (re_string_reconstruct):
72227         Don't assume UCHAR_MAX == 255.
72228         * lib/regex_internal.h (bitset_set_all): Likewise.
72229         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
72230         All uses changed.
72231         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
72232         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
72233         All uses changed.
72234         (BITSET_WORD_MAX): New macro.
72235         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
72236         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
72237         (bitset_empty, bitset_copy):
72238         Prefer sizeof (bitset) to multiplying it out ourselves.
72239         (bitset_not_merge): Remove; unused.
72240         (bitset_contain): Return bool, not unsigned int with one bit on.
72241         All callers changed.
72242         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
72243         alignment than re_node_set; do this by defining a new internal
72244         type struct dests_alloc and using it to allocate memory.
72245
72246 2005-09-05  Bruno Haible  <bruno@clisp.org>
72247
72248         * gnulib-tool (func_import): Fix comparison in handling of symbolic
72249         links.
72250
72251 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
72252
72253         * modules/size_max (Makefile.am): Add size_max.h
72254
72255 2005-09-04  Derek Price  <derek@ximbiot.com>
72256
72257         * gnulib-tool (func_import): Fix reversed $symbolic logic.
72258
72259 2005-09-03  Simon Josefsson  <jas@extundo.com>
72260
72261         * gnulib-tool: Fix typo.
72262
72263 2005-09-03  Simon Josefsson  <jas@extundo.com>
72264
72265         * config/srclist.txt: Add glibc bug 1293.
72266
72267 2005-09-03  Derek Price  <derek@ximbiot.com>
72268
72269         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
72270         From Larry Jones <lawrence.jones@ugs.com>.
72271
72272 2005-09-02  Simon Josefsson  <jas@extundo.com>
72273
72274         * modules/socklen: New file.
72275
72276 2005-09-02  Simon Josefsson  <jas@extundo.com>
72277
72278         * modules/havelib: New module.
72279
72280         * modules/gettext, modules/iconv, modules/lock, modules/readline:
72281         Use havelib.
72282
72283 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72284
72285         Check for arithmetic overflow when calculating sizes, to prevent
72286         some buffer-overflow issues.  These patches are conservative, in the
72287         sense that when I couldn't determine whether an overflow was possible,
72288         I inserted a run-time check.
72289         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
72290         macros.
72291         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
72292         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
72293         (re_xnrealloc, re_x2nrealloc): New inline functions.
72294         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
72295         parse_bracket_exp):
72296         (build_equiv_class, build_charclass): Check for arithmetic overflow
72297         in size expression calculations.
72298         * lib/regex_internal.c (re_string_realloc_buffers):
72299         (build_wcs_upper_buffer, re_node_set_add_intersect):
72300         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
72301         (re_dfa_add_node, register_state): Likewise.
72302         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
72303         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
72304         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
72305         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
72306
72307 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72310         m4/ulonglong.m4.  Problem reported by Martin Lambers.
72311
72312 2005-09-02  Bruno Haible  <bruno@clisp.org>
72313
72314         Support for lib vs. lib64 distinction on biarch platforms.
72315         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
72316         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
72317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
72318
72319 2005-09-02  Bruno Haible  <bruno@clisp.org>
72320
72321         * gnulib-tool (import): In the other first-use case, provide defaults
72322         as well.
72323
72324 2005-09-02  Bruno Haible  <bruno@clisp.org>
72325
72326         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
72327         patches not yet found in the latest gettext release.
72328
72329 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72330
72331         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
72332         to avoid a collision with bits/local_lim.h in glibc.
72333         All uses changed.  Problem reported by Dmitry V. Levin in
72334         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
72335
72336         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
72337         bugs in int versus size_t comparisons.
72338         (re_string_context_at): Fix bug where the code assumed that
72339         Idx is signed.
72340
72341         Use bool where appropriate.
72342         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
72343         All callers changed.
72344         (calc_eclosure_iter): Likewise, for ROOT arg.
72345         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
72346         (build_charclass_op): Likewise, for NON_MATCH arg.
72347         * lib/regex_internal.c (re_string_allocate, re_string_construct):
72348         (re_string_construct_common): Likewise, for ICASE arg.
72349         * lib/regexec.c (re_search_2_stub, re_search_stub):
72350         Likewise, for RET_LEN arg.
72351         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
72352         (set_regs): Likewise, for FL_BACKTRACK arg.
72353         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
72354         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
72355         (calc_eclosure_iter, parse_bracket_exp):
72356         Use bool for internal variables that are booleans.
72357         * lib/regexec.c (re_search_internal, check_matching,
72358         proceed_next_node):
72359         (set_regs, build_sifted_states, sift_states_bkref):
72360         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
72361         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72362         (find_collation_sequence_value):
72363         Likewise.
72364         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
72365         (re_node_set_compare):
72366         Return bool, not int. All callers changed.
72367         * lib/regexec.c (check_halt_node_context, check_dst_limits):
72368         (build_trtable, check_node_accept): Likewise.
72369         * lib/regex_internal.h: Include stdbool.h.
72370
72371         Fix bugs uncovered when converting to bool.
72372         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
72373         failure instead of charging ahead blindly.
72374         * lib/regex_internal.c (register_state): Likewise.
72375         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
72376         for freeing internal storage.
72377         (group_nodes_into_DFA_states): Use unsigned int, not int, for
72378         bitset pieces used as boolean, to avoid undefined behavior
72379         on hosts that do int overflow checking.
72380
72381 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * config/srclist.txt: Add glibc bugs 1285-1287.
72384
72385 2005-09-01  Jim Meyering  <jim@meyering.net>
72386
72387         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
72388         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
72389         Require gl_STAT_MACROS, too.
72390
72391 2005-09-01  Bruno Haible  <bruno@clisp.org>
72392
72393         * gnulib-tool (import): In the first-use case, provide defaults.
72394
72395 2005-09-01  Bruno Haible  <bruno@clisp.org>
72396
72397         * gnulib-tool (func_import): Remove the .tmp files.
72398
72399 2005-09-01  Bruno Haible  <bruno@clisp.org>
72400
72401         * gnulib-tool (func_import): Fix handling of symbolic links.
72402
72403 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72404
72405         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
72406         old glibc regex code mishandles strings longer than 2**31 bytes.
72407         This patch fixes this when the regex code is used in gnulib
72408         (i.e., outside glibc).
72409
72410         This patch should not affect the use of the regex code inside
72411         glibc.  No doubt this problem also needs to be handled for glibc
72412         as well, but the result will be an incompatible change to the
72413         glibc ABI, and the old ABI will have to be supported too.  That
72414         can be the the subject for another patch.
72415
72416         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
72417         governing whether the rest of this patch is active.  By default,
72418         the macro is disabled and the patch has no effect.
72419         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
72420         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
72421         (struct re_pattern_buffer, re_search, re_search_2, re_match):
72422         (re_match_2, re_set_registers): Use the new types.
72423         * lib/regex_internal.h (Idx, re_hashval_t): New types.
72424         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
72425         New macros.
72426         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
72427         (re_string_context_at, bin_tree_t, re_dfastate_t):
72428         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
72429         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
72430         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
72431         (re_string_char_size_at, re_string_wchar_at):
72432         (re_string_elem_size_at):
72433         Use the new types and macros to port to 64-bit hosts.
72434         Use unsigned types for internal values, so that the code
72435         mostly works even for arrays larger than SSIZE_MAX.
72436         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
72437         (search_duplicated_node, calc_eclosure_iter, fetch_number):
72438         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
72439         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
72440         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
72441         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
72442         (calc_inveclosure, parse_dup_op, build_range_exp):
72443         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
72444         (fetch_number, create_token_tree, mark_opt_subexp):
72445         Likewise.
72446         * lib/regex_internal.c (re_string_construct_common,
72447         create_ci_newstate):
72448         (create_cd_newstate, re_string_allocate, re_string_construct):
72449         (re_string_realloc_buffers, build_wcs_upper_buffer):
72450         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72451         (re_string_reconstruct, re_string_peek_byte_case):
72452         (re_string_fetch_byte_case, re_string_context_at):
72453         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72454         (re_node_set_init_copy, re_node_set_add_intersect):
72455         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72456         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72457         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72458         (re_acquire_state, re_acquire_state_context, register_state):
72459         Likewise.
72460         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
72461         search_cur_bkref_entry):
72462         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
72463         (re_search_internal, re_search_2_stub, re_search_stub)
72464         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
72465         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
72466         (update_cur_sifted_state, check_dst_limits):
72467         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72468         (check_subexp_limits, sift_states_bkref, merge_state_array):
72469         (check_subexp_matching_top, get_subexp, get_subexp_sub):
72470         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
72471         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72472         (expand_bkref_cache, check_node_accept_bytes):
72473         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
72474         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
72475         (acquire_init_state_context, check_halt_node_context):
72476         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
72477         (sift_states_backward, clean_state_log_if_needed):
72478         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
72479         (find_recover_state, transit_state_sb, transit_state_mb):
72480         (transit_state_bkref, build_trtable, match_ctx_clean):
72481         Likewise.
72482         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
72483         to work around an assumption that REG_MISSING is negative.
72484
72485         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
72486         (seek_collating_symbol_entry) [defined _LIBC]:
72487         (lookup_collation_sequence_value) [defined _LIBC]:
72488         (build_range_exp, build_collating_symbol) [defined _LIBC]:
72489         Use prototypes rather than old-style function definitions.
72490         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
72491         (transit_state_sb) [0]:
72492         (find_collation_sequence_value) [defined _LIBC]: Likewise.
72493
72494         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
72495         rm_eo.
72496
72497         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
72498         (optimize_subexps, lower_subexp):
72499         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
72500         since the signed shift might overflow.  Use 1u<<31 instead.
72501         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
72502         Likewise.
72503         * lib/regexec.c (check_dst_limits_calc_pos_1,
72504         check_subexp_matching_top): Likewise.
72505
72506         * lib/regcomp.c (optimize_subexps, lower_subexp):
72507         Use CHAR_BIT rather than 8, for clarity.
72508         * lib/regexec.c (check_dst_limits_calc_pos_1):
72509         (check_subexp_matching_top): Likewise.
72510         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
72511         have to worry about portability issues when shifting it left.
72512         Remove no-longer-needed test for table_size > 0.
72513         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
72514         in a word, as the resulting behavior is undefined.
72515         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
72516         in one case, a <= should have been an <, and in another case the
72517         whole test was missing.
72518         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
72519         the standard name CHAR_BIT.
72520         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
72521         this is not true on one's complement and signed-magnitude hosts.
72522
72523         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
72524         next_last_offset.
72525         (struct re_dfa_t): Remove unused member states_alloc.
72526         * lib/regcomp.c (init_dfa): Don't initialize unused members.
72527
72528 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
72531         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
72532         and large-file glibc and in 32-bit large-file Solaris.
72533
72534 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
72537         lengths fit in regoff_t; this isn't true if regoff_t is the same
72538         width as size_t.
72539         * lib/regex.c (re_search_internal): 5th arg is LAST_START
72540         (= START + RANGE) instead of RANGE.  This avoids overflow
72541         problems when regoff_t is the same width as size_t.
72542         All callers changed.
72543         (re_search_2_stub): Check for overflow when adding the
72544         sizes of the two strings.
72545         (re_search_stub): Check for overflow when adding START
72546         to RANGE; if it occurs, substitute the extreme value.
72547
72548 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
72551
72552 2005-08-31  Jim Meyering  <jim@meyering.net>
72553
72554         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72555         a pointer-to-const.
72556         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72557         (register_state): Likewise.
72558         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72559         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72560         (group_nodes_into_DFAstates): Likewise.
72561
72562 2005-08-31  Jim Meyering  <jim@meyering.net>
72563
72564         * check-module: Add a FIXME comment.
72565
72566 2005-08-31  Eric Blake  <ebb9@byu.net>
72567
72568         * modules/unistd-safer (Files): Add unistd--.h.
72569         * modules/stdio-safer (Files): Add stdio--.h.
72570
72571 2005-08-31  Derek Price  <derek@ximbiot.com>
72572
72573         * lib/getdelim.c (getdelim): Return EOF on EOF.
72574         Reported by Larry Jones <lawrence.jones@ugs.com>.
72575
72576 2005-08-31  Bruno Haible  <bruno@clisp.org>
72577
72578         Avoid unnecessary diffs in the generated lib/Makefile.am.
72579         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72580         the generated files.
72581         (func_import): Don't set cmd.
72582
72583 2005-08-31  Bruno Haible  <bruno@clisp.org>
72584
72585         * lib/strstr.c: Include <stddef.h>, for NULL.
72586         * lib/strcasestr.c: Likewise.
72587         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72588
72589 2005-08-31  Bruno Haible  <bruno@clisp.org>
72590
72591         * gnulib-tool: New option --macro-prefix.
72592         (func_import): Use macro_prefix.
72593         (import): Handle option --macro-prefix.
72594
72595 2005-08-31  Bruno Haible  <bruno@clisp.org>
72596
72597         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72598         Also use new variables cached_lgpl, cached_libtool.
72599
72600 2005-08-31  Bruno Haible  <bruno@clisp.org>
72601
72602         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72603         always instantiating them.
72604
72605 2005-08-31  Bruno Haible  <bruno@clisp.org>
72606
72607         * gnulib-tool (func_import): Read the previous cached settings
72608         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72609         earlier added by gnulib but are now dropped. Warn when a gnulib file
72610         overwrites a non-gnulib file.
72611
72612 2005-08-31  Bruno Haible  <bruno@clisp.org>
72613
72614         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72615         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72616         projects that don't keep autogenerated files in CVS. Put into
72617         actioncmd only the specified modules, not the transitive closure.
72618
72619 2005-08-31  Bruno Haible  <bruno@clisp.org>
72620
72621         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72622         Create directories that shall be filled.
72623         (import): Don't look for gl_* macros in configure.ac. Recurse across
72624         all directories containing a gnulib-cache.m4 files, if meaningful.
72625
72626 2005-08-31  Bruno Haible  <bruno@clisp.org>
72627
72628         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72629         (import): Set seen_libtool when we see gl_LIBTOOL.
72630
72631 2005-08-31  Bruno Haible  <bruno@clisp.org>
72632
72633         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72634         declaration macro definitions from generated gnulib.m4.
72635
72636 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72637
72638         * lib/iconvme.h: Add prototype for iconv_alloc.
72639
72640 2005-08-29  Simon Josefsson  <jas@extundo.com>
72641
72642         * lib/iconvme.c: Fix errno.
72643
72644 2005-08-29  Bruno Haible  <bruno@clisp.org>
72645
72646         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72647         that it works when the directory contains spaces.
72648
72649 2005-08-29  Bruno Haible  <bruno@clisp.org>
72650
72651         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72652
72653 2005-08-29  Bruno Haible  <bruno@clisp.org>
72654
72655         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72656         Emit more advice.
72657
72658 2005-08-29  Bruno Haible  <bruno@clisp.org>
72659         and Stepan Kasal  <kasal@ucw.cz>
72660
72661         * check-module: If more parameters are given, check each of them
72662         separately; add more exceptions, as noted by Jim Meyering.
72663         (check_module): New procedure.
72664         (%exempt_header): Now contains all exceptions.
72665
72666 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72667
72668         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72669
72670 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72671
72672         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72673
72674 2005-08-28  Bruno Haible  <bruno@clisp.org>
72675
72676         * m4/gnulib-tool.m4: New file.
72677
72678 2005-08-27  Jim Meyering  <jim@meyering.net>
72679
72680         * modules/unistd-safer (Files): Add pipe-safer.c.
72681         * modules/fcntl-safer (Files): Add creat-safer.c.
72682
72683 2005-08-27  Jim Meyering  <jim@meyering.net>
72684
72685         * m4/stdlib-safer.m4: New file.  From coreutils.
72686         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72687         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72688         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72689         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72690         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72691
72692 2005-08-27  Jim Meyering  <jim@meyering.net>
72693
72694         * lib/fopen-safer.c: Merge minor changes from coreutils.
72695         * lib/dup-safer.c: Likewise.
72696         * lib/fd-safer.c: Likewise.
72697
72698         Merge from coreutils.
72699         * lib/stdio--.h: New file.
72700         * lib/stdlib--.h: New file.
72701         * lib/mkstemp-safer.c: New file.
72702
72703         GNU tar needs these.
72704         * lib/pipe-safer.c: New file.
72705         * lib/creat-safer.c: New file.
72706         * lib/fcntl--.h (creat): Define to creat_safer.
72707         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72708         * lib/unistd--.h (pipe): Define to pipe_safer.
72709         * lib/unistd-safer.h: Declare pipe_safer.
72710
72711 2005-08-26  Simon Josefsson  <jas@extundo.com>
72712
72713         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72714         Haible <bruno@clisp.org>.
72715
72716 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72717
72718         * lib/regex_internal.h: Remove all references to
72719         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72720         or better.
72721         (bitset_not, bitset_merge, bitset_not_merge):
72722         (bitset_mask, re_string_allocate, re_string_construct):
72723         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72724         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72725         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72726         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72727         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72728         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72729         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72730         (re_acquire_state_context):
72731         Remove unnecessary forward decls.
72732         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72733         Put __attribute at function definition,
72734         now that the function decl has been removed.
72735         * lib/regex_internal.c (re_string_peek_byte_case):
72736         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72737         Likewise.
72738
72739 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72740
72741         * m4/regex.m4: Add AC_PREREQ(2.50).
72742         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72743
72744 2005-08-25  Simon Josefsson  <jas@extundo.com>
72745
72746         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72747         __fsetlocking.
72748
72749 2005-08-25  Simon Josefsson  <jas@extundo.com>
72750
72751         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72752         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72753         GLIBC specific code.
72754
72755 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         Make regex safe for g++.  This fixes one real bug (an "err"
72758         that should have been "*err").  g++ problem reported by
72759         Sam Steingold.
72760         * lib/regex_internal.h (re_calloc): New macro, consistent with
72761         re_malloc etc.  All callers of calloc changed to use re_calloc.
72762         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72763         not int.  All callers changed.
72764         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72765         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72766         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72767         (find_recover_state): Change "err" to "*err"; this fixes what
72768         appears to be a real bug.
72769         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72770         versus int.
72771
72772 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72773
72774         * modules/regex (Depends-on): Add malloc, since the code
72775         assumes that !malloc(0) means failure.
72776
72777 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72780
72781         alloca modernization/simplification for regex.
72782         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72783         needs to be at the start of the file, and can be moved into
72784         regex_internal.h and simplified.
72785         * lib/regex_internal.h: Include <alloca.h>.
72786         (__libc_use_alloca) [!defined _LIBC]: New macro.
72787         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72788         now works outside glibc.
72789
72790 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72791
72792         * config/srclist.txt: Add glibc bugs 1241, 1245.
72793
72794 2005-08-25  Jim Meyering  <jim@meyering.net>
72795
72796         * lib/open-safer.c: Include <config.h>.
72797         Otherwise, we'd lose LARGEFILE support in any file using
72798         e.g. "fcntl--.h"
72799
72800 2005-08-25  Bruno Haible  <bruno@clisp.org>
72801
72802         * m4/minmax.m4: Require autoconf 2.52.
72803         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72804         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72805         alternatives of translit over the alphabet.
72806         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72807
72808 2005-08-24  Simon Josefsson  <jas@extundo.com>
72809
72810         * tests/test-getpass.c: New file.
72811
72812 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72815         for GNU regex features.
72816
72817 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72820         * lib/regex.h (regerror): Likewise.
72821
72822         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72823         requires this.  (The code never needed it.)
72824
72825         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72826         All uses of recently-renamed identifiers changed to use the new,
72827         POSIX-compliant names.  The code will build and run just fine
72828         without these changes, but it's better to eat our own dog food
72829         and use the standard-conforming names.
72830
72831         * lib/regex.h: Fix a multitude of POSIX name space violations.
72832         These changes have an effect only for programs that define
72833         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72834         do not change anything for programs compiled in the normal way.
72835         Also, there is no effect on the ABI.
72836
72837         (_REGEX_SOURCE): New macro.
72838         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72839         defined and _GNU_SOURCE is not; this fixes a name space violation.
72840
72841         Rename the following macros to obey POSIX requirements.
72842         The old names are still visible as macros if _REGEX_SOURCE is defined.
72843         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72844         RE_BACKSLASH_ESCAPE_IN_LISTS.
72845         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72846         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72847         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72848         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72849         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72850         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72851         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72852         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72853         (REG_INTERVALS): renamed from RE_INTERVALS.
72854         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72855         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72856         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72857         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72858         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72859         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72860         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72861         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72862         RE_UNMATCHED_RIGHT_PAREN_ORD.
72863         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72864         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72865         (REG_DEBUG): renamed from RE_DEBUG.
72866         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72867         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72868         unusual, since we can't clash with the POSIX REG_ICASE.
72869         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72870         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72871         (REG_NO_SUB): renamed from RE_NO_SUB.
72872         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72873         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72874         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72875         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72876         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72877         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72878         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72879         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72880         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72881         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72882         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72883         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72884         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72885         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72886         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72887         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72888         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72889         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72890         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72891         (REG_FIXED): Renamed from REGS_FIXED.
72892         (REG_NREGS): Renamed from RE_NREGS.
72893
72894         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72895         of other REG_* macros, since POSIX says the user is allowed to
72896         #undef these macros selectively.
72897
72898         (reg_errcode_t): Update comment stating what other tables need
72899         to be consistent.
72900
72901         Rename the following enum values to obey POSIX requirements.
72902         The old names are still visible as macros.
72903         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72904         is not defined, since GNU is supposed to be a superset of POSIX as
72905         much as possible, and since we want reg_errcode_t to be a signed
72906         type for implementation consistency.
72907         (_REG_NOERROR): Renamed from REG_NOERROR.
72908         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72909         (_REG_BADPAT): Renamed from REG_BADPAT.
72910         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72911         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72912         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72913         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72914         (_REG_EBRACK): Renamed from REG_EBRACK.
72915         (_REG_EPAREN): Renamed from REG_EPAREN.
72916         (_REG_EBRACE): Renamed from REG_EBRACE.
72917         (_REG_BADBR): Renamed from REG_BADBR.
72918         (_REG_ERANGE): Renamed from REG_ERANGE.
72919         (_REG_ESPACE): Renamed from REG_ESPACE.
72920         (_REG_BADRPT): Renamed from REG_BADRPT.
72921         (_REG_EEND): Renamed from REG_EEND.
72922         (_REG_ESIZE): Renamed from REG_ESIZE.
72923         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72924         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72925         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72926         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72927         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72928
72929         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72930         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72931         changed.  But support the old name if the new one is not defined
72932         and if _REGEX_SOURCE.
72933
72934         Change the following member names in struct re_pattern_buffer.
72935         The old names are still supported if !_REGEX_SOURCE.
72936         The new names are always supported, regardless of _REGEX_SOURCE.
72937         (re_buffer): Renamed from buffer.
72938         (re_allocated): Renamed from allocated.
72939         (re_used): Renamed from used.
72940         (re_syntax): Renamed from syntax.
72941         (re_fastmap): Renamed from fastmap.
72942         (re_translate): Renamed from translate.
72943         (re_can_be_null): Renamed from can_be_null.
72944         (re_regs_allocated): Renamed from regs_allocated.
72945         (re_fastmap_accurate): Renamed from fastmap_accurate.
72946         (re_no_sub): Renamed from no_sub.
72947         (re_not_bol): Renamed from not_bol.
72948         (re_not_eol): Renamed from not_eol.
72949         (re_newline_anchor): Renamed from newline_anchor.
72950
72951         Change the following member names in struct re_registers.
72952         The old names are still supported if !_REGEX_SOURCE.
72953         The new names are always supported, regardless of _REGEX_SOURCE.
72954         (rm_num_regs): Renamed from num_regs.
72955         (rm_start): Renamed from start.
72956         (rm_end): Renamed from end.
72957
72958         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72959         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72960         Prepend __ to parameter names.
72961
72962         Undo yesterday's changes.
72963
72964 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72965
72966         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72967         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72968         lib/regex.c.
72969
72970 2005-08-24  Jim Meyering  <jim@meyering.net>
72971
72972         Sync from coreutils.
72973         * m4/fcntl-safer.m4: New file.
72974
72975         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72976         and object files for this module.
72977
72978 2005-08-24  Jim Meyering  <jim@meyering.net>
72979
72980         Sync from coreutils.
72981         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72982
72983 2005-08-24  Jim Meyering  <jim@meyering.net>
72984
72985         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72986         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72987
72988 2005-08-24  Jim Meyering  <jim@meyering.net>
72989
72990         * modules/fcntl-safer: New module.
72991         * modules/fts (Depends-on): Add fcntl-safer.
72992         * MODULES.html.sh (File descriptor based Input/Output):
72993         Add fcntl-safer.
72994
72995 2005-08-24  Bruno Haible  <bruno@clisp.org>
72996
72997         Support for unit test modules.
72998         * modules/README: Mention tests modules.
72999         * modules/TEMPLATE-TESTS: New file.
73000         * gnulib-tool: New options --extract-tests-module, --with-tests and
73001         --tests-base (unused for the moment).
73002         (testsbase, inctests): New variables.
73003         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73004         (func_verify_module): Exclude TEMPLATE-TESTS.
73005         (func_verify_nontests_module, func_verify_tests_module): New functions.
73006         (func_get_dependencies): Add implicit dependency for tests modules.
73007         (func_get_tests_module): New function.
73008         (func_modules_transitive_closure): When --with-tests was specified,
73009         include the unit tests as well, unless explicitly avoided.
73010         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73011         (func_emit_tests_Makefile_am): New function.
73012         (func_create_testdir): When --with-tests was specified, emit a
73013         tests/ directory.
73014         * MODULES.html.sh (Future developments): Update.
73015
73016 2005-08-24  Bruno Haible  <bruno@clisp.org>
73017
73018         * modules/tls-tests: New file.
73019         * tests/test-tls.c: New file, from GNU gettext.
73020
73021 2005-08-24  Bruno Haible  <bruno@clisp.org>
73022
73023         * modules/lock-tests: New file.
73024         * tests/test-lock.c: New file, from GNU gettext.
73025
73026 2005-08-24  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/lock.h: Add multiple inclusion guard.
73029         * lib/tls.h: Add multiple inclusion guard.
73030
73031 2005-08-24  Bruno Haible  <bruno@clisp.org>
73032
73033         * gnulib-tool: Add support for the --aux-dir option to
73034         --create-testdir, --create-megatestdir, --test, --megatest.
73035         (func_create_testdir, func_create_megatestdir): Optionally emit a
73036         AC_CONFIG_AUX_DIR directive.
73037         (create-testdir, create-megatestdir, test, megatest): Provide a
73038         default value for $auxdir.
73039
73040 2005-08-24  Bruno Haible  <bruno@clisp.org>
73041
73042         * gnulib-tool (import): Use compound statement instead of subshell
73043         where possible.
73044
73045 2005-08-24  Bruno Haible  <bruno@clisp.org>
73046
73047         * gnulib-tool (import): Change --aux-dir default to "build-aux".
73048
73049 2005-08-24  Bruno Haible  <bruno@clisp.org>
73050
73051         * gnulib-tool (func_version): Update.
73052
73053 2005-08-24  Bruno Haible  <bruno@clisp.org>
73054
73055         * gnulib-tool (func_import, func_create_testdir,
73056         func_create_megatestdir): Quote all autoconf macro arguments.
73057
73058 2005-08-24  Bruno Haible  <bruno@clisp.org>
73059
73060         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73061         option --force, because --force causes the aclocal.m4 of each
73062         subdirectory to be newer than the corresponding config.h.in.
73063
73064 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73065
73066         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73067         All contents moved to gl_REGEX.
73068         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73069         assume that it does.
73070
73071 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * lib/regex.h (REG_NOSYS)
73074         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73075         Define, since POSIX requires it as of 2001.
73076         (_REG_ENOSYS)
73077         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73078         New private symbol, used to keep the enum signed in all cases.
73079         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73080         Youngman in
73081         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73082
73083         * lib/regex_internal.c (re_string_skip_chars, register_state):
73084         (calc_state_hash):
73085         Remove forward decls; no longer needed now that we use prototypes.
73086         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73087         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73088         (clean_state_log_if_needed): Likewise.
73089
73090 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * config/srclist.txt: Add glibc bugs 1231-1233.
73093
73094 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73095
73096         Fix problems reported by Sam Steingold in
73097         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73098         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73099         assumed that reg_errcode_t is a signed type, which is not
73100         necessarily true if _XOPEN_SOURCE is not defined.
73101         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73102         since some compilers warn about it otherwise.
73103
73104 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73105
73106         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73107         (init_word_char, create_initial_state, duplicate_node_closure):
73108         (fetch_token, peek_token_bracket, build_range_exp):
73109         (build_collating_symbol): Remove forward decls; no longer needed
73110         now that we use prototypes.
73111
73112         * lib/regcomp.c:
73113         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73114         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73115         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73116         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73117         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73118         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73119         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73120         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73121         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73122         (build_range_exp, build_collating_symbol, parse_bracket_exp):
73123         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
73124         (build_charclass, build_charclass_op, fetch_number, create_tree):
73125         (create_token_tree, mark_opt_subexp, duplicate_tree):
73126         Use prototypes rather than old-style definitions.
73127
73128         * lib/regex_internal.c:
73129         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
73130         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
73131         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73132         (re_string_reconstruct, re_string_peek_byte_case):
73133         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
73134         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73135         (re_node_set_init_copy, re_node_set_add_intersect):
73136         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73137         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73138         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73139         (re_acquire_state, re_acquire_state_context, register_state):
73140         (create_ci_newstate, create_cd_newstate, free_state):
73141         Likewise.
73142         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
73143         re_search_2):
73144         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
73145         (re_search_internal, prune_impossible_nodes):
73146         (acquire_init_state_context, check_matching, static):
73147         (check_halt_node_context, check_halt_state_context, proceed_next_node):
73148         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
73149         (update_regs, sift_states_backward, build_sifted_states):
73150         (clean_state_log_if_needed, merge_state_array):
73151         (update_cur_sifted_state, add_epsilon_src_nodes):
73152         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
73153         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
73154         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
73155         (find_recover_state, check_subexp_matching_top, transit_state_mb):
73156         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
73157         (check_arrival, check_arrival_add_next_nodes):
73158         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73159         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73160         (check_node_accept_bytes, check_node_accept, extend_buffers):
73161         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
73162         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
73163         (sift_ctx_init):
73164         Likewise.
73165
73166         * lib/regex_internal.h:
73167         (re_string_allocate, re_string_construct, re_string_reconstruct):
73168         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
73169         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
73170         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
73171         (re_string_context_at, re_string_peek_byte_case):
73172         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
73173         is defined, since we now use prototypes always.
73174
73175         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
73176         C89 or better.  All uses removed.
73177
73178 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * config/srclist.txt: Add glibc bugs 1220-1227.
73181
73182 2005-08-20  Jim Meyering  <jim@meyering.net>
73183
73184         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
73185         of unused local, dfa.
73186
73187 2005-08-20  Bruno Haible  <bruno@clisp.org>
73188
73189         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
73190
73191 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
73194         (re_node_set_insert_last, re_dfa_add_node):
73195         Rename local variables to avoid GCC shadowing warnings.
73196
73197 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
73200         [defined lint]: Suppress bogus uninitialized-variable warnings.
73201
73202         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
73203         and let the caller return REG_ESPACE if out of space.  This
73204         removes an uninitialied-variable warning with GCC 4.0.1, and also
73205         avoids taking the address of a local variable.  All callers
73206         changed.
73207
73208 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
73211         $LIBCSRC/posix/regexec.c.
73212         Add glibc bug 1217 for regcomp.c.
73213
73214 2005-08-19  Jim Meyering  <jim@meyering.net>
73215
73216         * lib/regexec.c (proceed_next_node): Redo local variables to
73217         avoid GCC shadowing warnings.
73218
73219 2005-08-18  Bruno Haible  <bruno@clisp.org>
73220
73221         * lib/strstr.c (strstr): Fix return value in multibyte case.
73222         * lib/strcasestr.c (strcasestr): Likewise.
73223
73224 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
73227
73228 2005-08-17  Jim Meyering  <jim@meyering.net>
73229
73230         Make the %s format (seconds since the epoch) work for a negative
73231         number and when used with a zero-padded field width, e.g. %015s.
73232
73233         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
73234         label so that it precedes the code to set `digits'.  Otherwise,
73235         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
73236         print `00-22'.  Now, it prints `-0022', as it should.
73237
73238 2005-08-17  Bruno Haible  <bruno@clisp.org>
73239
73240         * modules/strstr (Files): Add m4/mbrtowc.m4.
73241         (Depends-on): Add mbuiter.
73242
73243 2005-08-17  Bruno Haible  <bruno@clisp.org>
73244
73245         * modules/strcasestr: New file.
73246         * MODULES.html.sh (String handling, based on ANSI C 89): Add
73247         strcasestr.
73248
73249 2005-08-17  Bruno Haible  <bruno@clisp.org>
73250
73251         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
73252
73253 2005-08-17  Bruno Haible  <bruno@clisp.org>
73254
73255         * modules/mbuiter: New file.
73256         * MODULES.html.sh (Extended multibyte and wide character utilities):
73257         Add mbuiter.
73258
73259 2005-08-17  Bruno Haible  <bruno@clisp.org>
73260
73261         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
73262         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
73263
73264 2005-08-17  Bruno Haible  <bruno@clisp.org>
73265
73266         * m4/strcasestr.m4: New file.
73267
73268 2005-08-17  Bruno Haible  <bruno@clisp.org>
73269
73270         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
73271         * lib/strstr.c: Completely rewritten, with multibyte locale support.
73272
73273 2005-08-17  Bruno Haible  <bruno@clisp.org>
73274
73275         * lib/strcasestr.h: New file.
73276         * lib/strcasestr.c: New file.
73277
73278 2005-08-17  Bruno Haible  <bruno@clisp.org>
73279
73280         * lib/strcasecmp.c: Use mbuiter.h.
73281
73282 2005-08-17  Bruno Haible  <bruno@clisp.org>
73283
73284         * lib/mbuiter.h: New file.
73285
73286 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73287
73288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
73289         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
73290         and gl_GETOPT are both invoked via different paths (as happens
73291         with GNU tar CVS because it uses both argp and getopt), the former
73292         wins.
73293
73294 2005-08-16  Bruno Haible  <bruno@clisp.org>
73295
73296         * modules/tls: New file.
73297         * MODULES.html.sh (Multithreading): Add tls.
73298
73299 2005-08-16  Bruno Haible  <bruno@clisp.org>
73300
73301         * modules/strnlen1: New file.
73302         * MODULES.html.sh (String handling): Add strnlen1.
73303
73304 2005-08-16  Bruno Haible  <bruno@clisp.org>
73305
73306         * modules/strcase (Files): Add m4/mbrtowc.m4.
73307         (Depends-on): Add strnlen1, mbchar.
73308
73309 2005-08-16  Bruno Haible  <bruno@clisp.org>
73310
73311         * modules/mbiter: New file.
73312         * MODULES.html.sh (Extended multibyte and wide character utilities):
73313         Add mbiter.
73314
73315 2005-08-16  Bruno Haible  <bruno@clisp.org>
73316
73317         * modules/mbfile: New file.
73318         * MODULES.html.sh (Extended multibyte and wide character utilities):
73319         Add mbfile.
73320
73321 2005-08-16  Bruno Haible  <bruno@clisp.org>
73322
73323         * modules/mbchar: New file.
73324         * MODULES.html.sh (Extended multibyte and wide character utilities):
73325         New section.
73326
73327 2005-08-16  Bruno Haible  <bruno@clisp.org>
73328
73329         * m4/tls.m4: New file, from GNU gettext.
73330
73331 2005-08-16  Bruno Haible  <bruno@clisp.org>
73332
73333         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
73334         always.
73335         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
73336
73337 2005-08-16  Bruno Haible  <bruno@clisp.org>
73338
73339         * m4/mbiter.m4: New file.
73340
73341 2005-08-16  Bruno Haible  <bruno@clisp.org>
73342
73343         * m4/mbfile.m4: New file.
73344
73345 2005-08-16  Bruno Haible  <bruno@clisp.org>
73346
73347         * m4/mbchar.m4: New file.
73348
73349 2005-08-16  Bruno Haible  <bruno@clisp.org>
73350
73351         * lib/tls.h: New file, from GNU gettext.
73352         * lib/tls.c: New file, from GNU gettext.
73353
73354 2005-08-16  Bruno Haible  <bruno@clisp.org>
73355
73356         * lib/strnlen1.h: New file.
73357         * lib/strnlen1.c: New file.
73358
73359 2005-08-16  Bruno Haible  <bruno@clisp.org>
73360
73361         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
73362         (mbi_init): Update.
73363         (mbi_avail, mbi_advance): Let the iteration end before the terminating
73364         NUL byte, not after it.
73365
73366 2005-08-16  Bruno Haible  <bruno@clisp.org>
73367
73368         * lib/strcase.h (strcasecmp): Add note in comments.
73369         * lib/strncasecmp.c: Use code from strcasecmp.c.
73370         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
73371         (strcasecmp): Work correctly in multibyte locales.
73372
73373 2005-08-16  Bruno Haible  <bruno@clisp.org>
73374
73375         * lib/mbiter.h: New file.
73376
73377 2005-08-16  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/mbfile.h: New file.
73380
73381 2005-08-16  Bruno Haible  <bruno@clisp.org>
73382
73383         * lib/mbchar.h: New file.
73384         * lib/mbchar.c: New file.
73385
73386 2005-08-16  Bruno Haible  <bruno@clisp.org>
73387
73388         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
73389         the valid ones. Makes the comparison operations transitive:
73390         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
73391         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
73392
73393 2005-08-15  Simon Josefsson  <jas@extundo.com>
73394
73395         * modules/ssize_t (License): Change to 'unlimited'.
73396
73397         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
73398
73399 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
73402         Add comments for each pending glibc patch.
73403
73404 2005-08-15  Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/regex.h (__restrict_arr): Don't define to __restrict if
73407         __cplusplus is defined.
73408
73409 2005-08-14  Jim Meyering  <jim@meyering.net>
73410
73411         Sync from coreutils.
73412
73413         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
73414         Use the hash-table-based cycle-detection code not just when
73415         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
73416         Reported by James Youngman in
73417         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
73418         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
73419         FTS_TIGHT_CYCLE_CHECK.
73420         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
73421         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
73422         once again.
73423         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
73424         * lib/fts.c (fd_safer): Remove decl.
73425         Include fcntl--.h rather than unistd-safer.h
73426         (fts_safe_changedir): Don't call fd_safer; no longer needed
73427         now that we include fcntl--.h.
73428
73429 2005-08-12  Simon Josefsson  <jas@extundo.com>
73430
73431         * modules/getndelim2: Use ssize_t module.
73432         * modules/getnline: Likewise.
73433         * modules/safe-read: Likewise.
73434         * modules/xreadlink: Likewise.
73435
73436         * modules/ssize_t: New file.
73437
73438 2005-08-12  Simon Josefsson  <jas@extundo.com>
73439
73440         * m4/readline.m4: Look for termcap, curses or ncurses if required.
73441
73442 2005-08-12  Simon Josefsson  <jas@extundo.com>
73443
73444         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73445         ssize_t.
73446
73447 2005-08-12  Simon Josefsson  <jas@extundo.com>
73448
73449         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
73450         readline, getdelim and check_version.
73451         (Support for systems lacking ISO C 99: Sizes of integer types):
73452         Add size_max.
73453
73454 2005-08-12  Bruno Haible  <bruno@clisp.org>
73455
73456         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
73457
73458 2005-08-11  Simon Josefsson  <jas@extundo.com>
73459
73460         * modules/readline: New file.
73461
73462         * modules/strnlen (Files): Add strnlen.h.
73463
73464 2005-08-11  Simon Josefsson  <jas@extundo.com>
73465
73466         * m4/readline.m4: New file.
73467
73468 2005-08-11  Simon Josefsson  <jas@extundo.com>
73469
73470         * lib/readline.h, readline.c: New file.
73471
73472 2005-08-11  Simon Josefsson  <jas@extundo.com>
73473
73474         * doc/gnulib.texi (Initial import, Finishing touches): Mention
73475         gl_AVOID.
73476
73477 2005-08-11  Bruno Haible  <bruno@clisp.org>
73478
73479         * lib/strnlen.h (strnlen): Change parameter name to match comment.
73480
73481 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
73482
73483         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
73484
73485 2005-08-10  Simon Josefsson  <jas@extundo.com>
73486
73487         * tests/test-iconvme.c: New file.
73488
73489 2005-08-10  Simon Josefsson  <jas@extundo.com>
73490
73491         * m4/strnlen.m4: New file.
73492
73493         * m4/strndup.m4: Don't check for strnlen declaration, done in
73494         strnlen.m4.
73495
73496 2005-08-10  Simon Josefsson  <jas@extundo.com>
73497
73498         * lib/strndup.c: Use strnlen.h.
73499
73500         * lib/strnlen.h: New file.
73501
73502 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73503
73504         * README: Typos.
73505
73506 2005-08-02  Simon Josefsson  <jas@extundo.com>
73507
73508         * modules/readline: New file.
73509
73510 2005-08-02  Simon Josefsson  <jas@extundo.com>
73511
73512         * modules/getdelim: New file.
73513
73514         * modules/getline: Rewrite, don't use getndelim2.
73515
73516 2005-08-02  Simon Josefsson  <jas@extundo.com>
73517
73518         * m4/getline.m4: Separate out getdelim stuff into separate module.
73519
73520         * m4/getdelim.m4: New file.
73521
73522 2005-08-02  Simon Josefsson  <jas@extundo.com>
73523
73524         * lib/getline.h, getline.c: Rewrite.
73525
73526         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
73527
73528 2005-07-31  Bruno Haible  <bruno@clisp.org>
73529
73530         * lib/lock.h (gl_lock_initializer): New macro.
73531         (gl_lock_define_initialized): Use it.
73532         (gl_rwlock_initializer): New macro.
73533         (gl_rwlock_define_initialized): Use it.
73534         (gl_recursive_lock_initializer): New macro.
73535         (gl_recursive_lock_define_initialized): Use it.
73536
73537 2005-07-30  Karl Berry  <karl@gnu.org>
73538
73539         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
73540         Report from Ben Pfaff, regarding getopt.
73541
73542 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
73543
73544         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
73545         normal way.
73546         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
73547         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
73548         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
73549         (gl_GETOPT): Use the new macros.  Most of the implementation
73550         is moved to the new macros.  This is for programs like Emacs
73551         that don't want all the functionality of gl_GETOPT.
73552
73553 2005-07-26  Bruno Haible  <bruno@clisp.org>
73554
73555         * m4/lock.m4: Update from GNU gettext.
73556
73557 2005-07-26  Bruno Haible  <bruno@clisp.org>
73558
73559         * lib/lock.h: Update from GNU gettext.
73560         * lib/lock.c: Update from GNU gettext.
73561
73562 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73563
73564         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73565         obsolescent AC_TRY_RUN.  Include the default includes files, for
73566         'exit'.
73567
73568 2005-07-24  Bruno Haible  <bruno@clisp.org>
73569
73570         * modules/visibility: New file.
73571         * MODULES.html.sh (Misc): Add visibility.
73572
73573 2005-07-24  Bruno Haible  <bruno@clisp.org>
73574
73575         * m4/visibility.m4: New file.
73576
73577 2005-07-24  Bruno Haible  <bruno@clisp.org>
73578
73579         * doc/visibility.texi: New file.
73580
73581 2005-07-22  Bruno Haible  <bruno@clisp.org>
73582
73583         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73584         $(ALLOCA_H), redundant through BUILT_SOURCES.
73585         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73586         redundant through BUILT_SOURCES.
73587         * modules/byteswap (Makefile.am): Remove explicit dependency on
73588         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73589         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73590         $(FNMATCH_H), redundant through BUILT_SOURCES.
73591         * modules/getopt (Makefile.am): Remove explicit dependency on
73592         $(GETOPT_H), redundant through BUILT_SOURCES.
73593         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73594         redundant through BUILT_SOURCES.
73595         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73596         redundant through BUILT_SOURCES.
73597         * modules/stdbool (Makefile.am): Remove explicit dependency on
73598         $(STDBOOL_H), redundant through BUILT_SOURCES.
73599         * modules/stdint (Makefile.am): Remove explicit dependency on
73600         $(STDINT_H), redundant through BUILT_SOURCES.
73601         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73602         Remove explicit dependency on $(SYSEXITS_H).
73603         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73604
73605 2005-07-18  Simon Josefsson  <jas@extundo.com>
73606
73607         * lib/check-version.c (check_version): Accept identical versions too.
73608
73609 2005-07-18  Bruno Haible  <bruno@clisp.org>
73610
73611         * modules/lock: New file.
73612         * MODULES.html.sh (Multithreading): New section.
73613
73614 2005-07-18  Bruno Haible  <bruno@clisp.org>
73615
73616         * m4/lock.m4: New file, from GNU gettext.
73617
73618 2005-07-18  Bruno Haible  <bruno@clisp.org>
73619
73620         * lib/lock.h: New file, from GNU gettext.
73621         * lib/lock.c: New file, from GNU gettext.
73622
73623 2005-07-18  Bruno Haible  <bruno@clisp.org>
73624
73625         * lib/lock.h (gl_once_t): New type.
73626         (gl_once_define, gl_once): New macros.
73627         * lib/lock.c (fresh_once): New variable.
73628         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73629         functions.
73630
73631 2005-07-16  Simon Josefsson  <jas@extundo.com>
73632
73633         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73634         workaround, suggested by Bruno.
73635
73636 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73637
73638         * modules/xalloc (Depends-on): Add xalloc-die.
73639         * modules/xvasprintf (Depends-on): Add xalloc-die.
73640
73641 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73642
73643         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73644         with a minor change.
73645
73646 2005-07-15  Bruno Haible  <bruno@clisp.org>
73647
73648         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73649         When using lib/poll.c, define poll as rpl_poll.
73650
73651 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73652
73653         * modules/argp (Depends-on): Remove unlocked-io.
73654
73655 2005-07-14  Derek Price  <derek@ximbiot.com>
73656
73657         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73658         for glob symlink bug.
73659
73660 2005-07-14  Bruno Haible  <bruno@clisp.org>
73661
73662         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73663         Instead, test for *_unlocked function declarations directly.
73664
73665 2005-07-11  Simon Josefsson  <jas@extundo.com>
73666
73667         * modules/size_max: New file.
73668
73669         * modules/xsize: Depend on size_max module for size_max.m4.
73670
73671 2005-07-11  Simon Josefsson  <jas@extundo.com>
73672
73673         * lib/size_max.h: New file.
73674
73675 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73676
73677         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73678         copyright symbol and the year.
73679         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73680         (version_etc_va): Use parameterized copyright notice.
73681         Reword to conform to the current GNU coding standards.
73682
73683 2005-07-11  Karl Berry  <karl@gnu.org>
73684
73685         * doc/gnulib.texi (Quoting): new node.
73686         (Initial import): more info, from Patrice.
73687
73688 2005-07-11  Bruno Haible  <bruno@clisp.org>
73689
73690         * gnulib-tool (func_usage): Document option --avoid.
73691         (Command line options): Handle --avoid.
73692         (func_acceptable): New function.
73693         (func_modules_transitive_closure): Use it.
73694
73695 2005-07-11  Bruno Haible  <bruno@clisp.org>
73696
73697         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73698         Reported by Jim Meyering.
73699
73700 2005-07-10  Bruno Haible  <bruno@clisp.org>
73701
73702         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73703         Needed when size_t is smaller than 'unsigned int'.
73704         Reported by Paul Eggert.
73705
73706 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73707
73708         * modules/argp (Depends-on): Add unlocked-io
73709
73710 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73711
73712         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73713         block of defines.
73714
73715 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73718         fix now.
73719
73720 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73721         and Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73724         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73725
73726 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73727
73728         * modules/regex (Files): Add lib/regex_internal.c,
73729         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73730         (Depends-on): Add extensions.
73731         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73732
73733 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73734
73735         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73736         pathconf.
73737         * m4/same.m4 (gl_SAME): Likewise.
73738         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73739
73740         * m4/regex.m4: Adjust to new libc regex implementation.
73741         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73742         all the .c and .h parts of (the new) regex.
73743         Quote the m4 stuff better.
73744         Check for RE_ICASE bug of old gnulib.
73745         Check for REG_STARTEND of recent libc.
73746         Rename local variables from jm_* to gl_*.
73747         Quote operand of "test -f".
73748         Say "recent enough" version of libc, not "version 2".
73749         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73750         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73751         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73752         Remove check for btowc, isascii.
73753         Require AM_LANGINFO_CODESET.
73754
73755 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * lib/regex.c, regex.h: Sync from libc.
73758         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73759         * lib/regexec.c:
73760         New files, synced from libc, except that regex_internal.h
73761         currently has a small porting fix.
73762
73763 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73766         regex_internal.c, regexec.c.
73767         Add regex_internal.h too, but as a comment, since the libc version
73768         is currently broken in gnulib mode.
73769
73770 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         Support programs like Emacs that use gnulib but not gettext.
73773         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73774         * modules/gettext-h: New file.
73775         * modules/gettext (Files): Remove lib/gettext.h.
73776         (Depends-on): Add gettext-h.
73777         (Makefile.am): Remove lib_SOURCES.
73778         * modules/argmatch, modules/c-stack, modules/closeout:
73779         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73780         * modules/execute, modules/file-type, modules/getaddrinfo:
73781         * modules/getopt, modules/human, modules/javacomp:
73782         * modules/javaexec, modules/mkdir-p, modules/obstack:
73783         * modules/openat, modules/pagealign_alloc, modules/pipe:
73784         * modules/quotearg, modules/regex, modules/rpmatch:
73785         * modules/unicodeio, modules/userspec, modules/version-etc:
73786         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73787         * modules/xsetenv:
73788         Depend on gettext-h, not gettext.
73789
73790 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         * gnulib-tool (func_import): Add support for 'public domain' license.
73793         * modules/alloca, modules/atexit, modules/memmove:
73794         Now public domain, not GPL.
73795         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73796         * modules/realloc, modules/strerror, modules/strtod:
73797         Now LGPL, not GPL.
73798
73799 2005-07-05  Bruno Haible  <bruno@clisp.org>
73800
73801         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73802         autoconf CVS. Needed for mingw.
73803
73804 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73805
73806         Remove the dependency of the strftime module on the tzset module.
73807         * modules/strftime (Depends-on): Remove dependency on tzset.
73808
73809 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73810
73811         Remove the dependency of the strftime module on the tzset module.
73812         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73813         gl_FUNC_TZSET_CLOBBER.
73814
73815 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73816
73817         Remove the dependency of the strftime module on the tzset module.
73818         * lib/strftime.c (my_strftime)
73819         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73820         Copy the input structure, to work around some of the bug with
73821         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73822         Solaris releases, you should also use the tzset module, but we won't
73823         require it as a dependency any more since we don't want LGPLed code
73824         to depend on GPLed code.
73825
73826 2005-07-02  Jim Meyering  <jim@meyering.net>
73827
73828         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73829         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73830         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73831         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73832
73833 2005-07-02  Jim Meyering  <jim@meyering.net>
73834
73835         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73836
73837 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73838
73839         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73840         declares only 'struct timespec;' (!).
73841
73842 2005-07-01  Jim Meyering  <jim@meyering.net>
73843
73844         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73845         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73846         * lib/save-cwd.c, tempname.c:
73847         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73848         and don't include <sys/file.h>).
73849
73850 2005-06-29  Jim Meyering  <jim@meyering.net>
73851
73852         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73853         type name.  Use the variable name instead.
73854         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73855         Likewise.
73856
73857 2005-06-28  Simon Josefsson  <jas@extundo.com>
73858
73859         * modules/check-version (Files): Add check-version.m4.
73860
73861 2005-06-28  Simon Josefsson  <jas@extundo.com>
73862
73863         * m4/check-version.m4: New file, suggested by Jim Meyering
73864         <jim@meyering.net>.
73865
73866 2005-06-28  Simon Josefsson  <jas@extundo.com>
73867
73868         * lib/check-version.h, lib/check-version.c: New files.
73869
73870 2005-06-28  Simon Josefsson  <jas@extundo.com>
73871
73872         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73873         collision with global variable.  Better indentation.  Don't
73874         increment buffer pointer beyond buffer end.  Based on comments
73875         from Paul Eggert <eggert@cs.ucla.edu>.
73876
73877         * lib/base64.h: Indent.
73878
73879 2005-06-28  Simon Josefsson  <jas@extundo.com>
73880
73881         * doc/gnulib.texi (Library version handling): New section.
73882
73883 2005-06-28  Jim Meyering  <jim@meyering.net>
73884
73885         * check-module (find_included_lib_files): Hard-code another
73886         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73887         but modules/fts-lgpl (correctly) does not list those files.
73888
73889         * modules/canonicalize (Files): Add lib/pathmax.h.
73890
73891 2005-06-25  Simon Josefsson  <jas@extundo.com>
73892
73893         * modules/check-version: New file.
73894
73895 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73896
73897         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73898         initializer of struct addrinfo, as an indication that we don't
73899         care how many members the structure has.
73900
73901 2005-06-24  Derek Price  <derek@ximbiot.com>
73902         and Bruno Haible  <bruno@clisp.org>
73903
73904         Remove stat module & update lstat.
73905         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73906         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73907         * m4/stat.m4: Remove this file.
73908
73909 2005-06-24  Derek Price  <derek@ximbiot.com>
73910         and Bruno Haible  <bruno@clisp.org>
73911
73912         Remove stat module & update lstat.
73913         * lib/stat.c: Remove this file...
73914         (slash_aware_lstat): ...moving this content and its support...
73915         * lib/lstat.c (rpl_lstat): ...into here.
73916         * lib/lstat.h: New file.
73917
73918 2005-06-24  Derek Price  <derek@ximbiot.com>
73919         and Bruno Haible  <bruno@clisp.org>
73920
73921         Remove stat module & update lstat.
73922         * config/srclist.txt (libc sources): Remove stat.
73923
73924 2005-06-24  Derek Price  <derek@ximbiot.com>
73925         and Bruno Haible  <bruno@clisp.org>
73926
73927         Remove stat module & update lstat.
73928         * MODULES.html.sh (stat): Remove.
73929         * MODULES.html: Regenerated.
73930         * modules/lstat (Description): Correct function name.
73931         (Files): Add "lstat.h".
73932         (Depends-on): Remove stat, add xalloc, stat-macros.
73933         * modules/stat: Remove this file.
73934         (Include): Add "lstat.h", remove <sys/stat.h>.
73935
73936 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73939         (ranged_convert): Don't save conversion in a temporary struct.
73940         This causes a warning with GCC 4.0.0, and anyway in the typical
73941         case it's not worth the extra 100 bytes or so of code.
73942         (ranged_convert, __mktime_internal): When calling a function via a
73943         pointer P, use P () rather than (*P) (), as we now assume C89 or
73944         better.
73945
73946 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73949         "who -r" failed to give output.  Problem reported by Tim Waugh.
73950
73951         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73952         (xcalloc): Use it to avoid needless tests.
73953         Problem reported by Jim Meyering.
73954
73955 2005-06-20  Derek Price  <derek@ximbiot.com>
73956
73957         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73958         unnecessary for Autoconfs > 2.59c.
73959
73960 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73961
73962         * lib/argp.h (__option_is_short): Check upper limit of
73963         __key. Isprint() requires its argument to have the value
73964         of an unsigned char or EOF.
73965
73966 2005-06-16  Jim Meyering  <jim@meyering.net>
73967
73968         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73969         when either N or S is zero.
73970
73971 2005-06-16  Derek Price  <derek@ximbiot.com>
73972
73973         * m4/bison.m4: Declare YACC & YFLAGS precious.
73974
73975 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73978         multibyte string or pattern, fall back on unibyte matching.
73979         Problem reported by James Youngman.
73980
73981 2005-06-08  Bruno Haible  <bruno@clisp.org>
73982
73983         * modules/csharpcomp: New file.
73984         * MODULES.html.sh (C#): Add csharpcomp.
73985
73986 2005-06-08  Bruno Haible  <bruno@clisp.org>
73987
73988         * m4/csharpcomp.m4: New file, from GNU gettext.
73989
73990 2005-06-08  Bruno Haible  <bruno@clisp.org>
73991
73992         * lib/csharpcomp.h: New file, from GNU gettext.
73993         * lib/csharpcomp.c: New file, from GNU gettext.
73994         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73995
73996 2005-06-08  Bruno Haible  <bruno@clisp.org>
73997
73998         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73999         warning on mingw.
74000
74001 2005-06-07  Derek Price  <derek@ximbiot.com>
74002
74003         Sync from CVS.
74004         * lib/glob_.h: Indent nested #ifdef.
74005
74006 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74007
74008         Sync from coreutils.
74009         Use "file name" when talking about file names, instead of "filename"
74010         or "path", as per the GNU coding standards.
74011         * lib/mkdir-p.c: Renamed from makepath.c.
74012         (make_dir_parents): Renamed from make_path.  All callers changed.
74013         * lib/mkdir-p.h: Likewise.  All includers changed.
74014         * lib/filenamecat.c: Renamed from path-concat.c.
74015         (file_name_concat): Renamed from path_concat.  All callers changed.
74016         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74017         * lib/filenamecat.h: Likewise.  All includers changed.
74018         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74019         in comments or local variable names.
74020         * lib/basename.c: Likewise.
74021         * lib/canonicalize.c, canonicalize.h: Likewise.
74022         * lib/dirname.c, dirname.h: Likewise.
74023         * lib/euidaccess.c: Likewise.
74024         * lib/exclude.c: Likewise
74025         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
74026         * lib/fsusage.c, fsuage.h: Likewise.
74027         * lib/fts.c, fts_.h: Likewise.
74028         * lib/getcwd.c: Likewise.
74029         * lib/getloadavg.c: Likewise.
74030         * lib/mkstemp.c: Likewise.
74031         * lib/mountlist.c, mountlist.h: Likewise.
74032         * lib/openat.c, openat.h: Likewise.
74033         * lib/readlink-stub.c: Likewise.
74034         * lib/readutmp.c, readutmp.h: Likewise.
74035         * lib/rename.c: Likewise.
74036         * lib/rmdir.c: Likewise.
74037         * lib/same.c: Likewise.
74038         * lib/savedir.c: Likewise.
74039         * lib/stripslash.c: Likewise.
74040         * lib/tempname.c: Likewise.
74041         * lib/xreadlink.c: Likewise.
74042         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
74043         All uses changed.
74044         * lib/exclude.h: Likewise.
74045
74046         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
74047         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74048         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
74049         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74050         * lib/pathmax.h: Include <limits.h> unconditionally, since other
74051         files have been getting away with it for years (MORE/BSD 4.3
74052         is extinct now).
74053         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74054         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74055
74056         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74057         Define to 256, not 255, as per modern POSIX.
74058
74059 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74060
74061         Sync from coreutils.
74062         Use "file name" when talking about file names, instead of "filename"
74063         or "path", as per the GNU coding standards.
74064         * MODULES.html.sh: mkdir-p renamed from makepath.
74065         filenamecat renamed from path-concat.
74066         * modules/filenamecat: Renamed from modules/path-concat.
74067         (Files): filenamecat.h and filenamecat.c renamed from
74068         path-concat.h and path-concat.c.
74069         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74070         (Include): filenamecat.h, not path-concat.h.
74071         * modules/mkdir-p: Renamed from modules/makepath.
74072         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74073         makepath.c.
74074         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74075         (Include): mkdir-p.h, not makepath.h.
74076
74077 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74078
74079         Sync from coreutils.
74080         * m4/mkdir-p.m4: Renamed from makepath.m4.
74081         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74082         Rename files from makepath.c to mkdir-p.c, and from
74083         makepath.h to mkdir-p.h.
74084         * m4/filenamecat.m4: Renamed from path-concat.m4.
74085         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74086         Rename files from path-concat.c to filenamecat.c,
74087         and from path-concat.h to filenamecat.h.
74088         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74089         "file name" in local variables or comments.
74090         * m4/rename.m4: Likewise.
74091
74092 2005-06-01  Bruno Haible  <bruno@clisp.org>
74093
74094         * modules/csharpexec: New file.
74095         * MODULES.html.sh (C#): New section.
74096
74097 2005-06-01  Bruno Haible  <bruno@clisp.org>
74098
74099         * m4/csharp.m4: New file, from GNU gettext.
74100         * m4/csharpexec.m4: New file, from GNU gettext.
74101
74102 2005-06-01  Bruno Haible  <bruno@clisp.org>
74103
74104         * lib/csharpexec.h: New file, from GNU gettext.
74105         * lib/csharpexec.c: New file, from GNU gettext.
74106         * lib/csharpexec.sh.in: New file, from GNU gettext.
74107
74108 2005-05-31  Derek Price  <derek@ximbiot.com>
74109             Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         Sync from cvs.
74112         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74113
74114 2005-05-31  Derek Price  <derek@ximbiot.com>
74115             Paul Eggert  <eggert@cs.ucla.edu>
74116
74117         Sync from cvs.
74118         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74119
74120 2005-05-29  Derek Price  <derek@ximbiot.com>
74121
74122         * config/srclist.txt (glob_.h, glob.c): Add these files.
74123
74124 2005-05-29  Derek Price  <derek@ximbiot.com>
74125
74126         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
74127         * modules/glob: New file.
74128         * modules/getlogin_r: Add link to POSIX spec in description.
74129
74130 2005-05-29  Derek Price  <derek@ximbiot.com>
74131             Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * m4/glob.m4: New file.
74134
74135 2005-05-29  Derek Price  <derek@ximbiot.com>
74136             Paul Eggert  <eggert@cs.ucla.edu>
74137
74138         * lib/glob_.h, lib/glob.c: New files.
74139
74140 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74141
74142         * modules/fts (Files): Remove m4/inttypes-pri.m4.
74143         * modules/fts-lgpl (Depends-on): Remove gettext.
74144
74145 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
74148         and don't require gt_INTTYPES_PRI.
74149
74150 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
74151
74152         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
74153
74154         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
74155         the configuration hassle isn't worth it.
74156         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
74157         (LONGEST_MODIFIER, PRIuMAX): Remove.
74158
74159 2005-05-27  Bruno Haible  <bruno@clisp.org>
74160
74161         * lib/getlogin_r.h: Remove second include of <stddef.h>.
74162
74163 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
74164
74165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
74166         _POSIX_PTHREAD_SEMANTICS for Solaris.
74167
74168 2005-05-25  Derek Price  <derek@ximbiot.com>
74169
74170         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
74171
74172 2005-05-25  Derek Price  <derek@ximbiot.com>
74173             Paul Eggert  <eggert@cs.ucla.edu>
74174
74175         * modules/getlogin_r, m4/getlogin_r.m4: New files.
74176         * lib/getlogin_r.c, getlogin_r.h: New files.
74177
74178 2005-05-25  Bruno Haible  <bruno@clisp.org>
74179             Derek Price  <derek@ximbiot.com>
74180
74181         * lib/getlogin_r.h: Simplify API documentation.
74182
74183 2005-05-23  Derek Price  <derek@ximbiot.com>
74184
74185         * modules/minmax (Files): Add m4/minmax.m4.
74186         (configure.ac): Add gl_MINMAX.
74187
74188 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
74189
74190         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
74191         so that unistd-safer.h (GPL'ed code) need not be included.
74192
74193 2005-05-22  Bruno Haible  <bruno@clisp.org>
74194
74195         * m4/minmax.m4: New file.
74196         Based on a patch by Derek Price <derek@ximbiot.com>.
74197
74198 2005-05-22  Bruno Haible  <bruno@clisp.org>
74199
74200         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
74201         (INT64_MIN): Fix definition.
74202         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
74203
74204         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
74205         NEED_SIGNED_INT_TYPES.
74206
74207         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
74208         HAVE_SYSTEM_INTTYPES.
74209
74210 2005-05-22  Bruno Haible  <bruno@clisp.org>
74211
74212         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
74213         Also include <sys/param.h> if it defines MIN, MAX.
74214         Based on a patch by Derek Price <derek@ximbiot.com>.
74215
74216 2005-05-21  Jim Meyering  <jim@meyering.net>
74217
74218         * modules/fts (Files): Add m4/inttypes-pri.m4.
74219         (Depends-on): Add lstat and remove gettext.  Alphabetize.
74220
74221 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74222
74223         New fts module.
74224         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
74225         (setup_dir, free_dir): New functions.
74226         (enter_dir, leave_dir): Define trivial
74227         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
74228         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
74229         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
74230         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
74231         Move to fts-cycle.c.
74232         (fts_open): Use setup_dir.
74233         (fts_close): Use free_dir.
74234         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
74235         This adds a label and some gotos, but the alternatives were messier.
74236         Check for memory allocation failure when entering a dir.
74237         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
74238         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
74239         (FTS): New member fts_cycle, that is a union that contains the
74240         old active_dir_ht and cycle_state.  All uses changed to mention
74241         fts_cycle.ht and fts_cycle.state.
74242         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
74243         fts.c, with the following changes:
74244         (setup_dir, free_dir): New functions.
74245         (enter_dir): Now returns bool.  Return true if successful, false
74246         if memory exhausted.  All callers changed.
74247         Do not bother partly cleaning up on
74248         memory allocation failure; that is free_dir's job.
74249         However, free ad if hash_insert fails, to avoid memory leak.
74250         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
74251         fts->fts_options to see which union member to use.
74252
74253 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74254
74255         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
74256         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
74257
74258 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
74259
74260         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
74261
74262 2005-05-20  Jim Meyering  <jim@meyering.net>
74263
74264         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
74265         Now a macro, to pacify GCC.
74266
74267 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74268
74269         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
74270         of -1.
74271
74272 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
74273
74274         * lib/chown.c (rpl_chown): Return -1 on failure.
74275
74276 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
74279         Don't check for stddef.h.
74280         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
74281         don't use its results.
74282         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
74283         since we include them unconditionally.  Don't require
74284         AM_STDBOOL_H, since stdbool is a prerequisite.
74285         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
74286         since we assume C89 or better.
74287         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
74288         as we don't use their results.
74289         Don't check for fchdir, memmove, memset, strrchr, as we use
74290         them unconditionally.
74291         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
74292         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
74293
74294 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
74295
74296         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
74297         Include <stddef.h> unconditionally, since we assume C89 now.
74298         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
74299         * lib/fts.c: Include fts_.h first, to check interface.
74300         Do not include intprops.h; no longer needed.
74301         Include cycle-check.h and hash.h, since fts_.h no longer does.
74302         Remove unnecessary casts of closedir to void.
74303         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
74304         decide whether to decrement nlinks.
74305         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
74306         (FTS): Use struct hash_table * instead of Hash_table, so that
74307         we no longer need to include hash.h here.
74308
74309 2005-05-18  Jim Meyering  <jim@meyering.net>
74310
74311         * modules/dirfd (License): Change to LGPL.  Most of the code
74312         is already in the public domain.
74313
74314 2005-05-18  Jim Meyering  <jim@meyering.net>
74315
74316         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
74317         Reported by Yoann Vandoorselaere.
74318
74319 2005-05-17  Jim Meyering  <jim@meyering.net>
74320
74321         * m4/fts.m4: New file, from coreutils.
74322
74323 2005-05-17  Jim Meyering  <jim@meyering.net>
74324
74325         * lib/fts.c, lib/fts_.h: New files, from coreutils.
74326
74327 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74328
74329         Sync from coreutils.
74330         * m4/unlinkdir.m4: New file.
74331
74332 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74333
74334         Sync from coreutils.
74335         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
74336         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
74337         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
74338         White space changes only.
74339         * lib/makepath.c (make_path): Port to hosts where leading "//" is
74340         special.
74341         * lib/yesno.c: Include getline.h, not ctype.h.
74342         (yesno): Don't remove leading white space; POSIX doesn't allow it.
74343         Use getline to remove arbitrary restriction on response length.
74344
74345 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * config/srclist-update: Spell out "Street" in FSF postal
74348         mail address; this is the style the FSF seems to prefer.
74349
74350         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
74351         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
74352         this updates FSF postal mail address.
74353
74354         Sync from coreutils.
74355         * modules/unlinkdir: New file.
74356         * modules/yesno (Depends-on): Add getline.
74357         * MODULES.html.sh (File system functions): Add unlinkdir.
74358
74359 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
74362         lib/strsep.h:
74363         Change the initial comment to refer to GPL, not LGPL.
74364         gnulib-tool will change it to LGPL as needed.
74365
74366         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
74367         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
74368         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
74369         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
74370         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
74371         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
74372         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
74373         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
74374         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
74375         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
74376         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
74377         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
74378         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
74379         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
74380         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
74381         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
74382         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
74383         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
74384         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
74385         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
74386         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
74387         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
74388         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
74389         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
74390         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
74391         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
74392         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
74393         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
74394         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
74395         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
74396         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
74397         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
74398         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
74399         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
74400         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
74401         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
74402         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
74403         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
74404         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
74405         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
74406         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
74407         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
74408         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
74409         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
74410         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
74411         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
74412         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
74413         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
74414         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
74415         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
74416         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
74417         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
74418         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
74419         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
74420         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
74421         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
74422         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
74423         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
74424         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
74425         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
74426         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
74427         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
74428         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
74429         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
74430         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
74431         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
74432         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
74433         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
74434         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
74435         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
74436         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
74437         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
74438         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
74439         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
74440         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
74441         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
74442         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
74443         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
74444         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
74445         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
74446         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
74447         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
74448         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
74449         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
74450         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
74451         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
74452         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
74453         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
74454         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
74455         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
74456         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
74457         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
74458         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
74459         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
74460         lib/yesno.c, lib/yesno.h:
74461         Update FSF postal mail address.
74462
74463 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
74466         tests/test-memmem.c, tests/test-stpncpy.c:
74467         Update FSF postal mail address.
74468
74469 2005-05-13  Bruno Haible  <bruno@clisp.org>
74470
74471         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
74472         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
74473         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
74474         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
74475         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
74476         Add support for 64-bit integers in the MSVC compiler.
74477
74478 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74479
74480         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
74481
74482 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
74483
74484         * gnulib-tool (func_import): Sort and uniquify recommended includes.
74485
74486 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
74487
74488         * doc/getdate.texi (General date syntax): Don't say that date
74489         date --iso-8601=ns generates acceptable dates; it doesn't yet.
74490         Problem reported by Nic Ferrier.
74491
74492 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74493
74494         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
74495         specified in ai_socktype. Fix invalid ai_protocol
74496         check. ai_protocol is usually set to 0 or depending on
74497         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
74498         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
74499         ai_socktype / ai_protocol in the returned addrinfo structure.
74500
74501 2005-05-10  Simon Josefsson  <jas@extundo.com>
74502
74503         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
74504         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74505
74506 2005-05-10  Karl Berry  <karl@gnu.org>
74507
74508         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
74509         (from http://www.gnu.org/licenses).
74510         * doc/COPYING.LIB: also rename to COPYING.LESSER.
74511         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
74512         fdl.texi suffices.
74513
74514 2005-05-10  Karl Berry  <karl@gnu.org>
74515
74516         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
74517         (COPYING.DOC): remove.
74518
74519         * config/srclist-update: new FSF address.
74520
74521 2005-05-10  Derek Price  <derek@ximbiot.com>
74522
74523         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
74524         possible.
74525
74526 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74527             Bruno Haible  <bruno@clisp.org>
74528
74529         * modules/inet_ntop: New file.
74530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74531         inet_ntop.
74532
74533 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74534             Bruno Haible  <bruno@clisp.org>
74535
74536         * m4/inet_ntop.m4: New file.
74537
74538 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74539             Bruno Haible  <bruno@clisp.org>
74540
74541         * lib/inet_ntop.h: New file.
74542         * lib/inet_ntop.c: New file, from glibc with modifications.
74543
74544 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         * modules/time_r (License): Change to LGPL.
74547         * modules/extensions (License): Change to LGPL.  Actually,
74548         the license is more permissive than that, but currently gnulib-tool
74549         doesn't know how to handle more-permissive licenses.
74550
74551         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
74552         Problem reported by Dave Love.
74553
74554 2005-05-08  Jim Meyering  <jim@meyering.net>
74555
74556         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74557         blank.
74558
74559 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74560
74561         * modules/argmatch (Depends-on): Add stdbool.
74562         * modules/backupfile (Depends-on): Likewise.
74563         * modules/chdir-long (Depends-on): Likewise.
74564         * modules/closeout (Depends-on): Likewise.
74565         * modules/cycle-check (Depends-on): Likewise.
74566         * modules/dirname (Depends-on): Likewise.
74567         * modules/fnmatch (Depends-on): Likewise.
74568         * modules/fsusage (Depends-on): Likewise.
74569         * modules/fwriteerror (Depends-on): Likewise.
74570         * modules/getcwd (Depends-on): Likewise.
74571         * modules/getloadavg (Depends-on): Likewise.
74572         * modules/hard-locale (Depends-on): Likewise.
74573         * modules/makepath (Depends-on): Likewise.
74574         * modules/mountlist (Depends-on): Likewise.
74575         * modules/nanosleep (Depends-on): Likewise.
74576         * modules/posixtm (Depends-on): Likewise.
74577         * modules/quotearg (Depends-on): Likewise.
74578         * modules/readtokens (Depends-on): Likewise.
74579         * modules/readtokens0 (Depends-on): Likewise.
74580         * modules/readutmp (Depends-on): Likewise.
74581         * modules/save-cwd (Depends-on): Likewise.
74582         * modules/strftime (Depends-on): Likewise.
74583         * modules/userspec (Depends-on): Likewise.
74584         * modules/utimecmp (Depends-on): Likewise.
74585         * modules/xgetcwd (Depends-on): Likewise.
74586         * modules/xnanosleep (Depends-on): Likewise.
74587         * modules/xstrtod (Depends-on): Likewise.
74588         * modules/yesno (Depends-on): Likewise.
74589
74590 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74591
74592         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74593         needless checks.
74594
74595 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74596
74597         Merge from coreutils.  Among other things,
74598         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74599         * lib/fd-safer.c: New file.
74600         * lib/fcntl-safer.h, open-safer.c: Remove.
74601         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74602         * lib/dup-safer.c: Include unistd-safer.h first.
74603         Don't include errno.h.
74604         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74605         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74606         * lib/file-type.c: Rely on file-type.h change.
74607         * lib/getloadavg.c: Include unistd-safer.h.
74608         (getloadavg): Use safer open.
74609         * lib/getusershell.c: Include "stdio-safer.h".
74610         (getusershell): Use safer fopen.
74611         * lib/long-options.c (long_options): Use NULL rather than 0.
74612         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74613         'free'.
74614         * lib/modechange.c: Likewise.
74615         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74616         (MODE_DONE): New constant.
74617         (struct mode_change): Remove 'next' member.
74618         (make_node_op_equals): New function; like the old one of the
74619         same name, except it allocates an array.
74620         (mode_compile, mode_create_from_ref): Use it.
74621         (mode_compile): Allocate result as an array, not a linked list.
74622         Parse octal string ourself, so that we catch mistakes like "+0".
74623         (mode_adjust): Arg is an array, not a linked list.
74624         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74625         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74626         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74627         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74628         Remove.  This is now stat-macros.h's job.
74629         (talloc): Remove.  All callers replaced by xalloc, so that
74630         our invokers don't have to worry about reporting memory failures.
74631         (make_node_op_equals): Remove.
74632         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74633         New constants.
74634         (struct mode_change): Moved here from modechange.h.
74635         (mode_append_entry): Remove.
74636         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74637         apps to have incorrect behavior.  Use simpler algorithm for head
74638         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74639         Detect more invalid usages rather than having somewhat-random behavior.
74640         Don't insert an "a=" action, as that leads to incorrect behavior.
74641         (mode_compile, mode_create_from_ref): Return NULL on error instead
74642         of an enum, since now there's only one way to have an error.  All
74643         callers changed.
74644         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74645         at the correct time.  Simplify calculation of "+u" and its ilk.
74646         Don't mishandle "+X".
74647         (mode_free): Remove "register" and localize decls.
74648         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74649         (struct mode_change): Move to modechange.c; callers don't
74650         need to see this stuff.
74651         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74652         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74653         (mode_change, mode_adjust): Reflect the new signatures noted above.
74654         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74655         that might redefine system include files.
74656         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74657         (my_usleep): Use NULL rather than (void *) 0.
74658         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74659         Use siginterrupt to specify that system calls should be interrupted.
74660         (rpl_nanosleep): Move initialization of suspended closer to call of
74661         my_usleep.
74662         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74663         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74664         (desirable_utmp_entry): New function.
74665         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74666         using x2nrealloc, to simplify logic.
74667         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74668         size calculation.  Do not assume utmp file is a regular file.
74669         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74670         (READ_UTMP_CHECK_PIDS): New constant.
74671         * lib/save-cwd.c: Include unistd-safer.h.
74672         (save_cwd): Use fd_safer.
74673         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74674         [!_LIBC] Include "stat-macros.h" instead.
74675         * lib/unistd-safer.h (fd_safer): New decl.
74676
74677 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74678
74679         * modules/getloadavg (Depends-on): Add unistd-safer.
74680         * modules/getusershell (Depends-on): Add stdio-safer.
74681         * modules/lstat (Depends-on): Remove xalloc.
74682         * modules/mkstemp (Depends-on): Add stat-macros.
74683         * modules/modechange (Depends-on): Remove xstrtol.
74684         Add stat-macros, xalloc.
74685         * modules/save-cwd (Depends-on): Add unistd-safer.
74686         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74687         * modules/unistd-safer (Files): Add lib/fd-safer.c
74688         (Makefile.am): Remove lib_SOURCES.
74689
74690         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74691         Remove fcntl-safer; unistd-safer supersedes it.
74692
74693 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74696         AC_HEADER_STAT.
74697         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74698         (gl_PREREQ_CHOWN): Remove.
74699         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74700         it.  Don't require AC_HEADER_STAT.
74701         (gl_PREREQ_LSTAT): Remove.
74702         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74703         Don't require AC_HEADER_STAT.
74704         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74705         (gl_PREREQ_RMDIR): Remove.
74706         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74707         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74708         the stat-macros module a prerequisite.
74709         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74710         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74711         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74712         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74713         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74714         variable names.
74715         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74716         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74717         variable prefixes.
74718         * m4/fcntl-safer.m4: Remove.
74719         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74720         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74721         Invoke gl_PREREQ_FD_SAFER.
74722         (gl_PREREQ_FD_SAFER): New macro.
74723         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74724         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74725         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74726         Remove duplicate call to AC_LIBOBJ(readutmp).
74727         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74728
74729         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74730         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74731
74732 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74733
74734         * MODULES.html.sh (Misc): Add byteswap.
74735
74736 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74737
74738         * modules/getcwd (Depends-on): Add extensions.
74739         * modules/openat (Depends-on): Likewise.
74740
74741 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74742
74743         * modules/byteswap: New file.
74744
74745 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74746
74747         * m4/byteswap.m4: New file.
74748
74749 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74750
74751         * lib/byteswap_.h: New file.
74752
74753 2005-04-25  Karl Berry  <karl@gnu.org>
74754
74755         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74756
74757 2005-04-25  Albert Chin  <china@thewrittenword.com>
74758
74759         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74760         Toolkit C bug.
74761
74762 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74763
74764         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74765         (func_ln_if_changed): Remove forcibly for no error message
74766         in case file does not exist.
74767
74768 2005-04-19  Simon Josefsson  <jas@extundo.com>
74769
74770         * gnulib-tool (Options): Make --symlink mean --symbolic.
74771
74772 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74773
74774         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74775
74776 2005-04-16  Simon Josefsson  <jas@extundo.com>
74777
74778         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74779
74780 2005-04-15  Simon Josefsson  <jas@extundo.com>
74781
74782         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74783
74784 2005-04-15  Simon Josefsson  <jas@extundo.com>
74785
74786         * gnulib-tool: Rename --symlink to --symbolic.
74787
74788 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74789
74790         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74791         symbolic links to files instead of copying/moving.  Add --aux-dir,
74792         specifying directory relative --dir where auxiliary build tools
74793         are placed.
74794
74795 2005-04-14  Bruno Haible  <bruno@clisp.org>
74796
74797         * modules/allocsa (License): Change to LGPL.
74798         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74799
74800 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74801
74802         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74803         that "UTC +1 second" continues to work.  Problem reported
74804         by Dmitry V. Levin.
74805         (relunit_snumber): New rule.
74806         (relunit): Use it.
74807
74808 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * lib/getdate.y (universal_time_zone_table): New constant.
74811         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74812         universal_time_zone_table.
74813         (lookup_zone): Prefer universal_time_zone_table to
74814         local_time_zone_table, so that "GMT" time stamps are allowed in
74815         London during the summer.  Problem reported by Ian Abbott.
74816
74817 2005-04-12  Jim Meyering  <jim@meyering.net>
74818
74819         * lib/human.c (humblock): Set *options even when returning due to
74820         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74821         warning from gcc-4.
74822
74823 2005-04-09  Jim Meyering  <jim@meyering.net>
74824
74825         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74826         -Wuninitialized: initialize tm0.tm_year.
74827
74828 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74831         count, since there's no maximum.  All uses changed.
74832         Add member dsts_seen.
74833         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74834         not being INT_MAX.
74835         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74836         Use pc_rels_seen to decide whther a date is absolute.
74837
74838         * lib/getdate.y (number): Don't overwrite year.
74839         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74840         check.
74841
74842 2005-04-02  Simon Josefsson  <jas@extundo.com>
74843
74844         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74845         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74846
74847 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74848
74849         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74850         where no absolute path name can be longer than PATH_MAX.
74851
74852 2005-03-27  Jim Meyering  <jim@meyering.net>
74853
74854         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74855
74856 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74859         "one's complement" -> "ones' complement" in comment, as per Knuth.
74860         "value of type" -> "type or expression" in comment.
74861         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74862
74863 2005-03-26  Jim Meyering  <jim@meyering.net>
74864
74865         Comment nits.
74866         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74867         Correct typos: s/or/of/.
74868
74869 2005-03-26  Jim Meyering  <jim@meyering.net>
74870
74871         * modules/check-include-files: Move to ../ and rename to...
74872         * check-module: ...this.
74873
74874 2005-03-25  Jim Meyering  <jim@meyering.net>
74875
74876         * modules/xvasprintf (Files): Add xalloc.h.
74877
74878 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * modules/gettext (Files): config/config.rpath ->
74881         build-aux/config.rpath
74882         * modules/iconv (Files): Likewise.
74883         Problem reported by Oskar Liljeblad.
74884
74885 2005-03-23  Jim Meyering  <jim@meyering.net>
74886
74887         * modules/check-include-files: New script to check for
74888         missing dependencies, multiple includes, etc.
74889
74890         * modules/c-strtold (Depends-on): Add xalloc.
74891         * modules/c-strtod (Depends-on): Add xalloc.
74892         * modules/hash (Depends-on): Add xalloc.
74893         (Files): Remove lib/xalloc.h.
74894
74895         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74896         * modules/userspec (Files): Add lib/inttostr.h.
74897
74898 2005-03-23  Jim Meyering  <jim@meyering.net>
74899
74900         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74901
74902 2005-03-22  Jim Meyering  <jim@meyering.net>
74903
74904         * modules/stat-macros: New module.
74905         * modules/canonicalize, modules/euidaccess, modules/file-type,
74906         * modules/filemode, modules/lchown, modules/makepath,
74907         * modules/rmdir, modules/stat: Depend on new stat-macros module
74908         rather than listing lib/stat-macros.h manually.
74909         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74910
74911 2005-03-22  Jim Meyering  <jim@meyering.net>
74912
74913         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74914
74915 2005-03-22  Bruno Haible  <bruno@clisp.org>
74916
74917         * config/srclist.txt: Replace target directory 'config' with
74918         'build-aux'.
74919         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74920         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74921         ../build-aux/.
74922
74923 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74924
74925         * modules/chdir-long (Depends-on): Add mempcpy.
74926
74927         * modules/acl, modules/backupfile, modules/c-strtod,
74928         modules/c-strtold, modules/canon-host, modules/canonicalize,
74929         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74930         modules/exclude, modules/exitfail, modules/file-type,
74931         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74932         modules/getdate, modules/getline, modules/getpagesize,
74933         modules/getpass, modules/getugroups, modules/group-member,
74934         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74935         modules/inttostr, modules/long-options, modules/makepath,
74936         modules/md5, modules/memcasecmp, modules/memcoll,
74937         modules/modechange, modules/mountlist, modules/path-concat,
74938         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74939         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74940         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74941         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74942         modules/strftime, modules/strndup, modules/strverscmp,
74943         modules/timespec, modules/unlocked-io, modules/userspec,
74944         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74945         modules/yesno:
74946         Remove lib_SOURCES line from Makefile.am section, as this is now
74947         done automatically by the corresponding Autoconf macro.
74948
74949 2005-03-21  Jim Meyering  <jim@meyering.net>
74950
74951         Changes imported from coreutils.
74952
74953         * lib/cycle-check.c: Don't include xalloc.h.
74954
74955         * lib/path-concat.c: Don't include assert.h.
74956         (path_concat): Remove assertion that would have triggered
74957         for ABASE starting with more than one slash.
74958         Reported by Andreas Schwab.
74959
74960         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74961         properly when ABASE is an absolute file name.
74962         Correct the description of this function.
74963         Include <assert.h>.
74964         Add an assertion and a test driver.
74965         This fixes a bug introduced on 2004-07-02.
74966         Andreas Schwab reported the resulting failure of cp --parents:
74967         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74968
74969 2005-03-21  Jim Meyering  <jim@meyering.net>
74970
74971         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74972         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74973
74974 2005-03-21  Jim Meyering  <jim@meyering.net>
74975         and  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74978         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74979         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74980         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74981         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74982         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74983         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74984         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74985         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74986         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74987         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74988         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74989         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74990         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74991         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74992         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74993         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74994         for these modules.
74995
74996 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74997
74998         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74999         (which shouldn't happen), generate nothing instead of returning 0
75000         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75001
75002 2005-03-16  Bruno Haible  <bruno@clisp.org>
75003
75004         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75005         HAVE_LONGLONG_64BIT.
75006
75007 2005-03-16  Bruno Haible  <bruno@clisp.org>
75008
75009         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75010         HAVE_LONGLONG_64BIT.
75011
75012 2005-03-16  Bruno Haible  <bruno@clisp.org>
75013
75014         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75015         HAVE_LONGLONG_64BIT.
75016
75017 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75020         reliably distinguish strftime failure from empty output on POSIX
75021         hosts.
75022
75023 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75024
75025         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
75026         (iconv_string): Don't guess a size-zero buffer, as that might cause
75027         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
75028         result would be 'too large', where 'too large' is (heuristically)
75029         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
75030         overflow concerns.  This will prevent some unwanted malloc failures
75031         when the inputs are very large.
75032
75033 2005-03-15  Karl Berry  <karl@gnu.org>
75034
75035         * config/srclist.txt (config.rpath): from gettext.
75036         * config/config.rpath: update.
75037
75038 2005-03-15  Bruno Haible  <bruno@clisp.org>
75039
75040         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
75041         to 'negate'.
75042
75043         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
75044         variable.
75045
75046         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
75047         results.
75048
75049 2005-03-14  Simon Josefsson  <jas@extundo.com>
75050
75051         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
75052         <fx@gnu.org>.
75053
75054 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75055
75056         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75057         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75058         intprops.h.
75059         * lib/strtol.c: Likewise.
75060
75061 2005-03-14  Jim Meyering  <jim@meyering.net>
75062
75063         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75064         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75065         to be nonzero so that we (and caller) can detect the difference
75066         between a valid zero-length expansion and an error return, even
75067         when the underlying strftime fails before writing anything into
75068         that location.
75069
75070 2005-03-14  Bruno Haible  <bruno@clisp.org>
75071
75072         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75073         Update from GNU gettext 0.14.3.
75074
75075 2005-03-10  Jim Meyering  <jim@meyering.net>
75076
75077         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75078
75079 2005-03-10  Jim Meyering  <jim@meyering.net>
75080
75081         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75082         so that this module works on systems without fchdir.
75083
75084 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75085
75086         Factor int-properties macros into a single file, except for
75087         glibc-related files.
75088         * lib/intprops.h: New file.
75089         * lib/getloadavg.c: Include it instead of limits.h.
75090         (INT_STRLEN_BOUND): Remove.
75091         * lib/human.c: Include intprops.h.
75092         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75093         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75094         302/1000.
75095         * lib/inttostr.h: Include intprops.h instead of limits.h.
75096         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75097         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75098         for consistency with intprops.h.
75099         (time_t_is_integer, twos_complement_arithmetic): Use them.
75100         * lib/sig2str.h: Include <signal.h>, intprops.h.
75101         (INT_STRLEN_BOUND): Remove.
75102         * lib/strftime.c (TYPE_SIGNED): Remove.
75103         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75104         * lib/strtol.c: Adjust comments to match intprops.h.
75105         * lib/userspec.c: Include intprops.h.
75106         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75107         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75108         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75109         instead of rolling our own expressions.
75110         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75111
75112         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75113         instead of int.
75114         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75115         the right thing even if adding 1900 would overflow.  Similarly
75116         for tm_mon + 1 and tm_yday + 1.
75117         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75118         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75119         (DO_SIGNED_NUMBER): New macro.
75120         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75121
75122 2005-03-07  Bruno Haible  <bruno@clisp.org>
75123
75124         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
75125
75126 2005-03-07  Bruno Haible  <bruno@clisp.org>
75127
75128         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
75129
75130 2005-03-04  Derek R. Price  <derek@ximbiot.com>
75131
75132         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
75133         (func_import): Only replace files via --import when they have actually
75134         changed.
75135
75136 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75137
75138         * m4/mmap-anon.m4: New file.
75139         * m4/pagealign_alloc.m4: New file.
75140
75141 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75142             Bruno Haible  <bruno@clisp.org>
75143
75144         * modules/pagealign_alloc: New file.
75145         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
75146
75147 2005-03-03  Derek R. Price  <derek@ximbiot.com>
75148             Bruno Haible  <bruno@clisp.org>
75149
75150         * lib/pagealign_alloc.h: New file.
75151         * lib/pagealign_alloc.c: New file.
75152
75153 2005-03-03  Bruno Haible  <bruno@clisp.org>
75154
75155         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
75156         Use an all-permissive copyright notice, recommended by RMS.
75157
75158 2005-03-02  Bruno Haible  <bruno@clisp.org>
75159
75160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
75161         of AIX, the replacement has to be done only after <string.h> is
75162         included, therefore not in config.h. stpncpy.h does the replacement,
75163         and stpncpy.c uses it.
75164
75165 2005-03-02  Bruno Haible  <bruno@clisp.org>
75166
75167         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
75168         stpncpy.c uses it.
75169
75170 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75171
75172         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
75173         The workaround isn't strictly needed for POSIX conformance, and
75174         it's too much of a pain to configure and maintain.  We'll ask
75175         people to fix their kernels instead.
75176         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
75177         (NANOSLEEP_BUG_WORKAROUND): Remove.
75178         (xnanosleep): Remove the workaround.
75179
75180 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75181
75182         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
75183         Reported by Derek Price.
75184         (Include): Add "timespec.h".
75185
75186         * modules/xnanosleep (Depends-on): Remove gethrxtime.
75187
75188 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
75191         to detect nanosleep bug.
75192
75193 2005-03-01  Bruno Haible  <bruno@clisp.org>
75194
75195         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
75196
75197 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * modules/gethrxtime: New file.
75200         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
75201         (Depends-on): Add gethrxtime.
75202         (configure.ac): Add gl_XNANOSLEEP.
75203         (Makefile.am): Remove lib_SOURCES line.
75204
75205 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
75208         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
75209
75210 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
75213         * lib/timespec.h (gettime): Return void, since it always
75214         succeeds now.  All uses changed.
75215         * lib/gettime.c (gettime): Likewise.
75216         [HAVE_NANOTIME]: Prefer nanotime.
75217         Assume gettimeofday succeeds, as POSIX requires.
75218         Assime time () succeeds, since other code already does.
75219         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
75220         (timespec_subtract): Remove.
75221         (NANOSLEEP_BUG_WORKAROUND): New constant.
75222         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
75223         things considerably.  Use it only on GNU/Linux hosts, since the
75224         workaround shouldn't be needed elsewhere.
75225
75226 2005-02-24  Bruno Haible  <bruno@clisp.org>
75227
75228         * modules/gettext (Files): Add m4/glibc2.m4.
75229
75230 2005-02-24  Bruno Haible  <bruno@clisp.org>
75231
75232         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
75233         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
75234         * m4/progtest.m4:
75235         Update from GNU gettext 0.14.2.
75236         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
75237
75238 2005-02-24  Bruno Haible  <bruno@clisp.org>
75239
75240         * lib/localcharset.c: Update from GNU gettext 0.14.2.
75241         * lib/config.charset: Update from GNU gettext 0.14.2.
75242
75243 2005-02-24  Bruno Haible  <bruno@clisp.org>
75244
75245         * lib/gettext.h: Update from GNU gettext 0.14.2.
75246
75247 2005-02-23  Simon Josefsson  <jas@extundo.com>
75248
75249         * m4/iconvme.m4: New file.
75250
75251 2005-02-23  Jim Meyering  <jim@meyering.net>
75252
75253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
75254         change.
75255         Thanks to Bruno Haible for catching it.
75256
75257 2005-02-22  Simon Josefsson  <jas@extundo.com>
75258
75259         * modules/iconvme: New file.
75260
75261         * MODULES.html.sh: Add iconvme.
75262
75263 2005-02-22  Simon Josefsson  <jas@extundo.com>
75264
75265         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
75266
75267 2005-02-22  Simon Josefsson  <jas@extundo.com>
75268
75269         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
75270
75271 2005-02-22  Jim Meyering  <jim@meyering.net>
75272
75273         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
75274         s/ifndef/ifdef/.
75275
75276 2005-02-20  Neil Conway  <neilc@samurai.com>
75277
75278         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
75279         returned by OSX/Darwin if the specified buffer is not large
75280         enough for the hostname.
75281
75282 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75283
75284         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
75285         pass it to _help, otherwise the latter coredumps trying to
75286         dereference state.root_argp.
75287
75288 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75289
75290         * modules/chdir-long (Depends-on): Add memrchr.
75291         * modules/memrchr (Files): Add lib/memrchr.h.
75292         (Include): "memrchr.h".
75293
75294 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
75297
75298 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
75299
75300         * lib/memrchr.h: New file.
75301         * lib/chdir-long.c: Include it.
75302         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
75303         Don't bother including stddef.h.
75304
75305 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75306
75307         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
75308         inclusion.
75309         Include <sys/types.h>, for dev_t.
75310         (ME_DUMMY, ME_REMOTE): Move from here....
75311         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
75312         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
75313         Dmitry V. Levin.
75314         Include mountlist.h first, to test the interface.
75315
75316 2005-01-29  Bruno Haible  <bruno@clisp.org>
75317
75318         * lib/progname.c (program_name): Initialize.
75319         Needed when linking statically on MacOS X.
75320
75321 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         Sync from coreutils.
75324         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
75325         (Depends-on): Add c-strtod.
75326         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
75327
75328 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75329
75330         Sync from coreutils.
75331         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
75332
75333         Remove files that are specific to coreutils.
75334         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
75335
75336 2005-01-28  Bruno Haible  <bruno@clisp.org>
75337
75338         * modules/javacomp: New file.
75339         * MODULES.html.sh (Java): Add javacomp.
75340
75341 2005-01-28  Bruno Haible  <bruno@clisp.org>
75342
75343         * m4/javacomp.m4: New file, from GNU gettext.
75344
75345 2005-01-28  Bruno Haible  <bruno@clisp.org>
75346
75347         * lib/javacomp.sh.in: New file, from GNU gettext.
75348         * lib/javacomp.h: New file, from GNU gettext.
75349         * lib/javacomp.c: New file, from GNU gettext.
75350
75351 2005-01-26  Simon Josefsson  <jas@extundo.com>
75352
75353         * lib/gai_strerror.c: Use GPL in header.
75354
75355 2005-01-26  Bruno Haible  <bruno@clisp.org>
75356
75357         * modules/javaexec: New file.
75358         * MODULES.html.sh (Java): Add javaexec.
75359
75360 2005-01-26  Bruno Haible  <bruno@clisp.org>
75361
75362         * m4/javaexec.m4: New file, from GNU gettext.
75363
75364 2005-01-26  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/javaexec.sh.in: New file, from GNU gettext.
75367         * lib/javaexec.h: New file, from GNU gettext.
75368         * lib/javaexec.c: New file, from GNU gettext.
75369
75370 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75371
75372         * modules/lchown (Depends-on): Remove lchown.h
75373
75374 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75375
75376         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
75377         must be defined if the header file was not found, in order
75378         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
75379
75380 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75381
75382         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
75383         initializers for struct pentry_state.
75384         (__argp_error): Check return value of __asprintf
75385         (__argp_failure): Translate error message
75386
75387         * lib/argp-parse.c: Removed braces around the expansion of N_()
75388
75389 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75390
75391         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
75392         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
75393         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
75394         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
75395         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
75396         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
75397         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
75398         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
75399         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
75400         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
75401         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
75402         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
75403         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
75404         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
75405         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
75406         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
75407         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
75408         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
75409         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
75410         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
75411         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
75412         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
75413         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
75414         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
75415         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
75416         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
75417         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
75418         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
75419         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
75420         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
75421         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
75422         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
75423         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
75424         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
75425         xstrtol.m4, xstrtoumax.m4, yesno.m4:
75426         Use an all-permissive copyright notice, recommended by RMS.
75427
75428 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
75429
75430         * modules/chdir-long (Depends-on): Remove mempcpy.
75431
75432 2005-01-21  Jim Meyering  <jim@meyering.net>
75433
75434         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
75435         same value as for Solaris 9.
75436
75437         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
75438         component length.  This included changing the parameter to be
75439         of type `char *' rather than `char const *'.
75440         * lib/chdir-long.h (chdir_long): Update prototype.
75441
75442         * lib/openat.c (fdopendir, fstatat): New functions.
75443         * lib/openat.h: Include headers required for use of DIR and struct
75444         stat.
75445         [AT_SYMLINK_NOFOLLOW]: Define.
75446         (fdopendir, fstatat): Add prototypes.
75447
75448 2005-01-21  Bruno Haible  <bruno@clisp.org>
75449
75450         * modules/classpath: New file.
75451         * MODULES.html.sh (Java): Add classpath.
75452
75453 2005-01-21  Bruno Haible  <bruno@clisp.org>
75454
75455         * lib/classpath.h: New file, from GNU gettext.
75456         * lib/classpath.c: New file, from GNU gettext.
75457
75458 2005-01-20  Simon Josefsson  <jas@extundo.com>
75459
75460         * modules/version-etc-fsf: New file.
75461
75462 2005-01-20  Simon Josefsson  <jas@extundo.com>
75463
75464         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
75465         * lib/version-etc.c: Remove version_etc_copyright.
75466         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
75467         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
75468
75469 2005-01-20  Simon Josefsson  <jas@extundo.com>
75470
75471         * lib/base64.h (isbase64): Add.
75472
75473         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
75474         using a unsigned prototype, don't inline.
75475         (base64_decode): Use it.
75476
75477 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75478
75479         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
75480         it.
75481
75482 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * lib/save-cwd.c (save_cwd): Remove code to support the case
75485         where fchdir is missing or flaky.
75486
75487 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
75490
75491 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75492
75493         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
75494         AC_LIBSOURCES now does this.
75495         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
75496         with new ullong_max module.
75497
75498 2005-01-19  Bruno Haible  <bruno@clisp.org>
75499
75500         * modules/sh-quote: New file.
75501         * MODULES.html.sh (Executing programs): Add sh-quote.
75502
75503 2005-01-19  Bruno Haible  <bruno@clisp.org>
75504
75505         * lib/sh-quote.h: New file, from GNU gettext.
75506         * lib/sh-quote.c: New file, from GNU gettext.
75507
75508 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75509
75510         Merge from coreutils.
75511         * m4/ullong_max.m4: New file.
75512         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
75513         (gl_MACROS): Assume localeconv exists.
75514
75515 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75516
75517         Merge changes from coreutils, as described below in several
75518         changelogs dated today.
75519
75520         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
75521         (O_DIRECTORY): Remove; not needed here, since "." must be
75522         a directory.  All uses removed.
75523         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
75524         universal on Suns, and we also need to test for IRIX.
75525         Revamp code to use 'if' rather than '#if'.
75526         Avoid unnecessary comparison of cwd->desc to 0.
75527
75528         * lib/utimens.c (futimens): Robustify the previous patch, by checking
75529         for known valid error numbers rather than observed invalid ones.
75530
75531 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
75532
75533         * modules/ullong_max: New file.
75534
75535         * modules/chdir-long, modules/openat: New files.
75536         * modules/save-cwd (Depends-on): Depend on chdir-long.
75537         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
75538
75539 2005-01-18  Jim Meyering  <jim@meyering.net>
75540
75541         Merge from coreutils.
75542         * m4/chdir-long.m4, m4/openat.m4: New files.
75543         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
75544         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
75545         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
75546         is sane and DOES follow symlinks.  Besides, testing 20 different
75547         systems found no broken chown implementations.
75548         Prompted by a change in rsync's copy of this macro.
75549         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
75550
75551         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
75552
75553         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
75554         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75555         NULL-means-set-to-current-time semantics.
75556         Remove temporary file immediately, rather than waiting
75557         for configure's at-exit trap code to do it.
75558
75559 2005-01-18  Jim Meyering  <jim@meyering.net>
75560
75561         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75562
75563         * lib/utimens.c (futimens): Account for the fact that futimes
75564         can also fail with errno == ENOSYS or errno == ENOENT.
75565         Patch from Dmitry V. Levin.
75566
75567         Change the name of the robust chdir function from chdir to chdir_long.
75568         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75569         (restore_cwd): Use chdir_long, not chdir.
75570         * lib/chdir-long.c: Renamed from chdir.c.
75571         * lib/chdir-long.h: Renamed from chdir.h.
75572         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75573         Hurd.
75574
75575 2005-01-18  Bruno Haible  <bruno@clisp.org>
75576
75577         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75578         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75579         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75580         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75581         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75582         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75583         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75584         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75585         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75586         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75587         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75588         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75589         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75590         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75591         Use an all-permissive copyright notice, recommended by RMS.
75592
75593 2005-01-18  Bob Proulx  <bob@proulx.com>
75594
75595         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75596         simplify offsetof() macro construct to avoid compile failure with
75597         native HP-UX 11.0 ANSI C compiler.
75598
75599 2005-01-17  Bruno Haible  <bruno@clisp.org>
75600
75601         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75602         redundant because stpncpy.m4 takes care of it.
75603
75604 2005-01-17  Bruno Haible  <bruno@clisp.org>
75605
75606         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75607
75608 2005-01-17  Bruno Haible  <bruno@clisp.org>
75609
75610         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75611         used.
75612
75613 2005-01-17  Bruno Haible  <bruno@clisp.org>
75614
75615         * lib/fwriteerror.h (fwriteerror): Change specification to include
75616         fclose.
75617         * lib/fwriteerror.c: Include <stdbool.h>.
75618         (fwriteerror): At the end, close the file stream. Record whether
75619         stdout was already closed.
75620
75621 2005-01-17  Bruno Haible  <bruno@clisp.org>
75622
75623         * lib/execute.c (environ): Declare if needed.
75624         * lib/pipe.c (environ): Likewise.
75625         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75626
75627 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75628
75629         * modules/argp: Depend on vsnprintf
75630
75631 2005-01-10  Jim Meyering  <jim@meyering.net>
75632
75633         * modules/closeout (Depends-on): Add atexit.
75634
75635 2005-01-06  Bruno Haible  <bruno@clisp.org>
75636
75637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75638
75639 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75640
75641         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75642         definitions to be after all include files, to avoid collisions.
75643         Problem reported by Bob Proulx.
75644
75645 2005-01-04  Jim Meyering  <jim@meyering.net>
75646
75647         Changes imported from coreutils.
75648         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75649         as the mkstemp template, use a temporary directory and an
75650         8.3-friendly template to avoid trouble on systems like DJGPP.
75651         Reported by Juan M. Guerrero via Stepan Kasal.
75652         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75653         close. Remove the temporary directory right away, rather than waiting
75654         for configure's at-exit trap code to do it.
75655         Suggestion from Stepan Kasal.
75656
75657 2005-01-01  Simon Josefsson  <jas@extundo.com>
75658
75659         * gnulib-tool: Print #include directives when --import'ing.
75660
75661 2004-12-28  Simon Josefsson  <jas@extundo.com>
75662
75663         * tests/test-base64.c: Include required header files.  Remove
75664         unused variables.
75665
75666 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75667
75668         * modules/error (Depends-on): Remove gettext.
75669
75670 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75671
75672         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75673         not needed.  This removes a dependency on the gettext module.
75674         [defined _LIBC]: Do not include <libintl.h>; not needed.
75675
75676 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75677
75678         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75679         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75680
75681 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75684         HAVE_DECL_STRTOLD.
75685
75686 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75687
75688         * modules/getdate (Depends-on): Remove alloca-opt.
75689
75690 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75693
75694 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75695
75696         * lib/argp-parse.c: Include <stddef.h>.
75697         (alignof, alignto): New macros.
75698         (parser_init): Don't assume that void * is aligned sufficiently
75699         for struct option.
75700
75701         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75702         need to extend the stack.
75703         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75704         large.
75705
75706 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75707
75708         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75709
75710 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75713         (2004-10-24) change.  Apparently this was a false alarm.
75714
75715         * modules/getdate: Depend on alloca-opt, not alloca.
75716
75717 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75718
75719         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75720         Remove now-obsolete comment about AIX.
75721         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75722         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75723         (YYMAXDEPTH): New macro.
75724
75725 2004-12-18  Simon Josefsson  <jas@extundo.com>
75726
75727         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75728
75729 2004-12-18  Bruno Haible  <bruno@clisp.org>
75730
75731         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75732
75733 2004-12-18  Bruno Haible  <bruno@clisp.org>
75734
75735         * lib/fatal-signal.c (fatal_signals): Make non-const.
75736         (init_fatal_signals): New function.
75737         (uninstall_handlers, install_handlers): Ignore signals that were set to
75738         SIG_IGN.
75739         (at_fatal_signal): Call init_fatal_signals.
75740         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75741         SIG_IGN.
75742         Reported by Paul Eggert.
75743
75744 2004-12-18  Bruno Haible  <bruno@clisp.org>
75745
75746         * doc/alloca.texi: New file.
75747         * doc/alloca-opt.texi: New file.
75748
75749 2004-12-17  Jim Meyering  <jim@meyering.net>
75750
75751         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75752         Otherwise, install-sh could exit with improper exit status when
75753         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75754
75755 2004-12-16  Simon Josefsson  <jas@extundo.com>
75756
75757         * tests/test-base64.c: Add license.
75758
75759 2004-12-15  Stepan Kasal  <address@hidden>
75760
75761         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75762
75763 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * modules/getcwd (Files): Add m4/d-ino.m4.
75766         Suggested by Mark D. Baushke.
75767
75768 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75769
75770         * lib/getdate.y (textint): New member "negative".
75771         (time_zone_hhmm): New function.
75772         Expect 14 shift-reduce conflicts, not 13.
75773         (o_colon_minutes): New rule.
75774         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75775         (yylex): Set the "negative" member of signed numbers.
75776
75777 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75778
75779         * doc/getdate.texi (Time of day items, Time zone items):
75780         Describe new formats +00:00, UTC+00:00.
75781
75782 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75783
75784         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75785         spurious "-l"s.  Problem reported by Stepan Kasal.
75786
75787 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75788
75789         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75790         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75791
75792 2004-12-04  Simon Josefsson  <jas@extundo.com>
75793
75794         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75795         Vandoorselaere <yoann@prelude-ids.org>.
75796
75797 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75798
75799         Changes imported from coreutils.
75800         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75801         exist.
75802         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75803
75804 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         Changes imported from coreutils.
75807         * lib/hard-locale.c: Assume <locale.h> exists.
75808         Include "strdup.h".
75809         (GLIBC_VERSION): New macro.
75810         (hard_locale): Assume setlocale exists.
75811         Rewrite to avoid #ifdef.
75812         Use strdup rather than malloc + strcpy.
75813         * lib/human.c: Assume <locale.h> exists.
75814         (human_readable): Assume localeconv exists.
75815
75816 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75817
75818         * modules/hard-locale (Depends-on): Add strdup.
75819
75820 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75821
75822         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75823         convert T2, not T.  (Imported from libc.)
75824
75825 2004-11-30  Simon Josefsson  <jas@extundo.com>
75826
75827         * modules/restrict (License): Change to LGPL.
75828
75829 2004-11-30  Simon Josefsson  <jas@extundo.com>
75830
75831         * m4/restrict.m4: Add copyright and copying conditions.
75832
75833 2004-11-30  Simon Josefsson  <jas@extundo.com>
75834
75835         * m4/base64.m4: New file.
75836
75837 2004-11-30  Simon Josefsson  <jas@extundo.com>
75838
75839         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75840         base64.
75841
75842         * tests/test-base64.c: New file.
75843
75844         * modules/base64: New file.
75845
75846 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75849         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75850
75851         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75852
75853 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75854
75855         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75856         (__getcwd.c): Don't restore errno; glibc doesn't.
75857         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75858         first, falling back to our code only if its results look suspicious.
75859         Ensure that the resulting buffer is only as large as necessary.
75860
75861         * lib/readutmp.c: Include readutmp.h first.
75862         Include <errno.h>, since readutmp.h no longer does that.
75863         * lib/readutmp.h: Don't include <errno.h>,
75864         <sys/param.h>, <time.h>; not needed to establish interface.
75865         (errno): Remove decl.
75866         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75867         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75868         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75869
75870 2004-11-28  Simon Josefsson  <jas@extundo.com>
75871
75872         * lib/base64.h, base64.c: New file.
75873
75874 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75875
75876         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75877
75878 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75881         (Depends-on): Remove pathmax, same.  Add mempcpy.
75882         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75883         (Makefile.am): Append getcwd.h to lib_SOURCES.
75884         (Include): Add getcwd.h.
75885         (Maintainer): Change from Jim Meyering to "all, glibc",
75886         since getdate now uses intended-for-glibc code.
75887         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75888         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75889
75890 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75893         HP's ANSI C compiler.
75894         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75895         Declaring int functions causes warnings on some modern systems and
75896         shouldn't be needed to compile on ancient ones.
75897         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75898         defined.
75899
75900         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75901         with the following changes.
75902         (__set_errno): Parenthesize properly.
75903         Include <stdbool.h>.
75904         (MIN, MAX, MATCHING_INO): New macros.
75905         (__getcwd): Define with prototype, not K&R form.
75906         Use heuristics to allocate default buffer on stack if possible.
75907         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75908         behavior, and to avoid the PATH_MAX limit when computing
75909         ../../../../...
75910         Use MATCHING_INO to compare inode number to file.
75911         Check for arithmetic overflow in size calculations.
75912         Fix bug in reallocation of dot array that caused getcwd to fail
75913         on directories nested deeper than 75.
75914         Be more careful about saving errno on error.
75915         Do not use realloc; use only free+malloc, as this is a bit
75916         more flexible and avoids a needless copy operation.
75917         Do not inspect st_dev and st_ino for symbolic links; POSIX
75918         doesn't specify the latter.
75919         Check for closedir errors.
75920         Avoid needless casts.
75921         Use "#ifdef weak_alias" around weak_alias, to be like other
75922         glibc code.
75923         The following changes to getcwd.c have effect only when used in
75924         gnulib; they have no effect inside glibc proper.
75925         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75926         as alloca isn't used.
75927         (alloca, __alloca): Likewise.
75928         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75929         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75930         unconditionally, as gnulib assumes C89 or better.
75931         Do not include <sys/param.h>.
75932         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75933         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75934         better.
75935         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75936         Include <dirent.h> in a way that is compatible with modern Autoconf.
75937         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75938         New macros, if not already defined.
75939         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75940         Use "_LIBC", not "defined _LIBC", for consistency.
75941         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75942         a mempcpy module.
75943         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75944         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75945         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75946         credit only to Jim Meyering and adjust the copyright dates.
75947         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75948         <stdlib.h>, <unistd.h>, "pathmax.h".
75949         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75950         (INITIAL_BUFFER_SIZE): Remove.
75951         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75952
75953 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75956         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75957         Use the _ONCE methods, for efficiency.
75958         Check for fcntl.h.  In test program, include <errno.h>
75959         and <fcntl.h> if available.  Remove old K&R cruft from
75960         test program.  Check for common errors in GNU/Linux,
75961         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75962         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75963         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75964         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75965         name accordingly.
75966         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75967         accommodate new getcwd.c.
75968         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75969         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75970         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75971         that's all we need now.
75972
75973 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75974
75975         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75976         argp-parse.c depends on getopt internals, that means we should
75977         always use our getopt, to be on the safe side.
75978         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75979         order not to spoil the result of an eventual previous invocation
75980         of gl_GETOPT_SUBSTITUTE.
75981
75982 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75983
75984         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75985         redefinition warnings. To avoid them, include the defines
75986         in `#if !defined __need_getopt ... #endif'. The only place
75987         where __getopt_argv_const is used is in definitions
75988         of getopt_long and getopt_long_only below, which are as well
75989         protected by `#ifndef __need_getopt'.
75990         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75991         __need_getopt after including <stdio.h> and <unistd.h> These
75992         headers might have defined it.
75993
75994 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75995
75996         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75997
75998 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76001         (futimens): New function, which uses futimes if available.
76002         (futimens, utimens): Support timespec==NULL, with same semantics
76003         as utime and utimens.
76004         * lib/utimens.h (futimens): New decl.
76005
76006 2004-11-23  Jim Meyering  <jim@meyering.net>
76007
76008         * lib/getopt_.h: Remove trailing blanks.
76009
76010 2004-11-23  Jim Meyering  <jim@meyering.net>
76011
76012         * lib/__fpending.c: Add comment.
76013
76014 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76015
76016         * modules/canonicalize (Depends-on): Add xreadlink.
76017         Problem reported by James Youngman.
76018
76019 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
76022         New macros.
76023         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
76024         optopt): Use them instead of invoking ## directly; otherwise, the
76025         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
76026
76027 2004-11-19  Bruno Haible  <bruno@clisp.org>
76028
76029         * lib/strtok_r.c: Move comments from here...
76030         * lib/strtok_r.h: ... to here.
76031
76032 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
76035         implementations that mishandle size_t overflow.
76036
76037 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76038
76039         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
76040         might fail.  Problem reported by Yoann Vandoorselaere.
76041         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
76042         implementations that mishandle size_t overflow.
76043
76044 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * modules/canon-host (Depends-on): Add strdup.
76047
76048 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
76051
76052 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76053
76054         * lib/canon-host.c: Include "strdup.h".
76055         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76056         Use strdup instead of malloc/strcpy to duplicate strings.
76057
76058         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76059         (human_space_before_unit): New constant.
76060         * lib/human.c (human_readable): Support it.
76061
76062         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76063         (xgetcwd): Set errno correctly when failing.
76064         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76065         the failure is actually due to a PATH_MAX problem.
76066
76067         Further getopt changes to make it more likely that glibc will
76068         buy the changes back.
76069         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76070         (getopt): Use it, so to preserve glibc semantic
76071         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76072         when compiling for libc.
76073         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76074         (getopt_long, getopt_long_only): Use it.
76075
76076         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76077         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76078         (getopt): Argv is now char * const *, as per standard.
76079         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76080         not char *__getopt_argv_const *.
76081         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76082         _getopt_long_only_r): Likewise.
76083         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76084         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76085         _getopt_long_r, _getopt_long_only_r): Likewise.
76086         * lib/getopt_.h (__getopt_argv_const): Remove.
76087         (getopt): Argv is now char * const *, as per standard.
76088
76089         * lib/getdate.y (tORDINAL): New token.
76090         (day, relunit): Allow it for relative times.
76091         (relative_time_table): Use tORDINAL for ordinals.
76092
76093 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76096         Document that "second" isn't allowed as an ordinal number.
76097
76098 2004-11-16  Jim Meyering  <jim@meyering.net>
76099
76100         * modules/closeout (Depends-on): Add fpending.
76101
76102 2004-11-15  Jim Meyering  <jim@meyering.net>
76103
76104         * lib/closeout.c: Include "__fpending.h" once again.
76105         Include <stdbool.h>.
76106         (close_stdout): Don't fail just because stdout was closed initially,
76107         since some programs don't write to stdout in the normal course of
76108         operation (other than --version and --help), and we don't want this
76109         function to make e.g. `touch file >&-' fail.
76110         But do fail if it was closed and someone has tried to write to it.
76111         E.g., `printf foo >&-' must fail.
76112
76113 2004-11-13  Jim Meyering  <jim@meyering.net>
76114
76115         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76116
76117 2004-11-12  Simon Josefsson  <jas@extundo.com>
76118
76119         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76120         small doc fix is still pending.
76121
76122 2004-11-11  Simon Josefsson  <jas@extundo.com>
76123
76124         * modules/strtok_r: New file.
76125
76126         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76127         strtok_r.
76128
76129 2004-11-11  Simon Josefsson  <jas@extundo.com>
76130
76131         * m4/strtok_r.m4: New file.
76132
76133         * m4/getopt.m4: Replace opterr.
76134
76135 2004-11-11  Simon Josefsson  <jas@extundo.com>
76136
76137         * lib/strtok_r.h, strtok_r.c: New file.
76138
76139 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
76142         of replacing opterr, getopt, etc.  This should handle the
76143         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
76144
76145 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
76146
76147         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
76148         we can stop lying to compilers about the constness of argv when we
76149         are compiled outside glibc.
76150         (getopt, getopt_long, getopt_long_only): Use it.
76151         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76152         _getopt_internal, getopt): Likewise.
76153         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76154         _getopt_long_only_r): Likewise.
76155         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76156         _getopt_long_r, _getopt_long_only_r): Likewise.
76157
76158         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
76159         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
76160         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
76161         the other external symbols.
76162         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
76163         declaration, since the above renaming now works around collisions.
76164
76165 2004-11-11  Jim Meyering  <jim@meyering.net>
76166
76167         * lib/linebreak.c: Remove trailing blanks.
76168         * lib/alloca_.h: Likewise.
76169         * lib/acosl.c: Likewise.
76170         * lib/euidaccess.c: Likewise.
76171         * lib/allocsa.h: Likewise.
76172
76173 2004-11-10  Simon Josefsson  <jas@extundo.com>
76174
76175         * m4/getaddrinfo.m4: New file.
76176
76177 2004-11-10  Simon Josefsson  <jas@extundo.com>
76178
76179         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
76180
76181 2004-11-10  Simon Josefsson  <jas@extundo.com>
76182
76183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76184         getaddrinfo.
76185
76186         * modules/getaddrinfo: New file.
76187
76188 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76189
76190         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
76191
76192 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76193
76194         * lib/mktime.c (SHR): New macro, which is a portable
76195         substitute for >> that should work even on Crays.
76196         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
76197         Problem reported by Mark D. Baushke in
76198         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
76199         * lib/getdate.y (SHR): Likewise.
76200         (tm_diff): Use it.
76201         * lib/strftime.c (SHR): Likewise.
76202         (tm_diff): Use it.
76203         * lib/quotearg.c (struct quoting_options): Use unsigned int for
76204         quote_these_too, so that right shifts are well defined.  All uses
76205         changed.
76206
76207 2004-11-10  Jim Meyering  <jim@meyering.net>
76208
76209         Ensure that no close failure goes unreported.
76210         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
76211         return early when it seems there's nothing to flush.
76212         Don't include __fpending.h.
76213
76214 2004-11-10  Jim Meyering  <jim@meyering.net>
76215
76216         * modules/closeout (Depends-on): Remove fpending.
76217
76218 2004-11-10  Jim Meyering  <jim@meyering.net>
76219
76220         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
76221
76222 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76223
76224         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
76225         gl_FUNC_STRFTIME.
76226         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
76227         and AC_REQUIRE when possible, to avoid duplicate checks.
76228         Check for <wchar.h>.
76229
76230 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
76233
76234 2004-11-09  Bruno Haible  <bruno@clisp.org>
76235
76236         * m4/sockpfaf.m4: New file.
76237
76238 2004-11-05  Bruno Haible  <bruno@clisp.org>
76239
76240         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
76241         Reported by Mark D. Baushke <mdb@cvshome.org>.
76242
76243 2004-11-04  Bruno Haible  <bruno@clisp.org>
76244
76245         2004-09-11  Bruno Haible  <bruno@clisp.org>
76246                 * allocsa.valgrind: New file.
76247         2004-02-06  Bruno Haible  <bruno@clisp.org>
76248                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
76249                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
76250                 Reported by Christopher Seip <chris.seip@hp.com>.
76251
76252 2004-11-04  Bruno Haible  <bruno@clisp.org>
76253
76254         * modules/allocsa (Files): Add lib/allocsa.valgrind.
76255         (Makefile.am): Distribute it.
76256
76257 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76258
76259         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
76260         with errno == ERANGE if the buffer is too small.
76261         Problem reported by Mark D. Baushke.
76262
76263 2004-11-03  Albert Chin  <china@thewrittenword.com>
76264             Paul Eggert  <eggert@cs.ucla.edu>
76265
76266         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
76267         equivalent, substitute $ac_type for equivalent type rather than
76268         blindly using uint32_t *always* which won't work if uint32_t is not
76269         available.  Define _UINT32_T to work around typedef of uint32_t if
76270         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
76271         2.5.1.
76272
76273 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         * m4/jm-macros.m4: Sync from coreutils.
76276         (gl_MACROS): Check for mbrlen, for pathchk.
76277         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
76278
76279 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * lib/xreadlink.c (MAXSIZE): New macro.
76282         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
76283         size does not exceed MAXSIZE.  Avoid cast.
76284         As suggested by Mark D. Baushke in
76285         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
76286         if readlink fails with buffer size just under MAXSIZE, try again
76287         with MAXSIZE.
76288
76289 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
76290
76291         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
76292
76293 2004-11-02  Derek R. Price  <derek@ximbiot.com>
76294         and  Paul Eggert  <eggert@cs.ucla.edu>
76295
76296         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
76297         (get_date): Overparenthesize to avoid GCC warning.
76298
76299 2004-11-02  Bruno Haible  <bruno@clisp.org>
76300
76301         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
76302         returns void.
76303
76304 2004-11-02  Bruno Haible  <bruno@clisp.org>
76305
76306         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
76307         function returns void.
76308
76309 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
76312         fflush_unlocked, flockfile, funlockfile, funlockfile,
76313         fputs_unlocked, putc_unlocked.
76314
76315 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
76316
76317         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76318         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
76319         already declared.
76320
76321 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         * modules/getdate (Files): Add doc/getdate.texi.
76324         (Depends-on): Add setenv, xalloc.
76325
76326 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * lib/getdate.y: Add support for TZ="foo" within a date string.
76329         Fix some bugs near time_t boundaries.  Reject dates with
76330         out-of-range components, e.g., "Sept 31".
76331         Include <stdlib.h>, "setenv.h", "xalloc.h".
76332         (ISDIGIT_LOCALE): Remove; unused.
76333         Note that the TZ and time functions used here are not reentrant.
76334         (mktime_ok, get_tz): New functions.
76335         (TZBUFSIZE): New constant.
76336         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
76337         This requires that we sometimes generate our own TZ="XXX..." setting.
76338
76339 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76340
76341         * doc/getdate.texi: New file, from coreutils with modifications for
76342         the new TZ parsing.
76343
76344 2004-10-27  Derek R. Price  <derek@ximbiot.com>
76345
76346         * lib/mktime.c (not_equal_tm): Remove redundant check.
76347
76348 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * modules/regex (lib_SOURCES): Add regex.c.
76351         Reported by James Youngman in
76352         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
76353
76354 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * lib/getdate.y: Use Bison 1.875 features, and some minor
76357         code cleanups.  This change does not affect semantics.
76358         Don't include <stdlib.h>; no longer needed.
76359         Don't include unlocked-io.h; only the "#if TEST" code uses
76360         stdio, and performance isn't crucial there.
76361         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
76362         Bison 1.875 features as described below.
76363         All uses of "PC." replaced by "pc->".
76364         (YYSTYPE): Add a forward declaration.
76365         (yylex, yyerror): Use full prototypes in forward decls.
76366         Use "%pure-parser" rather than obsolescent "%pure_parser".
76367         Use %parse-param and %lex-param instead of obsolescent
76368         YYPARSE_PARAM and YYLEX_PARAM.
76369         (meridian_table, month_and_day_table, time_units_table,
76370         relative_time_table, time_zone_table, military_table,
76371         lookup_zone, lookup_word, get_date):
76372         Use NULL instead of 0 where appropriate.
76373         (to_hour): Avoid abort (), to avoid a dependency on
76374         stdlib.h.
76375         (yyerror, yylex): Now accepts parser_control * arg.
76376         (main) [TEST]: Use '\0' rather than 0 for char.
76377
76378 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76379
76380         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
76381
76382 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
76383
76384         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
76385         It's now the caller's responsibility to handle the case where
76386         !HAVE_GETPAGESIZE && !defined getpagesize.
76387
76388         * lib/mktime.c (leapyear): Arg is long int, not int.
76389
76390 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
76391
76392         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
76393
76394 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
76397         missing.  Problem reported by James Youngman.
76398
76399 2004-10-16  Simon Josefsson  <jas@extundo.com>
76400
76401         * gnulib-tool: Fix comments.  Fix parse problem.
76402         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
76403
76404 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
76405
76406         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
76407         implementation of getopt_long.  Problem reported by Alexander Taler in:
76408         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
76409
76410 2004-10-15  Bruno Haible  <bruno@clisp.org>
76411
76412         * gnulib-tool: Untabify. Initialize supplied_libname.
76413         (func_usage): More homogenous output.
76414         (func_modules_transitive_closure, func_modules_to_filelist,
76415         func_emit_lib_Makefile_am): New functions.
76416         (func_import): New function, extracted from big case statement. Use
76417         func_get_license, func_modules_transitive_closure,
76418         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
76419         opt_lgpl. Don't use test -a, as it's not portable.
76420         (func_create_testdir): Use func_modules_transitive_closure,
76421         func_modules_to_filelist, func_emit_lib_Makefile_am.
76422
76423 2004-10-15  Bruno Haible  <bruno@clisp.org>
76424
76425         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
76426
76427 2004-10-15  Bruno Haible  <bruno@clisp.org>
76428
76429         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
76430         the portions belonging to each module.
76431         Suggested by Derek Robert Price <derek@ximbiot.com>.
76432
76433 2004-10-12  Simon Josefsson  <jas@extundo.com>
76434
76435         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
76436         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
76437         to real functions.
76438
76439 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76440
76441         * modules/vsnprintf: New file.
76442
76443 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76444
76445         * m4/vsnprintf.m4: New file.
76446
76447 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76448
76449         * lib/vsnprintf.h: New file.
76450         * lib/vsnprintf.c: New file.
76451
76452 2004-10-11  Bruno Haible  <bruno@clisp.org>
76453
76454         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
76455         vsnprintf.
76456
76457 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76458
76459         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
76460
76461 2004-10-07  Bruno Haible  <bruno@clisp.org>
76462
76463         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
76464         fits into the provided buffer.
76465
76466 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         * lib/diacrit.c, diacrit.h: Add GPL notice.
76469
76470         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
76471         notice.
76472         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
76473         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
76474         This avoids a potential constant-folding bug.
76475
76476 2004-10-05  Bruno Haible  <bruno@clisp.org>
76477
76478         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
76479         for the declaration of strsep.
76480
76481 2004-10-05  Bruno Haible  <bruno@clisp.org>
76482
76483         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
76484
76485 2004-10-04  Simon Josefsson  <jas@extundo.com>
76486
76487         * modules/memmem: New file.
76488         * tests/test-memmem.c: New file.
76489         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
76490
76491 2004-10-04  Simon Josefsson  <jas@extundo.com>
76492
76493         * m4/memmem.m4: New file.
76494
76495 2004-10-04  Simon Josefsson  <jas@extundo.com>
76496
76497         * lib/memmem.h: New file.
76498         * lib/memmem.c: New file, taken from glibc.
76499
76500 2004-10-04  Simon Josefsson  <jas@extundo.com>
76501
76502         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
76503         '#ifdef USE_UNLOCKED_IO'.
76504
76505 2004-10-04  Simon Josefsson  <jas@extundo.com>
76506
76507         * config/srclist.txt: Add memmem from glibc.
76508
76509 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76510
76511         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
76512
76513         * modules/argmatch, modules/argp, modules/closeout, modules/error,
76514         modules/exclude, modules/getdate, modules/getline,
76515         modules/getndelim2, modules/getpass, modules/getpass-gnu,
76516         modules/getusershell, modules/linebuffer, modules/md5,
76517         modules/mountlist, modules/posixtm, modules/readtokens,
76518         modules/readutmp, modules/regex, modules/sha1,
76519         modules/version-etc, modules/yesno:
76520         Remove dependency on unlocked-io.
76521
76522 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
76525
76526         * m4/unlocked-io.m4: Add copyright notice.
76527         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
76528
76529 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76530
76531         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
76532         * lib/xmalloc.c (xmemdup): Likewise.
76533         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
76534         XFREE): Remove these long-obsolescent macros.
76535         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
76536         * lib/xstrdup.c: Remove.
76537
76538         * lib/regex.c (re_comp): Cast gettext return value to char *,
76539         Problem reported by Martin Neitzel via Mark D. Baushke.
76540
76541 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
76542
76543         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
76544         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
76545         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
76546         regex.c, sha1.c, version-etc.c, yesno.c:
76547         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
76548         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
76549         the includer's responsibility.
76550
76551         Sync from coreutils.
76552
76553         * lib/modechange.c (mode_compile): Don't decrement a pointer that
76554         points to the start of a string, as the C Standard says the
76555         resulting behavior is undefined.
76556
76557         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76558         simple -> simple_backups, numbered_existing ->
76559         numbered_existing_backups, numbered -> numbered_backups
76560         to avoid shadowing problems.  All uses changed.
76561         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76562         * lib/backupfile.c (check_extension, numbered_backup):
76563         Rename locals to avoid shadowing 'basename'.
76564         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76565         once.
76566
76567         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76568         * lib/.cvsignore: Add getopt.h.
76569
76570 2004-10-04  Bruno Haible  <bruno@clisp.org>
76571
76572         * modules/README: New file.
76573         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76574         not a module.
76575
76576 2004-10-02  Jim Meyering  <jim@meyering.net>
76577
76578         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76579
76580 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76581
76582         * modules/strsep: New file.
76583
76584 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76585
76586         * m4/strsep.m4: New file.
76587
76588 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76589
76590         * lib/strsep.h: New file.
76591         * lib/strsep.c: New file.
76592
76593 2004-10-01  Simon Josefsson  <jas@extundo.com>
76594
76595         * lib/snprintf.c (snprintf): Handle size==0.
76596
76597 2004-10-01  Simon Josefsson  <jas@extundo.com>
76598             Bruno Haible  <bruno@clisp.org>
76599
76600         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76601         (snprintf): Declare 'args'.
76602
76603 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * lib/snprintf.c: Remove comments as to why each header is needed.
76606
76607 2004-10-01  Bruno Haible  <bruno@clisp.org>
76608
76609         * MODULES.html.sh: Add strsep.
76610
76611 2004-09-30  Simon Josefsson  <jas@extundo.com>
76612
76613         * modules/snprintf: New file.
76614
76615 2004-09-30  Simon Josefsson  <jas@extundo.com>
76616
76617         * m4/snprintf.m4: New file.
76618
76619 2004-09-30  Simon Josefsson  <jas@extundo.com>
76620
76621         * lib/snprintf.h, lib/snprintf.c: New files.
76622
76623 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76624
76625         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76626         (hol_entry_help): Never translate an empty string.
76627         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76628         * lib/argp.h (OPTION_NO_TRANS): New option.
76629
76630 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * modules/argp (Maintainer): Replace Simon Josefsson
76633         by Sergey Poznyakoff.
76634
76635 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76636
76637         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76638         changes merged back into glibc.
76639
76640 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76643
76644 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76645
76646         * lib/xvasprintf.c: Include xalloc.h.
76647         (xvasprintf): Use xalloc_die, not xmalloc_die.
76648
76649 2004-09-29  Bruno Haible  <bruno@clisp.org>
76650
76651         * modules/alloca-opt: New file, derived from modules/alloca.
76652         * modules/allocsa: Depend on alloca-opt instead of alloca.
76653         * modules/setenv: Likewise.
76654         * modules/vasnprintf: Likewise.
76655         * MODULES.html.sh: Add alloca-opt.
76656
76657 2004-09-28  Simon Josefsson  <jas@extundo.com>
76658
76659         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76660         LGPL, and to replace license template from GPL to LGPL.
76661
76662 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76663
76664         * modules/dummy: Change license to LGPL.
76665
76666 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76669
76670 2004-09-24  Simon Josefsson  <jas@extundo.com>
76671
76672         * modules/minmax (License): Change from GPL to LGPL.
76673
76674 2004-09-23  Simon Josefsson  <jas@extundo.com>
76675
76676         * gnulib-tool (--import): Typo.
76677
76678 2004-09-23  Simon Josefsson  <jas@extundo.com>
76679
76680         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76681
76682 2004-09-22  Bruno Haible  <bruno@clisp.org>
76683
76684         * modules/*: Add 'License' field.
76685         * gnulib-tool: Accept --extract-license option.
76686         (func_get_license): New function.
76687
76688 2004-09-21  Bruno Haible  <bruno@clisp.org>
76689
76690         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76691         Reported by Simon Josefsson.
76692
76693 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76694
76695         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76696         gl_AC_TYPE_LONG_LONG.
76697
76698 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76699
76700         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76701
76702 2004-09-18  Simon Josefsson  <jas@extundo.com>
76703         and  Paul Eggert  <eggert@cs.ucla.edu>
76704
76705         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76706         calls with autoreconf.  Define GL_LIB.
76707
76708 2004-09-14  Karl Berry  <karl@gnu.org>
76709
76710         * config/srclist.txt: unsync setenv.c, sigh.
76711
76712 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76713
76714         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76715         Problem reported by Bruno Haible in:
76716         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76717
76718 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         * config/srclist.txt: Comment out argp-pvh.c.
76721
76722 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76725         in case some system header has #define'd it.  Problem reported by
76726         Soeren D. Schulze in
76727         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76728
76729 2004-09-09  Karl Berry  <karl@gnu.org>
76730
76731         * regex.[ch]: delete from the root.  These were supposed to be
76732                 synced with emacs cvs, but this has not happened for about
76733                 a year, and anyway nothing else uses emacs regex.[ch].
76734                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76735                 lib/regex[.ch] is untouched.
76736
76737 2004-09-09  Bruno Haible  <bruno@clisp.org>
76738
76739         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76740
76741 2004-09-09  Bruno Haible  <bruno@clisp.org>
76742
76743         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76744         modifications.
76745         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76746
76747 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76748
76749         * modules/xvasprintf: New file.
76750         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76751
76752 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76753
76754         * lib/xvasprintf.h: New file.
76755         * lib/xvasprintf.c: New file.
76756         * lib/xasprintf.c: New file.
76757
76758 2004-09-08  Bruno Haible  <bruno@clisp.org>
76759
76760         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76761
76762 2004-09-08  Bruno Haible  <bruno@clisp.org>
76763
76764         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76765         length is > INT_MAX.
76766         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76767         more.
76768
76769 2004-09-08  Bruno Haible  <bruno@clisp.org>
76770
76771         * lib/stdint_.h: New file, taken from GNU clisp.
76772
76773 2004-09-08  Bruno Haible  <bruno@clisp.org>
76774             Oskar Liljeblad  <oskar@osk.mine.nu>
76775
76776         * modules/stdint: New file.
76777         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76778
76779 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76780
76781         Import from coreutils.
76782         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76783         strings on unbounded length.  alloca's performance benefits aren't
76784         that important here.
76785         (V_STRDUP): Remove.
76786         (parse_with_separator): New function, with most of the internals
76787         of the old parse_user_spec.  Allow user to omit both user and group,
76788         for compatibility with FreeBSD.
76789         Clone only the user name, not the entire spec.
76790         Do not set *uid, *gid unless entirely successful.
76791         Avoid memory leak in some failing cases.
76792         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76793         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76794         (parse_user_spec): Rewrite to use parse_with_separator.
76795
76796 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * modules/userspec: Don't depend on alloca.
76799
76800 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76803
76804 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76807         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76808         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76809
76810 2004-08-16  Simon Josefsson  <jas@extundo.com>
76811
76812         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76813         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76814         Add --dry-run for --import.
76815         Let user provided command line parameters override configure.ac
76816         settings.
76817
76818 2004-08-12  Simon Josefsson  <jas@extundo.com>
76819
76820         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76821         as discussed with Paul Eggert in threads rooted at
76822         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76823         and
76824         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76825         Before, the test was empty, and relied on ELIDE_CODE in source
76826         code.)
76827         (gl_PREREQ_GETOPT): New macro.
76828         (gl_GETOPT): Use them.
76829
76830 2004-08-12  Simon Josefsson  <jas@extundo.com>
76831
76832         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76833         * lib/getopt_.h: Renamed from getopt.h.
76834
76835 2004-08-12  Simon Josefsson  <jas@extundo.com>
76836
76837         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76838         Change default library name from libfoo to libgnu.
76839         Now, if you have a configure.ac that says:
76840                 gl_SOURCE_BASE(gl)
76841                 gl_M4_BASE(gl/m4)
76842                 gl_MODULES(error getopt etcetera)
76843                 gl_INIT
76844         you can import all you need by running:
76845                 ../gnulib/gnulib-tool --import
76846
76847         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76848         (Makefile.am): Rewrite, use logic from argz.
76849         (Include): Use <getopt.h> instead of "getopt.h".
76850
76851 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * modules/argp (Files): Add m4/unlocked-io.m4.
76854         (Depends-on): Add extensions.
76855
76856 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76859         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76860         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76861         Check for program_invocation_name, program_invocation_short_name,
76862         flockfile, funlockfile, features.h, _getopt_long_only_r.
76863
76864 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76865
76866         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76867         its complicated substitute.
76868         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76869         and program_invocation_name.
76870         (__argp_basename) [!_LIBC]: Remove; the only use was
76871         replaced by its body.
76872         (__argp_short_program_name): Change condition from
76873         !defined __argp_short_program_name to
76874         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76875         to match argp-namefrob.h.
76876         (__argp_failure): Don't assume strerror_r returns char *.
76877         * lib/argp-parse.c (N_): Define unconditionally.
76878         (argp_default_options): Fill out initializers with 0 to avoid
76879         gcc warnings.
76880
76881 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76884         getopt1.c.
76885
76886 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         Merge from coreutils.
76889
76890         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76891
76892         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76893         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76894
76895 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         Merge from coreutils.
76898
76899         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76900         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76901         for Reliant Unix 5.43.
76902
76903         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76904         (union fooround): Use uintmax_t, not long int.
76905         The rest is a merge from libc:
76906         [defined _LIBC]: Include <shlib-compat.h>.
76907         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76908
76909         * lib/settime.c (settime): Recode to avoid warning with
76910         Sun Forte C 6U2.
76911
76912         * lib/strverscmp.c: Convert to UTF-8.
76913
76914 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76917         m4/uintmax_t.m4.
76918
76919 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * modules/xalloc-die: New file.
76922         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76923
76924         * modules/md5 (Files): Add m4/uint32_t.m4.
76925         * modules/sha1: Renamed from modules/sha.
76926         (Files):
76927         Rename lib/sha.h to lib/sha1.h.
76928         Rename lib/sha.c to lib/sha1.c.
76929         Rename m4/sha.m4 to m4/sha1.m4.
76930         (lib_SOURCES): Likewise.
76931         (configure.ac): Rename gl_SHA to gl_SHA1.
76932         (Include): sha.h -> sha1.h.
76933
76934 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76937         * m4/sha1.m4: Renamed from sha.m4.
76938         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76939
76940 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76941
76942         * lib/obstack.h (obstack_empty_p):
76943         Don't assume that chunk->contents is suitably aligned.
76944         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76945         Likewise. Problem reported by Benno in
76946         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76947
76948         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76949         readable.  This could be improved further but it'd take some work.
76950
76951 2004-08-08  Simon Josefsson  <jas@extundo.com>
76952
76953         * modules/xgethostname (Depends-on): Remove exit and error (not
76954         used).
76955
76956         * modules/getpass-gnu: Add getpass.h.
76957         (Depends-on): Add stdbool.
76958         * modules/getpass: Add getpass.h.
76959
76960 2004-08-08  Simon Josefsson  <jas@extundo.com>
76961
76962         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76963         Check getpass declaration.
76964
76965 2004-08-08  Simon Josefsson  <jas@extundo.com>
76966
76967         * lib/xgethostname.c: Don't include error.h (not used).
76968
76969         * lib/getpass.h: Add.
76970         * lib/getpass.c: Include getpass.h first.
76971
76972 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76973
76974         * lib/xalloc-die.c: New file.
76975         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76976         All uses removed.
76977         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76978         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76979         xalloc-die.c.
76980         (_, N_, xalloc_die): Move to xalloc-die.c.
76981         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76982         so that we needn't mess with xalloc_msg_memory_exhausted.
76983
76984         * lib/sha1.h: Renamed from sha.h.
76985         (SHA1_H): Renamed from _SHA_H.
76986         (sha1_ctx): Renamed from sha_ctx.
76987         (sha1_init_ctx): Renamed from sha_init_ctx.
76988         (sha1_process_block): Renamed from sha_process_block.
76989         (sha1_process_bytes): Renamed from sha_process_bytes.
76990         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76991         (sha1_read_ctx): Renamed from sha_read_ctx.
76992         (sha1_stream): Renamed from sha_stream.
76993         (sha1_buffer): Renamed from sha_buffer.
76994         * lib/sha1.c: Likewise; renamed from sha.c.
76995         Do not include <sys/types.h>.
76996         Include <stddef.h> rather than <stdlib.h>.
76997
76998 2004-08-08  Bruno Haible  <bruno@clisp.org>
76999
77000         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77001         FILESYSTEM_PREFIX_LEN.
77002         * lib/progreloc.c: Likewise.
77003         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77004
77005 2004-08-06  Simon Josefsson  <jas@extundo.com>
77006
77007         * modules/progname (Depends-on): Don't depend on stdbool.
77008
77009 2004-08-06  Simon Josefsson  <jas@extundo.com>
77010
77011         * modules/getsubopt: New file.
77012         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77013         getsubopt.
77014
77015 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77016
77017         More merge from coreutils.
77018
77019         * m4/utimens.m4, m4/utimecmp.m4: New files.
77020         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77021         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
77022         prereq.m4, sha.m4: Import changes from coreutils.
77023
77024 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77025
77026         More merge from coreutils.
77027         * modules/raise, modules/readtokens0, modules/utimens:
77028         * modules/utimecmp, module/xnanosleep: New files.
77029         * modules/strftime: Add lib/strftime.h.
77030         Change include from <time.h> to "strftime.h".
77031         * modules/yesno: Add lib/yesno.h.
77032         * modules/backupfile: Remove lib/addext.c.
77033         * modules/euidaccess: Add stat-macros.h.
77034         * modules/canonicalize, modules/euidaccess,
77035         modules/filemode, modules/lchown, modules/makepath,
77036         modules/rmdir, modules/stat: Likewise.
77037
77038 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         Merge from tar.
77041         * lib/argp-help.c (make_hol, hol_append): Don't assume that
77042         SIZE_MAX is a valid preprocessor constant.
77043         (__argp_basename): Change from "#ifndef _LIBC"
77044         to "#ifndef __argp_short_program_name", so that
77045         we don't compile these functions for tar.
77046
77047         More merges from coreutils.
77048         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
77049         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
77050         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
77051         * lib/addext.c: Remove; no longer needed.
77052         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77053         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77054         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77055         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77056         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77057         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77058         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77059         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77060         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77061         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77062         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77063         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77064         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77065         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77066         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77067         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77068         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77069         Import changes from coreutils.
77070
77071 2004-08-05  Simon Josefsson  <jas@extundo.com>
77072
77073         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77074
77075 2004-08-05  Simon Josefsson  <jas@extundo.com>
77076
77077         * m4/getsubopt.m4: New file.
77078
77079 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77080
77081         Merge from coreutils.
77082
77083         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77084         * m4/getcwd-path-max.m4: New files.
77085
77086         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77087         FILESYSTEM_PREFIX_LEN ->
77088         FILE_SYSTEM_PREFIX_LEN.
77089         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77090         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77091         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77092         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77093
77094         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77095         prerequisite modules now handle the DOS stuff.
77096         Don't check for unistd.h.
77097
77098 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         Merge from coreutils.
77101
77102         * lib/.gdb-history: Remove; this doesn't belong here.
77103
77104         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77105         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77106         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77107         * lib/getcwd.c: New files.
77108
77109         * lib/dirname.h: Include <stdbool.h>.
77110         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77111         for consistency with POSIX terminology.  All uses changed.
77112         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77113         (strip_trailing_slashes): Use bool for booleans.
77114         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77115
77116         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77117         sometimes returns a positive errno value even when it succeeds.
77118         (print_errno_message) [!LIBC]: Fall back on strerror if
77119         __strerror_r fails.
77120
77121         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77122         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
77123         (longest_relative_suffix): New function.
77124         (path_concat): Use it.  Assume first argument is not NULL.
77125         Port to DOS.  Omit redundant separators.
77126         Report an error instead of returning NULL.
77127         Use mempcpy instead of memcpy.
77128         (xpath_concat): Remove: not declared or used.
77129
77130         * lib/same.h: Include <stdbool.h>
77131         (same_name): Return bool, not int.
77132         * lib/same.c (same_name): Likewise.
77133         (errno): Don't declare; we assume C89 or better now.
77134
77135         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
77136         if not already defined.
77137
77138         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
77139         * lib/dup-safer.c (errno): Likewise.
77140
77141 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         Merge from coreutils.
77144         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
77145         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
77146         * modules/path-concat: Don't depend on strdup.
77147
77148 2004-08-03  Simon Josefsson  <jas@extundo.com>
77149
77150         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
77151         * lib/progname.h: Don't include stdbool.h.
77152
77153 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77154
77155         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
77156         * MODULES.html.sh (func_all_modules): Remove fatal.
77157
77158 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77159
77160         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
77161
77162 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
77163
77164         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
77165         working.
77166
77167 2004-08-02  Simon Josefsson  <jas@extundo.com>
77168
77169         * lib/getsubopt.h: New file, with comments from Bruno Haible.
77170         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
77171         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
77172
77173 2004-08-01  Simon Josefsson  <jas@extundo.com>
77174
77175         * lib/xgetdomainname.c: Include stdlib.h, for free().
77176
77177 2004-07-19  Bruno Haible  <bruno@clisp.org>
77178
77179         * MODULES.html.sh (func_all_modules): Add dummy.
77180
77181 2004-07-16  Simon Josefsson  <jas@extundo.com>
77182
77183         * modules/dummy: New file.
77184
77185 2004-07-16  Simon Josefsson  <jas@extundo.com>
77186
77187         * lib/dummy.c: New file.
77188
77189 2004-07-16  Bruno Haible  <bruno@clisp.org>
77190
77191         * lib/backupfile.h: Add extern "C" for C++.
77192         * lib/closeout.h: Likewise.
77193         * lib/copy-file.h: Likewise.
77194         * lib/findprog.h: Likewise.
77195         * lib/full-write.h: Likewise.
77196         * lib/pathname.h: Likewise.
77197         * lib/progname.h: Likewise.
77198         * lib/stpcpy.h: Likewise.
77199         * lib/stpncpy.h: Likewise.
77200         * lib/strcase.h: Likewise.
77201         * lib/strstr.h: Likewise.
77202         * lib/xalloc.h: Likewise.
77203
77204         * lib/mbswidth.h: Add extern "C" for C++.
77205         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
77206
77207 2004-07-13  Robert Millan  <robertmh@gnu.org>
77208
77209         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
77210
77211 2004-07-09  Simon Josefsson  <jas@extundo.com>
77212
77213         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
77214         failed without this.)
77215
77216 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * modules/chown (Files): Add lib/fchown-stub.c, since
77219         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
77220
77221 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         * lib/fchown-stub.c: New file.
77224
77225 2004-06-24  Jim Meyering  <jim@meyering.net>
77226
77227         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
77228
77229 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * modules/argz: Omit "#include".
77232
77233         * MODULES.html.sh (func_all_modules): Add calloc, to match
77234         2004-06-01 addition of calloc module.
77235
77236 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77237
77238         * m4/argz.m4: New file, which is autoupdated from libtool.
77239
77240 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77241
77242         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
77243         libtool.
77244
77245 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77246
77247         * config/srclist-update: Don't insist on "USA." before the
77248         close-comment, as libtool omits the period and puts the */ on a
77249         separate line.
77250         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
77251         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
77252
77253 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
77254
77255         * modules/argz: New file.
77256         * MODULES.html.sh (func_all_modules): Add argz.
77257
77258 2004-06-12  Jim Meyering  <jim@meyering.net>
77259         and  Paul Eggert  <eggert@cs.ucla.edu>
77260
77261         * modules/hash (Files): Add lib/xalloc.h.
77262         * modules/pipe (Depends-on): Add wait-process.
77263         * modules/stat (Depends-on): Add xalloc.
77264         * modules/userspec (Files): Add lib/userspec.h.
77265         * modules/xstrto
77266
77267         Upgrade from gettext-0.13.
77268         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
77269         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
77270         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
77271
77272 2004-06-10  Jim Meyering  <jim@meyering.net>
77273
77274         * lib/calloc.c: New file.
77275
77276 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
77277
77278         * lib/getdate.y (yylex): Allow space between sign and number.
77279         Problem reported by Dan Jacobson.
77280
77281 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77282
77283         Merge from coreutils CVS.
77284
77285         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
77286         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
77287         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
77288         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
77289         xstrtol.m4: Fix copyright date and/or serial number.
77290
77291         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
77292         See if we need an fchown replacement.
77293         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
77294         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
77295         and use the replacement function if we detect either defect.
77296
77297         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
77298         gl_UTIMECMP.
77299
77300 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
77301         and  Jim Meyering  <jim@meyering.net>
77302
77303         Merge from coreutils CVS.
77304
77305         * lib/stat-macros.h: New file, with contents from file-type.h
77306         and coreutils' system.h.
77307         * lib/file-type.c: Include "stat-macros.h".
77308         * lib/file-type.h (file_type): Move all macro definitions to new file,
77309         stat-macros.h.
77310
77311         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
77312         Wrap old code with this conditional.
77313         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
77314         function that does not dereference symlinks.
77315         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
77316
77317         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
77318         dependency problems.
77319         (xreadlink): Accept new arg SIZE, for efficiency.
77320         All decls and uses changed.
77321         * lib/xreadlink.h: Include <stddef.h>, for size_t.
77322
77323         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
77324         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
77325
77326         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
77327         sysexits.h.
77328
77329 2004-06-01  Jim Meyering  <jim@meyering.net>
77330
77331         * m4/calloc.m4: New file.
77332
77333 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
77336         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
77337         Also, fix a typo in a diagnostic.
77338
77339 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77340
77341         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
77342         or AC_FUNC_REALLOC.
77343
77344 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
77345
77346         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
77347         macros to be defined.
77348         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
77349         the allocator returns NULL because the requested size is zero.
77350
77351 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
77354         var.  Add comment explaining why libc still defines it.  This
77355         merges the following patch from glibc:
77356         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
77357
77358 2004-05-20  Andreas Schwab  <schwab@suse.de>
77359
77360         * m4/free.m4: Replace free if it not known to work, not the other
77361         way round.
77362
77363 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
77366         present in glibc since revision 1.1 of this file.
77367         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
77368         obstack_alignment_mask, obstack_alloc, obstack_base,
77369         obstack_blank, obstack_blank_fast, obstack_chunk_size,
77370         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
77371         obstack_grow0, obstack_init, obstack_int_grow,
77372         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
77373         obstack_next_free, obstack_object_size, obstack_ptr_grow,
77374         obstack_ptr_grow_fast, obstack_room): Remove declarations of
77375         nonexistent functions.
77376
77377 2004-05-18  Karl Berry  <karl@gnu.org>
77378
77379         * config/srclist.txt: break link for vasnprintf.c.
77380
77381 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         Port obstack to the AS/400, where pointers are 16 bytes wide and
77384         you cannot cast an integer to a valid pointer.  This patch is
77385         currently waiting to be integrated into glibc; see
77386         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
77387
77388         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
77389         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
77390         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
77391         (struct obstack): temp member is now a union of a pointer and
77392         an integer, instead of an integer.  All integer uses changed.
77393         This does not affect the physical layout of struct obstack,
77394         except on hosts (like the AS/400) where the size or alignment of
77395         void * is greater than that of ptrdiff_t.
77396         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
77397         __STDC__)]: Store temporary in pointer member of union, not
77398         integer member.
77399         * lib/obstack.c: Include <stddef.h>, for offsetof.
77400         (struct fooalign): Remove; it doesn't need a name.
77401         (union fooround): Change double to long double, and add void *.
77402         (DEFAULT_ALIGNMENT): Use offsetof to compute.
77403         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
77404         not a macro.  Hence the values are always int; so remove all
77405         casts-to-int in uses.
77406
77407 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
77410         we can get this patch merged into glibc.
77411
77412 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77413             Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * m4/argp: Depend on alloca.
77416
77417 2004-05-17  Derek R. Price  <derek@ximbiot.com>
77418             Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
77421         freecoding.
77422
77423 2004-05-17  Bruno Haible  <bruno@clisp.org>
77424
77425         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
77426         precision that consists of a '.' followed by an empty digit string.
77427         Patch by Tor Lillqvist <tml@iki.fi>.
77428
77429 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
77432         for backward compatibility with older code.  We need our own
77433         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
77434         it under some other name, and our alloca.h will define it.
77435
77436 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
77437             Derek Price  <derek@ximbiot.com>
77438
77439         * lib/alloca.c: Include <alloca.h>, to get our interface.
77440         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
77441         include <alloca.h> first.  Use C89 prototype for alloca; this
77442         requires including <stddef.h> for size_t.  Use extern "C" if C++.
77443         Use #elif for simplicity, since we can assume C89 now.
77444         Don't try to source the system alloca.h since it will not be found
77445         and to prevent recursively including its replacement.
77446         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
77447         * lib/regex.c: Likewise.
77448
77449 2004-05-16  Derek Price  <derek@ximbiot.com>
77450             Paul Eggert  <eggert@cs.ucla.edu>
77451
77452         getline cleanup.  This changes the getndelim2 API: both order of
77453         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
77454         no delimiter).
77455
77456         * lib/getline.c: Don't include stddef.h or stdio.h, since our
77457         interface does that.
77458         (getline): Always use getdelim, so that we don't have two
77459         copies of this code.
77460         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
77461         if available.
77462         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
77463         (GETNDELIM2_MAXIMUM): New macro.
77464         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
77465         instead of the old practice of delim2==0.  All callers changed.
77466         Return -1 on overflow, instead of returning junk.
77467         Do not set *linesize unless allocation succeeds.
77468         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
77469         that we include sys/types.h.
77470         * lib/getnline.h: Likewise.
77471         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
77472         (getndelim2): Reorder arguments.
77473         * lib/getnline.c (getnline, getndelim):
77474         Don't discard the NMAX argument.
77475         (getnline): Invoke getndelim, to avoid code duplication.
77476         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
77477         of (size_t) -1 by callers of the getnline family.
77478
77479 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77480
77481         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
77482         Check for gettimeofday.
77483         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
77484         Check for settimeofday, stime.
77485
77486 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77487
77488         * lib/nanosleep.c (suspended): Change its type from int to
77489         sig_atomic_t volatile.
77490         (first_call): Make it private to rpl_nanosleep, and have it
77491         be zero initially as that's a bit faster.
77492         (my_usleep): Round up fractional times instead of truncating them,
77493         as this is the usual meaning for 'sleep'.
77494
77495         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
77496         doesn't work.
77497         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
77498         (ENOSYS): Define if not defined.
77499         (settime): Fall back on stime if it exists and settimeofday fails.
77500         But don't bother with fallbacks if a method fails with errno == EPERM.
77501
77502 2004-05-11  Jim Meyering  <jim@meyering.net>
77503
77504         Prior to this change, the save_cwd caller required read access to the
77505         current directory on most systems (ones with the fchdir function).
77506
77507         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
77508         fails, try write-only, and finally, resort to using xgetcwd.
77509
77510 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77511
77512         * lib/obstack.c, obstack.h: Import changes from libc.
77513
77514 2004-04-28  Bruno Haible  <bruno@clisp.org>
77515
77516         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
77517         also implicitly appends .exe to executables.
77518         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
77519         accepts Windows pathnames.
77520         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77521         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77522         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
77523         Treat Cygwin like Windows, since it now accepts Windows pathnames.
77524         Reported by Derek Robert Price <derek@ximbiot.com>.
77525
77526 2004-04-21  Karl Berry  <karl@gnu.org>
77527
77528         * config/srclist.txt (localcharset.c): break sync.
77529
77530 2004-04-20  Paul Eggert  <eggert@twinsun.com>
77531
77532         * m4/host-os.m4: Add a copyright notice.
77533
77534 2004-04-20  Jim Meyering  <jim@meyering.net>
77535
77536         Change UTILS_ to gl_ in AC_DEFINE'd names.
77537         Change utils_- and jm_-prefixed variables, too.
77538         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
77539         UTILS_FUNC_MKDIR_TRAILING_SLASH.
77540         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
77541
77542         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
77543         Don't emit trailing blanks.
77544         Also rename jm_-prefixed variables to have gl_ prefix.
77545
77546         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
77547         Also rename jm_-prefixed variables to have gl_ prefix.
77548
77549         * m4/jm-macros.m4: Reflect the renamings.
77550         * m4/prereq.m4: Likewise.
77551
77552 2004-04-20  Jim Meyering  <jim@meyering.net>
77553
77554         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77555         memory.
77556
77557 2004-04-20  Jim Meyering  <jim@meyering.net>
77558             Bruno Haible  <bruno@clisp.org>
77559
77560         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77561         memory when realloc fails.
77562
77563 2004-04-19  Jim Meyering  <jim@meyering.net>
77564
77565         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77566         now that readutmp.c may call `free (0)'.
77567
77568 2004-04-19  Bruno Haible  <bruno@clisp.org>
77569
77570         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77571         * m4/inttypes_h.m4: Likewise.
77572         * m4/stdint_h.m4: Likewise.
77573         * m4/intmax_t.m4: Likewise.
77574         * m4/uintmax_t.m4: Likewise.
77575
77576 2004-04-18  Jim Meyering  <jim@meyering.net>
77577
77578         * m4/prereq.m4: Don't forbid jm_ prefix.
77579
77580         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77581         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77582         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77583         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77584         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77585         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77586         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77587         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77588         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77589         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77590         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77591         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77592         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77593         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77594         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77595         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77596         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77597         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77598         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77599
77600 2004-04-18  Jim Meyering  <jim@meyering.net>
77601
77602         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77603         failure, don't leak memory and do call END_UTMP_ENT.
77604
77605 2004-04-16  Jim Meyering  <jim@meyering.net>
77606
77607         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77608         coreutils' stat program.
77609         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77610
77611 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77612
77613         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77614         C89.
77615         (CHAR_BIT): Remove, since we assume C89.
77616         Include <stdint.h> if available, as per current Autoconf CVS advice.
77617
77618 2004-03-31  Jim Meyering  <jim@meyering.net>
77619
77620         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77621         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77622         * m4/xalloc.m4: Likewise.
77623
77624 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77625
77626         Merge from coreutils.
77627
77628         * m4/inttostr.m4: New file.
77629         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77630         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77631         Require gl_CLOCK_TIME.
77632         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77633
77634 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77635
77636         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77637         not bool, to be more consistent with Unix conventions.
77638         Suggested by Bruno Haible.
77639
77640         Merge from coreutils.
77641
77642         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77643         * lib/umaxtostr.c: New files.
77644
77645         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77646         the usual <time.h> dance.
77647         (get_date): Change signature to support fractional time stamps.
77648         All callers changed.
77649         * lib/getdate.y: Include "getdate.h" first, as we can now
77650         assume C89 and don't need to worry about 'const'.
77651         Similarly, include "unlocked-io.h" near start, not in middle.
77652         Include <limits.h>.
77653         (textint.value): Use long int rather than int.
77654         (textint.digits): Use size_t rather than int.
77655         (BILLION, LOG10_BILLION): New constants.
77656         (parser_control): New member rel_ns.  Members day_ordinal,
77657         time_zone, month, day, hour, minutes, rel_year, rel_month,
77658         rel_day, rel_hour, rel_minutes, rel_seconds
77659         are now long int, not int.  Member seconds is now struct timespec,
77660         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77661         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77662         not int.
77663         (%union.intval): Now long int, not int.
77664         New member timespec.
77665         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77666         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77667         (spec): Now is a timespec or an item list.
77668         (timespec, items): New nonterminals.
77669         (time, rel, relunit, number, get_date):
77670         Add support for fractional seconds.
77671         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77672         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77673         (to_hour): First arg is now long int, not int.
77674         (to_year): Returns long int, not int.
77675         Don't treat year -70 like 70.
77676         (tm_diff): Returns long int, not int.
77677         (lookup_word): Use bool instead of int when appropriate.
77678         (yylex): Use size_t for count, not int.
77679         Detect overflow when parsing large integer constants.
77680         Add support for fractions.
77681         (get_date): Make pointers 'const' if possible.
77682         Use more-portable code to detect integer overflow.
77683         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77684         Don't use ctime; it's not reliable if the year has >4 digits.
77685
77686         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77687         This is for compatibility with BSD.
77688
77689         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77690         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77691         From coreutils' system.h.
77692
77693         * lib/userspec.c: Don't include "posixver.h".
77694         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77695         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77696         compatible extension.  Simplify code by removing a boolean int
77697         that was always nonzero if a string was nonnull.
77698
77699 2004-03-30  Jim Meyering  <jim@meyering.net>
77700
77701         Merge from coreutils.
77702
77703         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77704         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77705         on some systems one must include <grp.h> before it.
77706         Reported by Christian Krackowizer.
77707
77708 2004-03-30  Jim Meyering  <jim@meyering.net>
77709
77710         Merge from coreutils.
77711
77712         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77713
77714         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77715         an empty input stream.
77716
77717         * lib/readtokens.c: Include <stdbool.h>.
77718         (readtoken): Use `size_t' rather than int/long.
77719         All callers adjusted.
77720         Use `bool' rather than `int' where appropriate.
77721         Use memset rather than an explicit loop.
77722         Use x2nrealloc rather than xrealloc.
77723         Allow the use of `\0' as a delimiter.
77724         (readtokens): Likewise.
77725         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77726
77727 2004-03-30  Jim Meyering  <jim@meyering.net>
77728
77729         * m4/realloc.m4: Remove file, since now it does no more than
77730         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77731         the `configure.ac' section of module/realloc.
77732         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77733
77734 2004-03-30  Bruno Haible  <bruno@clisp.org>
77735
77736         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77737         nonnull.
77738
77739 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77740
77741         Merge changes to getloadavg.c from coreutils and Emacs.
77742
77743         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77744         Define to an expression, not to the empty string.
77745         Include cloexec.h and xalloc.h.
77746         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77747         Use set_cloexec_flag rather than rolling our own.
77748         * lib/cloexec.c, lib/cloexec.h: New files.
77749
77750 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77751
77752         * m4/cloexec.m4: New file.
77753
77754 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77755
77756         * lib/getopt.h: Sync with libc CVS.
77757
77758 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77759             Bruno Haible  <bruno@clisp.org>
77760
77761         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77762         mbswidth.
77763
77764 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77765             Bruno Haible  <bruno@clisp.org>
77766
77767         * lib/mbswidth.h: Include <wchar.h> only if
77768         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77769         <wchar.h>.
77770         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77771
77772 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77773
77774         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77775         Sync with libc CVS.
77776         * lib/getopt_int.h: New file, also synced from libc.
77777
77778 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77779
77780         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77781         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77782         Bring back getopt.c, getopt.h, getopt1.c.
77783
77784 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77785
77786         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77787         All uses changed.  Check for sa_sigaction member; this fixes
77788         a bug first reported by Jason Andrade in
77789         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77790
77791 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77792
77793         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77794         '#if' expressions.  Unlike the code it replaces, it does not
77795         depend on (defined _SC_PAGESIZE).  However, it does depend on
77796         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77797         first reported by Jason Andrade in
77798         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77799
77800 2004-02-25  Simon Josefsson  <jas@extundo.com>
77801
77802         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77803
77804 2004-02-25  Simon Josefsson  <jas@extundo.com>
77805
77806         * lib/strdup.h: New file.
77807         * lib/strdup.c: Include it.
77808         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77809         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77810
77811 2004-02-23  Karl Berry  <karl@gnu.org>
77812
77813         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77814         (from fencepost.gnu.org:/gd/gnuorg).
77815
77816 2004-02-23  Karl Berry  <karl@gnu.org>
77817
77818         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77819         * config/srclist.txt: add maintain/standards documents.
77820
77821 2004-02-18  Bruno Haible  <bruno@clisp.org>
77822
77823         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77824         Reported by Derek Robert Price <derek@ximbiot.com>.
77825
77826 2004-02-16  Karl Berry  <karl@gnu.org>
77827
77828         * config/mkinstalldirs, install-sh: update from automake.
77829
77830 2004-02-06  Karl Berry  <karl@gnu.org>
77831
77832         * m4/po.m4: update from gettext 0.14.1.
77833
77834 2004-02-06  Karl Berry  <karl@gnu.org>
77835
77836         * lib/config.charset: update from gettext 0.14.1.
77837
77838 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77839
77840         Add comments and code, prompted by suggestions from Bruno Haible
77841         for sh-quote.
77842         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77843         describing the enum quoting_style values.
77844         * lib/quotearg.c (quotearg_alloc): New function.
77845         (quotearg_buffer_restyled): Treat lone { and } as special.
77846         Treat = as special.  Work around bug with older shells
77847         that "see" a '\' that is really the 2nd byte of a multibyte char.
77848         Quote empty string with shell_quoting_style.
77849
77850 2004-02-03  Bruno Haible  <bruno@clisp.org>
77851
77852         * m4/pipe.m4: New file, from GNU gettext.
77853
77854 2004-02-03  Bruno Haible  <bruno@clisp.org>
77855
77856         * lib/pipe.h: New file, from GNU gettext.
77857         * lib/pipe.c: New file, from GNU gettext.
77858
77859 2004-01-27  Bruno Haible  <bruno@clisp.org>
77860
77861         * m4/execute.m4: New file, from GNU gettext.
77862
77863 2004-01-27  Bruno Haible  <bruno@clisp.org>
77864
77865         * lib/execute.h: New file, from GNU gettext.
77866         * lib/execute.c: New file, from GNU gettext.
77867         * lib/w32spawn.h: New file, from GNU gettext.
77868
77869 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77870
77871         Merge from diffutils.
77872
77873         * lib/file-type.c (file_type): Add typed memory objects.
77874         * lib/file-type.h (S_TYPEISTMO): New macro.
77875
77876         * lib/c-stack.h (c_stack_action): Remove argv argument.
77877         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77878         (die): Don't calculate message unless segv_action returns.
77879         (get_stack_location, min_address_from_argv, max_address_from_argv,
77880         volatile stack_base, volatile_stack_size): Remove.
77881         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77882         that every segmentation violation is a stack overflow.  (Ouch!)
77883         See Debian bug 136249 (still outstanding) for more info about why
77884         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77885
77886 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77887
77888         Exit-status fix from coreutils.
77889
77890         Use exit_failure consistently in place of EXIT_FAILURE,
77891         so that program exit statuses are consistent on failure.
77892
77893         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77894         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77895         * lib/argmatch.h: Comment fix to match the above.
77896         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77897         Now a macro referring to exit_failure, instead of a separate
77898         variable.  Include "exitfail.h" to get it.
77899         * lib/xstrtol.h: Include "exitfail.h".
77900         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77901
77902         * lib/long-options.c (parse_long_options): Use prototype
77903         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77904         for clarity.
77905
77906 2004-01-21  Jim Meyering  <jim@meyering.net>
77907
77908         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77909         so as not to conflict with a different-sized __mktime_internal
77910         function in GNU libc.
77911         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77912         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77913
77914 2004-01-20  Karl Berry  <karl@gnu.org>
77915
77916         * config/config.guess: update from config.
77917
77918         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77919
77920 2004-01-20  Bruno Haible  <bruno@clisp.org>
77921
77922         Safer stack allocation.
77923         * lib/setenv.c: Include allocsa.h.
77924         (alloca): Remove fallback definition.
77925         (freea): Remove macro.
77926         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77927         instead of freea.
77928
77929 2004-01-20  Bruno Haible  <bruno@clisp.org>
77930
77931         * m4/eealloc.m4: New file, from GNU gettext.
77932
77933 2004-01-20  Bruno Haible  <bruno@clisp.org>
77934
77935         * m4/allocsa.m4: New file, from GNU gettext.
77936
77937 2004-01-20  Bruno Haible  <bruno@clisp.org>
77938
77939         * lib/xallocsa.h: New file, from GNU gettext.
77940         * lib/xallocsa.c: New file, from GNU gettext.
77941
77942 2004-01-20  Bruno Haible  <bruno@clisp.org>
77943
77944         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77945
77946 2004-01-20  Bruno Haible  <bruno@clisp.org>
77947
77948         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77949         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77950         specially.
77951
77952 2004-01-20  Bruno Haible  <bruno@clisp.org>
77953
77954         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77955         patch.
77956
77957 2004-01-20  Bruno Haible  <bruno@clisp.org>
77958
77959         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77960
77961 2004-01-20  Bruno Haible  <bruno@clisp.org>
77962
77963         * lib/eealloc.h: New file.
77964
77965 2004-01-20  Bruno Haible  <bruno@clisp.org>
77966
77967         * lib/binary-io.h: Avoid warnings on Cygwin.
77968
77969 2004-01-20  Bruno Haible  <bruno@clisp.org>
77970
77971         * lib/allocsa.h: New file, from GNU gettext.
77972         * lib/allocsa.c: New file, from GNU gettext.
77973
77974 2004-01-18  Karl Berry  <karl@gnu.org>
77975
77976         * doc/gpl.texi, doc/lgpl.texi: new files.
77977
77978 2004-01-18  Karl Berry  <karl@gnu.org>
77979
77980         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77981         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77982
77983 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77984
77985         Merge from coreutils.
77986
77987         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77988         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77989         (gl_DEFAULT_POSIX2_VERSION): Move
77990         the documentation from 'configure' into 'config.hin',
77991         so that 'configure --help' isn't burdened by it and
77992         we don't have to worry about its formatting there.
77993         Reword the documentation so that it's more succinct
77994         and can be run together into a single paragraph.
77995         * m4/same.m4 (gl_SAME): Check for pathconf.
77996
77997 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77998
77999         Merge from coreutils.
78000
78001         * lib/posixver.c: Include posixver.h.
78002
78003         * lib/same.c: Include <stdbool.h>, <limits.h>.
78004         (_POSIX_NAME_MAX): Define if not defined.
78005         (MIN): New macro.
78006         (same_name): If file names are silently truncated, report
78007         that the file names are the same if they are the same after
78008         the silent truncation.
78009
78010         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78011         conversion function.
78012         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78013         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78014         longer needed.
78015
78016 2004-01-15  Jim Meyering  <jim@meyering.net>
78017
78018         Merge from coreutils.
78019
78020         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78021         if no library is required.
78022         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
78023         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
78024         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
78025         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
78026         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
78027         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
78028         value, $ac_cv_search_crypt, if it's "none required".
78029         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
78030         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
78031         not gl_FUNC_GETLOADAVG.
78032         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
78033         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
78034
78035 2004-01-15  Jim Meyering  <jim@meyering.net>
78036
78037         Merge from coreutils.
78038
78039         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
78040         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
78041         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
78042
78043         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
78044         optional configure-time default.
78045
78046         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78047
78048         * lib/xreadlink.c (xreadlink): Correct outdated comment.
78049
78050 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
78051
78052         Merge from coreutils.
78053
78054         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78055         value, $ac_cv_search_nanosleep, if it's "none required".
78056
78057 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78058
78059         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78060         with like-named macro in fnmatch.c.
78061         (EXT): Use an internal constant instead.
78062
78063         Merge fnmatch patches from glibc.
78064         * lib/fnmatch.c (mbsinit): Remove define.
78065         Add libc_hidden_ver (__fnmatch, fnmatch).
78066         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78067         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78068
78069 2004-01-14  Karl Berry  <karl@gnu.org>
78070
78071         * config/install-sh: update from automake.
78072
78073 2004-01-13  Karl Berry  <karl@gnu.org>
78074
78075         * config/install-sh: update from automake.
78076
78077 2004-01-09  Karl Berry  <karl@gnu.org>
78078
78079         * config/install-sh: update from automake.
78080
78081 2004-01-05  Karl Berry  <karl@gnu.org>
78082
78083         * config/config.{sub,guess}: update from config.
78084
78085 2003-12-31  Karl Berry  <karl@gnu.org>
78086
78087         * config/depcomp: update from automake.
78088
78089 2003-12-14  Karl Berry  <karl@gnu.org>
78090
78091         * lib/config.charset: update from gettext-runtime.
78092
78093 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78094
78095         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78096         Bug reported by Alfred M. Szmidt.
78097
78098 2003-12-03  Bruno Haible  <bruno@clisp.org>
78099
78100         * m4/gettext.m4: Upgrade from gettext-0.13.
78101         * m4/po.m4: Upgrade from gettext-0.13.
78102         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78103         * m4/intmax.m4: New file, from gettext-0.13.
78104         * m4/printf-posix.m4: New file, from gettext-0.13.
78105
78106 2003-11-29  Karl Berry  <karl@gnu.org>
78107
78108         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78109
78110 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78111             Bruno Haible  <bruno@clisp.org>
78112
78113         * lib/printf-parse.h: Don't include sys/types.h.
78114         (ARG_NONE): New macro.
78115         (char_directive): Change type of *arg_index fields to size_t.
78116         * lib/printf-parse.c: Don't include sys/types.h.
78117         (SSIZE_MAX): Remove macro.
78118         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78119         Remove unnecessary overflow check.
78120         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78121         fields.
78122
78123 2003-11-25  Bruno Haible  <bruno@clisp.org>
78124
78125         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
78126
78127 2003-11-25  Bruno Haible  <bruno@clisp.org>
78128
78129         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
78130         gt_TYPE_SSIZE_T.
78131
78132 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78133
78134         * modules/alloca: Remove dependency on xalloc.
78135
78136 2003-11-24  Paul Eggert  <eggert@twinsun.com>
78137
78138         * lib/alloca.c: Remove dependency on xalloc module.
78139         (xalloc_die): Remove.
78140         (memory_full) [!defined emacs]: New macro.
78141         [!defined emacs]: Don't include xalloc.h.
78142         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
78143         address arithmetic overflows.  Change datatypes a bit to avoid
78144         unnecessary casts.
78145
78146 2003-11-22  Jim Meyering  <jim@meyering.net>
78147
78148         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
78149         s/size/size_t/.
78150
78151 2003-11-21  Karl Berry  <karl@gnu.org>
78152
78153         * config/config.{sub,guess}: update from config.
78154
78155 2003-11-18  Karl Berry  <karl@gnu.org>
78156
78157         * config/config.{sub,guess}: update from config.
78158
78159         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
78160
78161 2003-11-17  Paul Eggert  <eggert@twinsun.com>
78162
78163         * README: Mention that S+T cannot overflow if S is the size of
78164         an existing object and T is sufficiently small.
78165
78166 2003-11-17  Jim Meyering  <jim@meyering.net>
78167
78168         On systems without utime and without a utimes function capable of
78169         dealing with a NULL struct utimbuf* argument, this utime replacement
78170         could -- in unusual circumstances -- leak a file descriptor.
78171         * lib/utime.c: Include <unistd.h> and <errno.h>.
78172         (utime_null): Be sure to close `fd' and to preserve errno.
78173         Reported by Geoff Collyer via Arnold Robbins.
78174
78175 2003-11-17  Bruno Haible  <bruno@clisp.org>
78176
78177         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
78178         (Depends-on): Add xsize.
78179
78180 2003-11-17  Bruno Haible  <bruno@clisp.org>
78181
78182         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
78183
78184 2003-11-17  Bruno Haible  <bruno@clisp.org>
78185
78186         * lib/vasnprintf.c (alloca): Remove fallback definition.
78187         (freea): Remove definition.
78188         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
78189         Reported by Paul Eggert.
78190
78191 2003-11-16  Paul Eggert  <eggert@twinsun.com>
78192             Bruno Haible  <bruno@clisp.org>
78193
78194         Protect against address arithmetic overflow.
78195         * lib/printf-args.h: Include stddef.h.
78196         (arguments): Change type of field 'count' to size_t.
78197         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
78198         'unsigned int' where appropriate.
78199         * lib/printf-parse.h: Include sys/types.h.
78200         (char_directive): Change type of *arg_index fields to ssize_t.
78201         (char_directives): Change type of fields 'count', max_*_length to
78202         size_t.
78203         * lib/printf-parse.c: Include sys/types.h and xsize.h.
78204         (SSIZE_MAX): Define fallback value.
78205         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
78206         instead of 'int' where appropriate. Check a_allocated, d_allocated
78207         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
78208         * lib/vasnprintf.c: Include xsize.h.
78209         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
78210         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
78211         overflow. Avoid wraparound when converting a width or precision from
78212         decimal to binary.
78213
78214 2003-11-16  Bruno Haible  <bruno@clisp.org>
78215
78216         Update from GNU gettext.
78217         * lib/printf-parse.c: Generalize to it can be compiled for wide
78218         strings.
78219         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
78220         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
78221         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
78222         SNPRINTF): New macros.
78223         Don't include <alloca.h> if the file is used inside libintl.
78224         (local_wcslen): New function, for Solaris 2.5.1.
78225         (VASNPRINTF): Use it instead of wcslen.
78226
78227 2003-11-16  Bruno Haible  <bruno@clisp.org>
78228
78229         * lib/xsize.h (xmax): New function.
78230         (xsum, xsum3, xsum4): Declare as "pure" functions.
78231
78232 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78233
78234         * modules/xalloc (Files): Undo latest change, since xalloc.h
78235         no longer needs SIZE_MAX or PTRDIFF_MAX.
78236
78237 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78238
78239         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
78240         gl_PTRDIFF_MAX.
78241
78242 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78243
78244         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
78245         "return", to pacify some unknown compiler.  Problem reported
78246         by Joerg Schilling.
78247
78248 2003-11-12  Paul Eggert  <eggert@twinsun.com>
78249
78250         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
78251         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
78252         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
78253         heuristic is just as accurate as far as we know, and it removes a
78254         dependency on size_max.m4 and ptrdiff_max.m4.
78255
78256 2003-11-11  Bruno Haible  <bruno@clisp.org>
78257
78258         * modules/xsize (Files): Add m4/size_max.m4.
78259         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
78260
78261 2003-11-11  Bruno Haible  <bruno@clisp.org>
78262
78263         * m4/size_max.m4: New file.
78264         * m4/ptrdiff_max.m4: New file.
78265         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
78266         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
78267         (gl_XALLOC): Invoke it.
78268
78269 2003-11-11  Bruno Haible  <bruno@clisp.org>
78270
78271         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
78272         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
78273         defined.
78274
78275 2003-11-10  Paul Eggert  <eggert@twinsun.com>
78276
78277         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
78278         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
78279         rejected some allocations of exactly SIZE_MAX - 2 bytes.
78280         From Bruno Haible.
78281         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
78282         not (size_t) -1, since it's defined here.
78283
78284 2003-11-09  Karl Berry  <karl@gnu.org>
78285
78286         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
78287
78288 2003-11-06  Paul Eggert  <eggert@twinsun.com>
78289
78290         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
78291         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
78292         Reject sizes of exactly SIZE_MAX bytes.
78293         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
78294         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
78295
78296 2003-11-05  Bruno Haible  <bruno@clisp.org>
78297
78298         * lib/xsize.h: Include limits.h, to avoid a possible collision with
78299         SIZE_MAX defined in <limits.h> on Solaris.
78300
78301 2003-11-04  Jim Meyering  <jim@meyering.net>
78302
78303         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
78304         variable names, rather than @VAR@.
78305         * modules/poll: Likewise.
78306
78307 2003-11-04  Bruno Haible  <bruno@clisp.org>
78308
78309         * modules/xsize: New file.
78310         * modules/linebreak: Depend on xsize.
78311         * MODULES.html.sh (func_all_modules): Add xsize.
78312
78313 2003-11-04  Bruno Haible  <bruno@clisp.org>
78314
78315         * m4/xsize.m4: New file.
78316
78317 2003-11-04  Bruno Haible  <bruno@clisp.org>
78318
78319         * lib/xsize.h: New file.
78320         * lib/linebreak.c: Include xsize.h.
78321         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
78322         argument for overflow.
78323         Suggested by Paul Eggert.
78324
78325 2003-11-03  Karl Berry  <karl@gnu.org>
78326
78327         * config/config.{guess,sub}: update from config.
78328
78329 2003-11-03  Jim Meyering  <jim@meyering.net>
78330
78331         * modules/userspec (lib_SOURCES): Add userspec.h.
78332         (Include): Add "userspec.h".
78333         Improve description.
78334
78335 2003-11-03  Jim Meyering  <jim@meyering.net>
78336
78337         * lib/userspec.c: Include "userspec.h".
78338         * lib/userspec.h: New file.
78339
78340 2003-11-03  Bruno Haible  <bruno@clisp.org>
78341
78342         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
78343
78344 2003-11-03  Bruno Haible  <bruno@clisp.org>
78345
78346         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
78347         available, to avoid (extremely rare) race condition.
78348         Suggested by Paul Eggert.
78349
78350 2003-11-02  Karl Berry  <karl@gnu.org>
78351
78352         * config/srclist.txt (vasprintf.c): sync broken, sigh.
78353
78354 2003-10-31  Paul Eggert  <eggert@twinsun.com>
78355
78356         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
78357         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
78358         (read_filesystem_list): Set and use me_type_malloced.
78359         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
78360         whatever the type happens to be), for brevity and consistency.
78361         Check for size calculation overflow on Alphas running OSF/1.
78362
78363 2003-10-31  Jim Meyering  <jim@meyering.net>
78364
78365         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
78366
78367         * lib/linebuffer.c: Include <string.h> for declaration of memset.
78368
78369 2003-10-30  Paul Eggert  <eggert@twinsun.com>
78370             Bruno Haible  <bruno@clisp.org>
78371
78372         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
78373         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
78374
78375 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78376
78377         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
78378         netbsd*-gnu*.  Suggested by Robert Millan.
78379
78380 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78381
78382         * modules/group-member: Depend on stdbool.
78383
78384 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78385
78386         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
78387
78388 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78389
78390         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
78391         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
78392         after the 'gnu' in these cases.  This fixes some bugs in the
78393         previous change, and is based on suggestions by Robert Millan.
78394
78395 2003-10-29  Paul Eggert  <eggert@twinsun.com>
78396
78397         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
78398         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
78399         no longer needed.
78400         * lib/quotearg.c (quotearg_n_options): Use it.
78401         * lib/group-member.c: Include <stdbool.h>.
78402         (free_group_info): Arg is now const *; don't free arg.
78403         (get_group_info): Now returns bool and accepts struct group_info *,
78404         rather than returning a malloc'ed struct group_info *.
78405         All uses changed.  Check for overflow in internal size calculation.
78406
78407         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
78408         rather than xmalloc/xrealloc.
78409         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
78410         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
78411         conformance bug: the old code used a pointer after freeing the
78412         storage that it addressed.
78413         * lib/hash.c (hash_initialize): Simplify the code by using
78414         xalloc_oversized rather than doing it by hand.
78415         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
78416         the buffer preserved.  Use free and xmalloc instead.
78417         * lib/quotearg.c (quotearg_n_options): Likewise.
78418         Use a simpler test for size overflow.  Don't use xalloc_oversized
78419         because unsigned int might be wider than size_t (!); this suggests
78420         that we should switch from unsigned int to size_t for slot numbers.
78421
78422 2003-10-28  Paul Eggert  <eggert@twinsun.com>
78423
78424         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
78425         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
78426         NetBSD kernels.  Requested by Richard Stallman.
78427
78428 2003-10-27  Paul Eggert  <eggert@twinsun.com>
78429
78430         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
78431         to allocate the returned structure.  Do not allocate a subarray,
78432         as x2nrealloc will do that.
78433         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
78434         instead of xnrealloc.
78435         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
78436
78437 2003-10-27  Bruno Haible  <bruno@clisp.org>
78438
78439         * lib/stdbool_.h: Better support for BeOS.
78440
78441 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78442
78443         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
78444         now uses inline.
78445
78446 2003-10-26  Paul Eggert  <eggert@twinsun.com>
78447
78448         * lib/xalloc.h (xalloc_oversized): New static inline function, for
78449         callers that want to do their own size-overflow checking.  Include
78450         <stdbool.h>, since xalloc_oversized returns bool.
78451         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
78452         to use xalloc_oversized.
78453
78454         Add two functions x2realloc, x2nrealloc, for programs that grow
78455         arrays dynamically by doubling their sizes.
78456         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
78457         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
78458         New functions.
78459
78460         Port to C99 semantics for 'inline' of external functions.
78461         Bug reported by Bruno Haible.
78462         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
78463         with the old contents of xnmalloc.
78464         (xnmalloc, xmalloc): Use it.
78465         (xnrealloc_inline): New static inline function,
78466         with the old contents of xnrealloc.
78467         (xnrealloc, xrealloc): Use it.
78468
78469         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
78470         that.
78471
78472 2003-10-26  Karl Berry  <karl@gnu.org>
78473
78474         * config/srclist.txt (COPYING.DOC): no longer available from
78475         /gd/gnuorg; don't know where the ultimate source is.
78476
78477 2003-10-25  Paul Eggert  <eggert@twinsun.com>
78478
78479         Fix several address-calculation bugs in the hash modules,
78480         plus some minor code cleanup.
78481
78482         * lib/hash.h: Include <stdbool.h>, for bool.
78483         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
78484         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
78485         hash_get_n_entries, hash_get_max_bucket_length,
78486         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
78487         hash_rehash): Use size_t rather than unsigned.
78488         * lib/hash.c (struct hash_table, hash_get_n_buckets,
78489         hash_get_n_buckets_used, hash_get_n_entries,
78490         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
78491         hash_get_entries, hash_do_for_each, hash_string, is_prime,
78492         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
78493         Likewise.
78494         (SIZE_MAX): Define if not defined.
78495         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
78496         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
78497         hash_print):
78498         Use const * when possible.
78499         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
78500         (check_tuning): Fix bug: if tuning parameters were very close to
78501         0 or 1, rounding errors could have caused subscript violations.
78502         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
78503         (hash_initialize): Add 'fail:' label
78504         to free table and return NULL, and use it to simplify code.
78505         Use calloc rather than clearing the storage ourself.
78506         (hash_initialize, hash_rehash): Check for arithmetic overflow in
78507         buffer size calculations.
78508         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
78509         Include <stddef.h>, for size_t.
78510         * lib/hash-pjw.c (hash_pjw): Likewise.
78511         Switch to method described by Bruno Haible.
78512         Include <limits.h>, for CHAR_BIT.
78513         (SIZE_BITS): New macro.
78514
78515 2003-10-23  Paul Eggert  <eggert@twinsun.com>
78516
78517         * m4/getline.m4 (AM_FUNC_GETLINE):
78518         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
78519         hosts.  Problem reported by Derek Robert Price in
78520         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
78521         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
78522         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
78523
78524 2003-10-21  Paul Eggert  <eggert@twinsun.com>
78525
78526         * lib/getndelim2.c (getndelim2): When size calculation overflows,
78527         ceiling the allocation at NMAX bytes rather than silently
78528         discarding input bytes before NMAX is reached.  This makes
78529         a difference only if NMAX exceeds SIZE_MAX / 2.
78530
78531         * lib/obstack.c: Merge from glibc.
78532         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
78533         Add libc_hidden_def (_obstack_newchunk).
78534         (_obstack_free) [! defined _LIBC]: Remove.
78535         [defined _LIBC]: Make a strong alias from obstack_free, rather than
78536         a clone of the function body.
78537         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
78538         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
78539
78540         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
78541         glibc.
78542         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
78543         arg to memcpy.
78544
78545         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
78546         (obstack_ptr_grow_fast, obstack_int_grow_fast):
78547         Don't use lvalue casts, as GCC plans to remove support for them
78548         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
78549         was also present in the non-GCC version, indicating that this
78550         code had always been buggy and had never been widely used.
78551         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
78552         Use the fast variant of each macro, rather than copying the
78553         definiens of the fast variant; that way, we'll be more likely to
78554         catch future bugs in the fast variants.
78555
78556 2003-10-20  Bruno Haible  <bruno@clisp.org>
78557
78558         * modules/wait-process: New file.
78559         * MODULES.html.sh (func_all_modules): Add wait-process.
78560
78561 2003-10-20  Bruno Haible  <bruno@clisp.org>
78562
78563         * m4/wait-process.m4: New file.
78564
78565 2003-10-20  Bruno Haible  <bruno@clisp.org>
78566
78567         * lib/wait-process.h: New file, from GNU gettext.
78568         * lib/wait-process.c: New file, from GNU gettext.
78569
78570 2003-10-19  Jim Meyering  <jim@meyering.net>
78571
78572         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78573         HPUX 10.20.
78574
78575 2003-10-18  Karl Berry  <karl@gnu.org>
78576
78577         * config/config.guess: update from config.
78578
78579 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78580
78581         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78582         (getgroups): First arg is int, not size_t.
78583         Don't let 'free' mangle errno.
78584
78585 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78586
78587         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78588
78589 2003-10-16  Karl Berry  <karl@gnu.org>
78590
78591         * config/config.{guess,sub}: update from config.
78592
78593 2003-10-16  Jim Meyering  <jim@meyering.net>
78594
78595         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78596         memcpy.
78597
78598 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78599
78600         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78601         (SIZE_MAX): Remove.
78602         (new_exclude, add_exclude_file): Initial size no longer needs to
78603         be a power of 2.
78604         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78605         our own address arithmetic overflow checking.
78606
78607         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78608         (fnmatch): Do not alloca more than 2000 wide characters;
78609         instead, use malloc for large buffers.
78610         Check for address arithmetic overflow, and return -1
78611         with errno set to ENOMEM in that case.
78612         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78613         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78614         instead, return -1.  Check for address arithmetic overflow.
78615
78616 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78617
78618         Handle invalid suffixes and overflow independently, so that
78619         callers can treat them independently as needed.  Fix some bugs in
78620         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78621         suffix for a human-readable blocksize.  The major caller-visible
78622         change is the addition of a new
78623         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78624         that both overflow and suffix chars were found.
78625
78626         * lib/human.c (humblock): Don't check separately for invalid suffix
78627         char; that is xstrtoumax's job (now that its bug is fixed).
78628         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78629         INTMAX_MAX]: New macros.
78630         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78631         TYPE_MAXIMUM): New macros.
78632         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78633         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78634         if overflow occurs, as it's what __strtol does and it's more useful
78635         in practice.
78636         (__xstrtol): If __strtol reports some error other than ERANGE,
78637         reflect it to the caller as LONGINT_INVALID.  If it reports
78638         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78639         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78640         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78641         value.
78642         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78643         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78644         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78645         [defined UINTMAX_MAX]: New macros.
78646
78647 2003-10-14  Bruno Haible  <bruno@clisp.org>
78648
78649         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78650
78651 2003-10-14  Bruno Haible  <bruno@clisp.org>
78652
78653         * m4/sig_atomic_t: New file, from GNU gettext.
78654         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78655
78656 2003-10-14  Bruno Haible  <bruno@clisp.org>
78657
78658         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78659         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78660         Also use volatile where needed.
78661
78662 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78663
78664         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78665         Change maintainer from Bruno Haible to 'all'.
78666
78667 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78668
78669         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78670
78671 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78672
78673         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78674         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78675         and define in terms of the other primitives.
78676         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78677         (SIZE_MAX): Define if not already defined.
78678         (array_size_overflow): New function.
78679         (xalloc_die): Abort instead of exiting if 'error' returns.
78680         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78681         (xmalloc, xrealloc): Use them.
78682         (xcalloc): Check for address arithmetic overflow.
78683         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78684         a bit faster than strcpy.
78685
78686 2003-10-10  Simon Josefsson  <jas@extundo.com>
78687
78688         * modules/argp (Depends-on): Add restrict and strcase.
78689
78690 2003-10-10  Simon Josefsson  <jas@extundo.com>
78691
78692         * m4/argp.m4: Add AC_C_INLINE.
78693
78694 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78695
78696         Merge getpass from libc, plus a few fixes.
78697
78698         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78699         Include <stdbool.h>.
78700         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78701         __fsetlocking to empty.
78702         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78703         do include <bits/libc-lock.h>.
78704         Do not include <fcntl.h>; not needed.
78705         [_LIBC]: Include <wchar.h>.
78706         (NOTCANCEL_MODE): New macro.
78707         (flockfile, funlockfile) [_LIBC]: New macros.
78708         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78709         [!_LIBC]: New macros.
78710         (call_fclose): New function.
78711         (getpass): Use it.  Save tty stream separately; this simplifies the
78712         code and makes it more reliable if stdin happens to equal stdout.
78713         Invoke __fsetlocking on tty.
78714         Handle thread cancellation if needed.
78715         Namespace cleanup (use __tcgetattr, __getline).
78716         Use bool for Booleans.
78717         [USE_IN_LIBIO]: Handle wide streams.
78718         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78719         stream might go where.
78720
78721         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78722         doesn't have to include <stdio.h> before us.
78723         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78724         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78725         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78726         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78727         if not declared, so that we can use getpass.c code from libc without
78728         rewriting it.
78729         (flockfile, ftrylockfile, funlockfile): New macros.
78730
78731 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78732
78733         * modules/getpass: Depend on stdbool.
78734
78735 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78736
78737         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78738
78739 2003-10-07  Karl Berry  <karl@gnu.org>
78740
78741         * config/config.{guess,sub}: update from config.
78742
78743 2003-10-06  Jim Meyering  <jim@meyering.net>
78744             Bruno Haible  <bruno@clisp.org>
78745
78746         This lets translators provide better translations for the
78747         "Written by ..." part of --version output.
78748         * lib/version-etc.h: Include stdarg.h.
78749         (version_etc_copyright): Declare as readonly.
78750         (version_etc): Make this function variadic with a NULL-terminated list
78751         of author name strings.
78752         (version_etc_va): New declaration.
78753         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78754         (version_etc_copyright): Declare as readonly.
78755         (version_etc_va): New function. Provide a different translatable string
78756         for each possible number of authors < 10. Abbreviate when there are 10
78757         authors or more.
78758         (version_etc): Make this function variadic. Call version_etc_va.
78759         Suggestion from Gary V. Vaughan.
78760
78761         * lib/long-options.h (parse_long_options): Change prototype: the
78762         authors string is moved to the end and becomes variadic.
78763         * lib/long-options.c: Include stdarg.h.
78764         (parse_long_options): Make this function variadic, too.
78765         Call version_etc_va, not version_etc.
78766
78767 2003-10-06  Bruno Haible  <bruno@clisp.org>
78768
78769         * modules/version-etc-2: Remove file.
78770         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78771
78772 2003-10-06  Bruno Haible  <bruno@clisp.org>
78773
78774         * modules/fatal-signal: New file.
78775         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78776
78777 2003-10-06  Bruno Haible  <bruno@clisp.org>
78778
78779         * m4/fatal-signal.m4: New file.
78780         * m4/signalblocking.m4: New file, from GNU gettext.
78781
78782 2003-10-06  Bruno Haible  <bruno@clisp.org>
78783
78784         * lib/version-etc-2.h: Remove file.
78785         * lib/version-etc-2.c: Remove file.
78786
78787 2003-10-06  Bruno Haible  <bruno@clisp.org>
78788
78789         * lib/fatal-signal.h: New file, from GNU gettext.
78790         * lib/fatal-signal.c: New file, from GNU gettext.
78791
78792 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78793
78794         * README: Rework advice for preventing empty .o files.
78795         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78796         not <sys/types.h>.
78797
78798 2003-10-04  Karl Berry  <karl@gnu.org>
78799
78800         * lib/argp*: update from libc.
78801
78802 2003-10-04  Karl Berry  <karl@gnu.org>
78803
78804         * config/config.{guess,sub}: update from config.
78805
78806 2003-10-02  Bruno Haible  <bruno@clisp.org>
78807
78808         * modules/lchown (Include): Add lchown.h.
78809         * modules/time_r (Include): Use "..." syntax.
78810         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78811
78812 2003-10-01  Simon Josefsson  <jas@extundo.com>
78813
78814         * MODULES.html.sh (func_all_modules): Move gethostname from section
78815         'based on' to section 'lacking' POSIX:2001.
78816
78817 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78818
78819         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78820         to output mode on the same stream.
78821
78822 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78823
78824         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78825         Fix arg typo in previous patch.
78826
78827 2003-09-28  Jim Meyering  <jim@meyering.net>
78828
78829         * lib/error.c: Correct cpp indentation.
78830
78831 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78832
78833         * modules/free: New file.
78834
78835 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78836
78837         * m4/free.m4: New file.
78838
78839 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78840
78841         * lib/minmax.h (MIN, MAX)
78842         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78843         Omit the special code that used __typeof__, since we worry that
78844         it could be more trouble than it's worth.  See:
78845         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78846         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78847
78848         * lib/free.c: New file.
78849
78850 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78851
78852         Trivial fixes to Makefile.am parts of module listings.
78853         * modules/strstr: Append strstr.h to lib_SOURCES.
78854         * modules/strcase: Likewise, for strcase.h.
78855
78856 2003-09-27  Karl Berry  <karl@gnu.org>
78857
78858         * config/mkinstalldirs: update from automake.
78859
78860 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78861
78862         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78863         (error_tail): Do not loop, reallocating temporary buffer, since
78864         the output cannot contain more wide characters than the input
78865         contains bytes, the size must be big enough already.  This avoids
78866         one potential size overflow calculation.  Check for size overflow
78867         when calculating temporary buffer size.  Free temporary buffer
78868         when done, if it was allocated with malloc; this plugs a memory
78869         leak.  Remove casts from void * to pointers, that are no longer
78870         needed now that we're assuming C89 or better.
78871
78872         Merge error changes from glibc.
78873
78874         * lib/error.c, error.h: Update copyright notice header to match glibc.
78875         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78876         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78877         Disable cancellation while printing error.
78878         * lib/error.h: Prepend __ to parameter names.
78879
78880 2003-09-26  Jim Meyering  <jim@meyering.net>
78881
78882         * lib/error.c (error_tail): Move some declarations
78883         into inner scope where the local variables are used.
78884
78885 2003-09-26  Bruno Haible  <bruno@clisp.org>
78886
78887         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78888         stpncpy().
78889         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78890
78891 2003-09-26  Bruno Haible  <bruno@clisp.org>
78892
78893         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78894         (stpncpy): Define as alias for gnu_stpncpy.
78895         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78896
78897 2003-09-25  Simon Josefsson  <jas@extundo.com>
78898
78899         * lib/xgetdomainname.h: New file.
78900         * lib/xgetdomainname.c: New file.
78901
78902 2003-09-25  Simon Josefsson  <jas@extundo.com>
78903             Bruno Haible  <bruno@clisp.org>
78904
78905         * modules/getdomainname: New file.
78906         * modules/xgetdomainname: New file.
78907         * MODULES.html.sh (func_all_modules): Add getdomainname,
78908         xgetdomainname.
78909
78910 2003-09-25  Simon Josefsson  <jas@extundo.com>
78911             Bruno Haible  <bruno@clisp.org>
78912
78913         * m4/getdomainname.m4: New file.
78914
78915 2003-09-25  Simon Josefsson  <jas@extundo.com>
78916             Bruno Haible  <bruno@clisp.org>
78917
78918         * lib/getdomainname.h: New file.
78919         * lib/getdomainname.c: New file.
78920
78921 2003-09-25  Karl Berry  <karl@gnu.org>
78922
78923         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78924
78925 2003-09-25  Karl Berry  <karl@gnu.org>
78926
78927         * config/install-sh: update from automake.
78928
78929 2003-09-25  Bruno Haible  <bruno@clisp.org>
78930
78931         * modules/version-etc-2: New file, from modules/version-etc with
78932         modifications.
78933         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78934
78935 2003-09-25  Bruno Haible  <bruno@clisp.org>
78936
78937         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78938         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78939
78940 2003-09-24  Simon Josefsson  <jas@extundo.com>
78941
78942         * modules/xgethostname: Add xgethostname.h.
78943
78944 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78945
78946         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78947         the buffer associated with the argument.  Bug reported by
78948         Simon Josefsson.
78949
78950 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78951
78952         * README: Document assumptions that 'int' is at least 32 bits
78953         wide, that integer arithmetic is 2's complement without overflow,
78954         that there are no holes in integer values, that adding sizes of
78955         two nonoverlapping objects can't overflow, and that all-bits-zero
78956         yields scalar zero.  Fix spelling and capitalization typos.
78957
78958 2003-09-19  Karl Berry  <karl@gnu.org>
78959
78960         * lib/argp.h: update from libc.
78961
78962 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78963
78964         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78965         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78966         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78967
78968 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78969
78970         * gnulib-tool: Use "test -h", not "test -L", for portability
78971         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78972         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78973         (sed_extract_prog): Issue s commands one-by-one, rather than
78974         using \| in one s command.
78975
78976 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78977
78978         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78979         input error, instead of returning NULL the next time we are called
78980         (and therefore losing track of errno).
78981
78982 2003-09-16  Bruno Haible  <bruno@clisp.org>
78983
78984         * gnulib-tool (func_create_testdir): Warn about duplicated
78985         dependencies.
78986
78987 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78988
78989         * modules/argmatch, modules/fatal, modules/obstack,
78990         modules/xalloc, modules/xgethostname: Sort dependencies by
78991         importance, not alphabetically.
78992
78993 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78994
78995         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78996         fails, so that the caller gets the proper errno.
78997
78998         * lib/readutmp.c (read_utmp): Likewise.
78999         Check for fstat error.  Close stream and free storage
79000         when failing.
79001
79002 2003-09-14  Karl Berry  <karl@gnu.org>
79003
79004         * config/srclist.txt (strdup.c): disable for c89 changes.
79005
79006 2003-09-14  Jim Meyering  <jim@meyering.net>
79007
79008         * lib/getloadavg.c: Correct cpp indentation.
79009         * lib/strdup.c: Likewise.
79010         * lib/vasnprintf.c: Likewise.
79011
79012 2003-09-14  Bruno Haible  <bruno@clisp.org>
79013
79014         * modules/fwriteerror: New file.
79015         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79016
79017 2003-09-14  Bruno Haible  <bruno@clisp.org>
79018
79019         * lib/fwriteerror.h: New file.
79020         * lib/fwriteerror.c: New file.
79021
79022 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79023
79024         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
79025         modules/xgethostname, modules/xalloc: Depend on exit.
79026
79027 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79028
79029         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
79030
79031         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
79032         and AC_MINIX, too, so that their extensions are available.
79033
79034         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
79035         This macro has been superseded by gl_BACKUPFILE.
79036
79037         More patches to assume C89 or better.
79038
79039         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
79040
79041         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
79042         unconditionally.
79043         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
79044         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
79045         Include <string.h>, <stdlib.h> unconditionally.
79046         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
79047         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
79048         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
79049         headers or for string.h.
79050         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
79051         or strtoul.
79052
79053         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79054         headers.
79055         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79056         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79057         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79058         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79059         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79061         memcpy, memset.
79062         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79063         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79064         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79065         strtol.
79066         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79067         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79068         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79069         strtoul.
79070
79071 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79072
79073         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79074         * lib/obstack.c [!defined _LIBC]: Likewise.
79075         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79076         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79077         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79078
79079         More changes to assume C89 or better.
79080
79081         * lib/error.c (error_tail): Assume vprintf.
79082
79083         * lib/argmatch.c (getenv): Remove decl.
79084         * lib/progreloc.c (get_full_program_name): Define via prototype.
79085         * lib/setenv.c (clearenv): Likewise.
79086         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79087         needed.
79088         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79089         (malloc, memcpy): Remove decls.
79090         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79091         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79092         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79093         (memcpy): Remove macro.
79094         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79095         (__P): Remove.  All uses removed.
79096         (PTR): Remove.  All uses changed to void *.
79097         (CHAR_BIT, NULL): Remove.
79098         (spaces, zeros, memset_space, memset_zero)
79099         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79100         Remove.
79101         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79102         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79103         Define with prototype.
79104         Remove now-unnecessary prototype decl.
79105         (extra_args_spec): Assume ANSI C.  All uses changed.
79106         (extra_args_spec_iso): Remove.
79107         (my_strftime, emacs_strftimeu): Define via prototype.
79108         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79109         unconditionally.
79110         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79111         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79112         (strtoul, strtol): Remove decls.
79113         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79114         LONG_MAX): Remove.
79115         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79116         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79117         (LOCALE_PARAM_PROTO): New macro.
79118         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79119         (INTERNAL (strtol), strtol): Define with a prototype.
79120         (PARAMS): Remove.  All uses removed.
79121         * lib/tempname.c: Include <string.h> unconditionally.
79122         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
79123         * lib/xgethostname.c (main): Define with a prototype.
79124         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
79125         Include <stdlib.h> unconditionally.
79126         (calloc, malloc, realloc, free): Remove decls.
79127         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
79128         Include <stdlib.h> unconditionally.  Sort include file names.
79129         (strtod): Remove.
79130         (xstrtod): Define with a prototype.
79131         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
79132         (strtol, strtoul): Remove decls.
79133
79134 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79135
79136         More patches to assume C89 or better.
79137         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
79138         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
79139         string.h, memchr, STDC_HEADERS.
79140
79141 2003-09-11  Paul Eggert  <eggert@twinsun.com>
79142
79143         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
79144         Include <stdlib.h>, <string.h> unconditionally.
79145         Remove now-unnecessary cast to char *.
79146         * lib/strnlen.c: Include <string.h> unconditionally.
79147         * lib/yesno.c (yesno): Define with a prototype.
79148
79149 2003-09-11  Bruno Haible  <bruno@clisp.org>
79150
79151         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
79152
79153 2003-09-10  Jim Meyering  <jim@meyering.net>
79154
79155         * lib/error.c: Correct indentation of cpp directives.
79156
79157 2003-09-10  Bruno Haible  <bruno@clisp.org>
79158
79159         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
79160         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
79161         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
79162         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
79163         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
79164         <stdlib.h> and <string.h> checks.
79165         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
79166         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
79167
79168 2003-09-10  Bruno Haible  <bruno@clisp.org>
79169
79170         * lib/strcspn.c: Include <string.h> unconditionally.
79171         * lib/strpbrk.c: Include <string.h> unconditionally.
79172         * lib/strstr.c: Include <string.h> unconditionally.
79173         * lib/unicodeio.c: Include <string.h> unconditionally.
79174         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
79175         * lib/unsetenv.c: Likewise.
79176         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
79177         * lib/yesno.c: Include <stdlib.h> unconditionally.
79178         (rpmatch): Add prototype.
79179
79180 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79181
79182         More patches to assume C89 or better.
79183         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
79184         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
79185         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
79186         or for string.h.
79187         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
79188         stdlib.h.
79189         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
79190         C headers.
79191         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
79192         string.h.
79193         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
79194         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
79195         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
79196         or for string.h.
79197         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
79198         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
79199         C headers.
79200         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
79201         memcpy.
79202         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
79203         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
79204         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
79205         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
79206         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
79207         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
79208         string.h, free.
79209         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
79210         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
79211         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
79212         C headers, or for string.h.
79213         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
79214         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
79215         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
79216         headers, memory.h, stdlib.h, string.h, strings.h.
79217         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
79218         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
79219         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
79220         strchr.
79221         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
79222         headers, memory.h, string.h.
79223         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
79224         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
79225         free.
79226         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
79227         headers.
79228         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
79229         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
79230         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
79231         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
79232         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
79233
79234 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79235
79236         More K&R removal.
79237
79238         * lib/acosl.c (main): Use a prototype.
79239         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
79240         tanl.c: Likewise.
79241
79242         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
79243
79244         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
79245         (getopt, etopt_long, getopt_long_only, _getopt_internal)
79246         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
79247         with a prototype.
79248         * lib/getopt.c (const): Remove macro.
79249         Include <string.h> unconditionally.
79250         (my_index): Remove; all uses changed to strchr.
79251         (strlen): Remove decl.
79252         (exchange): Remove forward decl; no longer needed.
79253         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
79254         Define with prototype.
79255         * lib/getopt1.c (const): Remove macro.
79256         (getopt_long, getopt_long_only, main): Define with prototype.
79257
79258         * lib/getugroups.c: Include <string.h> unconditionally.
79259
79260         * lib/getusershell.c: Include <stdlib.h> unconditionally.
79261         (getusershell, setusershell, endusershell, readname, main):
79262         Define with prototypes.
79263
79264         * lib/group-member.c: Include group-member.h first.
79265         Include <stdlib.h> unconditionally.
79266
79267         * lib/hard-locale.c: Include hard-locale.h first.
79268         Include <stdlib.h>, <string.h> unconditionally.
79269
79270         * lib/hash.c (free, malloc): Remove decls.
79271         Include <stdlib.h> unconditionally.
79272
79273         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
79274         (getenv): Do not declare.
79275
79276         * lib/idcache.c: Include <string.h> unconditionally.
79277
79278         * lib/long-options.c: Include long-options.h first, to test interface.
79279         Include <stdlib.h> unconditionally.
79280
79281         * lib/makepath.c: Include makepath.h first, to test interface.
79282         Include <stdlib.h> and <string.h> unconditionally.
79283
79284         * lib/linebuffer.c: Include <stdlib.h>.
79285         (free): Remove decl.
79286
79287         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
79288         stddef.h. rpl_malloc returns void *, not char *.
79289         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
79290         prototype.
79291
79292         * lib/md5.h: Include <limits.h> unconditionally.
79293         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
79294         (__P): Remove; all uses removed.
79295         * lib/md5.c: Include "md5.h" first.
79296         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
79297         md5_buffer, md5_process_bytes, md5_process_block):
79298         Define with prototypes.
79299         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
79300         * lib/sha.c: Include "sha.h" first.
79301         Include <stdlib.h>, <string.h> unconditionally.
79302
79303         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
79304         * lib/memcmp.c (__ptr_t): Likewise.
79305         * lib/memrchr.c (__ptr_t): Likewise.
79306         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
79307         Include <string.h> unconditionally.
79308         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
79309         * lib/memchr.c: Include <stdlib.h> unconditionally.
79310         * lib/memchr.c (LONG_MAX): Remove.
79311         * lib/memrchr.c (LONG_MAX): Likewise.
79312         * lib/memchr.c (__memchr): Define via a prototype.
79313         * lib/memrchr.c (__memrchr): Likewise.
79314         * lib/memcmp.c (__P): Remove, and remove all uses.
79315         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
79316         Remove forward decls; no longer needed.
79317         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
79318         Use types required by C89 in prototype.
79319
79320         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
79321         * lib/savedir.c: Likewise.
79322         * lib/mkdir.c (free): Remove decl.
79323         * lib/rmdir.c (rmdir): Define with a prototype.
79324         * lib/savedir.c: Include savedir.h first, to test interface.
79325
79326         * lib/mktime.c (STDC_HEADERS): Remove.
79327         Include <stdlib.h>, <string.h> unconditionally.
79328
79329         * lib/modechange.c: Include <stdlib.h> unconditionally.
79330         (malloc): Remove decl.
79331
79332         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
79333         (free): Remove decl.
79334
79335         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
79336         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
79337         (This type really should be intptr_t, but that's a C99ism.)
79338         (_obstack_memcpy): Remove: all uses changed to memcpy.
79339         Include <string.h> unconditionally.
79340         (struct obstack): Assume __STDC__ for types of members
79341         chunkfun, freefun, extra_arg.
79342         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
79343         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
79344         obstack_begin, obstack_specify_allocation,
79345         obstack_specify_allocation_with_arg, obstack_chunkfun,
79346         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
79347         Remove unprototyped decls and the macros that use them.
79348         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
79349         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
79350         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
79351         (defined __STDC__ && __STDC__)]:
79352         Remove nonprototyped code.
79353         Include <stdlib.h> unconditionally.
79354         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
79355         _obstack_allocated_p, _obstack_free, obstack_free,
79356         _obstack_memory_used, print_and_abort):
79357         Define using prototypes.
79358         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
79359         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
79360         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
79361         obstack_next_free, obstack_object_size, obstack_room) [0]:
79362         Remove unused, unprototyped code.
79363
79364         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
79365
79366         * lib/physmem.c (physmem_total, physmem_available, main): Define
79367         with prototypes.
79368
79369         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
79370         (main): Define with a prototype.
79371
79372         * lib/posixver.c (getenv): Remove decl.
79373
79374         * lib/putenv.c (malloc): Returns void *, not char *.
79375         Include <string.h> unconditionally.
79376         (strchr, memcpy, NULL): Do not define.
79377
79378         * lib/readtokens.c: Include readtokens.h first, to test interface.
79379         Include <stdlib.h>, <string.h> unconditionally.
79380         (init_tokenbuffer): Define with a prototype.
79381
79382         * lib/regex.c (PARAMS): Remove.  All uses removed.
79383         All uses of _RE_ARGS removed, too.
79384         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79385         unconditionally.
79386         (bzero): Assume memset exists.
79387         (memcmp, memcpy, NULL): Remove.
79388         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
79389         char, or assignments to local vars of type signed char.
79390         (init_syntax_once, PREFIX(extract_number_and_incr),
79391         PREFIX(print_partial_compiled_pattern),
79392         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
79393         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
79394         PREFIX(regex_grow_registers), PREFIX(regex_compile),
79395         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
79396         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
79397         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
79398         wcs_compile_range, byte_compile_range, truncate_wchar,
79399         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
79400         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
79401         count_mbs_length, wcs_re_match_2_internal,
79402         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
79403         PREFIX(alt_match_null_string_p),
79404         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
79405         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
79406         regfree, PREFIX(extract_number)): Define with prototype.  Remove
79407         now-unnecessary declaration, if any.
79408         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
79409         regcomp, regexec):
79410         Remove now-unnecessary casts among pointer types.
79411         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
79412
79413         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
79414         (free): Remove decl.
79415
79416         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
79417
79418         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
79419         (free): Remove decl.
79420
79421         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
79422         * lib/xgetcwd.c: Likewise.
79423
79424         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
79425         (free): Remove decl.
79426
79427         * lib/strchrnul.c (strchrnul): Define with a prototype.
79428         Fix bug: c_in was not converted to char before searching.
79429
79430         The following changes are not K&R related:
79431
79432         * lib/group-member.h: Include <sys/types.h>, so that this file is
79433         self-contained.
79434         * lib/makepath.h: Likewise.
79435
79436         * lib/getusershell.c (readname, default_index, line_size, readname):
79437         Use size_t, not int, for sizes.
79438         (readname): If the size overflows, report an error instead of
79439         looping forever.
79440
79441 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79442
79443         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
79444         libc.
79445
79446 2003-09-09  Paul Eggert  <eggert@twinsun.com>
79447
79448         * README: New section: portability guidelines.
79449
79450 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79451
79452         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
79453         C89 spec.
79454
79455 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
79456
79457         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
79458
79459 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79460
79461         Assume C89 or better; remove K&R cruft.
79462         A few of these changes were first proposed by Derek Robert Price
79463         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
79464
79465         * lib/addext.c: Include <string.h> unconditionally.
79466         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
79467         Don't declare getenv or malloc.
79468
79469         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
79470         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
79471         (NULL): Remove.
79472         (find_stack_direction, alloca): Use prototypes.
79473
79474         * lib/atexit.c (atexit): Define using a prototype.
79475
79476         * lib/basename.c, dirname.c, stripslash.c:
79477         Include <string.h> unconditionally.
79478
79479         * lib/bcopy.c: Include <stddef.h>.
79480         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
79481
79482         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
79483
79484         * lib/error.h (error, error_at_line, error_print_progname)
79485         [! (defined (__STDC__) && __STDC__)]: Remove decls.
79486         * lib/error.c: Include error.h first, to check interface.
79487         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79488         (VA_START): Remove; all uses changeed to va_start.
79489         (exit, strerror): Remove decls.
79490         (error_print_progname): Prototype uncondionally.
79491         Don't include <errno.h>; no longer needed.
79492         (private_strerror): Remove.
79493         (error_tail): Always define.
79494         (error, error_at_line): Assume C89 or better; always use prototypes.
79495         * lib/fatal.c: Include "fatal.h" first, to test interface.
79496         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
79497         (VA_START): Remove; all uses changed to va_start.
79498         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
79499         this case.
79500         (exit): Remove decl.
79501         (fatal): Prototype unconditionally.  Assume va_start works.
79502         Abort at end, to pacify gcc.
79503
79504         * lib/euidaccess.c (main): Define with a prototype.
79505
79506         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
79507
79508         * lib/exitfail.c: Include <stdlib.h> unconditionally.
79509
79510         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
79511         prototypes.
79512         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
79513         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
79514         (getenv): Remove decl.
79515         (fnmatch): Define using a prototype.
79516         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
79517         (FCT): Define using a prototype.
79518
79519         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
79520
79521         * lib/gethostname.c: Include <stddef.h>.
79522         (gethostname): Define with prototype.  Length is size_t, not int.
79523
79524 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79525
79526         Assume C89 or better; remove K&R cruft.
79527         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
79528         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
79529         string.h, getenv, malloc.
79530         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
79531         headers.
79532         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
79533         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
79534         do not check for strerror.
79535         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
79536         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
79537         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
79538         do not check for doprnt or vprintf.
79539         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
79540         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
79541
79542 2003-09-08  Paul Eggert  <eggert@twinsun.com>
79543
79544         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
79545         getversion.c should have been removed then, but was accidentally
79546         preserved.
79547
79548         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
79549         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
79550
79551 2003-09-08  Karl Berry  <karl@gnu.org>
79552
79553         * config/config.sub, config.guess, srclistvars.sh: update from savannah
79554                 config, forget about prep.
79555
79556         * config/depcomp, missing: update from automake.
79557
79558 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79559
79560         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79561         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79562
79563 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79564
79565         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79566         copy_tm_result.  Bug reported by Simon Josefsson in
79567         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79568
79569 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79570
79571         * m4/time_r.m4: New file.
79572         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79573         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79574         is. Check for timegm declaration.
79575         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79576         Do not check for gmtime_r.
79577         Replace mktime if __mktime_internal does not exist and if mktime
79578         hasn't been replaced already.
79579
79580 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79581
79582         * lib/time_r.c, lib/time_r.h: New files.
79583
79584         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79585         __localtime_r.
79586         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79587         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79588
79589         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79590         __gmtime_r.
79591         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79592         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79593         Include <time_r.h>.
79594
79595         * lib/timegm.c: Switch to glibc implementation, with the following
79596         changes:
79597         [defined HAVE_CONFIG_H]: Include <config.h>.
79598         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79599         (__mktime_internal) [!defined _LIBC]: New decl.
79600         (__gmtime_r) [!defined _LIBC]: New macro and function.
79601         (timegm): Use a prototype, since gnulib assumes C89.
79602         Do not bother declaring tmp to be const, as it's not really usefu.
79603         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79604         (timegm): Declare only if HAVE_DECL_TIMEGM.
79605
79606 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79607
79608         * MODULES.html.sh (func_all_modules): Add time_r.
79609         * modules/time_r: New file.
79610         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79611         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79612
79613 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79614
79615         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79616         Bug reported by Lute Kamstra in
79617         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79618
79619         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79620         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79621         course with correspondingly smaller numbers for tomorrow and
79622         yesterday.  From Tadayoshi Funaba.  Originally installed into
79623         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79624         coreutils merge?).
79625
79626 2003-08-31  Simon Josefsson  <jas@extundo.com>
79627
79628         * modules/timegm: New file.
79629         * MODULES.html.sh (func_all_modules): Add timegm.
79630
79631 2003-08-31  Simon Josefsson  <jas@extundo.com>
79632
79633         * m4/timegm.m4: New file.
79634
79635 2003-08-31  Simon Josefsson  <jas@extundo.com>
79636
79637         * lib/timegm.h: New file.
79638         * lib/timegm.c: New file.  Based on
79639         wget-1.8.2/src/http.c:mktime_from_utc.
79640
79641 2003-08-31  Karl Berry  <karl@gnu.org>
79642
79643         * lib/argp.h: update from libc.
79644
79645 2003-08-28  Bruno Haible  <bruno@clisp.org>
79646
79647         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79648         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79649         followed by '#define fnmatch fnmatch_posix' gives an error.
79650
79651 2003-08-28  Bruno Haible  <bruno@clisp.org>
79652
79653         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79654         warning on QNX, which defines O_BINARY to 000000.
79655
79656 2003-08-27  Jim Meyering  <jim@meyering.net>
79657
79658         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79659         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79660         would fail after 32.  Reported by Danny Levinson.  Details here:
79661         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79662
79663 2003-08-24  Bruno Haible  <bruno@clisp.org>
79664
79665         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79666         MSVC7 <stdio.h> is included later.
79667
79668 2003-08-22  Simon Josefsson  <jas@extundo.com>
79669
79670         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79671
79672 2003-08-20  Karl Berry  <karl@gnu.org>
79673
79674         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79675
79676 2003-08-20  Bruno Haible  <bruno@clisp.org>
79677
79678         * modules/progname: New file.
79679         * MODULES.html.sh (func_all_modules): Add progname.
79680
79681 2003-08-20  Bruno Haible  <bruno@clisp.org>
79682
79683         * lib/progname.h: New file, from GNU gettext.
79684         * lib/progname.c: New file, from GNU gettext.
79685         * lib/progreloc.c: New file, from GNU gettext.
79686
79687 2003-08-19  Jim Meyering  <jim@meyering.net>
79688
79689         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79690         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79691
79692 2003-08-19  Bruno Haible  <bruno@clisp.org>
79693
79694         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79695         more.
79696
79697 2003-08-19  Bruno Haible  <bruno@clisp.org>
79698
79699         * lib/xstrdup.c: Assume <string.h> exists.
79700
79701 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79702
79703         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79704         in makefile rules.
79705
79706 2003-08-18  Jim Meyering  <jim@meyering.net>
79707
79708         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79709         * m4/lib-ld.m4: Likewise.
79710
79711 2003-08-18  Jim Meyering  <jim@meyering.net>
79712
79713         * lib/setenv.h: Indent nested cpp directive.
79714         * lib/vasnprintf.c: Remove trailing blanks.
79715
79716 2003-08-17  Simon Josefsson  <jas@extundo.com>
79717
79718         * modules/xstrndup: New file.
79719         * MODULES.html.sh (func_all_modules): Add xstrndup.
79720
79721 2003-08-17  Simon Josefsson  <jas@extundo.com>
79722
79723         * modules/argp: Fix autoconf macro name. Add more dependencies.
79724
79725 2003-08-17  Simon Josefsson  <jas@extundo.com>
79726
79727         * m4/xstrndup.m4: New file.
79728
79729 2003-08-17  Simon Josefsson  <jas@extundo.com>
79730
79731         * m4/argp.m4: New file.
79732
79733 2003-08-17  Simon Josefsson  <jas@extundo.com>
79734             Bruno Haible  <bruno@clisp.org>
79735
79736         * lib/xstrndup.h: New file.
79737         * lib/xstrndup.c: New file.
79738
79739 2003-08-17  Bruno Haible  <bruno@clisp.org>
79740
79741         * modules/strndup (Files, Include): Add lib/strndup.h.
79742
79743 2003-08-17  Bruno Haible  <bruno@clisp.org>
79744
79745         * modules/euidaccess (Files): Add lib/euidaccess.h.
79746
79747 2003-08-17  Bruno Haible  <bruno@clisp.org>
79748
79749         * lib/strndup.h: New file.
79750
79751 2003-08-17  Bruno Haible  <bruno@clisp.org>
79752
79753         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79754         like AC_GNU_SOURCE.
79755         * modules/extensions (configure.ac): Comment out the invocation of
79756         gl_USE_SYSTEM_EXTENSIONS.
79757
79758 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79759
79760         Merges from coreutils, etc.
79761         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79762         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79763         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79764         fixing a typo.
79765         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79766         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79767
79768 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79769
79770         Document merge from coreutils.
79771         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79772         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79773         * modules/utime: Add m4/utimes-null.m4.
79774
79775 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79776
79777         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79778         space, undoing this 2003-08-12 change:
79779         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79780
79781 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79782
79783         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79784         strtoul.c from libc, undoing this 2003-08-12 change:
79785         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79786
79787 2003-08-16  Jim Meyering  <jim@meyering.net>
79788
79789         Merges from coreutils.
79790         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79791         prefix.  Adjust cache variables similarly.  Create 500 rather than
79792         just 300 files, to exercise bug on Darwin6.5, too.
79793         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79794         $missing_dir.
79795         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79796         AM_SYS_POSIX_TERMIOS.
79797         Reported by mkc@mathdogs.com.
79798         Also change use of $am_cv_sys_posix_termios
79799         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79800         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79801         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79802         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79803         in /proc/mounts until it finds one with matching device number.  This
79804         is unnecessary when the FILE argument *is* a mount point.  No stat call
79805         is necessary in that case.  So, disable the statvfs-testing code on
79806         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79807         as RedHat bug# 84846.
79808         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79809         to 1MB, so as not to render systems with no stack size limit (e.g.,
79810         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79811         Include <unistd.h>.  On some systems,
79812         it is required for the definition of _SC_PAGESIZE.
79813
79814 2003-08-16  Jim Meyering  <jim@meyering.net>
79815
79816         Merge from coreutils.
79817         * lib/xstrtoimax.c: #else #if -> #elif.
79818         * lib/xstrtoumax.c: Likewise.
79819
79820 2003-08-16  Jim Meyering  <jim@meyering.net>
79821
79822         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79823         * m4/utimes.m4: Removed.
79824         * m4/utimes-null.m4: Renamed from utimes.m4.
79825
79826         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79827         to 1MB, so as not to render systems with no stack size limit (e.g.,
79828         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79829         Include <unistd.h>.  On some systems,
79830         it is required for the definition of _SC_PAGESIZE.
79831
79832 2003-08-16  Jim Meyering  <jim@meyering.net>
79833         and Paul Eggert  <eggert@cs.ucla.edu>
79834
79835         Merges from coreutils, etc.
79836
79837         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79838         using the latest version from cvs.  This avoids problems with #line
79839         directives using a vendor (Sun) compiler.
79840         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79841         Don't set GETGROUPS_LIB here; now it's
79842         done via getgroups.m4's wrapper function.
79843         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79844         rather than just in sh-util/configure.in, so that the
79845         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79846         same.
79847         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79848         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79849         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79850         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79851         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79852         Remove code that is now done by the newly-required macros.
79853         Append $(EXEEXT) to DF_PROG.
79854         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79855         Do not invoke or require the following here,
79856         since prereq.m4 or some gnulib .m4 now does this for us:
79857         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79858         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79859         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79860         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79861         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79862         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79863         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79864         AC_FUNC_OBSTACK.
79865         Do not replace the following functions, as this is now the job
79866         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79867         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79868         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79869         atexit getpass, strdup, getpagesize.
79870         Replace 'raise'.
79871         Do not check for the following functions, as this is now the job
79872         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79873         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79874         setregid.
79875         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79876         Check for sys/sysctl.h.
79877         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79878         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79879         of checking for ssize_t ourselves.
79880
79881         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79882         Require every macro that gnulib/modules/* suggests for us.
79883         (jm_PREREQ_ADDEXT): New macro.
79884         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79885         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79886
79887         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79888         (gl_PHYSMEM): Use it.
79889         Also check for `table' function.
79890         Check for new headers and functions.
79891         Add check for sys/sysmp.h.
79892         With suggestions from Kaveh Ghazi.
79893         Ignore headers that are present but cannot be compiled.  This
79894         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79895         C 5.4.
79896
79897 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79898
79899         Document merge from coreutils.
79900         * modules/userspec: Depend on posixver.
79901         * modules/strftime: Depend on tzset.
79902
79903 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79904
79905         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79906         rather than tab, after '#' in shell-script copyright notices.
79907         Suggested by Bruno Haible.
79908
79909 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79910
79911         * config/srclist-update: Use three spaces, rather than tab, after '#'
79912         in shell-script copyright notices.  Suggested by Bruno Haible.
79913         Remove unnecessary parenthesization in regular expression.
79914
79915 2003-08-15  Jim Meyering  <jim@meyering.net>
79916
79917         Merge from coreutils.
79918         * lib/xgethostname.c: Include <stdlib.h>.
79919         (xghostname): Don't exit for anything other than memory-related
79920         failure; just return NULL.
79921         * lib/userspec.c: Include "posixver.h".
79922         (parse_user_spec): Accept `.' as a separator only
79923         in pre-POSIX-200112 mode.
79924         * lib/strtoimax.c: Use #elif rather than #else #if.
79925         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79926         Remove function, now that we can rely on a working tzset function.
79927         [!_LIBC]: Ensure that the required autoconf test has been run.
79928         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79929         Use underlying_strftime for %r.
79930         * lib/sha.c: Merge in some clean-up and optimization changes from
79931         glibc.
79932         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79933         Ensure that it is a multiple of 64.
79934         Rearrange loop exit tests so as to avoid performing an
79935         additional fread after encountering an error or EOF.
79936         * lib/realloc.c: Update copyright date.
79937
79938 2003-08-15  Jim Meyering  <jim@meyering.net>
79939         and Paul Eggert  <eggert@twinsun.com>
79940
79941         Merge from coreutils.
79942         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79943         member but strut utmpx does not.  Needed for AIX 4.3.3.
79944         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79945
79946 2003-08-15  Jim Meyering  <jim@meyering.net>
79947         and Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         Merges from coreutils, etc.
79950         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79951         Require gl_FUNC_TZSET_CLOBBER.
79952         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79953         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79954         members.
79955
79956 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79957
79958         Help the merge from coreutils.
79959         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79960         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79961         * m4/tzset.m4: Use it too.
79962
79963 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79964
79965         * modules/tzset: New file.
79966
79967 2003-08-14  Jim Meyering  <jim@meyering.net>
79968
79969         Merges from coreutils.
79970         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79971         variable names, rather than @FNMATCH_H@.
79972         * modules/alloca: Likewise for $(ALLOCA_H).
79973
79974         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79975         the three copies of the literal target, `fnmatch.h'.
79976         * modules/alloca (alloca.h): Likewise.
79977
79978 2003-08-14  Jim Meyering  <jim@meyering.net>
79979
79980         Merge from coreutils.
79981         * m4/tzset.m4: New file.
79982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79983         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79984         otherwise, AIX 5.1 systems would end up using the latter.
79985         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79986         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79987         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79988         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79989
79990 2003-08-14  Jim Meyering  <jim@meyering.net>
79991
79992         Merge from coreutils.
79993         * lib/obstack.h: Whitespace changes.
79994         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79995         and xcalloc return values.
79996         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79997         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79998         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79999         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80000         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80001         error from mntctl.
80002         Use mntctl's return value to drive the entry-processing loop, since
80003         we can't rely on the value of the vmt_length member in the last
80004         entry.  On some systems doing so could result in exhausting
80005         virtual memory.  Based in part on a patch from Mike Jetzer.
80006
80007 2003-08-14  Jim Meyering  <jim@meyering.net>
80008         and Paul Eggert  <eggert@twinsun.com>
80009
80010         Merges from coreutils, plus other fixes.
80011         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80012         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80013         for credits and details.  Thanks to Kaveh Ghazi for helping
80014         to keep these files in sync.
80015         (ARRAY_SIZE): Define it.
80016         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80017         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80018         (memcasecmp): Don't assume size_t fits in unsigned int.
80019         Remove casts and duplicate code.
80020         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80021         (memcpy): Remove definition.
80022         Merge in some clean-up and optimization changes from glibc.
80023         [BLOCKSIZE]: Move definition to top of file.
80024         Ensure that it is a multiple of 64.
80025         Rearrange loop exit tests so as to avoid performing an
80026         additional fread after encountering an error or EOF.
80027         * lib/md5.h (md5_uintptr): Define.
80028         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
80029         return to the initial working directory.  Preserve errno
80030         for caller.
80031         * lib/idcache.c: Include "xalloc.h".
80032         (xmalloc, xrealloc): Remove decls.
80033         (getuser): Remove casts no longer required in C89.
80034         * lib/human.c: Include stdio.h, for sprintf.
80035         * lib/group-member.c: Include "xalloc.h".
80036         (xmalloc, xrealloc): Remove decls.
80037         (get_group_info): Remove casts no longer required in C89.
80038         * lib/getusershell.c (readname): Remove casts no longer required in
80039         C89.
80040         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
80041         * lib/getline.c: Whitespace fix, from coreutils.
80042
80043 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80044
80045         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
80046         Check for isascii.
80047
80048         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80049         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80050         Undo previous (whitespace-only) change.
80051
80052 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80053
80054         * lib/exclude.c: Include <ctype.h>
80055         (IN_CTYPE_DOMAIN): New macro.
80056         (is_space): New fn.
80057         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80058         and empty lines.
80059
80060         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80061         Undo previous (whitespace-only) change.
80062
80063 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80064
80065         * config/srclist-update: Change update back to the old behavior,
80066         leaving whitespace alone.  Use one 'sed' command rather than a
80067         pipeline.
80068         (fixlicense): Now a variable, not a function.
80069         (remove_trailing_blanks): Remove.
80070         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80071         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80072         Undo previous (whitespace-only) change.
80073
80074 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80075
80076         Merge from coreutils.
80077         * modules/euidaccess: Add lib_SOURCES, include for new
80078         file euidaccess.h
80079
80080 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80081
80082         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80083         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80084         Normalize leading white space and remove trailing white space.
80085
80086         Merge from coreutils
80087         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80088
80089         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80090         0.12.1.  These files are now being upgraded automatically by
80091         ../config/srclist-update.
80092
80093 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80094
80095         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80096         Normalize leading white space and remove trailing white space.
80097         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80098         notice, as per ../config/srclist-update.
80099
80100         Merge from coreutils.
80101         * lib/euidaccess.h: New file.
80102         * lib/euidaccess.c: Include it.
80103         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80104         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80105         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80106
80107 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80108
80109         * config/srclist-update: Add copyright notice.
80110         (remove_id_lines, remove_trailing_blanks): New constants.
80111         (fixfile): Use them to normalize spacing a bit in copied files.
80112         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80113         Normalize leading white space and remove trailing white space.
80114
80115         * config/texinfo.tex: Sync with texinfo.
80116
80117         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80118         strtoul.c from libc, to merge coreutils whitespace changes.
80119
80120         * config/srclist.txt: Get the following m4 files from gettext:
80121         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80122         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
80123         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
80124         wint_t.m4.
80125
80126 2003-08-12  Karl Berry  <karl@gnu.org>
80127
80128         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
80129         been made.
80130
80131 2003-08-11  Paul Eggert  <eggert@twinsun.com>
80132
80133         * modules/gnu-source, m4/gnu-source.m4:
80134         Remove; we're assuming Autoconf 2.54 or later now.
80135         Suggested by Bruno Haible.
80136         * MODULES.html.sh (func_all_modules): Remove gnu-source.
80137
80138 2003-08-11  Bruno Haible  <bruno@clisp.org>
80139
80140         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
80141
80142 2003-08-11  Bruno Haible  <bruno@clisp.org>
80143
80144         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
80145         (vasnprintf): Use it instead of wcslen.
80146
80147 2003-08-11  Bruno Haible  <bruno@clisp.org>
80148
80149         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
80150         value to ensure that _Bool promotes to int. Use #define for _Bool when
80151         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
80152
80153 2003-08-10  Karl Berry  <karl@gnu.org>
80154
80155         * lib/regex.h: update from libc (whitespace fix).
80156
80157 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80158
80159         Merge some files from coreutils.  These changes were
80160         originally made by Jim Meyering.
80161         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
80162         many older Unixes require this.
80163         * lib/alloca.c (alloca): Remove cast to argument of free;
80164         no longer needed in C89.
80165         * lib/alloca_.h, regex.h: Fix white space to match
80166         what GNU indent does.
80167
80168 2003-08-09  Paul Eggert  <eggert@twinsun.com>
80169
80170         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
80171         apparently Emacs's Unicode mode got confused before my 2003-08-05
80172         checkin.
80173
80174 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80175
80176         * m4/extensions.m4: New file.
80177         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
80178         Require gl_USE_SYSTEM_EXTENSIONS.
80179         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
80180         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
80181
80182 2003-08-08  Paul Eggert  <eggert@twinsun.com>
80183
80184         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
80185         * modules/extensions, modules/gnu-source: New files.
80186         * modules/timespec, modules/unlocked-io: Depend on extensions.
80187
80188 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80189
80190         * modules/restrict: New file.
80191         * MODULES.html.sh (func_all_modules): Add restrict.
80192         * modules/regex: Depend on restrict.
80193
80194 2003-08-07  Paul Eggert  <eggert@twinsun.com>
80195
80196         * m4/restrict.m4: New file.
80197         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
80198
80199 2003-08-07  Bruno Haible  <bruno@clisp.org>
80200
80201         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
80202         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
80203
80204 2003-08-07  Bruno Haible  <bruno@clisp.org>
80205
80206         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
80207         makes the module 'getndelim2' compatible with the module 'getline'.
80208
80209 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80210
80211         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
80212         byte with "\201" to avoid glitches when editing that source file
80213         with multi-gnome-terminal.
80214
80215 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80216
80217         * lib/bumpalloc.h: Remove.
80218
80219 2003-08-05  Paul Eggert  <eggert@twinsun.com>
80220
80221         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
80222         * modules/bumpalloc: Remove.
80223
80224 2003-08-04  Paul Eggert  <eggert@twinsun.com>
80225
80226         * lib/getloadavg.c: Change copyright notice and spacing to conform to
80227         GNU coding style.
80228
80229         Merge from coreutils.
80230         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
80231         1. From glibc.
80232         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
80233         from Karl Berry, implemented by Jim Meyering.
80234         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
80235         from Dmitry V. Levin.
80236         Remove anachronistic cast of xrealloc.
80237         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
80238         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
80239         type. Otherwise, it wouldn't compile with at least /bin/cc on
80240         ymp-cray-unicos9.0.2.X.
80241         Combine two mostly-identical uses of alloca into one.
80242         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
80243
80244 2003-08-04  Dave Love  <d.love@dl.ac.uk>
80245
80246         [From Emacs.]
80247
80248         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
80249         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
80250         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
80251         obsolete NLIST_NAME_UNION.
80252         [__GNU__]: Undef BSD and FSCALE.
80253         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
80254
80255 2003-08-03  Paul Eggert  <eggert@twinsun.com>
80256
80257         * lib/stdbool_.h (_Bool): Make it signed char, instead of
80258         an enum type, so that it's guaranteed to promote to int.  See:
80259         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
80260
80261 2003-08-03  Karl Berry  <karl@gnu.org>
80262
80263         * config/depcomp: update from automake.
80264
80265 2003-07-31  Paul Eggert  <eggert@twinsun.com>
80266
80267         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
80268         (strerror): Don't assume that a printable int fits in 14 bytes.
80269
80270 2003-07-31  Bruno Haible  <bruno@clisp.org>
80271
80272         * modules/getpass-gnu: New file.
80273         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
80274
80275 2003-07-31  Bruno Haible  <bruno@clisp.org>
80276
80277         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
80278
80279 2003-07-24  Karl Berry  <karl@gnu.org>
80280
80281         * config/missing: update from automake.
80282
80283 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
80284             Bruno Haible  <bruno@clisp.org>
80285
80286         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
80287         * lib/getline.c (getline, getdelim): Likewise.
80288         Remove _GNU_SOURCE define; now it's defined in config.h through
80289         m4/getline.m4.
80290
80291 2003-07-23  Karl Berry  <karl@gnu.org>
80292
80293         * config/config.sub: update from prep.
80294
80295 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80296
80297         * modules/xalloc (Depends-on): Add exitfail.
80298         * modules/xmemcoll: Likewise.
80299
80300 2003-07-22  Paul Eggert  <eggert@twinsun.com>
80301
80302         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
80303         over-parenthesization in macros.
80304
80305         Sync with coreutils.
80306
80307         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
80308         required by C99.
80309
80310         Use `exit_failure' for xalloc and xmemcoll instead of their own
80311         private exit-failure variables.
80312         * lib/xalloc.h (xalloc_exit_failure): Remove.
80313         * lib/xmalloc.c: Likewise.  Include exitfail.h.
80314         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
80315         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
80316         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
80317         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
80318
80319 2003-07-20  Jim Meyering  <jim@meyering.net>
80320
80321         * modules/closeout (Depends-on): Add exitfail.
80322         Suggestion from Bruno Haible.
80323
80324 2003-07-19  Karl Berry  <karl@gnu.org>
80325
80326         * config/config.sub: update from prep.
80327
80328 2003-07-18  Paul Eggert  <eggert@twinsun.com>
80329
80330         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
80331         Remove.
80332         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
80333         to test that it can stand by itself.  Include "exitfail.h".
80334         Clients should set exit_failure instead.
80335         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
80336
80337 2003-07-18  Bruno Haible  <bruno@clisp.org>
80338
80339         * modules/getndelim2: New file.
80340         * modules/getline: Share files with module getndelim2.
80341         * modules/getnline: Depend on getndelim2 instead of sharing files with
80342         it. Add getnline.c to lib_SOURCES.
80343         * MODULES.html.sh (func_all_modules): Add getndelim2.
80344
80345 2003-07-18  Bruno Haible  <bruno@clisp.org>
80346
80347         * m4/getndelim2.m4: New file.
80348         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
80349         invoke gl_PREREQ_GETNDELIM2.
80350         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
80351         gl_PREREQ_GETNDELIM2.
80352         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
80353         gl_GETNDELIM2.
80354
80355 2003-07-18  Bruno Haible  <bruno@clisp.org>
80356
80357         * lib/getndelim2.h: New file.
80358         * lib/getndelim2.c: Make into a module of its own. Include config.h,
80359         getndelim2.h.
80360         (getndelim2): Make non-static. Change return type to ssize_t.
80361         * lib/getline.h: Change argument names.
80362         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
80363         * lib/getnline.c: Include getndelim2.h.
80364
80365 2003-07-18  Andreas Schwab  <schwab@suse.de>
80366
80367         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
80368
80369 2003-07-17  Karl Berry  <karl@gnu.org>
80370
80371         * config/config.sub: update from prep.
80372
80373 2003-07-17  Bruno Haible  <bruno@clisp.org>
80374
80375         * modules/getnline: New file.
80376         * modules/getline: Add lib/getndelim2.c to source file list.
80377         * MODULES.html.sh (func_all_modules): Add getnline.
80378
80379 2003-07-17  Bruno Haible  <bruno@clisp.org>
80380
80381         * m4/getnline.m4: New file.
80382
80383 2003-07-17  Bruno Haible  <bruno@clisp.org>
80384
80385         * m4/Makefile.am.in: Remove file.
80386         * m4/Makefile.am: Remove file.
80387         * m4/Makefile.in: Remove file.
80388
80389 2003-07-17  Bruno Haible  <bruno@clisp.org>
80390
80391         * lib/getnline.h: New file.
80392         * lib/getnline.c: New file.
80393         * lib/getndelim2.c: New file, extracted from getline.c.
80394         (getndelim2): Renamed from getdelim2, with added nmax argument.
80395         * lib/getline.c: Include getndelim2.c.
80396         (getdelim2): Moved out to getndelim2.c.
80397         (getline, getdelim): Update.
80398
80399 2003-07-17  Bruno Haible  <bruno@clisp.org>
80400
80401         * lib/Makefile.am: Remove file.
80402         * lib/Makefile.in: Remove file.
80403
80404 2003-07-17  Bruno Haible  <bruno@clisp.org>
80405
80406         * configure.in: Remove file.
80407         * Makefile.in: Remove file.
80408
80409 2003-07-17  Bruno Haible  <bruno@clisp.org>
80410
80411         * MODULES.html.sh: Put the </BODY> right before </HTML>.
80412
80413 2003-07-16  Karl Berry  <karl@gnu.org>
80414
80415         * config/srclist-update: was running fixlicense twice, which caused
80416                 texinfo.tex to be nullified for some reason.  Simplify,
80417                 $gplsrc is no longer needed as far as I can see?
80418
80419 2003-07-16  Jim Meyering  <jim@meyering.net>
80420
80421         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
80422
80423 2003-07-15  Paul Eggert  <eggert@twinsun.com>
80424
80425         * config/srclist.txt: Get the following files from gettext-runtime/intl
80426         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
80427         ref-del.sin.  From Bruno Haible.
80428         * config/srclist-update (fixfile): Change grep pattern again, since the
80429         previous fix didn't work (there was another trailing $).  Use
80430         '[$]' to escape the $s.
80431
80432 2003-07-15  Karl Berry  <karl@gnu.org>
80433
80434         * lib/vasnprintf.c: update from gettext.
80435
80436 2003-07-15  Karl Berry  <karl@gnu.org>
80437
80438         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
80439         gets expanded when surrounded by '$'.
80440
80441 2003-07-15  Jim Meyering  <jim@meyering.net>
80442
80443         * modules/save-cwd: Don't depend on error.  From Derek Price.
80444
80445 2003-07-15  Jim Meyering  <jim@meyering.net>
80446
80447         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
80448
80449 2003-07-14  Simon Josefsson  <jas@extundo.com>
80450
80451         * modules/mempcpy: New file.
80452         * MODULES.html.sh (func_all_modules): Add mempcpy.
80453
80454 2003-07-14  Simon Josefsson  <jas@extundo.com>
80455
80456         * m4/mempcpy.m4: New file.
80457
80458 2003-07-14  Simon Josefsson  <jas@extundo.com>
80459
80460         * lib/mempcpy.h: New file.
80461         * lib/mempcpy.c: New file.
80462
80463 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80464
80465         * modules/getdate, modules/posixtm: Depend on mktime.
80466
80467 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80468
80469         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
80470         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
80471         unicodeio.c, unicodeio.h, unlocked-io.h:
80472         Switch from LGPL to GPL.
80473
80474 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80475
80476         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
80477         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
80478         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
80479         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
80480         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
80481         updated automatically by ../config/srclist-update.  This changes
80482         their license from LPGL to GPL.
80483
80484 2003-07-14  Paul Eggert  <eggert@twinsun.com>
80485
80486         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
80487         assumed to refer to the root of the most recent stable gettext version.
80488         * config/srclistvars.sh: Add defaults for eggert.
80489         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
80490         Match "This program" as well as "The program".  This is needed
80491         for gettext.
80492
80493 2003-07-14  Jim Meyering  <jim@meyering.net>
80494
80495         Don't emit diagnostics.  Let callers do that.
80496         * lib/save-cwd.c: Don't include "error.h".
80497         (save_cwd): Don't call error.  Ensure that errno is valid
80498         when returning nonzero.
80499
80500         * lib/save-cwd.h (restore_cwd): Update prototype.
80501         * lib/save-cwd.c (restore_cwd): Remove two parameters.
80502         Simplify.  Don't call error upon failure.  Let callers do that.
80503         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
80504         when auditing is enabled.  But don't bother updating the #if.
80505
80506 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
80507
80508         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
80509         it breaks C++ compilation.
80510         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
80511
80512 2003-07-10  Simon Josefsson  <jas@extundo.com>
80513
80514         * modules/strchrnul (Makefile.am): Add strchrnul.h.
80515
80516 2003-07-10  Jim Meyering  <jim@meyering.net>
80517
80518         * m4/clock_time.m4: Remove trailing blank.
80519         * m4/intmax_t.m4: Likewise.
80520
80521 2003-07-10  Jim Meyering  <jim@meyering.net>
80522
80523         * lib/vasnprintf.c: Remove trailing blanks.
80524         Make cpp indentation consistent.
80525
80526 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80527
80528         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
80529         posixver.c, strftime.c, strnlen.c, strverscmp.c:
80530         Switch from LGPL to GPL.
80531
80532 2003-07-09  Paul Eggert  <eggert@twinsun.com>
80533
80534         * config/srclist.txt: Sort sublists.  Add
80535         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
80536         that differ from gnulib for one reason or another; we'd like this list
80537         to be smaller but for now let's document what we have.
80538
80539 2003-07-08  Paul Eggert  <eggert@twinsun.com>
80540
80541         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
80542         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
80543         and sweeter "eval x=$x".
80544         * config/srclist.txt: Get lib/argp* from glibc.
80545
80546 2003-07-07  Paul Eggert  <eggert@twinsun.com>
80547
80548         * lib/mktime.c: Fix some boundary cases and remove need for floating
80549         point.
80550
80551         Issue a compile-time diagnostic if time_t is floating point, or if
80552         two's complement arithmetic is not in effect, or if arithmetic
80553         right shift does not propagate the sign.  These assumptions were
80554         all in the original code but they weren't checked.
80555
80556         (TIME_T_MIDPOINT, verify): New macros.
80557         (__isleap): Remove; it has integer overflow problems.
80558         (leapyear): New function, without those problems.
80559         (ydhms_tm_diff): Remove; splitting into two parts.
80560         (ydhms_diff): New function, containing the arithmetic part of
80561         the old ydhms_tm_diff function.  Issue a compile-time
80562         diagnostic if we are not using C99 integer division.
80563         Avoid casts when possible.
80564         (guess_time_tm): New function, containing the checking part of
80565         the old ydhms_tm_diff function.  Return the new value, rather than
80566         the difference between it and the old.  Accept a new argument T
80567         so that *T specifies the old value.  Check for overflow in the result.
80568
80569         (__mktime_internal): Use a time_t offset, not a long int offset.
80570         This undoes the 2003-06-04 change, which is no longer needed now
80571         that we have better overflow checking.
80572         (localtime_offset): Likewise.
80573
80574         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80575         and long are 64-bit but int is only 32-bit.
80576         (ydhms_diff): Use long int to store year1 and yday1.
80577         Issue a compile-time diagnostic if long int is not wide enough.
80578
80579         (__mktime_internal): Use long int to store adjusted year and yday.
80580         Use plain C rather than preprocessor commands, if that doesn't
80581         affect efficiency.
80582         Check for overflow (and try to repair) after each probe
80583         rather than checking only at the very end.  This avoids some bugs
80584         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80585         does not equal GMT offset at maximum time).
80586         Use integer to check for overflow rather than floating point; this
80587         is more portable to non-IEEE hosts, and is a tad faster.
80588         When we detect that we are oscillating between two values,
80589         don't check whether tm_isdst has the requested value, since
80590         we already know the answer.  When tm_isdst has the wrong value,
80591         use a different heuristic to find the right one, based on the
80592         extreme values actually observed in practice in tz2003a,
80593         rather than the (overly optimistic) "previous 3 calendar quarters".
80594
80595         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80596         "T const" to accommodate glibc style.
80597         (check_result): Use less-confusing report format.  "long" -> "long int.
80598         (main): Likewise.
80599         Don't loop if the iteration overflows time_t.
80600         Allow a negative step in the iteration.
80601
80602 2003-07-06  Karl Berry  <karl@gnu.org>
80603
80604         * config/depcomp: update from automake.
80605         * config/config.sub: update from prep.
80606
80607 2003-07-03  Karl Berry  <karl@gnu.org>
80608
80609         * config/config.guess: update from prep.
80610
80611 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80612
80613         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80614         xreadlink.c now includes it unconditionally.
80615
80616 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80617
80618         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80619         having it depend on HAVE_SYS_TYPES_H.
80620
80621 2003-07-01  Bruno Haible  <bruno@clisp.org>
80622
80623         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80624         <sys/types.h> should be sufficient.
80625         Reported by Paul Eggert.
80626
80627 2003-06-26  Karl Berry  <karl@gnu.org>
80628
80629         * config/depcomp: update from automake.
80630
80631 2003-06-26  Bruno Haible  <bruno@clisp.org>
80632
80633         * modules/human: Depend on module stdbool.
80634
80635 2003-06-25  Bruno Haible  <bruno@clisp.org>
80636
80637         * modules/readlink: New file.
80638         * modules/xreadlink: Depend on it.
80639         * MODULES.html.sh (func_all_modules): Add readlink.
80640
80641 2003-06-25  Bruno Haible  <bruno@clisp.org>
80642
80643         * m4/readlink.m4: New file.
80644
80645 2003-06-25  Bruno Haible  <bruno@clisp.org>
80646
80647         * lib/readlink.c: New file.
80648
80649 2003-06-22  Karl Berry  <karl@gnu.org>
80650
80651         * config/srclist.txt: update mkinstalldirs from automake.
80652         * config/mkinstalldirs: update.
80653
80654 2003-06-22  Bruno Haible  <bruno@clisp.org>
80655
80656         Portability to mingw32.
80657         * m4/ssize_t.m4: New file, from GNU gettext.
80658         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80659         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80660
80661 2003-06-22  Bruno Haible  <bruno@clisp.org>
80662
80663         * modules/safe-read: Add m4/ssize_t.m4.
80664         * modules/xreadlink: Add m4/ssize_t.m4.
80665
80666 2003-06-20  Bruno Haible  <bruno@clisp.org>
80667
80668         Assume C89, so PARAMS isn't needed.
80669         * lib/unicodeio.h (PARAMS): Remove.
80670         * lib/unicodeio.c: Don't use PARAMS.
80671
80672 2003-06-18  Karl Berry  <karl@gnu.org>
80673
80674         * config/config.{guess,sub}: update from prep.
80675
80676 2003-06-18  Jim Meyering  <jim@meyering.net>
80677
80678         Merge changes from coreutils.
80679         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80680         Remove explicit declarations of xmalloc and realloc.
80681         Include xalloc.h.
80682         (read_utmp): Remove anachronistic cast of xmalloc.
80683
80684 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80685
80686         Assume C89, so PARAMS isn't needed.
80687         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80688         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80689         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80690         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80691         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80692         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80693         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80694         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80695         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80696         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80697         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80698         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80699         no longer needed. Anyway, config.h should always be included before any
80700         other file.
80701
80702 2003-06-11  Simon Josefsson  <jas@extundo.com>
80703
80704         * modules/sysexits: New file.
80705         * MODULES.html.sh (func_all_modules): Add sysexits.
80706
80707 2003-06-11  Simon Josefsson  <jas@extundo.com>
80708
80709         * lib/sysexit_.h: New file.
80710
80711 2003-06-11  Derek Price  <derek@ximbiot.com>
80712
80713         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80714         necessary.
80715
80716 2003-06-11  Bruno Haible  <bruno@clisp.org>
80717
80718         * m4/sysexits.m4: New file.
80719
80720 2003-06-10  Simon Josefsson  <jas@extundo.com>
80721
80722         * lib/argp.h: New file, from glibc.
80723         * lib/argp-ba.c: New file, from glibc.
80724         * lib/argp-eexst.c: New file, from glibc.
80725         * lib/argp-fmtstream.c: New file, from glibc.
80726         * lib/argp-fmtstream.h: New file, from glibc.
80727         * lib/argp-fs-xinl.c: New file, from glibc.
80728         * lib/argp-help.c: New file, from glibc.
80729         * lib/argp-namefrob.h: New file, from glibc.
80730         * lib/argp-parse.c: New file, from glibc.
80731         * lib/argp-pv.c: New file, from glibc.
80732         * lib/argp-pvh.c: New file, from glibc.
80733         * lib/argp-xinl.c: New file, from glibc.
80734
80735 2003-06-10  Simon Josefsson  <jas@extundo.com>
80736
80737         * modules/strchrnul: New file.
80738
80739 2003-06-10  Simon Josefsson  <jas@extundo.com>
80740
80741         * modules/argp: New file.
80742
80743 2003-06-10  Simon Josefsson  <jas@extundo.com>
80744
80745         * m4/strchrnul.m4: New file.
80746
80747 2003-06-10  Simon Josefsson  <jas@extundo.com>
80748
80749         * lib/strchrnul.h: New file.
80750         * lib/strchrnul.c: New file.
80751
80752 2003-06-10  Bruno Haible  <bruno@clisp.org>
80753
80754         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80755
80756 2003-06-07  Karl Berry  <karl@gnu.org>
80757
80758         * config/config.{guess,sub}: update from prep.
80759
80760 2003-06-07  Jim Meyering  <jim@meyering.net>
80761
80762         * modules/strtod: Use $(...) notation, not @...@ for
80763         AC_REPLACE'd variables.
80764         * modules/localcharset: Likewise.
80765
80766 2003-06-07  Jim Meyering  <jim@meyering.net>
80767
80768         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80769         in place of my name in the copyright comment.
80770         Remove definition and uses of __P.
80771
80772         From coreutils.
80773         * lib/stat.c: Don't declare xmalloc explicitly.
80774         Instead, include "xalloc.h".
80775         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80776         xrealloc, and xcalloc return values.
80777         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80778         Improve comment.
80779         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80780
80781 2003-06-07  Bruno Haible  <bruno@clisp.org>
80782
80783         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80784         avoid AC_CONFIG_LINKS.
80785         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80786         fnmatch.h, to avoid AC_CONFIG_LINKS.
80787         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80788
80789 2003-06-07  Bruno Haible  <bruno@clisp.org>
80790
80791         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80792         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80793         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80794         directory.
80795         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80796         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80797         directory.
80798
80799 2003-06-06  Jim Meyering  <jim@meyering.net>
80800
80801         Merge from coreutils.
80802         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80803         Consolidate declarations and initializations of *_base* locals.
80804
80805         Merge from coreutils.
80806         This avoids a core dump on systems without GNU putenv,
80807         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80808         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80809         (unsetenv): New static function, from GNU libc.
80810         (rpl_putenv): Use it.
80811
80812         * lib/modechange.c: Remove trailing blanks.
80813
80814         Merge from coreutils.
80815         * lib/fsusage.c: Remove declaration of statfs.
80816         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80817
80818         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80819
80820 2003-06-06  Jim Meyering  <jim@meyering.net>
80821
80822         * lib/stdbool_.h: Renamed from stdbool.h.in.
80823
80824 2003-06-06  Jim Meyering  <jim@meyering.net>
80825             Bruno Haible  <bruno@clisp.org>
80826
80827         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80828         Adjust Makefile.am snippet not to redirect directly to target.
80829         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80830
80831 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80832
80833         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80834         mismatch, look in future quarters as well as past.  This fixes a
80835         bug when processing fall-backwards gaps immediately after a long
80836         period of daylight-saving time.
80837
80838         * lib/mktime.c: Assume freestanding C89 or better.
80839         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80840         (__P): Remove; not used.
80841         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80842         (mktime, not_equal_tm, print_tm, check_result,
80843         main): Use prototypes.  Use const * where appropriate.
80844         (main): Fix typo in testing code that uncovered by above changes.
80845         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80846
80847 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80848
80849         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80850         locale.h, localeconv.  This merges changes from coreutils.
80851
80852         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80853         It can be removed after the next Autoconf is released.
80854         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80855         needed.
80856
80857 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80858
80859         * lib/mktime.c: Fix Debian bug 177940
80860         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80861         (localtime_offset): Now long int, not time_t, because we want it
80862         to be guaranteed to be signed.  All uses changed.
80863         (__mktime_internal): If overflow would occur when adding offset,
80864         don't add it.
80865
80866         Merge 'human' changes from coreutils.  Rewrite to support
80867         locale-specific notations like thousands separators.
80868         * lib/human.c: Simplify authorship notice.
80869         Include human.h immediately after config.h.
80870         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80871         <limits.h>: Do not include, since human.h does.
80872         (SIZE_MAX, UINTMAX_MAX): New macros.
80873         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80874         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80875         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80876         (power_letter): Renamed from suffixes.
80877         (generate_suffix_backwards): Remove.
80878         (adjust_value): Now takes int style (because of human.h changes)
80879         and long double value (for greater precision on some platforms).
80880         (group_number): New function.
80881         (human_readable): Use it.  Use integer options, not enum.
80882         Put the options before the sizes in the arg list.
80883         Support all the new options.
80884         The old human_readable function has been removed;
80885         use inttostr.h instead.
80886         (human_readable, default_block_size, humblock):
80887         Use uintmax_t, not int, for block sizes.
80888         (human_readable_inexact, block_size_types): Remove.
80889         (block_size_opts): New constant.
80890         (human_options): Renamed from human_block_size, with new signature
80891         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80892         * lib/human.h: Add copyright and authorship notice.
80893         Include <limits.h> and <stdbool.h> unconditionally.
80894         (PARAMS): Remove.  All uses removed.
80895         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80896         (enum human_inexact_style): Remove tag; now a nameless enum.
80897         (human_floor, human_ceiling, human_round_to_even): Now have
80898         values 2, 0, 1 rather than -1, 1, 0.
80899         (human_group_digits, human_suppress_point_zero, human_autoscale,
80900         human_base_1024, human_SI, human_B): New constants.
80901         (human_readable_inexact, human_block_size): Remove.
80902         (human_readable): Size args are now uintmax_t, not int.
80903         (human_options): New decl.
80904
80905         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80906         unnecessary now that we assume C89 or better.  This change
80907         imported from coreutils.
80908
80909         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80910         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80911         in the 2003-05-30 sync from glibc.
80912
80913         .h files should stand alone, but we shouldn't include <sys/types.h>
80914         if we can get away with just <stddef.h>.
80915
80916         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80917         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80918         rather than <sys/types.h>, as we merely need size_t.
80919         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80920         to get size_t.
80921         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80922         Include <stdio.h>, to get FILE.
80923         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80924         memcasecmp.h has included <stddef.h> and all we need is size_t.
80925         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80926         our interface, instead of including <sys/types.h>
80927
80928 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80929
80930         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80931         now, as glibc mktime is buggy on non-glibc systems.
80932
80933 2003-06-03  Karl Berry  <karl@gnu.org>
80934
80935         * config/config.sub: update from prep.
80936
80937 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80938
80939         [from coreutils]
80940         Fix some minor time-related bugs with POSIX time arguments.
80941         Some valid time stamps were being rejected (notably -1, and
80942         time stamps before 1900 on 64-bit hosts).  And some invalid
80943         time stamps were being accepted, e.g. September 31.
80944
80945         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80946         that we can return (time_t) -1 successfully.
80947         * lib/posixtm.c: Likewise.
80948         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80949         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80950         (t): Remove static var.
80951         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80952         of static var.  All uses changed.
80953         (year): Do not reject years before 1900; they can occur with
80954         64-bit time_t.
80955         (posix_time_parse): Do not check for out-of-range components;
80956         that is now the caller's responsibility, since our checks were
80957         only approximations.
80958         (posixtime): Use mktime to check for out-of-range components,
80959         since it knows them exactly.
80960         If mktime returns (time_t) -1, check whether an error actually occurred
80961         by invoking localtime on -1.
80962         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80963         posixtime failures better.
80964         Improve the test data (in comments only).
80965
80966 2003-06-02  Karl Berry  <karl@gnu.org>
80967
80968         * config/mkinstalldirs (version): new variable.
80969         (--version): new option.
80970         (usage): improve message.
80971
80972 2003-05-30  Karl Berry  <karl@gnu.org>
80973
80974         * lib/mktime.c: update from libc.
80975
80976 2003-05-30  Bruno Haible  <bruno@clisp.org>
80977
80978         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80979         * config/config.rpath: Upgrade to gettext-0.12.1.
80980
80981 2003-05-30  Bruno Haible  <bruno@clisp.org>
80982
80983         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80984         * m4/nls.m4: New file, from gettext-0.12.1.
80985         * m4/po.m4: New file, from gettext-0.12.1.
80986         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80987
80988 2003-05-30  Bruno Haible  <bruno@clisp.org>
80989
80990         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80991         * lib/localcharset.h: Likewise.
80992         * lib/localcharset.c: Likewise.
80993
80994 2003-05-29  Karl Berry  <karl@gnu.org>
80995
80996         * config/config.rpath: update from gettext.
80997
80998 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80999
81000         Assume the headers required for C89 freestanding compilers.
81001         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81002         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81003         * m4/human.m4 (gl_HUMAN): Likewise.
81004         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81005         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81006         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81007         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81008         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81009         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81010
81011 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81012
81013         Assume the headers required for C89 freestanding compilers.
81014         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81015         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81016         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81017         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81018         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81019         define, since <limits.h> is guaranteed to do that.
81020         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81021         * lib/exclude.c: Include <stdbool.h> unconditionally.
81022         * lib/tempname.c: Include <stddef.h> unconditionally.
81023         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
81024         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
81025         <stddef.h> does that.
81026         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
81027         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
81028         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
81029         needed.
81030         * lib/xstrtol.c: Likewise.
81031         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
81032         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
81033
81034         * lib/addext.c (addext): Use assignment rather than cast, to avoid
81035         warnings on some platforms.
81036
81037         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81038         arbitrarily.
81039
81040 2003-05-26  Jim Meyering  <jim@meyering.net>
81041
81042         Merge in a change from coreutils:
81043         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
81044         that is guaranteed to be `no'.  Use `no_such_member' to indicate
81045         that condition, rather than `-1' which is slightly misleading.
81046         Change the name of the cache variable to have the gl_ prefix.
81047         Prompted by a patch from Richard Dawe for DJGPP.
81048
81049 2003-05-24  Karl Berry  <karl@gnu.org>
81050
81051         * config/config.guess: update from prep.
81052
81053 2003-05-22  Karl Berry  <karl@gnu.org>
81054
81055         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81056
81057 2003-05-20  Karl Berry  <karl@gnu.org>
81058
81059         * config/config.guess: update from prep.
81060
81061 2003-05-18  Karl Berry  <karl@gnu.org>
81062
81063         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81064         might actually be set by the user.
81065
81066         * config/depcomp, install-sh, mdate-sh: update from automake.
81067
81068 2003-05-17  Bruno Haible  <bruno@clisp.org>
81069
81070         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81071         invalid expansion for AC_EGREP_CPP.
81072         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81073         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81074         Suggested by Akim Demaille <akim@epita.fr> in
81075         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81076
81077 2003-05-12  Jim Meyering  <jim@meyering.net>
81078
81079         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81080         the space-padded-by-default conversion specifiers, %e, %k, %l.
81081
81082 2003-05-12  Bruno Haible  <bruno@clisp.org>
81083
81084         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81085         the string is longer than 4 KB.
81086
81087 2003-05-11  Karl Berry  <karl@gnu.org>
81088
81089         * config/config.{guess,sub}: update from prep.
81090
81091 2003-05-09  Bruno Haible  <bruno@clisp.org>
81092
81093         * modules/error: Add m4/strerror_r.m4 to file list.
81094
81095 2003-05-03  Bruno Haible  <bruno@clisp.org>
81096
81097         Upgrade to Unicode-4.0.
81098         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81099         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81100         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81101         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81102         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81103         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81104         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81105         Change width of U+E0100..U+E01EF from 1 to 0.
81106
81107 2003-04-25  Jim Meyering  <jim@meyering.net>
81108
81109         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81110         of type size_t, not int.
81111
81112 2003-04-25  Bruno Haible  <bruno@clisp.org>
81113
81114         * lib/copy-file.c: Include <stddef.h>, for size_t.
81115
81116 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81117
81118         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81119         code which expansion is under static control.  Patch imported from
81120         Akim Demaille's patch to Bison; see
81121         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81122
81123 2003-04-14  Bruno Haible  <bruno@clisp.org>
81124
81125         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
81126
81127 2003-04-11  Jim Meyering  <jim@meyering.net>
81128
81129         Merge changes from Coreutils.
81130
81131         2003-03-22  Jim Meyering  <jim@meyering.net>
81132
81133         * lib/strftime.c (widen): Cast alloca return value to proper type.
81134
81135         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
81136
81137         From GNU libc.
81138         * lib/strftime.c (my_strftime): Handle very large width
81139         specifications for numeric values correctly.  Improve checks for
81140         overflow.
81141
81142         2003-01-19  Jim Meyering  <jim@meyering.net>
81143
81144         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
81145         definitions.
81146         (nl_get_alt_digit) [! defined my_strftime]: Define.
81147         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
81148         _nl_get_alt_digit and _nl_get_walt_digit.
81149
81150         * lib/strftime.c (my_strftime): Merge in locale-related changes from
81151         libc. These changes have no effect outside of _LIBC.
81152
81153 2003-04-10  Bruno Haible  <bruno@clisp.org>
81154
81155         * modules/findprog: New file.
81156         * MODULES.html.sh (func_all_modules): Add it.
81157
81158 2003-04-10  Bruno Haible  <bruno@clisp.org>
81159
81160         * m4/findprog.m4: New file.
81161         * m4/eaccess.m4: New file.
81162
81163 2003-04-10  Bruno Haible  <bruno@clisp.org>
81164
81165         * lib/findprog.h: New file, from GNU gettext.
81166         * lib/findprog.c: New file, from GNU gettext.
81167
81168 2003-04-05  Jim Meyering  <jim@meyering.net>
81169
81170         Merge changes from Coreutils.
81171
81172         * lib/exclude.h (PARAMS): Remove definition and uses.
81173         * lib/exclude.c: Remove uses of `PARAMS'.
81174
81175         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
81176         Add test-cases for DOS filenames. Declare program_name.
81177         (main): Set up program_name.  Patch by Rich Dawe.
81178
81179         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81180         error from mntctl.
81181         Use mntctl's return value to drive the entry-processing loop, since
81182         we can't rely on the value of the vmt_length member in the last
81183         entry.  On some systems doing so could result in exhausting
81184         virtual memory.  Based in part on a patch from Mike Jetzer.
81185
81186 2003-04-04  Bruno Haible  <bruno@clisp.org>
81187
81188         * modules/linebreak: New file.
81189         * MODULES.html.sh (func_all_modules): Add it.
81190
81191 2003-04-04  Bruno Haible  <bruno@clisp.org>
81192
81193         * m4/linebreak.m4: New file.
81194
81195 2003-04-04  Bruno Haible  <bruno@clisp.org>
81196
81197         * lib/linebreak.h: New file, from GNU gettext.
81198         * lib/linebreak.c: New file, from GNU gettext with slight
81199         modifications.
81200         * lib/lbrkprop.h: New file, from GNU gettext.
81201
81202 2003-04-03  Bruno Haible  <bruno@clisp.org>
81203
81204         * modules/utf8-ucs4: New file.
81205         * modules/utf16-ucs4: New file.
81206         * modules/ucs4-utf8: New file.
81207         * modules/ucs4-utf16: New file.
81208         * MODULES.html.sh (func_all_modules): Add them.
81209
81210 2003-04-03  Bruno Haible  <bruno@clisp.org>
81211
81212         * m4/utf-ucs4.m4: New file.
81213         * m4/ucs4-utf.m4: New file.
81214
81215 2003-04-03  Bruno Haible  <bruno@clisp.org>
81216
81217         * lib/utf8-ucs4.h: New file, from GNU gettext.
81218         * lib/utf16-ucs4.h: New file, from GNU gettext.
81219         * lib/ucs4-utf8.h: New file, from GNU gettext.
81220         * lib/ucs4-utf16.h: New file, from GNU gettext.
81221
81222 2003-04-02  Bruno Haible  <bruno@clisp.org>
81223
81224         * modules/binary-io: New file.
81225         * MODULES.html.sh (func_all_modules): Add it.
81226
81227 2003-04-02  Bruno Haible  <bruno@clisp.org>
81228
81229         * lib/binary-io.h: New file, from GNU gettext.
81230
81231 2003-04-01  Bruno Haible  <bruno@clisp.org>
81232
81233         * modules/pathname: New file.
81234         * MODULES.html.sh (func_all_modules): Add it.
81235
81236 2003-04-01  Bruno Haible  <bruno@clisp.org>
81237
81238         * lib/pathname.h: New file, from GNU gettext.
81239         * lib/concatpath.c: New file, from GNU gettext.
81240
81241 2003-03-30  Bruno Haible  <bruno@clisp.org>
81242
81243         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
81244
81245 2003-03-30  Bruno Haible  <bruno@clisp.org>
81246
81247         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
81248         function chown() doesn't exist.
81249
81250 2003-03-28  Bruno Haible  <bruno@clisp.org>
81251
81252         * modules/copy-file: New file.
81253         * MODULES.html.sh (func_all_modules): Add it.
81254
81255 2003-03-28  Bruno Haible  <bruno@clisp.org>
81256
81257         * m4/copy-file.m4: New file.
81258
81259 2003-03-28  Bruno Haible  <bruno@clisp.org>
81260
81261         * lib/copy-file.h: New file, from GNU gettext.
81262         * lib/copy-file.c: New file, from GNU gettext.
81263
81264 2003-03-18  Jim Meyering  <jim@meyering.net>
81265
81266         * lib/quote.c (quote_n): Fix typo in comment.
81267
81268 2003-03-18  Bruno Haible  <bruno@clisp.org>
81269
81270         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
81271         checking.
81272         * m4/onceonly_2_57.m4: Likewise.
81273
81274 2003-03-17  Bruno Haible  <bruno@clisp.org>
81275
81276         * m4/onceonly.m4: Require autoconf 2.54 or newer.
81277         (m4_quote): Remove macro.
81278         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
81279
81280 2003-03-14  Jim Meyering  <jim@meyering.net>
81281
81282         Merge changes from Coreutils.
81283         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
81284         to be const, in order to avoid warnings.
81285         (obstack_room): Likewise.
81286         (obstack_empty_p): Likewise.
81287
81288 2003-03-14  Bruno Haible  <bruno@clisp.org>
81289
81290         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
81291         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
81292
81293 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81294
81295         Merge changes from Bison.
81296         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
81297         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
81298         when compiling Bison 1.875's `bitset bset = obstack_alloc
81299         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
81300         * lib/hash.c: Include <stdbool.h> unconditionally.
81301
81302 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81303
81304         * m4/onceonly.m4 (m4_quote): New macro.
81305         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
81306         Quote AC_FOREACH variable-expansions properly.
81307
81308 2003-03-13  Paul Eggert  <eggert@twinsun.com>
81309
81310         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
81311
81312 2003-03-09  Paul Eggert  <eggert@twinsun.com>
81313
81314         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
81315         Reported by Bruce Becker; see:
81316         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
81317
81318 2003-03-03  Paul Eggert  <eggert@twinsun.com>
81319             Bruno Haible  <bruno@clisp.org>
81320
81321         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
81322         Reported by John Hughes, see
81323         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
81324
81325 2003-02-20  Bruno Haible  <bruno@clisp.org>
81326
81327         * MODULES.html.sh (func_all_modules): Add poll.
81328
81329 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81330
81331         * modules/poll: New file.
81332
81333 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81334
81335         * lib/poll_.h: New file.
81336         * lib/poll.c: New file.
81337
81338 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
81339
81340         * m4/poll.m4: New file.
81341
81342 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81343
81344         * modules/mathl: New file.
81345
81346 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81347
81348         * lib/mathl.h: New file.
81349         * lib/acosl.c: New file.
81350         * lib/asinl.c: New file.
81351         * lib/atanl.c: New file.
81352         * lib/ceill.c: New file.
81353         * lib/cosl.c: New file.
81354         * lib/expl.c: New file.
81355         * lib/floorl.c: New file.
81356         * lib/frexpl.c: New file.
81357         * lib/ldexpl.c: New file.
81358         * lib/logl.c: New file.
81359         * lib/sincosl.c: New file.
81360         * lib/sinl.c: New file.
81361         * lib/sqrtl.c: New file.
81362         * lib/tanl.c: New file.
81363         * lib/trigl.c: New file.
81364         * lib/trigl.h: New file.
81365
81366 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
81367
81368         * m4/mathl.m4: New file.
81369
81370 2003-02-18  Bruno Haible  <bruno@clisp.org>
81371
81372         * MODULES.html.sh (func_all_modules): Add mathl.
81373
81374 2003-02-17  Bruno Haible  <bruno@clisp.org>
81375
81376         * modules/mkdtemp: New module.
81377         * MODULES.html.sh (func_all_modules): Add it.
81378
81379 2003-02-17  Bruno Haible  <bruno@clisp.org>
81380
81381         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
81382
81383 2003-02-17  Bruno Haible  <bruno@clisp.org>
81384
81385         * lib/mkdtemp.h: New file, from GNU gettext.
81386         * lib/mkdtemp.c: New file, from GNU gettext.
81387
81388 2003-02-02  Jim Meyering  <jim@meyering.net>
81389
81390         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
81391         e.g. glibc-2.2.93.
81392
81393 2003-01-31  Bruno Haible  <bruno@clisp.org>
81394
81395         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
81396         'rpl_rename'.
81397         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
81398         'rpl_strnlen'.
81399         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
81400         'rpl_strtod'.
81401         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
81402         'rpl_utime'.
81403
81404 2003-01-31  Bruno Haible  <bruno@clisp.org>
81405
81406         * lib/rename.c: #undef rename before defining rpl_rename.
81407         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
81408
81409 2003-01-30  Bruno Haible  <bruno@clisp.org>
81410
81411         * modules/vasnprintf, modules/vasprintf: New modules.
81412         * MODULES.html.sh (func_all_modules): Add them.
81413
81414 2003-01-30  Bruno Haible  <bruno@clisp.org>
81415
81416         * m4/signed.m4: New file, from GNU gettext.
81417         * m4/longdouble.m4: New file, from GNU gettext.
81418         * m4/wchar_t.m4: New file, from GNU gettext.
81419         * m4/wint_t.m4: New file, from GNU gettext.
81420         * m4/vasnprintf.m4: New file.
81421         * m4/vasprintf.m4: New file.
81422
81423 2003-01-30  Bruno Haible  <bruno@clisp.org>
81424
81425         * lib/printf-args.h: New file, from GNU gettext.
81426         * lib/printf-args.c: New file, from GNU gettext.
81427         * lib/printf-parse.h: New file, from GNU gettext.
81428         * lib/printf-parse.c: New file, from GNU gettext.
81429         * lib/vasnprintf.h: New file, from GNU gettext.
81430         * lib/vasnprintf.c: New file, from GNU gettext.
81431         * lib/asnprintf.c: New file, from GNU gettext.
81432         * lib/vasprintf.h: New file, from GNU gettext with modifications.
81433         * lib/vasprintf.c: New file, from GNU gettext.
81434         * lib/asprintf.c: New file, from GNU gettext.
81435
81436 2003-01-29  Bruno Haible  <bruno@clisp.org>
81437
81438         * modules/stpncpy: New module.
81439         * MODULES.html.sh (func_all_modules): Add it.
81440
81441 2003-01-29  Bruno Haible  <bruno@clisp.org>
81442
81443         * m4/stpncpy.m4: New file.
81444
81445 2003-01-29  Bruno Haible  <bruno@clisp.org>
81446
81447         * lib/stpncpy.h: New file, from GNU gettext with modifications.
81448         * lib/stpncpy.c: New file, from GNU gettext with modifications.
81449
81450 2003-01-28  Bruno Haible  <bruno@clisp.org>
81451
81452         * modules/c-ctype: New module.
81453         * MODULES.html.sh (func_all_modules): Add it.
81454
81455 2003-01-28  Bruno Haible  <bruno@clisp.org>
81456
81457         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
81458         Paul Eggert.
81459         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
81460         Paul Eggert.
81461
81462 2003-01-27  Bruno Haible  <bruno@clisp.org>
81463
81464         * modules/xsetenv: New module.
81465         * MODULES.html.sh (func_all_modules): Add it.
81466
81467 2003-01-27  Bruno Haible  <bruno@clisp.org>
81468
81469         * lib/xsetenv.h: New file, from GNU gettext.
81470         * lib/xsetenv.c: New file, from GNU gettext.
81471
81472 2003-01-23  Jim Meyering  <jim@meyering.net>
81473
81474         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
81475         from working on systems without dirfd (at least Irix and OSF1/Tru64).
81476
81477 2003-01-23  Bruno Haible  <bruno@clisp.org>
81478
81479         * modules/minmax: New module.
81480         * MODULES.html.sh (func_all_modules): Add it.
81481
81482 2003-01-23  Bruno Haible  <bruno@clisp.org>
81483
81484         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
81485         Eggert.
81486
81487 2003-01-22  Bruno Haible  <bruno@clisp.org>
81488
81489         * modules/exit: New module.
81490         * MODULES.html.sh (func_all_modules): Add it.
81491
81492 2003-01-22  Bruno Haible  <bruno@clisp.org>
81493
81494         * lib/exit.h: New file, from GNU gettext.
81495
81496 2003-01-19  Bruno Haible  <bruno@clisp.org>
81497
81498         * gnulib-tool: Recognize option --extract-maintainer.
81499         (func_get_maintainer): New function.
81500         * modules/*: Add Maintainer entry.
81501
81502 2003-01-16  Jim Meyering  <jim@meyering.net>
81503
81504         * m4/regex.m4: The `regex' struct is both input and output.
81505         Initialize it before each use.  Patch by Tim Waugh.
81506
81507 2003-01-16  Bruno Haible  <bruno@clisp.org>
81508
81509         * MODULES.html.sh: Add a table of contents. Add the module name as
81510         leftmost column. Add hyperlinks.
81511
81512 2003-01-15  Bruno Haible  <bruno@clisp.org>
81513
81514         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
81515
81516 2003-01-15  Bruno Haible  <bruno@clisp.org>
81517
81518         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
81519         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
81520         suffix.
81521
81522 2003-01-15  Bruno Haible  <bruno@clisp.org>
81523
81524         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
81525
81526 2003-01-15  Bruno Haible  <bruno@clisp.org>
81527
81528         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
81529         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
81530
81531 2003-01-14  Jim Meyering  <jim@meyering.net>
81532
81533         * lib/same.c (same_name): Tweak a comment.
81534
81535 2003-01-14  Bruno Haible  <bruno@clisp.org>
81536
81537         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
81538         when a string comparison is sufficient.
81539
81540 2003-01-14  Bruno Haible  <bruno@clisp.org>
81541
81542         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
81543         'unsigned int'.
81544
81545 2003-01-14  Bruno Haible  <bruno@clisp.org>
81546
81547         * lib/hash-pjw.c: Add comment about low quality of this function.
81548
81549 2003-01-13  Bruno Haible  <bruno@clisp.org>
81550
81551         * modules/stpcpy: Distribute lib/stpcpy.h.
81552         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
81553
81554 2003-01-13  Bruno Haible  <bruno@clisp.org>
81555
81556         * modules/*: Add a description.
81557         * modules/strpbrk: Fix Makefile.am snippet.
81558         * modules/strtoimax: Fix dependencies.
81559         * modules/strtoumax: Likewise.
81560
81561 2003-01-13  Bruno Haible  <bruno@clisp.org>
81562
81563         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81564         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81565         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81566
81567 2003-01-13  Bruno Haible  <bruno@clisp.org>
81568
81569         * gnulib-tool (func_create_testdir): Store config/* files in the main
81570         directory.
81571         * config.rpath: Move to ...
81572         * config/config.rpath: ... here.
81573         * modules/gettext: Contains config/config.rpath, not config.rpath.
81574         * modules/iconv: Likewise.
81575
81576 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81577
81578         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81579         to avoid collisions with libcurses and libreadline.
81580
81581         * m4/getstr.m4: Remove.
81582         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81583
81584 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81585
81586         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81587         to avoid collisions with libcurses and libreadline.
81588
81589         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81590         * lib/getstr.h, getstr.c: Remove.
81591         * lib/getline.c: Include "getline.h", to check interface.
81592         Move body of old getstr.c here: this defines MIN_CHUNK and
81593         declares getdelim2, which is renamed from getstr.
81594         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81595
81596         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81597         All uses changed.
81598         * lib/linebuffer.h: Likewise.
81599         (readline): Remove backward-compatibility macro.
81600
81601 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81602
81603         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81604         to avoid collisions with libcurses and libreadline.
81605         * getstr: Remove.
81606         * MODULES.html.sh: Remove getstr.
81607         * modules/getline: Depend on unlocked-io, not getstr.
81608
81609 2003-01-12  Jim Meyering  <jim@meyering.net>
81610
81611         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81612
81613 2003-01-10  Bruno Haible  <bruno@clisp.org>
81614
81615         * modules/alloca: Change Makefile.am requirements. Simplify Include
81616         requirements. Add lib/alloca_.h to file list.
81617
81618 2003-01-10  Bruno Haible  <bruno@clisp.org>
81619
81620         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81621
81622 2003-01-10  Bruno Haible  <bruno@clisp.org>
81623
81624         * lib/alloca_.h: New file.
81625         * lib/getdate.y: Unconditionally include alloca.h.
81626         * lib/makepath.c: Likewise.
81627         * lib/setenv.c: Likewise.
81628         * lib/userspec.c: Likewise.
81629
81630 2003-01-09  Karl Berry  <karl@gnu.org>
81631
81632         * MODULES.html.sh: include `dirname $0` in PATH, to find
81633         gnulib-tool.
81634
81635 2003-01-09  Bruno Haible  <bruno@clisp.org>
81636
81637         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81638         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81639
81640 2003-01-09  Bruno Haible  <bruno@clisp.org>
81641
81642         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81643
81644 2003-01-09  Bruno Haible  <bruno@clisp.org>
81645
81646         * lib/stdbool.h.in: New file.
81647
81648 2003-01-09  Bruno Haible  <bruno@clisp.org>
81649
81650         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81651         * MODULES.html.sh: Likewise.
81652
81653 2003-01-08  Jim Meyering  <jim@meyering.net>
81654
81655         * lib/full-write.c: Undefine and define-away `const' after inclusion
81656         of errno.h, not before.  Suggestion from Bruno Haible.
81657
81658 2003-01-08  Bruno Haible  <bruno@clisp.org>
81659
81660         * modules/full-read: Depend on full-write.
81661
81662 2003-01-08  Bruno Haible  <bruno@clisp.org>
81663
81664         * lib/safe-read.c: Include specification header first, to ensure its
81665         selfcontainedness.
81666         * lib/full-write.c: Likewise.
81667
81668 2003-01-07  Jim Meyering  <jim@meyering.net>
81669
81670         * lib/full-write.c: Rework so that it may serve to define full_read,
81671         too.
81672         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81673
81674 2003-01-07  Bruno Haible  <bruno@clisp.org>
81675
81676         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81677         <inttypes.h>.
81678         * lib/xstrtol.h: Likewise.
81679         * lib/xstrtoimax.c: Likewise.
81680         * lib/xstrtoumax.c: Likewise.
81681         * lib/human.h: Likewise.
81682
81683         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81684         on systems that have <inttypes.h> but not <stdint.h>.
81685
81686 2003-01-07  Bruno Haible  <bruno@clisp.org>
81687
81688         * MODULES.html.sh: Add copyright notice.
81689         (missed_files): Omit CVS directory entries.
81690         (func_module): Make it work with sed-3.02.
81691         * MODULES.txt: Remove file.
81692
81693 2003-01-06  Jim Meyering  <jim@meyering.net>
81694
81695         * lib/version-etc.c: Update year in translatable copyright string.
81696
81697 2003-01-03  Karl Berry  <karl@gnu.org>
81698
81699         * config/config.{guess,sub}: update from prep.
81700
81701 2003-01-02  Karl Berry  <karl@gnu.org>
81702
81703         * doc/COPYING.DOC: belatedly updated to 1.2.
81704
81705 2003-01-01  Karl Berry  <karl@gnu.org>
81706
81707         * gnulib-tool (func_verify_module): report module name $module in
81708         error message, not $1.
81709         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81710         be created, only if it doesn't exist.
81711         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81712
81713 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81714
81715         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81716
81717 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81718
81719         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81720         memcmp if strcoll doesn't work.
81721
81722 2002-12-31  Bruno Haible  <bruno@clisp.org>
81723
81724         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81725         nonempty.
81726
81727 2002-12-31  Bruno Haible  <bruno@clisp.org>
81728
81729         * lib/memcoll.c (STRCOLL): New macro.
81730         (memcoll): Use it.
81731
81732 2002-12-31  Bruno Haible  <bruno@clisp.org>
81733
81734         * lib/localcharset.h: New file.
81735         * lib/localcharset.c: Include it.
81736         * lib/unicodeio.c: Likewise.
81737
81738 2002-12-31  Bruno Haible  <bruno@clisp.org>
81739
81740         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81741         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81742
81743 2002-12-31  Bruno Haible  <bruno@clisp.org>
81744
81745         * lib/getline.h: Include <stddef.h>, for size_t.
81746
81747         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81748         * lib/unicodeio.c: Don't include <stddef.h>.
81749
81750 2002-12-31  Bruno Haible  <bruno@clisp.org>
81751
81752         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81753         HAVE_TM_ZONE.
81754
81755 2002-12-24  Karl Berry  <karl@gnu.org>
81756
81757         * config/config.guess: update from prep.
81758
81759 2002-12-24  Bruno Haible  <bruno@clisp.org>
81760
81761         General infrasructure.
81762         * m4/README: Rewritten.
81763         * m4/onceonly.m4: New file.
81764         * m4/onceonly_2_57.m4: New file.
81765
81766         Module atexit.
81767         * m4/atexit.m4: New file.
81768
81769         Module strtod.
81770         * m4/strtod.m4: New file.
81771
81772         Module strtol.
81773         * m4/strtol.m4: New file.
81774
81775         Module strtoul.
81776         * m4/strtoul.m4: New file.
81777
81778         Module memchr.
81779         * m4/memchr.m4: New file.
81780
81781         Module memcmp.
81782         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81783         (jm_FUNC_MEMCMP): Invoke it.
81784
81785         Module memcpy.
81786         * m4/memcpy.m4: New file.
81787
81788         Module memmove.
81789         * m4/memmove.m4: New file.
81790
81791         Module memset.
81792         * m4/memset.m4: New file.
81793
81794         Module strcspn.
81795         * m4/strcspn.m4: New file.
81796
81797         Module strpbrk.
81798         * m4/strpbrk.m4: New file.
81799
81800         Module strstr.
81801         * m4/strstr.m4: New file.
81802
81803         Module strerror.
81804         * m4/strerror.m4: New file.
81805
81806         Module mktime.
81807         * m4/mktime.m4: Renamed from jm-mktime.m4.
81808         (gl_PREREQ_MKTIME): New macro.
81809         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81810
81811         Module malloc.
81812         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81813         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81814         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81815
81816         Module realloc.
81817         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81818         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81819         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81820
81821         Module strftime.
81822         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81823         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81824         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81825         gl_TM_GMTOFF.
81826         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81827
81828         Module xalloc.
81829         * m4/xalloc.m4: New file.
81830
81831         Module alloca.
81832         * m4/alloca.m4: New file.
81833
81834         Module putenv.
81835         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81836         (jm_FUNC_PUTENV): Invoke it.
81837
81838         Module setenv.
81839         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81840         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81841         when invoked twice.
81842         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81843         gt_FUNC_SETENV.
81844
81845         Module memrchr.
81846         * m4/memrchr.m4: New file.
81847
81848         Module stpcpy.
81849         * m4/stpcpy.m4: New file.
81850
81851         Module strcase.
81852         * m4/strcase.m4: New file.
81853
81854         Module strdup.
81855         * m4/strdup.m4: New file.
81856
81857         Module strnlen.
81858         * m4/strnlen.m4: New file.
81859
81860         Module strndup.
81861         * m4/strndup.m4: New file.
81862
81863         Module xstrtod.
81864         * m4/xstrtod.m4: New file.
81865
81866         Module xstrtol.
81867         * m4/xstrtol.m4: New file.
81868
81869         Module getdate.
81870         * m4/getdate.m4: New file.
81871
81872         Module unlocked-io.
81873         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81874         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81875         * m4/jm-glibc-io.m4n: Remove file.
81876
81877         Module long-options.
81878         * m4/long-options.m4: New file.
81879
81880         Module md5.
81881         * m4/md5.m4: New file.
81882
81883         Module sha.
81884         * m4/sha.m4: New file.
81885
81886         Module getstr.
81887         * m4/getstr.m4: New file.
81888
81889         Module getline.
81890         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81891         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81892         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81893         simply getline. Infoke gl_PREREQ_GETLINE.
81894
81895         Module obstack.
81896         * m4/obstack.m4: New file.
81897
81898         Module hash.
81899         * m4/hash.m4: New file.
81900
81901         Module readtokens.
81902         * m4/readtokens.m4: New file.
81903
81904         Module strverscmp.
81905         * m4/strverscmp.m4: New file.
81906
81907         Module stdbool.
81908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81909         OSF/1.
81910
81911         Module strtoll.
81912         * m4/strtoll.m4: New file.
81913
81914         Module strtoull.
81915         * m4/strtoull.m4: New file.
81916
81917         Module strtoimax.
81918         * m4/strtoimax.m4: New file.
81919
81920         Module strtoumax.
81921         * m4/strtoumax.m4: New file.
81922
81923         Module xstrtoimax.
81924         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81925         jm_AC_PREREQ_XSTRTOIMAX.
81926         Moved the strtol prerequisites to strtol.m4.
81927         Moved the strtoll prerequisites to strtoll.m4.
81928         Moved the strtoimax prerequisites to strtoimax.m4.
81929
81930         Module xstrtoumax.
81931         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81932         jm_AC_PREREQ_XSTRTOUMAX.
81933         Moved the strtoul prerequisites to strtoul.m4.
81934         Moved the strtoull prerequisites to strtoull.m4.
81935         Moved the strtoumax prerequisites to strtoumax.m4.
81936
81937         Module chown.
81938         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81939         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81940
81941         Module dup2.
81942         * m4/dup2.m4: New file.
81943
81944         Module ftruncate.
81945         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81946         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81947
81948         Module getgroups.
81949         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81950         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81951
81952         Module gettimeofday.
81953         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81954         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81955         gl_PREREQ_GETTIMEOFDAY.
81956
81957         Module mkdir.
81958         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81959         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81960
81961         Module mkstemp.
81962         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81963         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81964         jm_AC_TYPE_UINTMAX_T.
81965         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81966
81967         Module stat.
81968         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81969         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81970
81971         Module lstat.
81972         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81973         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81974
81975         Module timespec.
81976         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81977         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81978         * m4/st_mtim.m4: Indentation.
81979
81980         Module nanosleep.
81981         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81982         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81983         gl_PREREQ_NANOSLEEP.
81984
81985         Module regex.
81986         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81987         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81988         (gl_REGEX): New macro.
81989
81990         Module rename.
81991         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81992         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81993
81994         Module rmdir.
81995         * m4/rmdir.m4: New file.
81996
81997         Module utime.
81998         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81999         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82000         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82001
82002         Module dirname.
82003         * m4/dirname.m4: New file.
82004
82005         Module getopt.
82006         * m4/getopt.m4: New file.
82007
82008         Module unistd-safer.
82009         * m4/unistd-safer.m4: New file.
82010
82011         Module fnmatch.
82012         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82013         declaration.
82014         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82015         (gl_FUNC_FNMATCH_POSIX): New macro.
82016         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82017         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82018         simply fnmatch.
82019
82020         Module exclude.
82021         * m4/exclude.m4: New file.
82022
82023         Module human.
82024         * m4/human.m4: New file.
82025
82026         Module acl.
82027         * m4/acl.m4: Nop.
82028
82029         Module backupfile.
82030         * m4/backupfile.m4: New file.
82031         * m4/d-ino.m4: Indentation.
82032
82033         Module fsusage.
82034         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
82035         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
82036         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
82037
82038         Module dirfd.
82039         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
82040         requirements.
82041
82042         Module euidaccess.
82043         * m4/euidaccess.m4: New file.
82044
82045         Module file-type.
82046         * m4/file-type.m4: New file.
82047
82048         Module fileblocks.
82049         * m4/fileblocks.m4: New file.
82050
82051         Module filemode.
82052         * m4/filemode.m4: New file.
82053
82054         Module isdir.
82055         * m4/isdir.m4: New file.
82056
82057         Module lchown.
82058         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82059         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82060
82061         Module makepath.
82062         * m4/makepath.m4: New file.
82063
82064         Module modechange.
82065         * m4/modechange.m4: New file.
82066
82067         Module mountlist.
82068         * m4/mountlist.m4: New file.
82069         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82070         Indentation.
82071
82072         Module path-concat.
82073         * m4/path-concat.m4: New file.
82074
82075         Module pathmax.
82076         * m4/pathmax.m4: New file.
82077
82078         Module same.
82079         * m4/same.m4: New file.
82080
82081         Module save-cwd.
82082         * m4/save-cwd.m4: New file.
82083
82084         Module savedir.
82085         * m4/savedir.m4: New file.
82086
82087         Module xgetcwd.
82088         * m4/xgetcwd.m4: New file.
82089         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82090
82091         Module xreadlink.
82092         * m4/xreadlink.m4: New file.
82093
82094         Module safe-read.
82095         * m4/safe-read.m4: New file.
82096
82097         Module safe-write.
82098         * m4/safe-write.m4: New file.
82099
82100         Module closeout.
82101         * m4/closeout.m4: New file.
82102
82103         Module stdio-safer.
82104         * m4/stdio-safer.m4: New file.
82105
82106         Module getpass.
82107         * m4/getpass.m4: New file.
82108
82109         Module getugroups.
82110         * m4/getugroups.m4: New file.
82111
82112         Module group-member.
82113         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82114         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82115
82116         Module idcache.
82117         * m4/idcache.m4: New file.
82118
82119         Module userspec.
82120         * m4/userspec.m4: New file.
82121
82122         Module gettime.
82123         * m4/clock_time.m4: New file.
82124         * m4/gettime.m4: New file.
82125
82126         Module settime.
82127         * m4/settime.m4: New file.
82128
82129         Module posixtm.
82130         * m4/posixtm.m4: New file.
82131
82132         Module gethostname.
82133         * m4/gethostname.m4: New file.
82134
82135         Module canon-host.
82136         * m4/canon-host.m4: New file.
82137
82138         Module gettext.
82139         * m4/codeset.m4: New file, from gettext-0.11.5.
82140         * m4/gettext.m4: New file, from gettext-0.11.5.
82141         * m4/glibc21.m4: New file, from gettext-0.11.5.
82142         * m4/iconv.m4: New file, from gettext-0.11.5.
82143         * m4/intdiv0.m4: New file, from gettext-0.11.5.
82144         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
82145         * m4/inttypes.m4: New file, from gettext-0.11.5.
82146         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
82147         * m4/isc-posix.m4: New file, from gettext-0.11.5.
82148         * m4/lcmessage.m4: New file, from gettext-0.11.5.
82149         * m4/lib-ld.m4: New file, from gettext-0.11.5.
82150         * m4/lib-link.m4: New file, from gettext-0.11.5.
82151         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
82152         * m4/progtest.m4: New file, from gettext-0.11.5.
82153         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
82154         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
82155         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
82156
82157         Module localcharset.
82158         * m4/localcharset.m4: New file.
82159
82160         Module hard-locale.
82161         * m4/hard-locale.m4: New file.
82162
82163         Module mbswidth.
82164         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
82165         onceonly macros.
82166         * m4/mbrtowc.m4: Add comment.
82167
82168         Module memcasecmp.
82169         * m4/memcasecmp.m4: New file.
82170
82171         Module memcoll.
82172         * m4/memcoll.m4: New file.
82173
82174         Module unicodeio.
82175         * m4/unicodeio.m4: New file.
82176
82177         Module rpmatch.
82178         * m4/rpmatch.m4: New file.
82179
82180         Module yesno.
82181         * m4/yesno.m4: New file.
82182
82183         Module exitfail.
82184         * m4/exitfail.m4: New file.
82185
82186         Module c-stack.
82187         * m4/c-stack.m4 (gl_C_STACK): New macro.
82188         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
82189
82190         Module error.
82191         * m4/error.m4 (gl_ERROR): New macro.
82192         (jm_PREREQ_ERROR): Use onceonly macros.
82193
82194         Module fatal.
82195         * m4/fatal.m4: New file.
82196
82197         Module getloadavg.
82198         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
82199         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
82200
82201         Module getpagesize.
82202         * m4/getpagesize.m4: New file.
82203
82204         Module getusershell.
82205         * m4/getusershell.m4: New file.
82206
82207         Module physmem.
82208         * m4/physmem.m4: New file.
82209
82210         Module posixver.
82211         * m4/posixver.m4: New file.
82212
82213         Module quotearg.
82214         * m4/quotearg.m4: New file.
82215
82216         Module quote.
82217         * m4/quote.m4: New file.
82218
82219         Module readutmp.
82220         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
82221
82222         Module sig2str.
82223         * m4/sig2str.m4: New file.
82224
82225         Other.
82226         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
82227         ulonglong.m4.
82228         * m4/intmax_t.m4: New file.
82229         * m4/d-type.m4: Indentation.
82230         * m4/jm-macros.m4: Update.
82231         * m4/prereq.m4 (jm_PREREQ): Update.
82232         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
82233         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
82234         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
82235         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
82236         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
82237         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
82238         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
82239         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
82240         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
82241         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
82242         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
82243         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
82244         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
82245         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
82246         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
82247         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
82248         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
82249         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
82250         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
82251
82252 2002-12-24  Bruno Haible  <bruno@clisp.org>
82253
82254         * MODULES.txt: Update according to m4/ changes.
82255
82256         Module gettext.
82257         * config.rpath: New file, from gettext-0.11.5.
82258
82259         * modules/*: New module descriptions.
82260         * gnulib-tool: New file.
82261         * MODULES.html.sh: New file.
82262
82263 2002-12-21  Karl Berry  <karl@gnu.org>
82264
82265         * doc/fdl.texi: update to version 1.2.
82266
82267 2002-12-19  Karl Berry  <karl@gnu.org>
82268
82269         * config/config.guess: update from prep.
82270
82271 2002-12-18  Bruno Haible  <bruno@clisp.org>
82272
82273         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
82274         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
82275
82276 2002-12-17  Bruno Haible  <bruno@clisp.org>
82277
82278         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
82279         stdlib.h, string.h.
82280
82281 2002-12-17  Bruno Haible  <bruno@clisp.org>
82282
82283         * lib/canon-host.c (strdup): Remove unused declaration.
82284
82285         * lib/fsusage.c: Include full_read.h.
82286         (get_fs_usage): Use full_read instead of safe_read.
82287
82288         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
82289
82290 2002-12-12  Karl Berry  <karl@gnu.org>
82291
82292         * config/config.guess: update from prep.
82293
82294 2002-12-11  Bruno Haible  <bruno@clisp.org>
82295
82296         * m4/setenv.m4: New file, from gettext-0.11.5.
82297
82298 2002-12-11  Bruno Haible  <bruno@clisp.org>
82299
82300         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
82301         not unsetenv().
82302         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
82303         modifications:
82304
82305         2002-12-11  Bruno Haible  <bruno@clisp.org>
82306
82307                 * setenv.c (alloca): Fall back to malloc.
82308                 (freea): New macro.
82309                 (setenv): Use freea() to free memory allocated with alloca().
82310
82311         2002-11-13  Bruno Haible  <bruno@clisp.org>
82312
82313                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
82314                 function declarations.
82315                 * unsetenv.c (unsetenv): Likewise.
82316
82317         2002-03-04  Bruno Haible  <bruno@clisp.org>
82318
82319                 Portability to AIX 4.3.3.
82320                 * unsetenv.c: New file, extracted from setenv.c.
82321                 * setenv.c: Move the unsetenv() function to unsetenv.c.
82322
82323         2001-12-20  Bruno Haible  <bruno@clisp.org>
82324
82325                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
82326                 use malloc instead. For SunOS 4.
82327
82328         2001-12-11  Bruno Haible  <bruno@clisp.org>
82329
82330                 * setenv.c: Declare alloca.
82331                 (compar_fn_t): New typedef.
82332                 (KNOWN_VALUE, STORE_VALUE): Use it.
82333
82334         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
82335         setenv.h.
82336
82337 2002-12-10  Paul Eggert  <eggert@twinsun.com>
82338
82339         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
82340         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
82341         Choose values that are less likely to collide with system fnmatch
82342         options.
82343         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
82344         defined (e.g., a pure POSIX system).
82345         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
82346         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
82347
82348 2002-12-06  Paul Eggert  <eggert@twinsun.com>
82349
82350         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
82351         a pain in practice to deal with generated m4 files.  This change
82352         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
82353
82354         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
82355         and jm-glibc-io.m4, as they are no longer a special case.
82356         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
82357         kludge and the auto-generation stuff.  Check only whether the
82358         functions are declared, not whether they exist, since older hosts
82359         that don't declare the functions can't use the optimization anyway.
82360
82361 2002-12-06  Jim Meyering  <jim@meyering.net>
82362
82363         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
82364
82365         Merge in changes from libc's misc/error.c, in preparation
82366         for the merge of gnulib's changes back into libc.
82367
82368         * lib/error.c (_): Define only if not already defined.
82369         Move definition to follow all #include directives.
82370         Include unlocked-io.h only if !_LIBC.
82371         [_LIBC]: Include <libio/libioP.h>.
82372         [USE_IN_LIBIO]: Include <libio/iolibio.h>
82373         (fflush): Tweak definition to use INTUSE.
82374         (putc): Define.
82375
82376 2002-12-05  Paul Eggert  <eggert@twinsun.com>
82377
82378         * lib/alloca.c [defined emacs]: Include "lisp.h".
82379         (xalloc_die) [defined emacs]: New macro.
82380         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
82381         [! defined emacs]: Include <xalloc.h>.
82382         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
82383         (pointer): Typedef to POINTER_TYPE *.
82384         (malloc): Remove decl; we now always use xmalloc.
82385         (alloca): Use old-style definition, since Emacs needs this.
82386         Check for arithmetic overflow when computing combined size.
82387
82388 2002-12-04  Paul Eggert  <eggert@twinsun.com>
82389
82390         Do not generate unlocked-io.h automatically, since it's easier to
82391         maintain it by hand.
82392
82393         * lib/unlocked-io.h: New file, from GNU diffutils,
82394         but with proper copyright notice and attribution.
82395         * lib/gen-uio: Remove.
82396         * lib/Makefile.am: Add copyright notice.
82397         (libfetish_a_SOURCES): Add unlocked-io.h.
82398         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
82399         (DISTCLEANFILES, io_functions): Remove macros.
82400         (EXTRA_DIST): Remove gen_uio.
82401         (unlocked-io.h): Remove rule.
82402
82403 2002-12-04  Jim Meyering  <jim@meyering.net>
82404
82405         Reflect the fact that stat.c and lstat.c are no longer generated.
82406         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
82407         (DISTCLEANFILES): Likewise.
82408         (EXTRA_DIST): Likewise.
82409         (all_local): Don't depend on stat.c or lstat.c.
82410         (stat.c, lstat.c): Remove rules.
82411         (EXTRA_DIST): Remove xstat.in.
82412
82413         * lib/xstat.in: Remove file.  Contents moved into stat.c.
82414         * lib/stat.c: New file.  Contents mostly from xstat.in.
82415         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
82416         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
82417
82418         * lib/safe-read.c: Rework so that it may serve to define safe_write,
82419         too.
82420         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
82421
82422 2002-12-03  Jim Meyering  <jim@meyering.net>
82423
82424         * lib/safe-read.c, safe-write.c: Change variable names and comments,
82425         but not semantics, to minimize the differences between these two files.
82426         (safe_read): Change comment to mention SAFE_READ_ERROR.
82427
82428         * lib/safe-read.c (IS_EINTR): Define.
82429         (safe_read): Use IS_EINTR in place of in-function cpp directives.
82430
82431 2002-12-02  Jim Meyering  <jim@meyering.net>
82432
82433         * lib/safe-read.c (EINTR): Define.
82434         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
82435         (INT_MAX): Provide fallback.
82436         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
82437
82438         * lib/safe-read.h (SAFE_READ_ERROR): Define.
82439
82440 2002-12-02  Bruno Haible  <bruno@clisp.org>
82441
82442         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
82443         Define, taken from safe-read.c.
82444         (INT_MAX): Provide fallback.
82445         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
82446         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
82447
82448         * lib/safe-read.c (EINTR): Remove definition.
82449         (safe_read): Don't use EINTR if it is absent.
82450
82451 2002-12-01  Jim Meyering  <jim@meyering.net>
82452
82453         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
82454         zero.
82455         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
82456
82457 2002-11-27  Paul Eggert  <eggert@twinsun.com>
82458
82459         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
82460         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
82461         with `if (! (value < limit)) abort ();', for readability.
82462
82463 2002-11-26  Karl Berry  <karl@gnu.org>
82464
82465         * lib/strdup.c: copy from libc again, with jim's ok.
82466         * lib/.cppi-disable: re-add strdup.c
82467
82468 2002-11-25  Karl Berry  <karl@gnu.org>
82469
82470         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
82471         instead of "strtol.c".
82472
82473 2002-11-25  Karl Berry  <karl@gnu.org>
82474
82475         * config/install-sh: update from automake for variable quoting, $0 in
82476         error msgs, etc.
82477
82478         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
82479         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
82480         entry.
82481
82482 2002-11-25  Jim Meyering  <jim@meyering.net>
82483
82484         * lib/mktime.c: Sync from libc, now that it has the latest fix.
82485
82486 2002-11-24  Karl Berry  <karl@gnu.org>
82487
82488         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
82489         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
82490
82491 2002-11-24  Jim Meyering  <jim@meyering.net>
82492
82493         Update from coreutils:
82494
82495         * lib/mktime.c: Merge in changes from libc.
82496
82497         Avoid a link-time failure on some Linux systems.
82498         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
82499         (otherwise).
82500         (__mon_yday): Declare with the STATIC attribute.
82501         (__mktime_internal): Likewise.
82502         Based on a report from Greg Schafer.
82503
82504 2002-11-23  Jim Meyering  <jim@meyering.net>
82505
82506         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
82507         Use `unsigned', not `int', as type of index.
82508
82509         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
82510
82511         * lib/fsusage.c: Remove unneeded parentheses around operands of
82512         `defined'.
82513
82514 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82515
82516         * lib/quotearg.h: Allow multiple inclusion by surrounding with
82517         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
82518         so that we can be included first.
82519         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
82520         * lib/quotearg.c: Include quotearg.h immediately after config.h.
82521         No need to include stddef.h or sys/types.h any more.
82522         Surround local include files with "", not "<>".
82523         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
82524         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
82525         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
82526         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
82527         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
82528         (ISPRINT): Remove; no longer needed now that we assume C89.
82529
82530         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
82531         Preserve errno.
82532
82533         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
82534         quotearg_char): Use SIZE_MAX rather than
82535         (size_t) -1 when we are talking about "infinity".
82536
82537         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
82538
82539 2002-11-22  Paul Eggert  <eggert@twinsun.com>
82540
82541         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
82542         hint that one should use `if (! x) abort ();' rather than `assert
82543         (x);', and anyway it's one less thing to worry about configuring.
82544         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
82545         hash_rehash, hash_insert): Use abort rather than assert.
82546
82547 2002-11-22  Bruno Haible  <bruno@clisp.org>
82548
82549         * lib/safe-read.h: Assume C89. Add comments.
82550         (safe_read): Change return type to size_t.
82551         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
82552         byte counts > SSIZE_MAX correctly.
82553         * lib/safe-write.h: New file.
82554         * lib/safe-write.c: New file.
82555         * lib/full-read.h: New file.
82556         * lib/full-read.c: New file.
82557         * lib/full-write.h: Assume C89. Add comments.
82558         * lib/full-write.c: Include safe-write.h.
82559         (full_write): Rewritten to use safe_write.
82560         Suggested by Jim Meyering and Paul Eggert.
82561
82562 2002-11-21  Jim Meyering  <jim@meyering.net>
82563
82564         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82565
82566         Merge in changes from the coreutils.
82567
82568         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82569         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82570         <stdint.h>.
82571         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82572         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82573         int.  Work more efficiently if X is the same width as uintmax_t.
82574         Do not compare X to -1, to avoid bogus compiler warning.
82575         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82576         Don't assume that f_frsize and f_bsize are the same type.
82577
82578         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82579         warning on FreeBSD.
82580
82581         * lib/makepath.c (make_path): Restore umask *before* creating the final
82582         component.
82583         (make_path): Minor reformatting.
82584
82585         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82586         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82587         HAVE_MALLOC/HAVE_REALLOC.
82588
82589         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82590         dummy ones.  At least on GNU/Linux systems, `auto' means something
82591         else.
82592         From Michael Stone.
82593
82594 2002-11-21  Bruno Haible  <bruno@clisp.org>
82595
82596         Remove case insensitive option matching.
82597         * lib/argmatch.h (argcasematch): Remove declaration.
82598         (ARGCASEMATCH): Remove macro.
82599         (__xargmatch_internal): Remove case_sensitive argument.
82600         (XARGMATCH): Update.
82601         (XARGCASEMATCH): Remove macro.
82602         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82603         case_sensitive argument.
82604         (argcasematch): Remove function.
82605         (__xargmatch_internal): Remove case_sensitive argument.
82606         (main): Use XARGMATCH instead of XARGCASEMATCH.
82607
82608         * lib/xmalloc.c: Change compile-time error message. Add comment about
82609         required autoconf version.
82610
82611 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82612
82613         Merge argmatch cleanups from Bison.  Assume C89.
82614
82615         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82616         Include stdlib.h, for EXIT_FAILURE.
82617         Always include <string.h>, since we assume C89.
82618         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82619         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82620         Include <stddef.h> instead, since it's all we need for size_t.
82621         (PARAMS): Remove.  All uses removed.
82622         (ARRAY_CARDINALITY): Do not bother to #undef.
82623         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82624         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82625         Remove unnecessary parentheses.
82626         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82627         Insert necessary parentheses.
82628         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82629         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82630
82631 2002-11-19  Bruno Haible  <bruno@clisp.org>
82632
82633         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82634         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82635
82636         * lib/mbswidth.h (PARAMS): Remove macro.
82637         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82638         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82639
82640         * lib/gcd.h (PARAMS): Remove macro.
82641         (gcd): Use ANSI C function declarations.
82642         * lib/gcd.c (gcd): Likewise.
82643
82644 2002-11-15  Bruno Haible  <bruno@clisp.org>
82645
82646         * lib/strcspn.c: Include <stddef.h>.
82647         (strcspn): Use ANSI C function declaration. Change return type to
82648         size_t. Use NULL.
82649         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82650         (strpbrk): Use NULL.
82651         * lib/strpbrk.h (PARAMS): Remove macro.
82652         (strpbrk): Use ANSI C function declaration.
82653         * lib/strstr.c: Don't include <sys/types.h>.
82654         * lib/strstr.h (PARAMS): Remove macro.
82655         (strstr): Use ANSI C function declarations.
82656
82657 2002-11-14  Karl Berry  <karl@gnu.org>
82658
82659         * config/mkinstalldirs: `do' on separate line, instead of
82660         `for var; do'.
82661
82662 2002-11-06  Bruno Haible  <bruno@clisp.org>
82663
82664         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82665         * lib/gcd.c (gcd): Likewise.
82666
82667 2002-11-05  Bruno Haible  <bruno@clisp.org>
82668
82669         * lib/gcd.h: New file, from gettext-0.11.5.
82670         * lib/gcd.c: New file, from gettext-0.11.5.
82671
82672 2002-11-05  Bruno Haible  <bruno@clisp.org>
82673
82674         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82675         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82676         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82677         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82678
82679         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82680         <libintl.h>.
82681         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82682         <libintl.h>.
82683
82684         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82685         * lib/human.c: Include gettext.h instead of <libintl.h>.
82686         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82687         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82688         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82689         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82690         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82691         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82692         (textdomain): Remove definition.
82693         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82694
82695         * lib/long-options.c: Remove include of <libintl.h> and definition of
82696         _.
82697         * lib/same.c: Remove include of <libintl.h> and definition of _.
82698
82699 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82700
82701         * lib/config.charset: A few additions for Solaris.
82702
82703 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82704
82705         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82706         * lib/localcharset.c (locale_charset): Declare as extern "C".
82707
82708 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82709
82710         * lib/config.charset: msdos in uk_UA uses CP1125.
82711
82712 2002-11-04  Bruno Haible  <bruno@clisp.org>
82713
82714         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82715         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82716         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82717         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82718         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82719
82720 2002-11-04  Bruno Haible  <bruno@clisp.org>
82721
82722         * lib/localcharset.c (locale_charset): Don't return an empty string.
82723
82724 2002-11-04  Bruno Haible  <bruno@clisp.org>
82725
82726         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82727         aliases.
82728
82729 2002-11-04  Bruno Haible  <bruno@clisp.org>
82730
82731         * lib/config.charset: Update for newest glibc. Add canonical names
82732         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82733
82734 2002-11-04  Bruno Haible  <bruno@clisp.org>
82735
82736         * lib/config.charset: Add support for NetBSD.
82737
82738 2002-11-04  Bruno Haible  <bruno@clisp.org>
82739
82740         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82741
82742 2002-11-01  Bruno Haible  <bruno@clisp.org>
82743
82744         * configure.in: Add AC_CONFIG_AUX_DIR call.
82745         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82746         test/Makefile.
82747         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82748
82749 2002-09-28  Karl Berry  <karl@gnu.org>
82750
82751         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82752         installed automake until the next release, since changes have been
82753         made.
82754
82755 2002-09-25  Karl Berry  <karl@gnu.org>
82756
82757         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82758         * lib/getopt*: copy from libc/posix.
82759         * lib/gettext.h: copy from gettext.
82760         * lib/.cppi-disable: add strdup.c, gettext.h.
82761
82762 2002-09-25  Karl Berry  <karl@gnu.org>
82763
82764         * config/srclist.txt: enable gettext.h check.
82765         * config/config.{guess,sub}: update from prep.
82766         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82767                 from automake 1.6.3.
82768         See srclist*.
82769
82770 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82771
82772         * regex.c (PATFETCH): Remove the translating fetch.
82773         (PATFETCH_RAW): Rename to PATFETCH.
82774         (set_image_of_range): New fun.
82775         (SET_RANGE_TABLE_WORK_AREA): Use it.
82776         (regex_compile): Don't translate the pattern chars so eagerly.
82777         Only do it when inserting an `exactn' bytecode or when handling
82778         a char-range.
82779         (mutually_exclusive_p): Avoid empty statement.
82780
82781 2002-07-06  Jim Meyering  <meyering@lucent.com>
82782
82783         * m4/README: Don't mention Makefile.am.in.
82784         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82785
82786 2002-07-01  Jim Meyering  <meyering@lucent.com>
82787
82788         * lib/c-stack.c: Include sys/time.h.
82789         From Volker Borchert.
82790
82791 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82792
82793         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82794
82795 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82796
82797         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82798         New macro.  Use it uniformly instead of
82799         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82800         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82801         reported by Vin Shelton.
82802
82803 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82804
82805         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82806         Do not assume SA_SIGINFO behavior.
82807         Bug reported by Jim Meyering on NetBSD 1.5.2.
82808
82809 2002-06-22  Jim Meyering  <meyering@lucent.com>
82810
82811         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82812         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82813
82814         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82815         now that configure.ac uses AC_GNU_SOURCE.
82816         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82817         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82818
82819         Update to latest tools.  Suggestions from Paul Eggert.
82820         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82821         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82822         * m4/fnmatch.m4: Likewise.
82823         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82824         to AC_HEADER_STDBOOL
82825
82826 2002-06-22  Jim Meyering  <meyering@lucent.com>
82827
82828         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82829         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82830
82831 2002-06-22  Jim Meyering  <meyering@lucent.com>
82832
82833         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82834
82835         * lib/exitfail.c, exitfail.h: Likewise.
82836         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82837
82838         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82839         of fnmatch.h.
82840         (EXTRA_DIST): Add fnmatch_loop.c.
82841         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82842
82843         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82844         * lib/fnmatch.c: Update from diffutils-2.8.2.
82845         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82846         * lib/fnmatch.h: Remove file.
82847
82848 2002-06-21  Jim Meyering  <meyering@lucent.com>
82849
82850         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82851         * m4/mbrtowc.m4: Likewise.
82852
82853         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82854         * m4/mbswidth.m4: Reflect name change:
82855         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82856         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82857
82858         * m4/lib-link.m4: Update from gettext-0.11.2.
82859         * m4/gettext.m4: Likewise.
82860
82861         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82862         From Alfred M. Szmidt.
82863
82864 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82865
82866         * lib/file-type.h: Report an error if neither S_ISREG nor
82867         S_IFREG is defined, instead of using a test specific to glibc
82868         2.2.  This should be safe, since POSIX requires S_ISREG and
82869         Unix Version 7 had S_IFREG.  We don't need to check for
82870         <sys/types.h> since we don't use any symbols that it defines.
82871
82872 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82873
82874         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82875         $@-t, so that each temporary file name is unique and valid in the first
82876         8 characters, for operation under DOS.
82877
82878 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82879
82880         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82881
82882 2002-06-15  Jim Meyering  <meyering@lucent.com>
82883
82884         Work even with DJGPP 2.03, which lacks support for symlinks.
82885         From Richard Dawe.
82886         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82887         is defined.
82888         * lib/lchown.c (S_ISLNK): Likewise.
82889
82890 2002-06-15  Jim Meyering  <meyering@lucent.com>
82891
82892         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82893         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82894         have been included before this file.
82895
82896 2002-06-14  Jim Meyering  <meyering@lucent.com>
82897
82898         * lib/file-type.h: Use the version from diffutils-2.8.2.
82899         * lib/file-type.c: Likewise.
82900
82901 2002-06-07  Jim Meyering  <meyering@lucent.com>
82902
82903         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82904         They're needed at least for NetBSD 1.5.2.
82905         ($statxfs_includes): Include those same headers.
82906         ($statxfs_includes): Include sys/vfs.h if available.
82907         ($statxfs_includes): Likewise for sys/statvfs.h.
82908         Check for the following members in both structs statfs and statvfs:
82909         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82910
82911 2002-06-01  Jim Meyering  <meyering@lucent.com>
82912
82913         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82914         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82915
82916 2002-05-28  Jim Meyering  <meyering@lucent.com>
82917
82918         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82919         Reported by Volker Borchert.
82920
82921 2002-05-27  Jim Meyering  <meyering@lucent.com>
82922
82923         Fix a problem seen only on nonconforming systems whereby ls.c's
82924         use of localtime, and then of gettimeofday would cause trouble:
82925         the localtime call used to initialize rpl_gettimeofday's save
82926         mechanism would clobber ls's current local time information so
82927         that in any long listing the first file would always be listed
82928         with date 1970-01-01.  Analysis by Volker Borchert.
82929
82930         * lib/gettimeofday.c (localtime): Undefine.
82931         (rpl_localtime): New function.
82932
82933 2002-05-27  Jim Meyering  <meyering@lucent.com>
82934
82935         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82936         localtime.
82937
82938         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82939         use the replacement function; it wouldn't resolve at link time.
82940         Reported by Volker Borchert.
82941
82942 2002-05-22  Jim Meyering  <meyering@lucent.com>
82943
82944         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82945         file-type.h.
82946         * lib/file-type.h: New file.
82947         * lib/file-type.c (file_type): New file/function.  Extracted from
82948         diffutils.
82949
82950 2002-04-30  Jim Meyering  <meyering@lucent.com>
82951
82952         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82953
82954 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82955
82956         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82957
82958 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82959
82960         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82961         Do not check for alloca.h (no longer used) or stdbool.h (was never
82962         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82963
82964 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82965
82966         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82967
82968 2002-04-29  Jim Meyering  <meyering@lucent.com>
82969
82970         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82971         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82972         Use AC_FUNC_STRNLEN here instead.
82973
82974         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82975         With autoconf-2.53a, it's part of AC_PROG_CC.
82976
82977 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82978
82979         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82980         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82981
82982 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82983
82984         * lib/sig2str.h, lib/sig2str.c: New files.
82985         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82986
82987 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82988
82989         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82990         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82991         of 127, since 64 is the largest conceivable number for ancient
82992         nonstandard hosts.
82993         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82994
82995 2002-04-28  Jim Meyering  <meyering@lucent.com>
82996
82997         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82998
82999 2002-04-24  Jim Meyering  <meyering@lucent.com>
83000
83001         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83002         (jm_PREREQ): Use it.
83003
83004         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83005         mach/mach.h fcntl.h.
83006         Check for this function: setlocale.
83007
83008 2002-04-24  Jim Meyering  <meyering@lucent.com>
83009
83010         * lib/gettext.h: New file, from Gettext.
83011         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83012         (libfetish_a_SOURCES): Add gettext.h.
83013
83014 2002-04-16  Jim Meyering  <meyering@lucent.com>
83015
83016         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83017         ut_pid, ut_id, ut_exit.
83018
83019 2002-04-16  Jim Meyering  <meyering@lucent.com>
83020
83021         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
83022         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
83023         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
83024
83025 2002-04-12  Jim Meyering  <meyering@lucent.com>
83026
83027         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
83028         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
83029         existence of the getmntinfo function.  Needed for Darwin 5.3.
83030
83031         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
83032         This is necessary at least on Darwin 5.3.
83033
83034         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
83035         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
83036         strnlen.o in the library, and that makes some versions of ranlib
83037         object.
83038
83039 2002-04-12  Jim Meyering  <meyering@lucent.com>
83040
83041         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
83042
83043 2002-04-09  Jim Meyering  <meyering@lucent.com>
83044
83045         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
83046         to be more precise.  Rather than saying we're checking whether the
83047         function `works', say what we're testing.
83048         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
83049         Reported by Bruno Haible.
83050
83051 2002-03-10  Jim Meyering  <meyering@lucent.com>
83052
83053         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83054         Suggestion from Santiago Vila.
83055
83056 2002-03-08  Jim Meyering  <meyering@lucent.com>
83057
83058         * lib/rename.c: Mention that this wrapper is needed also on
83059         mips-dec-ultrix4.4 systems.
83060
83061 2002-03-02  Jim Meyering  <meyering@lucent.com>
83062
83063         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83064         not HAVE_CLOCK_SETTIME.
83065
83066 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83067
83068         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83069         Check for clock_settime.
83070
83071 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83072
83073         * lib/nanosleep.h: Rename to....
83074         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83075
83076         * lib/gettime.c: New file.
83077         * lib/settime.c: New file.
83078         * lib/stime.c: Remove.
83079
83080         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83081         timespec.h.  Remove nanosleep.h.
83082
83083 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83084
83085         * m4/acl.m4: New file.
83086         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83087         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83088
83089 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83090
83091         * lib/acl.c, lib/acl.h: New files.
83092         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83093
83094 2002-02-24  Jim Meyering  <meyering@lucent.com>
83095
83096         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83097         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83098         cause trouble.  Reported by Nelson Beebe.
83099
83100 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83101
83102         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83103         compilers that don't know that xalloc_die never returns.
83104
83105 2002-02-20  Jim Meyering  <meyering@lucent.com>
83106
83107         * lib/getdate.c: Regenerate using bison-1.33.
83108
83109 2002-02-17  Jim Meyering  <meyering@lucent.com>
83110
83111         * config/config.guess (main): Don't use `head -1'; it's no longer
83112         portable. Use `sed 1q' instead.
83113
83114 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83115
83116         * m4/codeset.m4: Upgrade to gettext-0.11.
83117         * m4/gettext.m4: Upgrade to gettext-0.11.
83118         * m4/glibc21.m4: Upgrade to gettext-0.11.
83119         * m4/iconv.m4: Upgrade to gettext-0.11.
83120         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83121         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83122         * m4/lib-ld.m4: New file, from gettext-0.11.
83123         * m4/lib-link.m4: New file, from gettext-0.11.
83124         * m4/lib-prefix.m4: New file, from gettext-0.11.
83125         * m4/progtest.m4: Upgrade to gettext-0.11.
83126
83127 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83128
83129         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
83130         (jm_PREREQ): Use it.
83131
83132 2002-02-15  Paul Eggert  <eggert@twinsun.com>
83133
83134         * lib/posixver.c, lib/posixver.h: New files.
83135         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83136
83137 2002-02-02  Paul Eggert  <eggert@twinsun.com>
83138             Bruno Haible  <bruno@clisp.org>
83139
83140         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
83141         (fwrite_success_callback): New declaration.
83142         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
83143         print_unicode_char. Call failure callback instead of error.
83144         (fwrite_success_callback): New function.
83145         (exit_failure_callback): New function.
83146         (fallback_failure_callback): New function.
83147         (print_unicode_char): Call unicode_to_mb.
83148
83149 2002-01-26  Jim Meyering  <meyering@lucent.com>
83150
83151         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
83152         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
83153
83154 2002-01-26  Jim Meyering  <meyering@lucent.com>
83155
83156         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
83157
83158 2002-01-22  Paul Eggert  <eggert@twinsun.com>
83159
83160         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
83161
83162 2002-01-22  Jim Meyering  <meyering@lucent.com>
83163
83164         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
83165         Otherwise, some versions of automake would omit the rule that makes
83166         Makefile from Makefile.in.
83167
83168 2002-01-21  Paul Eggert  <eggert@twinsun.com>
83169
83170         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
83171         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
83172         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
83173         (memcoll): Set errno to zero if there is no error.
83174
83175         * lib/quotearg.c (quotearg_buffer_restyled):
83176         Fix bug with quoting buffers containing NUL when backslashing escapes.
83177         This bug was exposed by the other changes in this patch.
83178         (quotearg_n_options): New arg ARGSIZE.
83179         All callers changed.
83180         (quoting_options_from_style): New function.
83181         (quotearg_n_style): Use it.
83182         (quotearg_n_style_mem): New function.
83183
83184         * lib/quotearg.h (quotearg_n_style_mem): New function.
83185
83186 2002-01-19  Jim Meyering  <meyering@lucent.com>
83187
83188         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
83189         Remove useless quotes: DF_PROG="df".
83190         * m4/strnlen.m4: New file.
83191
83192 2002-01-16  Paul Eggert  <eggert@twinsun.com>
83193
83194         * lib/backupfile.c (ISDIGIT): Comment fix.
83195         * lib/getdate.y (ISDIGIT): Likewise.
83196         * lib/posixtm.c (ISDIGIT, year): Likewise.
83197         * lib/strverscmp.c (ISDIGIT): Likewise.
83198         * lib/userspec.c (ISDIGIT): Likewise.
83199
83200 2002-01-16  Jim Meyering  <meyering@lucent.com>
83201
83202         * lib/getdate.y: Add three semicolons, each just before a closing
83203         brace. Bison (as of version 1.31) no longer papers over that mistake.
83204
83205 2002-01-05  Jim Meyering  <meyering@lucent.com>
83206
83207         * lib/version-etc.c (version_etc_copyright): Update copyright year.
83208
83209 2001-12-19  Paul Eggert  <eggert@twinsun.com>
83210
83211         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
83212         not silently exit merely because the output buffer happens to
83213         have nothing pending.
83214
83215 2001-12-18  Paul Eggert  <eggert@twinsun.com>
83216
83217         See the big note in ../ChangeLog.
83218         * lib/human.c (suffixes): Prefer K to k for 1024.
83219         (generate_suffix_backwards): New function.
83220         (human_readable_inexact): Use it.
83221         * lib/xstrtol.c (__xstrtol): If there is no number but there
83222         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
83223         Accept 'K' as well as 'k'.
83224
83225 2001-12-15  Jim Meyering  <meyering@lucent.com>
83226
83227         * lib/regex.h (__restrict_arr): Update from libc.
83228
83229         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
83230         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
83231         (STREQ): Define.
83232
83233 2001-12-14  Jim Meyering  <meyering@lucent.com>
83234
83235         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
83236         Suggestion from Bruno Haible.
83237
83238 2001-12-10  Jim Meyering  <meyering@lucent.com>
83239
83240         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
83241         xrealloc, Instead, include "xalloc.h".
83242         (initbuffer): Don't cast xmalloc return value to char*.
83243         (readline): Reword comment.
83244         Don't cast xrealloc return value to char*
83245         Return NULL, not 0.
83246
83247 2001-12-09  Jim Meyering  <meyering@lucent.com>
83248
83249         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
83250         about `signed and unsigned type in conditional expression'.
83251         * lib/posixtm.c (posix_time_parse): Likewise.
83252
83253         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
83254
83255         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
83256         to avoid a pedantic warning.
83257
83258         * lib/getstr.c: Don't include assert.h.
83259         (getstr): Remove warning-evoking assertions.
83260         Return -1 if offset parameter is out of bounds.
83261         Change the type of a local from int to size_t.
83262
83263         * lib/strftime.c (my_strftime_localtime_r): Include this function
83264         definition in the `#if ! HAVE_TM_GMTOFF' block.
83265
83266         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
83267         Include xalloc.h instead.
83268
83269 2001-12-02  Jim Meyering  <meyering@lucent.com>
83270
83271         * lib/tempname.c: Don't declare getenv, thus reverting the change of
83272         2001-11-18.  It's no longer necessary, now that stdlib.h is always
83273         included.
83274
83275         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
83276         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
83277
83278 2001-11-30  Akim Demaille  <akim@epita.fr>
83279
83280         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
83281         before being defined.
83282
83283 2001-11-27  Paul Eggert  <eggert@twinsun.com>
83284
83285         * lib/quotearg.h (quotearg_n, quotearg_n_style):
83286         First arg is int, not unsigned.
83287         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
83288         (SIZE_MAX, UINT_MAX): New macros.
83289         (quotearg_n_options): Abort if N is negative.
83290         Avoid overflow check on hosts where size_t is 64 bits and int
83291         is 32 bits, as overflow is impossible there.
83292         Fix off-by-one typo that caused unnecessary reallocation.
83293
83294 2001-11-27  Jim Meyering  <meyering@lucent.com>
83295
83296         * lib/tempname.c: Merge with version from libc.
83297         * lib/regex.c: Likewise.
83298
83299         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
83300         systems for which STDC_HEADERS is 0, it was not included, resulting in
83301         a warning about an integer-to-pointer conversion problem with getenv.
83302         Reported by Volker Borchert.
83303
83304 2001-11-26  Jim Meyering  <meyering@lucent.com>
83305
83306         * lib/gtod.h: Remove file.
83307         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
83308         * lib/gettimeofday.c: Don't include gtod.h.
83309         (GTOD_init): Remove function.
83310         (rpl_gettimeofday): Do its job here instead, rather than aborting.
83311         Suggestion from Volker Borchert.
83312
83313 2001-11-23  Jim Meyering  <meyering@lucent.com>
83314
83315         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
83316         it.
83317         * lib/hash.c (struct hash_table): Define it here instead.
83318
83319 2001-11-22  Jim Meyering  <meyering@lucent.com>
83320
83321         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
83322
83323 2001-11-20  Jim Meyering  <meyering@lucent.com>
83324
83325         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
83326         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
83327
83328 2001-11-19  Jim Meyering  <meyering@lucent.com>
83329
83330         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
83331         directory.  Use "conftestXXXXXX" as the template.
83332         Suggestion from Paul Eggert.
83333
83334         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
83335         immediately, so the test doesn't mistakenly hit the max-open-files
83336         limit.
83337
83338 2001-11-18  Paul Eggert  <eggert@twinsun.com>
83339
83340         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
83341         (TEMPORARIES): New macro.
83342         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
83343         removes an artificial limitation (e.g. HP-UX 10.20, where
83344         TMP_MAX is 17576).
83345
83346 2001-11-18  Jim Meyering  <meyering@lucent.com>
83347
83348         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
83349
83350 2001-11-18  Jim Meyering  <meyering@lucent.com>
83351
83352         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
83353         on SunOS 4.
83354
83355         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
83356         files will be created before anything else.
83357
83358 2001-11-17  Paul Eggert  <eggert@twinsun.com>
83359
83360         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
83361         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
83362
83363 2001-11-17  Jim Meyering  <meyering@lucent.com>
83364
83365         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
83366         Prompted by a report from Bob Proulx.
83367
83368         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
83369         Instead, require UTILS_FUNC_MKSTEMP.
83370
83371 2001-11-17  Jim Meyering  <meyering@lucent.com>
83372
83373         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
83374         Now, that's done as part of AC_FUNC_STRTOD.
83375
83376 2001-11-17  Jim Meyering  <meyering@lucent.com>
83377
83378         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
83379         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
83380         rather than group writable.  Patch by Juan F. Codagnone.
83381
83382         * lib/readtokens.c: Remove explicit declarations of xmalloc and
83383         xrealloc, Instead, include "xalloc.h".
83384
83385         * lib/mountlist.c: Include unlocked-io.h after all system headers.
83386         Remove explicit declarations of xmalloc, xrealloc,
83387         and xstrdup.  Instead, include "xalloc.h".
83388
83389         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
83390         unlocked-io.h.
83391         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
83392         Likewise.
83393         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
83394
83395         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
83396         Reported by Padraig Brady.
83397
83398         * lib/mkstemp.c: #undef mkstemp.
83399         Include config.h.
83400         (rpl_mkstemp): Rename from mkstemp.
83401         Protoize.
83402
83403 2001-11-16  Jim Meyering  <meyering@lucent.com>
83404
83405         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
83406         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
83407         determine the amount of total physical memory, use pstat_getstatic.
83408         HPUX-11 doesn't define _SC_PHYS_PAGES.
83409         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
83410         If sysconf couldn't be used to determine the amount of available
83411         physical memory, use both pstat_getstatic and pstat_getdynamic.
83412         Based on a patch from Bob Proulx.
83413
83414 2001-11-10  Jim Meyering  <meyering@lucent.com>
83415
83416         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
83417         (jm_PREREQ): Use it.
83418
83419 2001-11-09  Jim Meyering  <meyering@lucent.com>
83420
83421         * m4/jm-macros.m4: Require autoconf-2.52f.
83422         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
83423         Use these AC_-prefixed names, not the AM_-prefixed ones.
83424
83425         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
83426
83427 2001-11-05  Jim Meyering  <meyering@lucent.com>
83428
83429         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
83430
83431 2001-11-04  Jim Meyering  <meyering@lucent.com>
83432
83433         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
83434         $DEFS.
83435
83436 2001-11-03  Jim Meyering  <meyering@lucent.com>
83437
83438         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
83439         of AC_DEFUN.
83440
83441         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
83442         know the name of the variable in the macro definition.
83443
83444 2001-11-03  Jim Meyering  <meyering@lucent.com>
83445
83446         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
83447         in argmatch_to_argument call.
83448
83449         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
83450         argument.
83451
83452         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
83453         e.g., a fault due to an attempt to free a NULL pointer.
83454
83455 2001-11-01  Jim Meyering  <meyering@lucent.com>
83456
83457         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
83458         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
83459
83460 2001-11-01  Jim Meyering  <meyering@lucent.com>
83461
83462         * lib/dirfd.c, lib/dirfd.h: New files.
83463         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
83464
83465         * lib/hash.c (hash_print) [TESTING]: Clean up.
83466
83467 2001-10-22  Paul Eggert  <eggert@twinsun.com>
83468
83469         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
83470         to avoid a warning if -Wall.
83471
83472 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
83473
83474         * README: New file
83475         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
83476         (per RMS's instructions, this is now the canonical source)
83477         * lgpl/, gpl/: New directories.
83478
83479 2001-10-21  Paul Eggert  <eggert@twinsun.com>
83480
83481         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
83482
83483 2001-10-21  Jim Meyering  <meyering@lucent.com>
83484
83485         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
83486         this code would end up calling gettext even in packages built
83487         with --disable-nls.
83488         * lib/getopt.c (_): Likewise.
83489         * lib/regex.c (_): Likewise.
83490
83491 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83492
83493         * m4/error.m4 (jm_PREREQ_ERROR):
83494         Do not invoke AC_CHECK_FUNCS with strerror_r, as
83495         AC_FUNC_STRERROR_R does that.
83496         Check for strerror declaration.
83497
83498         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
83499         are supposed to have them these days.
83500         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
83501         Merge changes from latest Autoconf CVS.
83502         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
83503         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
83504         POSIX decided to standardize on the int flavor of strerror_r.
83505
83506 2001-10-20  Paul Eggert  <eggert@twinsun.com>
83507
83508         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
83509         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
83510         Use strerror_r that is only a macro, even if it is not a function.
83511         (strerror): Check for HAVE_DECL_STRERROR before declaring.
83512         (private_strerror): Use prototypes, not old-style function definition.
83513         (print_errno_message): New function.
83514         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
83515         char*-flavored one.
83516         (error_tail, error, error_at_line): Use it.
83517
83518 2001-10-11  Jim Meyering  <meyering@lucent.com>
83519
83520         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
83521         and quote_n (1, ... to avoid clobbering a buffer.
83522
83523 2001-10-05  Jim Meyering  <meyering@lucent.com>
83524
83525         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
83526         hash-pjw.h.
83527         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
83528         * lib/hash-pjw.h: New file.
83529
83530 2001-09-30  Jim Meyering  <meyering@lucent.com>
83531
83532         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
83533         `struct fsstat' has the `f_fstypename' member.
83534         Use that to define FS_TYPE, which is now used to make
83535         the getfsstat link test tighter.
83536
83537 2001-09-30  Jim Meyering  <meyering@lucent.com>
83538
83539         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
83540         Include <sys/ucred.h>, for Apple Darwin.
83541         Include sys/mount.h and sys/fs_types.h only if available.
83542         (FS_TYPE): Define.
83543         (read_filesystem_list): Use FS_TYPE.
83544
83545 2001-09-29  Paul Eggert  <eggert@twinsun.com>
83546
83547         * lib/exclude.c (excluded_filename): 0 -> false, since it's
83548         a boolean context.
83549
83550 2001-09-29  Jim Meyering  <meyering@lucent.com>
83551
83552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83553         [one-argument getmntent function]): Include stdio.h before mntent.h.
83554         SunOS 4.1.x needs it for the declaration of `FILE'.
83555         Patch by Volker Borchert.
83556
83557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83558         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83559         sys/fs_types.h, and make the link-test for getfsstat guard #include
83560         directives with appropriate #if HAVE_*_H tests so that we can
83561         detect getfsstat on Apple Darwin1.3.7 systems.
83562         Reported by Nelson Beebe.
83563         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83564
83565 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83566
83567         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83568         #defines strtoimax.  Also treat the other strto* functions
83569         like strtoimax.
83570
83571         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83572         Check for strtoul and strtoumax,
83573         as those declarations are made even in the signed case.
83574         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83575         Likewise, for strtol and strtoimax.
83576
83577 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83578
83579         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83580         #defines strtoimax.  Also treat the other strto* functions
83581         like strtoimax.
83582
83583         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83584         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83585         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83586
83587 2001-09-26  Jim Meyering  <meyering@lucent.com>
83588
83589         Most macros in unlocked-io.h had the wrong number of arguments.
83590         * lib/gen-uio: New script.
83591         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83592         * lib/unlocked-io.hin: Remove file.
83593         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83594         rather than trying to embed it here.
83595         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83596         Reported by Padraig Brady.
83597
83598 2001-09-25  Volker Borchert  <bt@teknon.de>
83599
83600         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83601         `result'.
83602
83603 2001-09-24  Jim Meyering  <meyering@lucent.com>
83604
83605         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83606
83607 2001-09-23  Jim Meyering  <meyering@lucent.com>
83608
83609         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83610         instead of the mere test for existence of mntent.h.  The latter
83611         would get a false-positive on AIX 3.4 systems.
83612         In the outer getmntent if-block, don't die if neither of the getmntent
83613         tests succeeds.  Instead, just fall through and continue with the
83614         remaining tests.
83615
83616 2001-09-23  Jim Meyering  <meyering@lucent.com>
83617
83618         * lib/mountlist.c: Remove useless parentheses in #if directives.
83619         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83620         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83621
83622 2001-09-22  Jim Meyering  <meyering@lucent.com>
83623
83624         * m4/gettext.m4: New file.  From gettext.
83625         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83626         * m4/progtest.m4: Likewise
83627         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83628         * m4/glibc21.m4: Likewise.
83629
83630         * m4/libintl.m4: Remove.  No longer used.
83631
83632 2001-09-22  Jim Meyering  <meyering@lucent.com>
83633
83634         * lib/localcharset.c: Update from latest gettext.
83635         * lib/config.charset: Likewise.
83636
83637 2001-09-20  Jim Meyering  <meyering@lucent.com>
83638
83639         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83640         strtoimax.
83641         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83642         strtoumax.
83643
83644 2001-09-20  Jim Meyering  <meyering@lucent.com>
83645
83646         * lib/xstrtol.c (strtoimax): Guard declaration with
83647         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83648         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83649         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83650         (strtoumax): Likewise, for completeness (it wasn't necessary).
83651
83652 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83653
83654         * lib/strtoimax.c (HAVE_LONG_LONG):
83655         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83656         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83657         to work around bug in IBM C compiler.
83658
83659 2001-09-17  Jim Meyering  <meyering@lucent.com>
83660
83661         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83662         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83663         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83664         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83665         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83666         whenever the right hand side need not be expanded by the shell.
83667
83668 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83669
83670         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83671         library.  It's not correct, as some older glibcs are buggy.
83672         fnmatch wasn't fixed until glibc 2.2.
83673
83674         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83675         special shell magic here.
83676
83677 2001-09-16  Jim Meyering  <meyering@lucent.com>
83678
83679         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83680         * m4/jm-macros.m4: Require it.
83681
83682 2001-09-16  Jim Meyering  <meyering@lucent.com>
83683
83684         * lib/mkdir.c: New file.
83685
83686 2001-09-15  Jim Meyering  <meyering@lucent.com>
83687
83688         * m4/jm-macros.m4: Check for help2man.
83689
83690 2001-09-11  Jim Meyering  <meyering@lucent.com>
83691
83692         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83693         The body, by Paul Eggert, was moved here from configure.in.
83694         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83695
83696 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83697
83698         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83699         (jm_PREREQ): Use it.
83700
83701 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83702
83703         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83704         Use ssize_t, not int, to store result of readlink.
83705         Check for ssize_t overflow as well as size_t overflow,
83706         as POSIX says the result of readlink is implementation-defined
83707         when ssize_t overflows.
83708         Remove unnecessary cast to char*.
83709         Use free+malloc instead of realloc, as the storage doesn't need
83710         to be preserved and it's clearer and can be more efficient that way.
83711         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83712         * lib/xreadlink.h (xreadlink): Update prototype.
83713
83714 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83715
83716         * lib/xgetcwd.c: Revert some of the previous change; intead,
83717         fix the HAVE_GETCWD_NULL code to behave more like the
83718         !HAVE_GETCWD_NULL code used to.
83719
83720         Include "xalloc.h".
83721         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83722         invoke xalloc_die.
83723
83724 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83725
83726         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83727         sys/param.h, as pathmax.h includes them.
83728
83729 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83730
83731         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83732         (jm_PREREQ_XGETCWD): New macro.
83733
83734         * m4/getcwd.m4: New file.
83735
83736 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83737
83738         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83739         like the HAVE_GETCWD_NULL code.
83740         Include pathmax.h if not HAVE_GETCWD.
83741         Do not include xalloc.h.
83742         (INITIAL_BUFFER_SIZE): New symbol.
83743         Do not use xmalloc / xrealloc, since the caller is responsible for
83744         handling errors.  Preserve errno around `free' during failure.
83745         Do not overrun buffer when using getwd.
83746
83747 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83748
83749         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83750         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83751         getcwd (NULL, 0).
83752
83753 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83754
83755         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83756         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83757         spotted by Jim Meyering.
83758
83759 2001-09-03  Jim Meyering  <meyering@lucent.com>
83760
83761         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83762         failure.
83763
83764 2001-09-02  Jim Meyering  <meyering@lucent.com>
83765
83766         * lib/error.c: Update from GNU libc.
83767
83768 2001-09-01  Jim Meyering  <meyering@lucent.com>
83769
83770         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83771         Used by df.
83772
83773 2001-09-01  Jim Meyering  <meyering@lucent.com>
83774
83775         * lib/xreadlink.c: New file.
83776         * lib/xreadlink.h: New file.
83777         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83778         xreadlink.h.
83779
83780         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83781         doesn't conflict with sparc Solaris 7's definition in
83782         /usr/include/sys/int_types.h.
83783
83784         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83785         files.
83786         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83787         and strncasecmp as r-values.  Unixware didn't have declarations.
83788
83789 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83790
83791         * lib/xstrtol.h: Add copyright notice.
83792         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83793         LONGINT_INVALID_SUFFIX_CHAR.
83794
83795 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83796
83797         * lib/xstrtol.c (strtoimax): New decl.
83798
83799 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83800
83801         * lib/xgetcwd.c: Don't include pathmax.h.
83802         Include stdlib.h and unistd.h if available.
83803         Include xalloc.h.
83804         (xmalloc, xstrdup, free): Remove decls.
83805         (xgetcwd): Don't assume sizes fit in unsigned.
83806         Check for overflow when computing sizes.
83807         Simplify reallocation code.
83808
83809 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83810
83811         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83812         a directory's st_size can have an arbitrary value, so the old
83813         usage could waste an arbitrary amount of memory.  All uses
83814         changed.
83815         * lib/savedir.h: Update prototype.
83816
83817 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83818
83819         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83820
83821         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83822         old strtoimax.c.
83823
83824         Also, make the following further changes to make this file's
83825         configuration more similar to that of strtol.c:
83826         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83827         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83828         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83829         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83830         changed to signed values.
83831
83832         And make the following changes as well:
83833         Fix copyright notice, as 1999 was missing.
83834         (verify): New macro.
83835         (strtoimax): Check sizes at compile-time, not run-time.
83836         Prefer strtol to strtoll if both work.
83837         (main): Remove; it was not that useful and was a pain to maintain.
83838
83839         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83840
83841 2001-08-31  Jim Meyering  <meyering@lucent.com>
83842
83843         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83844         Use an initial, malloc'd, buffer of length 128 rather than
83845         a statically allocated one of length 1024.
83846
83847 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83848
83849         Simplify code, partly by assuming autoconf 2.52 semantics.
83850
83851         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83852
83853         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83854         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83855         All uses removed.
83856         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83857         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83858         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83859         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83860         jm_AC_HEADER_INTTYPES_H.
83861         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83862
83863         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83864
83865         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83866         Quote first arg of AC_DEFUN.
83867         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83868         since they are needed to parse the include file even if we need
83869         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83870         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83871         but with opposite signedness.
83872
83873 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83874
83875         Merge 'exclude' changes from tar 1.13.22.
83876         This fixes one or two unlikely storage allocation overflow bugs,
83877         but doesn't change user-visible behavior otherwise.
83878
83879 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83880
83881         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83882         (jm_PREREQ_EXCLUDE): New macro.
83883
83884 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83885
83886         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83887         tm to be declared.
83888
83889 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83890
83891         * lib/hash.c: Remove '2001' from copyright notice.
83892
83893 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83894
83895         * lib/full-write.h: New file.
83896         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83897         * lib/full-write.c: Correct credits, as cccp.c no longer
83898         exists and anyway it was so heavily changed from the old cccp
83899         code as to be unrecognizable.  Include full-write.h.
83900         (full_write): Return size_t, with short writes meaning failure.
83901         All callers changed.  This fixes a bug with large buffers
83902         on 64-bit hosts.
83903         * lib/utime.c: Include full-write.h.
83904
83905 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83906
83907         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83908         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83909         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83910         Include if available.
83911         (<xalloc.h>): Include
83912         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83913         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83914         collide with FNM macros.
83915         (struct patopts): New struct.
83916         (struct exclude): Use it, as exclude patterns now come with options.
83917         (new_exclude): Support above changes.
83918         (new_exclude, add_exclude_file):
83919         Initial size must now be a power of two to simplify overflow checking.
83920         (free_exclude, fnmatch_no_wildcards): New function.
83921         (excluded_filename): No longer requires options arg, as the options
83922         are determined by add_exclude.  Now returns bool, not int.
83923         (excluded_filename, add_exclude):
83924         Add support for the fancy new exclusion options.
83925         (add_exclude, add_exclude_file): Now takes int options arg.
83926         Check for arithmetic overflow when computing sizes.
83927         (add_exclude_file): xrealloc might modify errno, so don't
83928         realloc until after errno might be used.
83929
83930         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83931         New macros.
83932         (free_exclude): New decl.
83933         (add_exclude, add_exclude_file): Now takes int options arg.
83934         (excluded_filename): No longer requires options arg, as the options
83935         are determined by add_exclude.  Now returns bool, not int.
83936
83937 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83938
83939         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83940
83941 2001-08-27  Jim Meyering  <meyering@lucent.com>
83942
83943         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83944
83945         * lib/version-etc.c (N_): Remove definition.
83946         Revert most of last change.
83947         Instead, simply don't mark the `Copyright...' string for translation.
83948         Based on advice from Paul Eggert.
83949
83950         * lib/strtoxmax.c: Tweak comment.
83951
83952 2001-08-26  Jim Meyering  <meyering@lucent.com>
83953
83954         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83955
83956         * m4/xstrtoimax.m4: New file.
83957         * m4/xstrtoumax.m4: Add comments explaining why we
83958         AC_REPLACE_FUNCS(strtol).
83959
83960 2001-08-26  Jim Meyering  <meyering@lucent.com>
83961
83962         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83963         of copyright with `%s' so translators don't get an untranslated
83964         message in 2002.
83965         (COPYRIGHT_YEAR): Define.
83966         (version_etc): Use fprintf rather than fputs.
83967         Suggestion from Ulrich Drepper.
83968
83969         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83970
83971         * lib/strtoll.c: New file, from GNU libc.
83972         * lib/xstrtoimax.c: New file.
83973
83974         * lib/xstrtol.h: Add xstrtoimax.
83975         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83976         * lib/strtoimax.c: New file.  Likewise, but first define
83977         STRTOUXMAX_SIGNED.
83978
83979         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83980         ...
83981         * lib/strtoxmax.c: ... then renamed to this.
83982
83983 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83984
83985         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83986         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83987         (jm_AC_TYPE_INTMAX_T): New macro.
83988         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83989
83990         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83991
83992         * m4/longlong.m4: Renamed from ulonglong.m4.
83993         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83994         * m4/uintmax_t.m4: Removed.
83995
83996 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83997
83998         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83999         Port to Solaris 8, where 'sed' requires a space after the 'r'
84000         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84001         Redirect output to $tmp just once.
84002
84003 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84004
84005         * lib/addext.c (<errno.h>): Include.
84006         (errno): Declare if not defined.
84007         (addext): Work correctly when pathconf returns -1 and leaves
84008         errno alone because there is no limit.  Also, work even if
84009         pathconf returns a value greater than SIZE_MAX.
84010
84011 2001-08-12  Jim Meyering  <meyering@lucent.com>
84012
84013         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84014         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84015         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84016         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84017         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84018         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84019         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84020         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84021         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
84022         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
84023         utime.m4, utimes.m4, xstrtoumax.m4:
84024         Quote the first argument in each use of AC_DEFUN.
84025
84026 2001-08-12  Jim Meyering  <meyering@lucent.com>
84027
84028         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
84029         Simply `return getcwd (NULL, 0);'.
84030         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
84031         Use 1300 as initial value for length, not PATH_MAX.
84032
84033         * lib/pathmax.h: Clean up cpp syntax.
84034
84035 2001-08-12  Jim Meyering  <meyering@lucent.com>
84036
84037         * lib/gettimeofday.c: New file.
84038         * lib/gtod.h: New file.
84039         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
84040
84041 2001-08-05  Jim Meyering  <meyering@lucent.com>
84042
84043         * m4/jm-macros.m4: Require autoconf-2.52.
84044
84045 2001-08-04  Jim Meyering  <meyering@lucent.com>
84046
84047         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
84048         stmt, to get in sync with glibc.
84049
84050 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84051
84052         The following changes are from gettext 0.10.39 as maintained by
84053         Bruno Haible.
84054
84055         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84056         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84057         with inverted sense.  All uses changed.
84058
84059         * lib/mbswidth.c: Don't include <limits.h>.
84060         Include <stdlib.h> and <string.h> unconditionally.
84061         (iswcntrl, mbsinit, ISCNTRL): New macros.
84062         (mbsnwidth): Use K&R style function declarations.
84063         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84064         can optimize it when MB_CUR_MAX == 1.
84065         The width of control characters is zero, not 1.
84066
84067 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84068
84069         The following changes are from gettext 0.10.39 as maintained by
84070         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84071
84072         * m4/codeset.m4: Upgrade to serial AM1.
84073         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84074         all uses changed.  Quote first arg of AC_DEFUN.
84075         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84076
84077         * m4/iconv.m4: Upgrade to serial AM2.
84078         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84079         Add --with-libconv-prefix.
84080         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84081         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84082         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84083         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84084         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84085
84086         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84087         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84088         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84089         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84090         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84091         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84092         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84093         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84094         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84095
84096         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84097         string.h any more.
84098
84099         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84100         not the default value.
84101
84102         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84103         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84104         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84105         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84106         Also check for iswcntrl, used for wcwidth fallback.
84107         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84108         to Autoconf 2.13.
84109
84110 2001-08-03  Jim Meyering  <meyering@lucent.com>
84111
84112         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84113         as it was in the original.  Reported by Paul Eggert.
84114
84115 2001-07-16  Jim Meyering  <meyering@lucent.com>
84116
84117         * m4/gettimeofday.m4: New file.
84118         Prompted by a report from Bernhard Baehr.
84119
84120 2001-07-15  Jim Meyering  <meyering@lucent.com>
84121
84122         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
84123         stuff. Now it's in ../Makefile.cfg.
84124
84125 2001-07-15  Jim Meyering  <meyering@lucent.com>
84126
84127         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
84128         (BUILT_SOURCES): Add unlocked-io.h.
84129         (io_functions): Define.
84130         (unlocked-io.h): New rule.
84131         (DISTCLEANFILES): Add unlocked-io.h.
84132         (all-local): Depend on unlocked-io.h, to ensure it is created.
84133
84134         * lib/unlocked-io.hin: New file
84135
84136         * lib/regex.c: Update from glibc.
84137
84138 2001-07-05  Jim Meyering  <meyering@lucent.com>
84139
84140         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
84141         recommendation.
84142         (libfetish_a_SOURCES): Put all .h files here instead.
84143         Remove a thus-exposed (better checks in automake) duplicate and
84144         two unnecessary .h files.
84145
84146 2001-07-04  Jim Meyering  <meyering@lucent.com>
84147
84148         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
84149         that generates jm-glibc-io.m4 so that it doesn't trigger any make
84150         distcheck failure.
84151
84152 2001-07-02  Jim Meyering  <meyering@lucent.com>
84153
84154         The following changes were prompted by suggestions from Bruno Haible.
84155
84156         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
84157         is now generated.
84158         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
84159         definition of EXTRA_DIST.
84160         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
84161         ensure that the generated file is created/updated whenever the list
84162         of $(unlocked_functions) is changed.
84163         (jm-glibc-io.m4): New rule.
84164         (unlocked-io.h): New rule -- currently unused.
84165
84166 2001-06-24  Jim Meyering  <meyering@lucent.com>
84167
84168         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
84169         unmatched right bracket, rather than kludging it with an extra,
84170         falsely-matching quote in a comment.  Patch by Akim Demaille.
84171
84172 2001-06-11  Jim Meyering  <meyering@lucent.com>
84173
84174         * lib/regex.c: Update from GNU libc.
84175
84176 2001-05-27  Jim Meyering  <meyering@lucent.com>
84177
84178         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
84179         Check for ut_type in struct utmp.
84180
84181 2001-05-27  Jim Meyering  <meyering@lucent.com>
84182
84183         * lib/readutmp.h (UT_TYPE): Define.
84184
84185 2001-05-24  Jim Meyering  <meyering@lucent.com>
84186
84187         * lib/argmatch.c: Include "quote.h".
84188         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
84189         quote function.  Reported by Göran Uddeborg.
84190
84191 2001-05-22  Jim Meyering  <meyering@lucent.com>
84192
84193         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
84194         now that we use the package-supplied version unconditionally.
84195         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
84196
84197 2001-05-21  Jim Meyering  <meyering@lucent.com>
84198
84199         * m4/regex.m4: Change a couple backticks to single quotes to avoid
84200         shell syntax errors.
84201
84202 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84203
84204         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
84205
84206 2001-05-20  Paul Eggert  <eggert@twinsun.com>
84207
84208         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
84209         Don't bother to check library strftime, since
84210         we'll be using our own my_strftime function anyway.
84211         Define my_strftime instead of strftime.
84212
84213 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
84214
84215         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
84216         which is not yet declared.
84217
84218 2001-05-15  Jim Meyering  <meyering@lucent.com>
84219
84220         * m4/regex.m4: Use proper quoting so brackets appear in the test
84221         program.
84222         Reported by, and with help from, Bruno Haible.
84223
84224 2001-05-13  Jim Meyering  <meyering@lucent.com>
84225
84226         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
84227         undefined.
84228
84229 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84230
84231         dirname code cleanup.  base_name now behaves more compatibly
84232         with POSIX basename when given file names that have trailing
84233         slashes, and similarly for dir_name.  Add new primitives
84234         base_len and dir_len.  Put the directory-name-related decls
84235         into dirname.h.
84236
84237         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
84238         * lib/backupfile.c (base_name): Likewise.
84239         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
84240         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
84241         * lib/makepath.c (strip_trailing_slashes): Likewise.
84242         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
84243         ISSLASH): Likewise.
84244         * lib/rename.c (strip_trailing_slashes): Likewise.
84245         * lib/same.c (base_name): Likewise.
84246         * lib/stripslash.c (ISSLASH): Likewise.
84247
84248         * lib/addext.c: Include <dirname.h> after size_t is defined.
84249         * lib/backupfile.c: Likewise.
84250
84251         * lib/addext.c (addext): Use base_len to trim redundant
84252         trailing slashes instead of doing it ourselves.
84253         But do not trim the last slash if it is not redundant.
84254
84255         * lib/backupfile.c (find_backup_file_name,
84256         max_backup_version): Use base_len instead of rolling it ourselves.
84257         Handle the case of "" and (on DOS) "C:" correctly.
84258
84259         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
84260         needed. Include <string.h>, <dirname.h>.
84261         (base_name): Allow file names ending in slashes, other than names
84262         that are all slashes.  In this case, return the basename followed
84263         by the slashes.  This is more general, and can be used in places
84264         where the original base_name purposely had an assertion failure.
84265         (base_len): New function.
84266
84267         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
84268         Do not include <assert.h>; no longer needed.
84269         Include xalloc.h.
84270         (memrchr): Remove decl.
84271         (dir_name_r): Remove.
84272         (dir_len): Renamed from dirlen.  All callers changed.
84273         Rewrite in terms of base_name, for simplicity and consistency.
84274         (dir_name): Never return NULL.  All callers changed.
84275         Do not include <stdlib.h> in test program; no longer needed.
84276         return 0; is fine for test program.
84277
84278         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
84279         New macros.
84280         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
84281
84282         * lib/path-concat.c (path_concat): Use base_len to compute
84283         base length, not strlen; this means we cannot rely on memcpy
84284         to null-terminate.
84285
84286         * lib/same.c (STREQ): Remove.
84287         (same_name): Handle the case where the basename ends in trailing '/'.
84288
84289         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
84290         a slash was stripped.  Do not strip the last slash after a
84291         file system prefix.
84292
84293 2001-05-11  Paul Eggert  <eggert@twinsun.com>
84294
84295         * lib/Makefile.am (libfetish_a_SOURCES):
84296         Add strftime.c, since we now compile it on all hosts.
84297
84298         * lib/strftime.c (my_strftime):
84299         Define to nstrftime if emacs, but only if my_strftime is not defined.
84300         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
84301         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
84302         Add one more extra argument: a nanoseconds value.
84303         All uses changed.
84304         (ns): New macro.
84305         (my_strftime function): Add %N format.
84306         (emacs_strftimeu): Renamed from emacs_strftime,
84307         with extra ut argument.
84308
84309 2001-05-09  Paul Eggert  <eggert@twinsun.com>
84310
84311         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
84312
84313 2001-04-21  Jim Meyering  <meyering@lucent.com>
84314
84315         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
84316         doesn't interfere.
84317
84318 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
84319
84320         * m4/ftruncate.m4: Check for chsize.
84321         Link with ftruncate.o unconditionally if ftruncate is missing.
84322         This was required when cross-compiling to i586-mingw32msvc.
84323
84324 2001-04-08  Jim Meyering  <meyering@lucent.com>
84325
84326         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
84327         recomputed; that's necessary when the offset spans a DST transition.
84328         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
84329
84330 2001-04-02  Jim Meyering  <meyering@lucent.com>
84331
84332         * lib/regex.h, regex.c: Update from GNU libc.
84333
84334 2001-03-24  Jim Meyering  <meyering@lucent.com>
84335
84336         * m4/jm-macros.m4: Require autoconf-2.49d.
84337
84338 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
84339
84340         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
84341
84342 2001-03-19  Paul Eggert  <eggert@twinsun.com>
84343
84344         * lib/version-etc.c (version_etc_copyright): Update to 2001.
84345
84346 2001-03-17  Jim Meyering  <meyering@lucent.com>
84347
84348         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
84349         now that the version in autoconf is equivalent.
84350         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
84351
84352         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
84353         Suggestion from Akim Demaille.
84354
84355         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
84356         (jm_PREREQ_TEMPNAME): New function.
84357
84358 2001-03-16  Paul Eggert  <eggert@twinsun.com>
84359
84360         * lib/tempname.c (uint64_t): Define to uintmax_t if
84361         not defined, and if UINT64_MAX is not defined.
84362         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
84363         Reported by John David Anglin.
84364
84365 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
84366
84367         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
84368         resolve alias if codeset is empty.
84369         * lib/config.charset (BeOS): Use wildcard syntax.
84370
84371 2001-03-13  Jim Meyering  <meyering@lucent.com>
84372
84373         * lib/path-concat.c (path_concat)
84374         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
84375         concatenating e.g., `C:' and `foo'.
84376         From Bruno Haible.
84377
84378 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84379
84380         * lib/localcharset.c (locale_charset): Don't use
84381         setlocale(LC_CTYPE,NULL). Don't return NULL.
84382         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
84383
84384 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
84385
84386         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
84387         support for DOS/DJGPP.
84388
84389 2001-03-01  Paul Eggert  <eggert@twinsun.com>
84390
84391         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
84392         lacks mkstemp.  Compile our own tempname.c if we compile our own
84393         mkstemp.c, as mkstemp relies on tempname.
84394
84395 2001-03-01  Jim Meyering  <meyering@lucent.com>
84396
84397         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
84398         AH_VERBATIM really does output its argument verbatim.
84399
84400 2001-02-28  Paul Eggert  <eggert@twinsun.com>
84401
84402         * lib/Makefile.am (libfetish_a_SOURCES):
84403         Add dup-safer.c, fopen-safer.c.
84404         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
84405
84406         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
84407         * lib/unistd-safer.h: New files.
84408
84409 2001-02-25  Paul Eggert  <eggert@twinsun.com>
84410
84411         The mkstemp replacement is taken from glibc 2.2.2, with some
84412         portability fixes for use outside glibc, as follows:
84413
84414         * lib/tempname.c (struct_stat64): New macro.
84415         (direxists, __gen_tempname): Use it.
84416         This avoids a portability problem with Solaris 8.
84417
84418         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
84419         (<stddef.h>, <stdint.h>, <string.h>):
84420         Include only if STDC_HEADERS || _LIBC.
84421         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
84422         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
84423         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
84424         (__set_errno): Define this macro if <errno.h> doesn't.
84425         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
84426         Define these macros if <stdio.h> doesn't.
84427         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
84428         Define these macros if <sys/stat.h>
84429         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
84430         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
84431         __xstat64): Define if not _LIBC.
84432         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
84433         (__gen_tempname): Invoke gettimeofday only if
84434         HAVE_GETTIMEOFDAY || _LIBC;
84435         otherwise, fall back on plain "time".
84436         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
84437
84438         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
84439
84440         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
84441
84442 2001-02-18  Paul Eggert  <eggert@twinsun.com>
84443
84444         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
84445
84446 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84447
84448         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
84449         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
84450         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
84451         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84452
84453 2001-02-17  Paul Eggert  <eggert@twinsun.com>
84454
84455         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
84456         Remove workaround macros for hosts that have mbrtowc but not
84457         mbstate_t, as we now insist on proper declarations for both
84458         before using mbrtowc.
84459
84460 2001-02-17  Jim Meyering  <meyering@lucent.com>
84461
84462         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
84463         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
84464         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
84465         UnixWare 7.1.1.
84466
84467         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
84468         rather than AC_CACHE_VAL.
84469
84470 2001-02-17  Jim Meyering  <meyering@lucent.com>
84471
84472         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
84473         around included file name.
84474
84475         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
84476
84477         * lib/strftime.c: Update from GNU libc (the only changes were to
84478         comments).
84479
84480 2001-02-17  Jim Meyering  <meyering@lucent.com>
84481
84482         * lib/regex.c: Update from libc.
84483
84484 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
84485
84486         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
84487         clash.
84488
84489 2001-02-16  Paul Eggert  <eggert@twinsun.com>
84490
84491         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
84492         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
84493         Reported by Mark Hounschell via Paul Eggert.
84494
84495 2001-02-07  Jim Meyering  <meyering@lucent.com>
84496
84497         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
84498
84499 2001-02-05  Jim Meyering  <meyering@lucent.com>
84500
84501         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
84502         it includes the patch required for `large file' support with at least
84503         HP-UX's 10.20 /bin/cc.
84504
84505 2001-02-03  Jim Meyering  <meyering@lucent.com>
84506
84507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
84508         AS_IF, now that it works once again (mysteriously).
84509         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84510
84511 2001-01-30  Jim Meyering  <meyering@lucent.com>
84512
84513         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
84514         * m4/chown.m4: Rename conftestchown to conftest.chown.
84515         * m4/rename.m4: s/conftestdir/conftest.d1/ and
84516         s/conftestdir2/conftest.d2/.
84517         * m4/utimes.m4: s/conftestdata/conftest.data/
84518         Inspired by Pavel Roskin's change in autoconf.
84519
84520 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
84521
84522         * lib/config.charset: Update for FreeBSD 4.2.
84523
84524 2001-01-27  Jim Meyering  <meyering@lucent.com>
84525
84526         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
84527         a use of AS_IF.
84528         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
84529
84530 2001-01-26  Jim Meyering  <meyering@lucent.com>
84531
84532         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
84533         quotearg.c includes it.
84534
84535 2001-01-26  Jim Meyering  <meyering@lucent.com>
84536
84537         * lib/quotearg.c: Include stddef.h.
84538         * lib/quote.c: Include stddef.h.
84539         Reported by Axel Kittenberger.
84540
84541         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
84542         line in double quotes so that it evokes a better diagnostic.
84543         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
84544         Reported by Axel Kittenberger.
84545
84546 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
84547
84548         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
84549         as if it was a `charset'.
84550
84551 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84552
84553         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
84554         has const.
84555
84556 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84557
84558         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84559         to avoid a warning.  Add back 'const' to inptr.
84560
84561 2001-01-20  Jim Meyering  <meyering@lucent.com>
84562
84563         Be sure that headers are checked before used in code compiled
84564         for the type checks.
84565         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84566         In place of that, invoke jm_CHECK_ALL_TYPES.
84567         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84568         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84569         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84570         The check for ssize_t was mistakenly run before the test for unistd.h.
84571
84572         The configure-time check for stdbool.h was missing.
84573         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84574         (jm_PREREQ_HASH): New function.
84575
84576 2001-01-17  Jim Meyering  <meyering@lucent.com>
84577
84578         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84579         for autoconf-2.49c.
84580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84581
84582 2001-01-16  Jim Meyering  <meyering@lucent.com>
84583
84584         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84585         From Bruno Haible.
84586
84587 2001-01-14  Jim Meyering  <meyering@lucent.com>
84588
84589         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84590         foo and bar.  Create conftestdir/ in the script, not in the C code.
84591         Remove directories in the script, not in the C code.
84592         Remove conftestdir{,2} before trying to create the directory.
84593         Make the entire configure script fail if the mkdir fails.
84594
84595 2001-01-14  Jim Meyering  <meyering@lucent.com>
84596
84597         * lib/rename.c: New file.  From Volker Borchert.
84598         Include stdlib.h, string.h or strings.h, and xalloc.h.
84599         Use strip_trailing_slashes rather than open-coding it.
84600
84601 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84602
84603         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84604
84605 2001-01-03  Jim Meyering  <meyering@lucent.com>
84606
84607         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84608         of local `inptr' to avoid warning with some system declarations of
84609         iconv.
84610
84611 2001-01-02  Volker Borchert  <bt@teknon.de>
84612
84613         * m4/rename.m4: New file.
84614         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84615
84616 2001-01-01  Jim Meyering  <meyering@lucent.com>
84617
84618         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84619         even on systems with utmpx.h.  It's necessary for the declaration of
84620         utmp's ut_user member.  Reported by Andreas Jaeger.
84621
84622         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84623         available. They are required for the declarations of getgrgid and
84624         getpwuid resp.
84625         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84626         Reported by Andreas Jaeger.
84627
84628 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84629
84630         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84631         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84632         so `make install' also works in VPATH builds.
84633
84634 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84635
84636         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84637         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84638         can be used in subdirectories.
84639
84640 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84641
84642         * lib/modechange.c: Do not assume that mode_t uses the
84643         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84644         the other-execute bit of FOO even if S_IXOTH != 1.
84645
84646         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84647         WOTH, XOTH, ALLM): New macros.
84648         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84649          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84650         Use them.
84651         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84652         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84653         (mode_compile):
84654         No need to use uintmax_t; unsigned long is long enough.
84655         Don't bother to get suffix since we don't use it.
84656
84657 2000-12-26  Jim Meyering  <meyering@lucent.com>
84658
84659         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84660         better with autoheader.
84661
84662 2000-12-24  Jim Meyering  <meyering@lucent.com>
84663
84664         * lib/hash.c (is_prime): Return explicit boolean values.
84665         (hash_get_first): Return NULL to appease Irix5.6's 89.
84666         Reported by Nelson Beebe.
84667
84668 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84669
84670         * lib/localcharset.c (locale_charset): Add support for Win32.
84671
84672 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84673
84674         * lib/physmem.h, lib/physmem.c: New files.
84675
84676         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84677         (noinst_HEADERS): Add physmem.h.
84678
84679         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84680         't' for compatibility with Solaris 8 sort.
84681
84682 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84683
84684         * lib/config.charset: Add support for BeOS.
84685
84686 2000-12-17  Jim Meyering  <meyering@lucent.com>
84687
84688         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84689         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84690
84691 2000-12-16  Jim Meyering  <meyering@lucent.com>
84692
84693         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84694         N and M) would have treated it like `chown N:N FILE'.
84695
84696         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84697
84698 2000-12-16  Jim Meyering  <meyering@lucent.com>
84699
84700         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84701         SHELLS_FILE to a file name that's useful on djgpp systems.
84702         Include stdlib.h.
84703         (ADDITIONAL_DEFAULT_SHELLS): Define.
84704         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84705         Based mostly on a patch from Prashant TR.
84706
84707 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84708
84709         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84710         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84711         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84712
84713 2000-12-08  Andreas Schwab  <schwab@suse.de>
84714
84715         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84716         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84717
84718 2000-12-07  Jim Meyering  <meyering@lucent.com>
84719
84720         * lib/stripslash.c (ISSLASH): Define.
84721         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84722         `/'.
84723         From Prashant TR.
84724
84725         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84726         (dir_name_r): Declare this function as static.
84727         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84728         manifest itself on a name containing a mix of slashes and
84729         backslashes.
84730         Make this function work with names starting with a DOS-style
84731         drive letter and colon prefix.
84732         (dir_name): Append `.' if necessary.
84733         Based mostly on patches from Prashant TR and Eli Zaretskii.
84734
84735         * lib/dirname.h (dir_name_r): Remove prototype.
84736
84737 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84738
84739         * m4/off_t-format.m4: Remove this file.
84740         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84741
84742 2000-12-06  Jim Meyering  <meyering@lucent.com>
84743
84744         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84745         replacement strtoull, we may well need the replacement strtoul, too.
84746         Check for declarations of strtoul and strtoull.
84747         Check for strtol.  Mainly as a cue to cause automake to include
84748         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84749         Check for limits.h -- strtol.c needs it.
84750
84751 2000-12-05  Jim Meyering  <meyering@lucent.com>
84752
84753         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84754
84755 2000-12-04  Jim Meyering  <meyering@lucent.com>
84756
84757         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84758         Also include memory.h, stdlib.h, unistd.h if appropriate.
84759         Reported by Andreas Jaeger (conflicting declaration of malloc).
84760
84761 2000-12-02  Jim Meyering  <meyering@lucent.com>
84762
84763         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84764         * m4/jm-macros.m4 (jm_MACROS): require it.
84765
84766 2000-12-02  Jim Meyering  <meyering@lucent.com>
84767
84768         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84769
84770 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84771
84772         * lib/memrchr.c: Include <config.h> before any system include file.
84773
84774 2000-11-30  Jim Meyering  <meyering@lucent.com>
84775
84776         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84777
84778 2000-11-30  Jim Meyering  <meyering@lucent.com>
84779
84780         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84781
84782 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84783
84784         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84785
84786 2000-11-26  Jim Meyering  <meyering@lucent.com>
84787
84788         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84789
84790 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84791
84792         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84793         size of (size_t) -1; it's not portable.
84794
84795 2000-11-17  Jim Meyering  <meyering@lucent.com>
84796
84797         * lib/strstr.c: Update from GNU libc.
84798
84799 2000-11-17  Akim Demaille  <akim@epita.fr>
84800
84801         * lib/obstack.h: Formatting changes.
84802         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84803         prevent type checking.
84804         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84805         cast the value to (void *): assigning a `foo *' to a `void *'
84806         variable is valid.
84807         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84808
84809 2000-11-16  Jim Meyering  <meyering@lucent.com>
84810
84811         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84812
84813 2000-11-11  Jim Meyering  <meyering@lucent.com>
84814
84815         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84816
84817 2000-11-10  Jim Meyering  <meyering@lucent.com>
84818
84819         * lib/obstack.h: Update from GNU libc.
84820         * lib/obstack.c: Likewise.
84821
84822 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84823
84824         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84825
84826 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84827
84828         * lib/getusershell.c (setusershell): Use rewind rather than
84829         fseek/fseeko, to avoid configuration hassles with fseeko.
84830         Don't bother opening SHELLS_FILE if shellstream is NULL;
84831         it's not necessary.
84832
84833 2000-11-05  Jim Meyering  <meyering@lucent.com>
84834
84835         * lib/makepath.h (make_dir): Declare.
84836         * lib/makepath.c (make_dir): Remove `static' attribute.
84837         Tweak a comment.
84838
84839 2000-11-04  Jim Meyering  <meyering@lucent.com>
84840
84841         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84842
84843 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84844
84845         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84846         last one in a bucket, advance to the next bucket.
84847
84848 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84849
84850         * lib/fnmatch.c: Do not comment out all the code if we are using
84851         the GNU C library, because in some cases we are replacing buggy
84852         code in the GNU C library itself.
84853
84854 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84855
84856         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84857         (regex_compile): Catch bogus \(\1\).
84858
84859 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84860
84861         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84862         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84863         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84864
84865 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84866
84867         * lib/error.h, getline.h, modechange.h:
84868         Remove "2000" from Copyright line, as the file hasn't been
84869         changed this year other than in the copyright notice.
84870
84871         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84872         was changed this year.
84873
84874 2000-10-29  Jim Meyering  <meyering@lucent.com>
84875
84876         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84877         renaming.
84878         * m4/ls-mntd-fs.m4: Likewise
84879
84880 2000-10-29  Jim Meyering  <meyering@lucent.com>
84881
84882         * lib/xstat.in: Fix grammar in comment.
84883
84884 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84885
84886         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84887         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84888         doesn't define __restrict_arr.
84889
84890 2000-10-28  Jim Meyering  <meyering@lucent.com>
84891
84892         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84893         (jm_PREREQ_MEMCHR): New function.
84894
84895 2000-10-28  Jim Meyering  <meyering@lucent.com>
84896
84897         * lib/memchr.c: Update from libc.
84898         Adjust for portability:
84899         [HAVE_STDLIB_H]: Include stdlib.h.
84900         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84901         Undef __memchr, too.
84902         [!weak_alias]: Define __memchr to memchr.
84903
84904         * lib/regex.c: Update from libc.
84905         * lib/regex.h: Likewise.
84906         * lib/getopt1.c: Likewise.
84907         * lib/memcmp.c: Likewise.
84908
84909         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84910         Avoid using fseek, when possible -- it's broken by design.
84911         Patch by Ulrich Drepper.
84912
84913 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84914
84915         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84916         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84917         Giving in to popular pressure to shut up the compiler with casts.
84918
84919 2000-10-26  Jim Meyering  <meyering@lucent.com>
84920
84921         * lib/strftime.c: Update from libc.
84922
84923 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84924
84925         * regex.c: More `unsigned char' -> `re_char' changes.
84926         Also change several `int' into `re_wchar_t'.
84927         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84928         (PUSH_FAILURE_POINTER): Don't cast any more.
84929         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84930         We want GCC to complain, since this piece of code makes
84931         re_match non-reentrant, which *should* be fixed.
84932         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84933         (EXTEND_BUFFER): Use RETALLOC.
84934         (SET_LIST_BIT): Don't cast.
84935         (re_wchar_t): New type.
84936         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84937         that those two functions will always properly return.
84938         (IMMEDIATE_QUIT_CHECK): Cast to void.
84939         (analyse_first): Use recursion rather than an explicit stack.
84940         (re_compile_fastmap): Can't fail anymore.
84941         (re_search_2): Don't check re_compile_fastmap for failure.
84942         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84943         Now also sets the new value (passed in a new argument).
84944         (re_match_2_internal): Use it.
84945         Also, use a new var `reg' of type size_t when looping through regs
84946         rather than reuse the inappropriate `mcnt'.
84947
84948 2000-10-25  Jim Meyering  <meyering@lucent.com>
84949
84950         * lib/obstack.c: Update from libc.
84951
84952 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84953
84954         * regex.c (regex_compile): Change the way of handling a range from
84955         a char less than 256 to a char not less than 256.
84956
84957 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84958
84959         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84960         NT-Emacs only.
84961         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84962         so that re_search functions only quit when callers expect them to.
84963
84964 2000-10-23  Jim Meyering  <meyering@lucent.com>
84965
84966         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84967         wrong.  That set_locale call must not have any side effects.
84968         From Paul Eggert.
84969
84970 2000-10-22  Jim Meyering  <meyering@lucent.com>
84971
84972         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84973         [CYCLIC]: Remove now-unused definition.
84974
84975         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84976         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84977         Suggestion from Ulrich Drepper.
84978
84979 2000-10-21  Jim Meyering  <meyering@lucent.com>
84980
84981         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84982         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84983         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84984
84985 2000-10-21  Jim Meyering  <meyering@lucent.com>
84986
84987         * lib/dirname.c (memrchr): Declare if necessary.
84988         (dir_name): Remove the restriction that there be no
84989         trailing slashes.  Now, this code skips past them, effectively
84990         ignoring them.
84991         [TEST_DIRNAME] (main): New unit tests.
84992
84993         * lib/memrchr.c: New file from GNU libc.
84994         Undef __memrchr, too.
84995         [!weak_alias]: Define __memrchr to memrchr.
84996         Guard weak_alias use with `#ifdef weak_alias'.
84997
84998 2000-10-21  Jim Meyering  <meyering@lucent.com>
84999
85000         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85001         (dir_name): Use dir_name_r.
85002         * lib/dirname.h (dir_name_r): Declare it.
85003
85004 2000-10-17  Jim Meyering  <meyering@lucent.com>
85005
85006         * lib/quote.h (PARAMS): Define and use.
85007         Reported by Akim Demaille.
85008
85009         * lib/getopt.c: Update from libc.
85010
85011 2000-10-16  Jim Meyering  <meyering@lucent.com>
85012
85013         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85014         setlocale.
85015         From Jan Fedak.
85016
85017 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85018
85019         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85020
85021 2000-09-25  Jim Meyering  <meyering@lucent.com>
85022
85023         * lib/md5.h (rol): Define (from GnuPG).
85024
85025         * lib/sha.c: Give credit (GnuPG) where due.
85026         (M): Use rol rather than open-coding it.
85027         Add a FIXME comment.
85028
85029 2000-09-21  Jim Meyering  <meyering@lucent.com>
85030
85031         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
85032         Reported by Michael Stone.
85033
85034 2000-09-20  Jim Meyering  <meyering@lucent.com>
85035
85036         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
85037         (noinst_HEADERS): Add sha.h.
85038         Based on code from Scott G. Miller and from GnuPG.
85039
85040 2000-09-18  Jim Meyering  <meyering@lucent.com>
85041
85042         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
85043         LIBS. Otherwise, everyone ends up linking with -lelf for some
85044         configurations.
85045         Reported by Mike Stone.
85046
85047 2000-09-15  Jim Meyering  <meyering@lucent.com>
85048
85049         * lib/regex.c: Update from libc.
85050
85051 2000-09-10  Jim Meyering  <meyering@lucent.com>
85052
85053         * lib/getopt.c (_getopt_internal): Update from glibc.
85054
85055 2000-09-09  Jim Meyering  <meyering@lucent.com>
85056
85057         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85058         think it should be used as a general replacement for isascii.
85059         * lib/fnmatch.c: Likewise.
85060         * lib/mbswidth.c: Likewise
85061         * lib/regex.c: Likewise.
85062
85063         Don't use atoi.
85064         * lib/userspec.c: Include sys/param.h and limits.h.
85065         Include xstrtol.h.
85066         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85067         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85068         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85069         UID, GID.  Check range.
85070
85071 2000-09-06  Jim Meyering  <meyering@lucent.com>
85072
85073         * lib/getopt.c (_getopt_internal): Update from glibc.
85074
85075 2000-08-30  Jim Meyering  <meyering@lucent.com>
85076
85077         * lib/strftime.c: Merge in changes from GNU libc.
85078
85079 2000-08-26  Jim Meyering  <meyering@lucent.com>
85080
85081         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85082         * m4/fpending.m4: New file.
85083
85084 2000-08-26  Jim Meyering  <meyering@lucent.com>
85085
85086         * lib/closeout.c: Include "__fpending.h".
85087         (close_stdout_status): Return right away if there's nothing to flush.
85088
85089         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85090         * lib/__fpending.c: New file.
85091         * lib/__fpending.h: New file.
85092
85093 2000-08-20  Jim Meyering  <meyering@lucent.com>
85094
85095         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85096         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85097         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85098
85099 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85100
85101         Improve fileutils installation on systems where running
85102         programs (like install) can't be unlinked.
85103         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85104         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85105
85106 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85107
85108         Standardize on "memory exhausted" instead of "Memory exhausted"
85109         or "virtual memory exhausted".
85110         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85111         "virtual memory exhausted".
85112         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85113         our own message.
85114         * lib/userspec.c (parse_user_spec): Likewise.
85115         * lib/bumpalloc.h: comment fix
85116         * lib/same.c, userspec.c: Include xalloc.h.
85117
85118         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85119         not char *const and pointing to a constant array.
85120         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85121         (xrealloc): Comment fix.
85122
85123         * lib/userspec.c (parse_user_spec):
85124         Don't translate a message until just before returning,
85125         to avoid unnecessary translation.
85126
85127 2000-08-07  Jim Meyering  <meyering@lucent.com>
85128
85129         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
85130         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
85131         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
85132         getgroups.c, gethostname.c, getopt.h, group-member.c,
85133         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
85134         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
85135         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
85136         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
85137         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
85138         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
85139         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
85140         yesno.c: Back out Copyright date changes for each file with no change
85141         this year.  This eases coordination with other programs using the same
85142         source code modules.  From Paul Eggert.
85143
85144 2000-08-06  Paul Eggert  <eggert@twinsun.com>
85145
85146         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
85147         not char, for compatibility with glibc 2.1.3 strftime.c.
85148
85149 2000-08-03  Greg McGary  <greg@mcgary.org>
85150
85151         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
85152         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
85153         (EXTEND_BUFFER): Use them.
85154
85155 2000-08-01  Jim Meyering  <meyering@lucent.com>
85156
85157         * lib/dirname.c (ISSLASH): Define.
85158         (BACKSLASH_IS_PATH_SEPARATOR): Define.
85159         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
85160         both `\' and `/' may be use as path separators.
85161         Based on a patch from Prashant TR.
85162
85163 2000-07-31  Paul Eggert  <eggert@twinsun.com>
85164
85165         * lib/quotearg.c (quotearg_n_options): Don't make the initial
85166         slot vector a constant, since it might get modified.
85167
85168 2000-07-31  Jim Meyering  <meyering@lucent.com>
85169
85170         * lib/xmalloc.c: Use `virtual memory exhausted', not
85171         `Memory exhausted'.
85172         * lib/obstack.c (print_and_abort): Likewise.
85173
85174 2000-07-30  Paul Eggert  <eggert@twinsun.com>
85175
85176         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
85177         buffer, so that the caller can always quote one small
85178         component of a "memory exhausted" message in slot 0.
85179         From a suggestion by Jim Meyering.
85180
85181 2000-07-30  Jim Meyering  <meyering@lucent.com>
85182
85183         * lib/makepath.c (make_path): Quote the other instance, too.
85184
85185         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
85186         (STATIC_BUF_SIZE): Define.
85187         (quotearg_n_options): Use only statically allocated storage when
85188         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
85189         than STATIC_BUF_SIZE.
85190
85191 2000-07-29  Jim Meyering  <meyering@lucent.com>
85192
85193         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
85194         * lib/dirname.c (dir_name): Likewise.
85195
85196         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
85197         `/'.
85198
85199         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
85200         (dir_name): Assert that there are no trailing slashes.
85201
85202 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
85203
85204         * lib/mbswidth.h (mbswidth): Add a flags argument.
85205         (mbswidth): New declaration.
85206         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
85207         * lib/mbswidth.c (mbswidth): Add a flags argument.
85208         (mbsnwidth): New function.
85209
85210 2000-07-24  Jim Meyering  <meyering@lucent.com>
85211
85212         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
85213
85214 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85215
85216         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
85217
85218 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85219
85220         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
85221         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
85222         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
85223         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
85224         invoke multibyte primitives.
85225
85226 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85227
85228         * lib/quotearg.c:
85229         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
85230         so that mbstate_t is always defined.
85231
85232         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
85233         be 1 in at least one GCC installation, and this configuration
85234         error is likely to be common.  Ignoring MB_LEN_MAX hurts
85235         performance on hosts that have mbrtowc but have only unibyte
85236         locales, but I assume these hosts are rare.
85237
85238 2000-07-23  Paul Eggert  <eggert@twinsun.com>
85239
85240         * lib/mbswidth.c (_XOPEN_SOURCE):
85241         Don't define; this causes problems on Solaris 7.
85242         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
85243
85244 2000-07-23  Jim Meyering  <meyering@lucent.com>
85245
85246         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
85247         too: getgrgid, getpwuid, getuid.
85248
85249 2000-07-23  Jim Meyering  <meyering@lucent.com>
85250
85251         * lib/basename.c (base_name): Add an assertion.
85252
85253 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
85254
85255         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
85256         shadow its mbsinit function.
85257
85258 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85259
85260         * lib/mbswidth.h: New file.
85261         * lib/mbswidth.c: New file.
85262         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
85263         (noinst_HEADERS): Add mbswidth.h.
85264
85265 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
85266
85267         * lib/config.charset: Add support for FreeBSD. Improve support for
85268         HP-UX and IRIX 6.
85269
85270 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
85271
85272         * m4/mbswidth.m4: New file.
85273         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
85274
85275 2000-07-15  Jim Meyering  <meyering@lucent.com>
85276
85277         * lib/makepath.c: Include quote.h.
85278         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
85279         corresponding argument in a `quote (...)' call.
85280         Give better diagnostics.
85281
85282         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
85283         (noinst_HEADERS): Add quote.h.
85284
85285         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
85286         from tar's src/misc.c.
85287         * lib/quote.h: New file.  Prototypes for same.
85288
85289 2000-07-14  Paul Eggert  <eggert@twinsun.com>
85290
85291         From a suggestion by Bruno Haible.
85292         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
85293         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
85294         to decide whether to define the BeOS workaround macro;
85295         this adjusts to the change to AC_MBSTATE_T.
85296
85297 2000-07-14  Jim Meyering  <meyering@lucent.com>
85298
85299         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
85300         jm_AC_TYPE_UINTMAX_T.
85301
85302 2000-07-13  Paul Eggert  <eggert@twinsun.com>
85303
85304         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
85305
85306         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
85307         quotearg_buffer_restyled): Add support for
85308         clocale_quoting_style.  Undo previous change to
85309         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
85310         and "{RIGHT QUOTATION MARK}" msgids.
85311
85312 2000-07-10  Paul Eggert  <eggert@twinsun.com>
85313
85314         From a suggestion by Bruno Haible.
85315         * m4/mbstate_t.m4 (AC_MBSTATE_T):
85316         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
85317         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
85318         and mbstate_t, to a single-part test that simply defines mbstate_t.
85319         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
85320         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
85321
85322 2000-07-10  Jim Meyering  <meyering@lucent.com>
85323
85324         * m4/strerror_r.m4: Mirror the correction made in autoconf.
85325
85326         * m4/gnu-source.m4: Output to confdefs.h directly.
85327         Suggestion from Akim Demaille.
85328
85329 2000-07-09  Paul Eggert  <eggert@twinsun.com>
85330
85331         The old behavior of quoting `like this' doesn't look good with
85332         newer, ISO-style fonts.  See:
85333         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
85334
85335         Instead, quote "like this" by default.  Let the translator
85336         tailor the locale-specific quoting behavior by providing
85337         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
85338
85339         * lib/quotearg.c (N_): New macro.
85340         (gettext_default): New function.
85341         (quotearg_buffer_restyled): Use
85342         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
85343         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
85344
85345 2000-07-09  Jim Meyering  <meyering@lucent.com>
85346
85347         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
85348         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
85349
85350         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
85351         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
85352
85353 2000-07-09  Jim Meyering  <meyering@lucent.com>
85354
85355         * lib/Most files: Update copyright dates to include 2000.
85356
85357 2000-07-08  Jim Meyering  <meyering@lucent.com>
85358
85359         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
85360         if not defined.
85361         (xgethostname): Remove now-unnecessary #ifdef.
85362         Move declaration of `err' into loop where it's used.
85363
85364 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85365         and Bruno Haible  <haible@clisp.cons.org>
85366
85367         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
85368         only if the test for an object-type mbstate_t fails.  This
85369         prevents us from mistakenly reporting that mbstate_t is a
85370         system object type after we "#define mbstate_t int" to work
85371         around its lack.
85372
85373 2000-07-05  Paul Eggert  <eggert@twinsun.com>
85374         and Bruno Haible  <haible@clisp.cons.org>
85375
85376         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
85377
85378 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85379
85380         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
85381         to strerror_r.
85382         Include <ctype.h> for use of isalpha.
85383
85384 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85385
85386         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
85387         by allocating a larger buffer. Test the gethostname return value for
85388         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
85389         returns an error and ENAMETOOLONG isn't defined.
85390
85391 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
85392
85393         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
85394         dimension.
85395
85396 2000-07-04  Jim Meyering  <meyering@lucent.com>
85397
85398         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
85399         of the deprecated AC_CHECKING.
85400
85401 2000-07-04  Jim Meyering  <meyering@lucent.com>
85402
85403         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
85404         Reported by Bruno Haible.
85405
85406 2000-07-04  Jim Meyering  <meyering@lucent.com>
85407
85408         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
85409         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
85410         lacks mbrtowc.
85411
85412 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85413
85414         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
85415         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
85416
85417 2000-07-03  Paul Eggert  <eggert@twinsun.com>
85418         and Bruno Haible  <haible@clisp.cons.org>
85419
85420         * lib/quotearg.c (mbrtowc):
85421         Assign to *pwc, and return 1 only if result is nonzero.
85422         (iswprint): Use ISPRINT when substituting our own mbrtowc.
85423
85424 2000-07-03  Jim Meyering  <meyering@lucent.com>
85425
85426         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
85427
85428 2000-07-03  Jim Meyering  <meyering@lucent.com>
85429
85430         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
85431         This is necessary to get a definition of e.g., UTMP_FILE on
85432         HP-UX 10.20.
85433         From Bob Proulx.
85434
85435 2000-07-02  Jim Meyering  <meyering@lucent.com>
85436
85437         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
85438
85439         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
85440         AC_LIBOBJ(function_name).
85441         * m4/chown.m4: Likewise.
85442         * m4/fnmatch.m4: Likewise.
85443         * m4/ftruncate.m4: Likewise.
85444         * m4/getgroups.m4: Likewise.
85445         * m4/getline.m4: Likewise.
85446         * m4/group-member.m4: Likewise.
85447         * m4/jm-macros.m4: Likewise.
85448         * m4/lstat.m4: Likewise.
85449         * m4/malloc.m4: Likewise.
85450         * m4/memcmp.m4: Likewise.
85451         * m4/nanosleep.m4: Likewise.
85452         * m4/putenv.m4: Likewise.
85453         * m4/realloc.m4: Likewise.
85454         * m4/regex.m4: Likewise.
85455         * m4/stat.m4: Likewise.
85456         * m4/strftime.m4: Likewise.
85457
85458 2000-07-02  Jim Meyering  <meyering@lucent.com>
85459
85460         * lib/quotearg.c (mbstate_t): Don't define here.
85461
85462 2000-07-02  Jim Meyering  <meyering@lucent.com>
85463
85464         * lib/nanosleep.c (SIGCONT): Define if not already defined.
85465
85466 2000-07-01  Jim Meyering  <meyering@lucent.com>
85467
85468         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
85469
85470 2000-07-01  Jim Meyering  <meyering@lucent.com>
85471
85472         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
85473         problem.
85474
85475 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85476
85477         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
85478         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
85479
85480 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
85481
85482         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
85483         per change in ../m4/ls-mntd-fs.m4.
85484         (read_filesystem_list): Ignore symbolic links.
85485
85486 2000-06-29  Jim Meyering  <meyering@lucent.com>
85487
85488         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
85489         for declaration of strcmp.
85490
85491         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
85492
85493         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
85494         Avoid warning by casting result to `char *' to remove `const'.
85495
85496 2000-06-28  Jim Meyering  <meyering@lucent.com>
85497
85498         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
85499         included by quotearg.c, for which we perform this test.  From
85500         Bruno Haible.
85501
85502 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85503
85504         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
85505         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
85506         <utmpx.h> exists, put readutmp.o into LIBOBJS.
85507
85508 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
85509
85510         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
85511
85512 2000-06-26  Paul Eggert  <eggert@twinsun.com>
85513
85514         savedir now sets errno on failure and invokes xmalloc to get memory.
85515         Fix a couple of other minor bugs while we're at it.
85516
85517         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
85518         (NAMLEN): Remove macro.
85519         (malloc, realloc): Remove decls.
85520         (stpcpy): Likewise.
85521         ("xalloc.h"): Include.
85522         (NAME_SIZE_DEFAULT): New macro.
85523         (savedir): Use xmalloc / xrealloc to allocate memory.
85524         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
85525         Skip "" directory entries.
85526         Use strlen to calculate directory entry length, since the old method
85527         is rarely used these days and isn't worth supporting.
85528         Don't use a pointer after freeing it.
85529         Check for integer overflow when calculating allocation size.
85530         Use memcpy to copy entries, instead of stpcpy.
85531         Set errno properly when returning NULL.
85532         Check for readdir error.
85533
85534 2000-06-26  Jim Meyering  <meyering@lucent.com>
85535
85536         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
85537
85538 2000-06-25  Jim Meyering  <meyering@lucent.com>
85539
85540         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
85541         Linux header bug when _XOPEN_SOURCE is defined to 500.
85542
85543 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85544
85545         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
85546         deficiency.
85547
85548 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
85549
85550         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
85551         Include xalloc.h.
85552         Don't include <stdlib.h>.  Don't declare malloc, realloc.
85553
85554 2000-06-24  Jim Meyering  <meyering@lucent.com>
85555
85556         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85557         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85558         for which strerror does return char*, but which lacks a conveniently
85559         accessible declaration of the function.  If the compile-test says
85560         strerror_r doesn't work, then resort to a `run'-test that works on
85561         BeOS and segfaults on DEC Unix.
85562
85563 2000-06-24  Jim Meyering  <meyering@lucent.com>
85564
85565         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85566
85567 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85568
85569         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85570         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85571
85572 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85573
85574         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85575         (mbrtowc, mbstate_t): Define substitutes if
85576         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85577         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85578         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85579
85580 2000-06-23  Jim Meyering  <meyering@lucent.com>
85581
85582         * m4/afs.m4: Add missing AC_MSG_RESULT.
85583         Reported by Bruno Haible.
85584
85585         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85586         Suggestion from Bruno Haible.
85587
85588 2000-06-23  Jim Meyering  <meyering@lucent.com>
85589
85590         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85591
85592 2000-06-21  Jim Meyering  <meyering@lucent.com>
85593
85594         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85595
85596 2000-06-21  Jim Meyering  <meyering@lucent.com>
85597
85598         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85599         (noinst_HEADERS): Add getstr.h.
85600
85601         * lib/getline.c (getstr): Move into a separate file.
85602         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85603         the following changes: new parameter, delim2; both delim[12]
85604         parameters have type `int', not `char'.  The latter would lose
85605         with 8-bit delimiters.
85606         * lib/getstr.h: New file.
85607
85608 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85609
85610         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85611         than 1024, return a memory chunk of least possible size, instead
85612         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85613         Use free/xmalloc instead of xrealloc to avoid copying for very long
85614         paths.
85615
85616 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85617
85618         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85619         the empty string.
85620
85621 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85622
85623         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85624         address, not strdup.  Include <stdlib.h> and don't declare free().
85625
85626 2000-06-19  Jim Meyering  <meyering@lucent.com>
85627
85628         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85629
85630 2000-06-18  Jim Meyering  <meyering@lucent.com>
85631
85632         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85633
85634         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85635         `checking whether...' message to be consistent with that of the
85636         lstat test.
85637
85638 2000-06-18  Jim Meyering  <meyering@lucent.com>
85639
85640         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85641         Besides, these days every porting target provides a mkdir function.
85642
85643         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85644         needed. (this snippet comes from src/system.h).
85645
85646 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85647
85648         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85649
85650 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85651
85652         * lib/human.c (adjust_value): New function.
85653         (human_readable_inexact): Apply rounding style even when
85654         printing approximate values.
85655
85656 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85657
85658         * lib/human.c (human_readable_inexact): Allow an input block
85659         size that is not a multiple of the output block size, and vice versa.
85660         Reported by Piergiorgio Sartor.
85661
85662 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85663
85664         * lib/getdate.y (get_date): Apply relative times after time
85665         zone indicator, not before.  Reported by Todd A. Jacobs.
85666
85667 2000-06-13  Jim Meyering  <meyering@lucent.com>
85668
85669         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85670
85671         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85672
85673 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85674
85675         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85676
85677 2000-06-12  Jim Meyering  <meyering@lucent.com>
85678
85679         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85680         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85681         optional argument.
85682         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85683         the optional argument, `lib'.
85684
85685 2000-06-08  Jim Meyering  <meyering@lucent.com>
85686
85687         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85688
85689 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85690
85691         Rewrite largefile configuration so that we don't need to run
85692         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85693         AC_CANONICAL_HOST in configure.in -- jmm]
85694
85695         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85696         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85697         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85698         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85699         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85700         All uses changed.
85701         Instead of inspecting the output of getconf, try to compile the
85702         test program without and with the macro definition.
85703         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85704         for getconf.  Instead, check for the needed flags by compiling
85705         test programs.
85706
85707 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85708
85709         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85710
85711 2000-06-04  Jim Meyering  <meyering@lucent.com>
85712
85713         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85714         SunOS 4.1.4 for which gid_t is an unsigned type.
85715
85716 2000-06-03  Jim Meyering  <meyering@lucent.com>
85717
85718         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85719         now that autoconf requires that.
85720
85721         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85722         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85723         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85724
85725 2000-06-03  Jim Meyering  <meyering@lucent.com>
85726
85727         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85728
85729 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85730
85731         * m4/glibc21.m4: New file.
85732         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85733
85734 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85735
85736         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85737         newer, don't install charset.alias.
85738         * lib/config.charset: Change the Linux/glibc rules so they become empty
85739         on glibc-2.1 or newer.
85740
85741 2000-06-02  Jim Meyering  <meyering@lucent.com>
85742
85743         * lib/mountlist.c: Back out last change.  Instead, do this...
85744         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85745         me_dummy member using the same `ignore'-testing code.
85746         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85747         fs_type strings.
85748         From Mark D. Roth.
85749
85750 2000-05-29  Jim Meyering  <meyering@lucent.com>
85751
85752         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85753         mounts with the `ignore' attribute.  Based on a patch from
85754         Mark D. Roth.
85755
85756 2000-05-28  Jim Meyering  <meyering@lucent.com>
85757
85758         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85759         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85760         * m4/stat.m4: Likewise.
85761         * m4/lstat.m4: Likewise.
85762         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85763
85764         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85765         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85766
85767 2000-05-26  Jim Meyering  <meyering@lucent.com>
85768
85769         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85770
85771 2000-05-24  Jim Meyering  <meyering@lucent.com>
85772
85773         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85774         autoconf requires that.
85775         * m4/lib-check.m4: Likewise.
85776         * m4/jm-macros.m4: Likewise.
85777         * m4/strftime.m4: Likewise.
85778
85779         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85780         AC_CHECK_DECLS, now that autoconf requires that.
85781
85782 2000-05-22  Jim Meyering  <meyering@lucent.com>
85783
85784         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85785         * m4/lstat.m4: Likewise.
85786
85787 2000-05-22  Jim Meyering  <meyering@lucent.com>
85788
85789         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85790
85791 2000-05-20  Jim Meyering  <meyering@lucent.com>
85792
85793         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85794         (jm_PREREQ): Use it.
85795
85796 2000-05-18  Jim Meyering  <meyering@lucent.com>
85797
85798         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85799         back, too, since it may have been modified by allocate_entry.
85800         (hash_delete): Rewrite to use neither the assignment operator
85801         nor the comma operator in an if-expression.
85802
85803 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85804
85805         * lib/closeout.c:
85806         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85807         Remove; no longer needed.
85808         "quotearg.h": Add include.
85809         (file_name): Do not bother to explicitly initialize to NULL; it's less
85810         efficient on some hosts.
85811         (close_stdout_status): Remove test as to whether stdout was already
85812         closed; it breaks for the case "echo x | sort >&-".
85813         Quote file name colons.
85814         Do not assume that _("write error") lacks format strings.
85815
85816 2000-05-15  Jim Meyering  <meyering@lucent.com>
85817
85818         * lib/version-etc.c (version_etc_copyright): Update the copyright
85819         string used in all --version output.
85820
85821 2000-05-14  Jim Meyering  <meyering@lucent.com>
85822
85823         * lib/closeout.c (close_stdout_set_file_name): New function.
85824         (close_stdout_status): Use new file-scoped global.
85825         Return right away if fstat says the stdout file descriptor is invalid.
85826         * lib/closeout.h (close_stdout_set_file_name): Declare.
85827
85828 2000-05-10  Jim Meyering  <meyering@lucent.com>
85829
85830         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85831         (close_stdout_set_status): New function.
85832         * lib/closeout.h (close_stdout_set_status): Declare.
85833
85834 2000-05-09  Jim Meyering  <meyering@lucent.com>
85835
85836         * m4/gettext.m4: Rename this...
85837         * m4/libintl.m4: ...to this.
85838
85839 2000-05-08  Jim Meyering  <meyering@lucent.com>
85840
85841         * lib/long-options.c: Don't include closeout.h.
85842         (parse_long_options): Don't call close_stdout for --version.
85843
85844 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85845
85846         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85847         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85848         2.1.3 bug.  This avoids a clash when files like regex.c define
85849         _GNU_SOURCE.
85850
85851 2000-05-06  Jim Meyering  <meyering@lucent.com>
85852
85853         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85854         (AC_REPLACE_FUNCS): Add strnlen.
85855
85856         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85857         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85858
85859         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85860         AC_SEARCH_LIBS call for nanosleep.
85861         (LIB_NANOSLEEP): Set and AC_SUBST.
85862
85863 2000-05-06  Jim Meyering  <meyering@lucent.com>
85864
85865         * lib/strnlen.c: Undefine __strnlen and strnlen.
85866         [!weak_alias]: Define __strnlen to strnlen.
85867
85868         * lib/atexit.c: New file, from libiberty.
85869
85870 2000-05-06  Jim Meyering  <meyering@lucent.com>
85871
85872         * lib/closeout.c (close_stdout_status): Also check for errors on the
85873         stderr stream.
85874
85875 2000-05-05  Jim Meyering  <meyering@lucent.com>
85876
85877         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85878         AC_SEARCH_LIBS call for clock_gettime.
85879         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85880
85881         * m4/search-libs.m4: Update from autoconf.
85882
85883         su doesn't work on Solaris 2.6.
85884         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85885         <shadow.h>.  Reported by Dragos Harabor.
85886
85887 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85888
85889         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85890         memcpy instead of xmalloc, xrealloc, path_concat.
85891         (locale_charset): Treat empty environment variables as absent.
85892         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85893
85894 2000-05-04  Jim Meyering  <meyering@lucent.com>
85895
85896         * lib/getopt.c: Update from glibc.
85897         * lib/obstack.c: Likewise.
85898         * lib/obstack.h: Likewise.
85899         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85900         file
85901
85902         * lib/regex.h: Likewise.
85903         * lib/strndup.c: Likewise.
85904         * lib/strnlen.c: New file, from glibc.
85905
85906 2000-05-03  Jim Meyering  <meyering@lucent.com>
85907
85908         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85909
85910 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85911
85912         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85913         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85914         compile-time test, rather than inspecting host and OS, to
85915         decide whether to define _LARGEFILE_SOURCE.
85916
85917 2000-05-01  Jim Meyering  <meyering@lucent.com>
85918
85919         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85920
85921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85922         Based on a patch from Bruno Haible.
85923
85924 2000-05-01  Jim Meyering  <meyering@lucent.com>
85925
85926         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85927
85928 2000-04-29  Jim Meyering  <meyering@lucent.com>
85929
85930         * lib/path-concat.c: Declare strdup only if it's not defined.
85931         * lib/canon-host.c: Likewise.
85932
85933 2000-04-28  Jim Meyering  <meyering@lucent.com>
85934
85935         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85936         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85937         is included first, then limits.h is included by locale.h by libintl.h.
85938         From John David Anglin.
85939
85940 2000-04-25  Jim Meyering  <meyering@lucent.com>
85941
85942         * lib/makepath.c (S_IRWXUGO): Define.
85943         (make_path): Always perform explicit chmod if MODE specifies any
85944         of the `special' permission bits.  Prompted by a bug report against
85945         install from Mate Wierdl and Joost van Baal.
85946
85947 2000-04-18  Jim Meyering  <meyering@lucent.com>
85948
85949         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85950         (jm_PREREQ): Use it.
85951
85952 2000-04-18  Jim Meyering  <meyering@lucent.com>
85953
85954         * lib/README: New file.
85955
85956         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85957         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85958
85959 2000-04-17  Jim Meyering  <meyering@lucent.com>
85960
85961         Get it right :-)
85962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85963         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85964         Suggestion from Akim Demaille.
85965
85966 2000-04-17  Jim Meyering  <meyering@lucent.com>
85967
85968         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85969         the definition of it to rpl_strftime also defined-away the system's
85970         declaration.
85971
85972 2000-04-15  Jim Meyering  <meyering@lucent.com>
85973
85974         Use `C' to denote so-called `contiguous' files, the same way
85975         that tar does.
85976         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85977         (ftypelet): Use S_ISCTG.
85978         From Michael Deutschmann.
85979
85980 2000-04-14  Jim Meyering  <meyering@lucent.com>
85981
85982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85983         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85984         clobbered.
85985
85986 2000-04-14  Jim Meyering  <meyering@lucent.com>
85987
85988         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85989
85990 2000-04-13  Jim Meyering  <meyering@lucent.com>
85991
85992         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85993         AH_VERBATIM to insert required #ifndef into config.h.in.
85994         Suggestion from Akim Demaille.
85995
85996 2000-04-12  Jim Meyering  <meyering@lucent.com>
85997
85998         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85999         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86000         Christian Krackowizer.
86001
86002         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86003         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86004         (AC_SYS_LARGEFILE): Require.
86005         (AM_C_PROTOTYPES): Require.
86006
86007 2000-04-08  Jim Meyering  <meyering@lucent.com>
86008
86009         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86010         names don't conflict.  Reported by Eli Zaretskii.
86011
86012 2000-04-07  Jim Meyering  <meyering@lucent.com>
86013
86014         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86015         sys/types.h, to work around system header problems on AIX 3.2.5.
86016         From Bruno Haible.
86017
86018 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86019
86020         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86021         bug.  Deal with the different error behavior of Irix iconv.
86022
86023 2000-04-05  Paul Eggert  <eggert@twinsun.com>
86024
86025         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
86026         IRIX if the installer said otherwise.
86027
86028 2000-04-05  Jim Meyering  <meyering@lucent.com>
86029
86030         Portability tweaks required for ultrix4.3.
86031         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
86032         (jm_CHECK_DECLS): Add getutent to the list of functions.
86033         (_jm_DECL_HEADERS): Add utmpx.h.
86034         From John David Anglin.
86035
86036         * m4/strftime.m4: Back out the 2000-04-02 change.
86037         Instead of that change, simply undefine putenv in the test program.
86038
86039 2000-04-05  Jim Meyering  <meyering@lucent.com>
86040
86041         Portability tweaks required for ultrix4.3.
86042         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
86043         getutent.
86044         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
86045         * lib/canon-host.c: Declare strdup.
86046         * lib/path-concat.c: Likewise.
86047         From John David Anglin.
86048
86049 2000-04-04  Jim Meyering  <meyering@lucent.com>
86050
86051         Be more DOS 8.3-friendly.
86052         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86053         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86054         * lib/Makefile.am: Reflect renaming.
86055         Reported by Eli Zaretskii.
86056
86057         Use a temporary file name that won't clash with `charset.alias'
86058         in the DOS 8.3 name space.
86059         * lib/Makefile.am (charset_tmp): Define.
86060         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86061         (uninstall-local): Likewise.
86062         Reported by Eli Zaretskii.
86063
86064 2000-04-03  Jim Meyering  <meyering@lucent.com>
86065
86066         * m4/gettext.m4: Fix typo in comment.
86067
86068         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86069         textutils/configure.in).  Suggestion from Paul Eggert.
86070         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86071
86072 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86073
86074         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86075         variable in the shell rather than using putenv, which isn't
86076         portable.  This avoids the configure-time inter-test dependency
86077         on the potentially-renamed putenv function.
86078
86079 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86080
86081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86082         before checking struct stat.st_blksize, so that
86083         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86084
86085 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86086
86087         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86088         since strftime.c uses HAVE_STRFTIME to decide whether to use
86089         the underlying strftime.
86090
86091 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86092
86093         * lib/time/strftime.c (my_strftime): Make sure we call the system
86094         strftime, not ourselves, when invoking the underlying strftime.
86095
86096 2000-03-24  Jim Meyering  <meyering@lucent.com>
86097
86098         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86099         (charset_alias): Define.
86100         (install-exec-local): Factor out common code.
86101         (uninstall-local): Split lines longer than 80.
86102         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86103         (SUFFIXES): Define.
86104         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86105         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86106
86107 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86108
86109         * lib/config.charset: Output a line containing "Packages using this
86110         file".
86111         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86112         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86113         ref-del.sed): New rules.
86114
86115 2000-03-17  Jim Meyering  <meyering@lucent.com>
86116
86117         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86118         Otherwise, include <strings.h>
86119
86120 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86121
86122         * lib/unicodeio.c (utf8_wctomb): New function.
86123         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
86124         format instead of in UCS-4 with platform dependent endianness.
86125
86126 2000-03-10  Jim Meyering  <meyering@lucent.com>
86127
86128         * m4/lib-check.m4: Look for getspnam in -lgen, too.
86129         From Marco Franzen.
86130
86131 2000-03-07  Paul Eggert  <eggert@twinsun.com>
86132
86133         * lib/savedir.c (savedir): Work even if directory size is
86134         negative; this can happen with some screwy NFS configurations.
86135
86136 2000-03-06  Jim Meyering  <meyering@lucent.com>
86137
86138         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
86139         if it's NULL (because we ran out of memory).  From Bruno Haible.
86140
86141 2000-03-05  Jim Meyering  <meyering@lucent.com>
86142
86143         * lib/localcharset.c ("path-concat.h"): Include.
86144         (get_charset_aliases): Use path_concat instead of ANSI string
86145         concatenation.
86146
86147         * lib/unicodeio.h (PARAMS): Define.
86148         Use it to guard prototype.
86149
86150 2000-03-04  Jim Meyering  <meyering@lucent.com>
86151
86152         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
86153         for lib/localcharset.c.
86154
86155 2000-03-04  Jim Meyering  <meyering@lucent.com>
86156
86157         * lib/Makefile.am (install-exec-local): Create $(libdir) before
86158         installing into it.
86159         (uninstall-local): Uncomment this rule so `make distcheck' works
86160         once again.
86161
86162         * lib/unicodeio.c (<errno.h>): Include it.
86163         (errno): Declare if not defined.
86164
86165         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
86166
86167         * lib/config.charset: New version, incorporating remarks from a linux
86168         i18n mailing list.  From Bruno Haible.
86169
86170 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
86171
86172         * m4/codeset.m4: New file.
86173         * m4/iconv.m4: New file.
86174         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
86175
86176 2000-03-03  Jim Meyering  <meyering@lucent.com>
86177
86178         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
86179
86180 2000-03-02  Jim Meyering  <meyering@lucent.com>
86181
86182         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
86183         the messages come out on separate lines.
86184
86185         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
86186         rather than jm_CHECK_DECLARATIONS.
86187         * m4/decl.m4: Remove now-unused file.
86188
86189         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
86190         geteuid.
86191
86192 2000-03-02  Jim Meyering  <meyering@lucent.com>
86193
86194         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
86195
86196 2000-03-01  Jim Meyering  <meyering@lucent.com>
86197
86198         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
86199         * lib/unicodeio.c: Likewise.
86200
86201 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
86202
86203         * lib/config.charset: New file.
86204         * lib/localcharset.c: New file.
86205         * lib/unicodeio.h, lib/unicodeio.c: New files.
86206         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
86207         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
86208         (noinst_HEADERS): Add unicodeio.h.
86209         (all-local, install-exec-local, charset.alias): New targets.
86210
86211 2000-02-28  Paul Eggert  <eggert@twinsun.com>
86212
86213         * lib/quotearg.c (ALERT_CHAR): New macro.
86214         (quotearg_buffer_restyled): Use it.
86215
86216 2000-02-27  Jim Meyering  <meyering@lucent.com>
86217
86218         * m4/check-decl.m4: Add getenv to the list.
86219
86220 2000-02-27  Jim Meyering  <meyering@lucent.com>
86221
86222         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
86223         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
86224
86225         * lib/backupfile.c: Guard inclusion of stdlib.h with
86226         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
86227         Declare malloc if needed.
86228
86229         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
86230         `#ifndef HAVE_DECL..'
86231         now that autoconf always defines the HAVE_DECL_ symbols.
86232         * lib/human.c: Likewise.
86233         * lib/same.c: Likewise.
86234         * lib/strtoumax.c: Likewise.
86235
86236         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
86237         declaration check was not run.
86238         * lib/hash.c: Likewise.
86239         * lib/human.c: Likewise.
86240         * lib/same.c: Likewise.
86241         * lib/strtoumax.c: Likewise.
86242
86243         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
86244         `.', then first look up the entire `.'-containing string as a login
86245         name.
86246
86247 2000-02-23  Jim Meyering  <meyering@lucent.com>
86248
86249         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
86250         in place of my hack.
86251
86252 2000-02-18  Paul Eggert  <eggert@twinsun.com>
86253
86254         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
86255         (textint): New typedef.
86256         (parser_control): Member year changed from int to textint.
86257         All uses changed.
86258         (YYSTYPE): Removed; replaced by %union with int and textint members.
86259         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
86260         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
86261         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
86262         (tSNUMBER, tUNUMBER): Now of type <textintval>.
86263         (date, number, to_year): Use width of number in digits, not its value,
86264         to determine whether it's a 2-digit year, or a 2-digit time.
86265         (yylex): Store number of digits of numeric tokens.
86266         Reported by John Kendall.
86267
86268         (parser_control): Changed from struct parser_control to typedef (for
86269         consistency).  All uses changed.
86270
86271         (tID): Removed; not used.
86272         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
86273
86274 2000-02-14  Paul Eggert  <eggert@twinsun.com>
86275
86276         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
86277         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
86278
86279 2000-02-12  Jim Meyering  <meyering@lucent.com>
86280
86281         * lib/userspec.c (ISDIGIT): Define it.
86282         (isdigit): Remove definition.
86283         (is_number): Use ISDIGIT, not isdigit.
86284         <libintl.h>: Include.
86285         (_ and N_): Define.
86286         (parse_user_spec): Mark translatable strings.
86287
86288 2000-02-10  Jim Meyering  <meyering@lucent.com>
86289
86290         With these changes, nanosleep.[ch] are finally enough like the other
86291         lib/* replacement files to compile on a few more losing systems.
86292
86293         * lib/nanosleep.h: Don't include config.h.
86294         Remove prototype from declaration of nanosleep.
86295         (PARAMS): Remove now-unneeded definition.
86296         * lib/nanosleep.c: #undef nanosleep.
86297         (rpl_nanosleep): Rename from nanosleep.
86298
86299 2000-02-10  Jim Meyering  <meyering@lucent.com>
86300
86301         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
86302         gnu_nanosleep to rpl_nanosleep.
86303
86304 2000-02-09  Jim Meyering  <meyering@lucent.com>
86305
86306         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
86307         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
86308
86309 2000-02-08  Akim Demaille  <akim@epita.fr>
86310
86311         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
86312         `[' and `]' and remove uses of `changequote'.
86313         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
86314         (AC_SYS_LARGEFILE): Likewise.
86315         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86316         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
86317         of changequote.
86318         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
86319         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
86320         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
86321         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
86322
86323 2000-02-05  Jim Meyering  <meyering@lucent.com>
86324
86325         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
86326         Remove explicit use of AC_HEADER_TIME.  It is required by
86327         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
86328         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
86329         in autoconf whereby the expansion of the latter ended up preceding
86330         the expansion of its prerequisite, AC_HEADER_TIME.
86331         Reported by Volker Borchert.
86332
86333 2000-02-03  Jim Meyering  <meyering@lucent.com>
86334
86335         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
86336
86337 2000-02-03  Jim Meyering  <meyering@lucent.com>
86338
86339         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
86340         rather than with `#if HAVE_UTMPNAME'.
86341
86342 2000-02-02  Jim Meyering  <meyering@lucent.com>
86343
86344         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
86345         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
86346         Reported by Eli Zaretskii.
86347
86348 2000-02-01  Jim Meyering  <meyering@lucent.com>
86349
86350         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
86351
86352 2000-01-31  Jim Meyering  <meyering@lucent.com>
86353
86354         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
86355         functions.  Add the time.h and sys/time.h headers along with the
86356         AC_REQUIRE'ment of AC_HEADER_TIME.
86357
86358 2000-01-31  Jim Meyering  <meyering@lucent.com>
86359
86360         * lib/nanosleep.h (nanosleep): Guard declaration with
86361         `#if ! HAVE_DECL_NANOSLEEP'.
86362         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
86363         the declaration in that vendor's sys/timers.h.
86364         Reported by Christian Krackowizer.
86365
86366         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
86367         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
86368         (ISPRINT): Likewise.
86369         Reported by Tom Tromey.
86370
86371 2000-01-30  Jim Meyering  <meyering@lucent.com>
86372
86373         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
86374
86375         * m4/prereq.m4 (utmp_includes): Define.
86376         Check for ut_user and ut_name members in both struct utmpx
86377         and struct utmp.
86378
86379 2000-01-30  Jim Meyering  <meyering@lucent.com>
86380
86381         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
86382         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
86383         header files where only utmpx.ut_user is declared.
86384
86385         * lib/readutmp.h (UT_USER): Define.
86386
86387 2000-01-29  Jim Meyering  <meyering@lucent.com>
86388
86389         * m4/lib-check.m4: New file containing library-related checks from
86390         fileutils and sh-utils (textutils had none).
86391
86392 2000-01-28  Jim Meyering  <meyering@lucent.com>
86393
86394         * m4/perl.m4: Change format of warning message to look more like that
86395         from the missing script.  Suggestion from François Pinard.
86396
86397 2000-01-25  Jim Meyering  <meyering@lucent.com>
86398
86399         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
86400         well as time.h in the compile check.
86401         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
86402         Fix typo in cross-compiling case: s/yes/no/.
86403
86404 2000-01-23  Jim Meyering  <meyering@lucent.com>
86405
86406         * m4/jm-macros.m4: Move df-related tests here from
86407         fileutils/configure.in
86408
86409         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
86410         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
86411
86412         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
86413         s/space/ac_fsusage_space/.
86414         (jm_FILE_SYSTEM_USAGE): Take two parameters.
86415
86416         * m4/ftruncate.m4: New file (derived from part of
86417         fileutils/configure.in).
86418         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
86419         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
86420
86421         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
86422         AC_SUBST these here, rather than just in sh-util/configure.in, so
86423         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
86424         all the same.
86425         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
86426         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
86427         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
86428         (AC_SUBST(POW_LIBM)): Likewise.
86429         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
86430
86431 2000-01-23  Jim Meyering  <meyering@lucent.com>
86432
86433         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
86434         obstack.c.
86435
86436 2000-01-22  Jim Meyering  <meyering@lucent.com>
86437
86438         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
86439
86440         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
86441
86442         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
86443         configure.in
86444         (AC_CHECK_HEADERS): Likewise for sh-utils.
86445         (AC_CHECK_HEADERS): Likewise for textutils.
86446         Merge the three lists of headers.
86447
86448         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
86449         from fileutils' configure.in.
86450
86451         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
86452         code. Moved tests into their own function (_jm_DECL_HEADERS) in
86453         check-decl.m4.
86454
86455         * m4/check-decl.m4: Use #if rather than #ifdef.
86456         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
86457         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
86458         (_jm_DECL_HEADERS): Define new function.
86459         (jm_CHECK_DECLARATIONS): Require it.
86460
86461 2000-01-22  Jim Meyering  <meyering@lucent.com>
86462
86463         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
86464         [! HAVE_DECL_STRTOULL]: Declare strtoull.
86465         Required for some AIX systems.  Reported by Christian Krackowizer.
86466         [TESTING] (main): New function.
86467
86468         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
86469         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
86470         letters.
86471
86472         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
86473         iswprint.
86474
86475         * lib/strverscmp.c (ISDIGIT): Define.
86476         (strverscmp): Use ISDIGIT, not isdigit.
86477
86478 2000-01-19  Jim Meyering  <meyering@lucent.com>
86479
86480         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
86481         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
86482         defines `struct timespec' in <sys/time.h>
86483
86484         * m4/c-bs-a.m4: Remove uses of changequote altogether.
86485         Thanks to Akim for explaining.
86486
86487 2000-01-17  Paul Eggert  <eggert@twinsun.com>
86488
86489         * lib/nanosleep.c (nanosleep):
86490         Don't use SA_INTERRUPT to decide whether to call sigaction, as
86491         POSIX.1 doesn't require SA_INTERRUPT and some systems
86492         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
86493         it's been part of POSIX.1 since day 1 (in 1988).
86494
86495 2000-01-17  Jim Meyering  <meyering@lucent.com>
86496
86497         * lib/interlock: Remove unused file.  Reported by François Pinard.
86498
86499 2000-01-16  Paul Eggert  <eggert@twinsun.com>
86500
86501         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
86502         alert, backslash, formfeed, and vertical tab unnecessarily in
86503         shell quoting style.
86504
86505 2000-01-16  Jim Meyering  <meyering@lucent.com>
86506
86507         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
86508         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
86509         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
86510         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
86511
86512 2000-01-16  Jim Meyering  <meyering@lucent.com>
86513
86514         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
86515         because the latter didn't work.
86516
86517 2000-01-15  Jim Meyering  <meyering@lucent.com>
86518
86519         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
86520         (AC_REPLACE_FUNCS): Add memcpy and memset.
86521         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
86522         Add strpbrk.
86523         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
86524
86525 2000-01-12  Jim Meyering  <meyering@lucent.com>
86526
86527         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
86528         (jm_PREREQ): Use it.
86529         (jm_PREREQ_READUTMP): New macro.
86530         (jm_PREREQ): Use it.
86531
86532 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86533
86534         Quote multibyte characters correctly.
86535         * m4/c-bs-a.m4: New file.
86536         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
86537         (jm_PREREQ): Use it.
86538
86539 2000-01-11  Paul Eggert  <eggert@twinsun.com>
86540
86541         * m4/uintmax_t.m4: Port to autoconf 2.13.
86542
86543 2000-01-08  Jim Meyering  <meyering@ascend.com>
86544
86545         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
86546         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
86547
86548 2000-01-04  Jim Meyering  <meyering@ascend.com>
86549
86550         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
86551         jm_STRUCT_DIRENT_D_TYPE.
86552         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
86553         jm_STRUCT_DIRENT_D_INO.
86554         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86555         jm_STRUCT_UTIMBUF.
86556         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86557         renamings.
86558         * m4/utime.m4: Likewise.
86559
86560         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86561         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86562
86563 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86564
86565         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86566         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86567
86568 2000-01-02  Jim Meyering  <meyering@ascend.com>
86569
86570         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86571         remember if this is necessary.
86572
86573 1999-12-26  Jim Meyering  <meyering@ascend.com>
86574
86575         * m4/jm-macros.m4: Use it here.
86576         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86577
86578 1999-12-23  Jim Meyering  <meyering@ascend.com>
86579
86580         * m4/jm-macros.m4: Check for clock_gettime (moved from
86581         fileutils/configure.in)
86582         Check for gettimeofday.
86583
86584 1999-12-20  Jim Meyering  <meyering@ascend.com>
86585
86586         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86587         autoconf-2.14a-1999-12-20.
86588
86589 1999-12-19  Jim Meyering  <meyering@ascend.com>
86590
86591         * m4/lstat-slash.m4: New file.
86592         * m4/jm-macros.m4: Use the new macro:
86593         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86594
86595 1999-12-07  Jim Meyering  <meyering@ascend.com>
86596
86597         * m4/perl.m4: Require that File::Compare be available, too.
86598         Too many systems seem to lack it.
86599
86600         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86601         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86602
86603 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86604
86605         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86606         problem with the QNX 4.25 shell, which doesn't propagate exit
86607         status of failed commands inside shell assignments.
86608
86609 1999-11-17  Jim Meyering  <meyering@ascend.com>
86610
86611         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86612
86613 1999-11-07  Jim Meyering  <meyering@ascend.com>
86614
86615         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86616
86617 1999-11-06  Jim Meyering  <meyering@ascend.com>
86618
86619         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86620         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86621
86622 1999-11-05  Jim Meyering  <meyering@ascend.com>
86623
86624         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86625         configure.in of textutils, fileutils, and sh-utils into this one
86626         (shared between those packages) file.
86627         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86628         AC_STRUCT_ST_BLKSIZE.
86629
86630 1999-11-03  Jim Meyering  <meyering@ascend.com>
86631
86632         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86633         of AC_CHECK_TYPE checks includes unistd.h.
86634         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86635         Suggestion from Akim Demaille.
86636
86637 1999-10-30  Jim Meyering  <meyering@ascend.com>
86638
86639         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86640         m4-quoted string.
86641         * m4/ls-mntd-fs.m4: Likewise.
86642         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86643         * m4/jm-winsz1.m4: Likewise.
86644
86645         * m4/const.m4: Remove file, since the fix made it into the experimental
86646         version of autoconf.
86647         * m4/mktime.m4: Likewise.
86648
86649         * m4/check-type.m4: Remove file, now that the latest version of
86650         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86651
86652         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86653         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86654         AC_CHECK_TYPE.
86655
86656 1999-10-04  Jim Meyering  <meyering@ascend.com>
86657
86658         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86659
86660 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86661
86662         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86663         2.95.1 bug with HP-UX 10.20.
86664
86665 1999-09-17  Jim Meyering  <meyering@ascend.com>
86666
86667         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86668         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86669         due to missing strdup (against sh-utils-2.0).
86670
86671 1999-08-29  Jim Meyering  <meyering@ascend.com>
86672
86673         * m4/jm-macros.m4: Require jm_BISON.
86674         * m4/bison.m4: New file.
86675
86676 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86677
86678         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86679         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86680
86681 1999-08-05  Jim Meyering  <meyering@ascend.com>
86682
86683         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86684         to avoid conflicts with `conftest' on 8+3 filesystems.
86685         Suggestion from Eli Zaretskii.
86686
86687 1999-08-04  Jim Meyering  <meyering@ascend.com>
86688
86689         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86690         fileutils and sh-utils (textutils's getline test was inadequate).
86691         (AM_FUNC_GETLINE): Run this test.
86692         (AC_CHECK_FUNCS): Check for getdelim.
86693         Reported by Bob Proulx.
86694
86695 1999-08-02  Jim Meyering  <meyering@ascend.com>
86696
86697         * m4/jm-macros.m4: Add a comment.
86698
86699 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86700
86701         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86702         <inttypes.h> defines strtoumax as a macro (and not as a
86703         function).
86704
86705 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86706
86707         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86708         that we can shift, multiply and divide unsigned long long
86709         values; Ultrix cc can't do it.
86710
86711 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86712
86713         * m4/mktime.m4: New file, which is a preview of what should appear
86714         in the next public autoconf release.
86715
86716 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86717
86718         * m4/lfs.m4: Remove this file.
86719         * m4/largefile.m4: New file.  It contains the old contents of
86720         lfs.m4, except that all names with prefix AC_LFS have been
86721         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86722         compatible with future autoconf versions.  Also, some minor m4
86723         quoting problems have been fixed.
86724
86725 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86726
86727         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86728         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86729         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86730         and simplify the shell code.
86731
86732 1999-08-01  Jim Meyering  <meyering@ascend.com>
86733
86734         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86735         m4.
86736
86737 1999-07-20  Jim Meyering  <meyering@ascend.com>
86738
86739         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86740
86741 1999-07-15  Jim Meyering  <meyering@ascend.com>
86742
86743         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86744
86745 1999-05-22  Jim Meyering  <meyering@ascend.com>
86746
86747         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86748
86749 1999-05-20  Jim Meyering  <meyering@ascend.com>
86750
86751         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86752         Add a colon after each `then' in case $4 is empty.
86753
86754 1999-05-16  Jim Meyering  <meyering@ascend.com>
86755
86756         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86757
86758 1999-05-10  Jim Meyering  <meyering@ascend.com>
86759
86760         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86761
86762         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86763         AC_FUNC_MKTIME.
86764
86765 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86766
86767         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86768
86769 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86770
86771         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86772         not CPPFLAGS, so that linking works correctly in IRIX.
86773
86774 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86775
86776         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86777
86778 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86779
86780         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86781         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86783         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86784         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86785
86786         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86787
86788 1999-04-20  Jim Meyering  <meyering@ascend.com>
86789
86790         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86791         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86792         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86793
86794 1999-04-18  Jim Meyering  <meyering@ascend.com>
86795
86796         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86797         * m4/jm-macros.m4: Use it.
86798
86799 1999-04-06  Jim Meyering  <meyering@ascend.com>
86800
86801         * m4/strftime.m4: Remove test for %f.
86802
86803 1999-03-29  Jim Meyering  <meyering@ascend.com>
86804
86805         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86806         superset of the AC_TYPE_* checks in the textutils, fileutils,
86807         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86808         AC_TYPE_PID_T.
86809
86810 1999-03-28  Jim Meyering  <meyering@ascend.com>
86811
86812         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86813         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86814         replaced e.g., in the *.sh files of the sh-utils.
86815
86816 1999-03-20  Jim Meyering  <meyering@ascend.com>
86817
86818         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86819         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86820         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86821
86822 1999-03-19  Jim Meyering  <meyering@ascend.com>
86823
86824         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86825
86826 1999-03-12  Jim Meyering  <meyering@ascend.com>
86827
86828         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86829
86830 1999-03-07  Jim Meyering  <meyering@ascend.com>
86831
86832         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86833         declared.
86834
86835 1999-02-17  Jim Meyering  <meyering@ascend.com>
86836
86837         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86838         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86839
86840 1999-02-07  Jim Meyering  <meyering@ascend.com>
86841
86842         * m4/group-member.m4: New file -- extracted from sh-utils'
86843         configure.in.
86844
86845         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86846         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86847
86848 1999-02-06  Jim Meyering  <meyering@ascend.com>
86849
86850         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86851         * m4/fnmatch.m4: Likewise.
86852         * m4/getgroups.m4: Likewise.
86853         * m4/lstat.m4: Likewise.
86854         * m4/malloc.m4: Likewise.
86855         * m4/putenv.m4: Likewise.
86856         * m4/realloc.m4: Likewise.
86857         * m4/regex.m4: Likewise.
86858         * m4/stat.m4: Likewise.
86859         * m4/strftime.m4: Likewise.
86860         Suggestion from Alain Magloire.
86861
86862         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86863         * m4/fnmatch.m4: Likewise.
86864         * m4/getgroups.m4: Likewise.
86865         * m4/getline.m4: Likewise.
86866         * m4/lstat.m4: Likewise.
86867         * m4/malloc.m4: Likewise.
86868         * m4/memcmp.m4: Likewise.
86869         * m4/putenv.m4: Likewise.
86870         * m4/realloc.m4: Likewise.
86871         * m4/regex.m4: Likewise.
86872         * m4/stat.m4: Likewise.
86873         * m4/strftime.m4: Likewise.
86874         Suggestion from Alain Magloire.
86875
86876         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86877         an argument.
86878
86879         * m4/regex.m4: Add a run-time Test for proper operation of
86880         re_compile_pattern.
86881
86882 1999-01-31  Jim Meyering  <meyering@ascend.com>
86883
86884         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86885
86886 1999-01-30  Jim Meyering  <meyering@ascend.com>
86887
86888         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86889
86890         * m4/jm-mktime.m4: Make this a wrapper around the official
86891         AM_FUNC_MKTIME rather than my private copy, now that the official one
86892         is up to date.
86893         * m4/mktime.m4: Remove file.
86894
86895         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86896         * m4/uptime.m4: Likewise.
86897         * m4/uintmax_t.m4: Likewise.
86898
86899 1999-01-28  Jim Meyering  <meyering@ascend.com>
86900
86901         * m4/jm-macros.m4: Use jm_AFS.
86902         * m4/afs.m4: New file (from fileutils' configure.in).
86903
86904         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86905         * m4/chown.m4: Likewise.
86906         * m4/d-ino.m4: Likewise.
86907         * m4/d-type.m4: Likewise.
86908         * m4/fnmatch.m4: Likewise.
86909         * m4/getgroups.m4: Likewise.
86910         * m4/gettext.m4: Likewise.
86911         * m4/jm-mktime.m4: Likewise.
86912         * m4/jm-winsz2.m4: Likewise.
86913         * m4/lcmessage.m4: Likewise.
86914         * m4/ls-mntd-fs.m4: Likewise.
86915         * m4/malloc.m4: Likewise.
86916         * m4/memcmp.m4: Likewise.
86917         * m4/putenv.m4: Likewise.
86918         * m4/realloc.m4: Likewise.
86919         * m4/st_mtim.m4: Likewise.
86920         * m4/strftime.m4: Likewise.
86921
86922 1999-01-16  Jim Meyering  <meyering@ascend.com>
86923
86924         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86925         (ARGMATCH_DIE_DECL): Define.
86926
86927 1999-01-12  Jim Meyering  <meyering@ascend.com>
86928
86929         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86930         Reported by Lars Hecking.
86931
86932 1999-01-10  Jim Meyering  <meyering@ascend.com>
86933
86934         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86935         gross kludge.
86936         * m4/inttypes_h.m4: Likewise.
86937         * m4/lstat.m4: Likewise.
86938         * m4/malloc.m4: Likewise.
86939         * m4/readdir.m4: Likewise.
86940         * m4/realloc.m4: Likewise.
86941         * m4/st_dm_mode.m4: Likewise.
86942         * m4/stat.m4: Likewise.
86943         * m4/utimbuf.m4: Likewise.
86944         * m4/utimes.m4: Likewise.
86945
86946         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86947         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86948         comments in config.h.in are meaningful.
86949
86950         * m4/jm-macros.m4: Require autoconf-2.13 here.
86951
86952         * m4/regex.m4: By default, don't use the included regex.c on systems
86953         with glibc 2.  Suggestion from Uli Drepper.
86954
86955 1999-01-02  Jim Meyering  <meyering@ascend.com>
86956
86957         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86958
86959 1998-12-18  Jim Meyering  <meyering@ascend.com>
86960
86961         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86962         Based on a suggestion from Lars Hecking.
86963
86964 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86965
86966         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86967
86968 1998-11-16  Jim Meyering  <meyering@ascend.com>
86969
86970         * m4/lfs.m4: Double-quote the `uname...` expression.
86971
86972 1998-11-14  Jim Meyering  <meyering@ascend.com>
86973
86974         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86975         * m4/stat.m4: Likewise.
86976
86977 1998-11-03  Jim Meyering  <meyering@ascend.com>
86978
86979         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86980         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86981
86982 1998-10-18  Jim Meyering  <meyering@ascend.com>
86983
86984         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86985
86986 1998-10-17  Jim Meyering  <meyering@ascend.com>
86987
86988         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86989         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86990         calls for those previously hard-coded headers.  Instead, take a new
86991         parameter.
86992         (jm_CHECK_DECLARATIONS): Reflect interface change.
86993         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86994         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86995
86996         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86997
86998 1998-10-14  Jim Meyering  <meyering@ascend.com>
86999
87000         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87001         instead of "TZ=America/Vancouver".  From Paul Eggert.
87002
87003 1998-10-11  Jim Meyering  <meyering@ascend.com>
87004
87005         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87006         This adds a test for a recently added compatibility fix for mktime.c.
87007         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87008
87009 1998-09-27  Jim Meyering  <meyering@ascend.com>
87010
87011         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87012
87013         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87014         ../configure.in, including a change from Gordon Matzigkeit to allow
87015         cross-compiling for the Hurd.
87016
87017         * m4/glibc.m4: New file/macro to test for the GNU C Library
87018         versions 1 and 2.  From Gordon Matzigkeit.
87019         Indent.
87020
87021 1998-09-21  Jim Meyering  <meyering@ascend.com>
87022
87023         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
87024
87025 1998-08-18  Paul Eggert  <eggert@twinsun.com>
87026
87027         Port nanosecond-resolution times to UnixWare 2.1.2 and
87028         pedantic Solaris 2.6.
87029
87030         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
87031         AC_STRUCT_ST_MTIM.
87032         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
87033         Generate name of ns member, instead of just 1 or undef.
87034         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
87035
87036 1998-08-15  Jim Meyering  <meyering@ascend.com>
87037
87038         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
87039         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
87040         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
87041         instead of jm_TYPE_SSIZE_T.
87042
87043 1998-08-12  Jim Meyering  <meyering@ascend.com>
87044
87045         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
87046
87047 1998-08-02  Jim Meyering  <meyering@ascend.com>
87048
87049         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
87050         in acconfig.h manually.
87051
87052 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87053
87054         * m4/st_mtim.m4: New file.
87055
87056 1998-07-28  Jim Meyering  <meyering@ascend.com>
87057
87058         * m4/utimes.m4: Undef stat.
87059
87060 1998-07-25  Jim Meyering  <meyering@ascend.com>
87061
87062         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87063         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87064
87065 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87066
87067         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87068         uid and gid actually remain unchanged.
87069
87070 1998-07-07  Jim Meyering  <meyering@ascend.com>
87071
87072         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87073
87074 1998-07-04  Jim Meyering  <meyering@ascend.com>
87075
87076         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87077         to prove that this macro can be used in packages without regex.c.
87078
87079 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87080
87081         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87082         is to be used.
87083
87084 1998-07-03  Jim Meyering  <meyering@ascend.com>
87085
87086         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87087
87088         * m4/gettext.m4: New file -- from gettext-0.10.35.
87089         * m4/lcmessage.m4: Likewise.
87090         * m4/progtest.m4: Likewise.
87091
87092         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87093         * m4/jm-macros.m4: Require the new macro.
87094
87095 1998-06-29  Jim Meyering  <meyering@ascend.com>
87096
87097         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87098         for the definition of NGROUPS (used in a system header included
87099         by sys/mount.h).
87100
87101 1998-06-28  Jim Meyering  <meyering@ascend.com>
87102
87103         * m4/ls-mntd-fs.m4: New file.
87104         * m4/fstypename.m4: New file.
87105
87106         * m4/jm-macros.m4: Require the new macro.
87107         * m4/jm-glibc-io.m4: New file.
87108
87109 1998-05-19  Jim Meyering  <meyering@ascend.com>
87110
87111         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87112         * m4/lchown.m4: New file.
87113
87114         * m4/Makefile.am.in: New file.
87115         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87116
87117 1998-05-14  Jim Meyering  <meyering@ascend.com>
87118
87119         * m4/Makefile.am (EXTRA_DIST): Add them.
87120         * m4/jm-macros.m4: New file.
87121         * m4/utimbuf.m4: New file.
87122
87123 1998-05-12  Jim Meyering  <meyering@ascend.com>
87124
87125         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
87126
87127 1998-05-11  Jim Meyering  <meyering@ascend.com>
87128
87129         * m4/isc-posix.m4: New file.
87130
87131 1998-05-10  Jim Meyering  <meyering@ascend.com>
87132
87133         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
87134
87135 1998-05-09  Jim Meyering  <meyering@ascend.com>
87136
87137         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
87138         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
87139         with automake.
87140
87141         * m4/ssize_t.m4: New file.
87142         * m4/mktime.m4: Remove file -- the new automake has this now.
87143
87144 1998-04-26  Jim Meyering  <meyering@ascend.com>
87145
87146         * m4/assert.m4: New file.
87147         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
87148
87149 1998-04-05  Jim Meyering  <meyering@ascend.com>
87150
87151         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
87152         (jm_PREREQ): Use it here.
87153
87154 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
87155
87156         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
87157         in acconfig.h.
87158
87159 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
87160
87161         * m4/prereq.m4: New file.
87162         * m4/error.m4: New file.
87163         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
87164
87165 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
87166
87167         * m4/getline.m4: Don't set am_cv_func_working_getline before the
87168         cache-check for the same variable -- that defeated the purpose of
87169         the test; the test program was never run.  This was a problem only
87170         on systems with losing getline functions -- HP-UX 10.20 is one.
87171         Reported by Bjorn Helgaas.
87172
87173 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
87174
87175         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
87176
87177 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
87178
87179         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
87180
87181         * m4/const.m4: New file.  Use an initializer in this declaration
87182         typedef int charset[2]; const charset x;
87183         Reported by Bob Glickstein.
87184
87185 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
87186
87187         * m4/chown.m4: Fix reversed types on -1 args to chown.
87188         From Kaveh Ghazi.
87189
87190 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
87191
87192         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
87193         Add lseek and memchr.
87194
87195         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
87196         T.E.Dickey <dickey@clark.net> said that some older preprocessors
87197         have a 20-character limit on names.
87198
87199 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
87200
87201         * m4/inttypes_h.m4: New file.
87202         * m4/uintmax_t.m4: New file.
87203         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
87204
87205
87206         -----
87207
87208         Local Variables:
87209         coding: utf-8
87210         End:
87211
87212         Copyright (C) 1997-2011 Free Software Foundation, Inc.
87213
87214         Copying and distribution of this file, with or without
87215         modification, are permitted provided the copyright notice
87216         and this notice are preserved.